fix(api.js): wrong command for isAbsolute (#11835)

This commit is contained in:
Elias Sjödin 2024-11-30 22:04:48 +01:00 committed by GitHub
parent d6bed20a0e
commit a6e84f7d2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@tauri-apps/api": "patch:bug"
---
Fix error where using `isAbsolute` would return `Command not found`.

View File

@ -661,7 +661,7 @@ async function basename(path: string, ext?: string): Promise<string> {
* @since 1.0.0
*/
async function isAbsolute(path: string): Promise<boolean> {
return invoke('plugin:path|isAbsolute', { path })
return invoke('plugin:path|is_absolute', { path })
}
export {