tauri/packages/api/src
Aleksey Ponomarev ad1dec2e24
fix(core): properly handle async errors in addPluginListener (#14464)
* fix(core): properly handle async errors in addPluginListener

The previous implementation used .then() after invoke() without await, which prevented the catch block from handling rejected promises. Now using await to properly catch errors and allow fallback to camelCase registerListener method.

* Change file and generate `bundle.global.js`

---------

Co-authored-by: Tony <legendmastertony@gmail.com>
2025-11-15 12:07:51 +08:00
..
menu feat(menu): add icon support for Submenu in Rust and JS/TS APIs (#13722) 2025-07-30 13:48:55 +08:00
app.ts feat(core): back button event on Android, closes #8142 (#14133) 2025-10-15 20:50:15 -03:00
core.ts fix(core): properly handle async errors in addPluginListener (#14464) 2025-11-15 12:07:51 +08:00
dpi.ts chore: fix some typos (#14334) 2025-10-20 22:51:28 +08:00
event.ts fix(core): immediately unregister event listener on unlisten call (#13306) 2025-05-05 10:46:05 -03:00
global.d.ts feat(mock): add mock for listen and emit (#13783) 2025-07-15 09:30:01 +08:00
image.ts feat(menu): add icon support for Submenu in Rust and JS/TS APIs (#13722) 2025-07-30 13:48:55 +08:00
index.ts docs: document vanilla JS import alternative (#11632) 2024-11-11 14:21:08 +02:00
menu.ts Change V1 links to V2 site (#11111) 2024-09-24 08:09:00 -03:00
mocks.ts feat(mock): add mock for listen and emit (#13783) 2025-07-15 09:30:01 +08:00
path.ts docs: where does resource dir resolve to (#13640) 2025-06-21 10:22:24 +08:00
tray.ts feat(api/tray): add TrayIcon.setShowMenuOnLeftClick method (#11726) 2024-11-21 14:50:41 +02:00
webview.ts feat: Expose ScrollBarStyle webview option to tauri. (#14089) 2025-09-02 07:14:59 -03:00
webviewWindow.ts docs(webviewWindow): fix incorrect import in JSDoc example (#14388) 2025-10-29 15:34:16 +08:00
window.ts chore: fix some typos (#14334) 2025-10-20 22:51:28 +08:00