@haex-space/vault-sdk 4.8.0 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-DiqylZ59.d.ts → client-CNbwFQjB.d.ts} +4 -3
- package/dist/{client-D9zisRb8.d.mts → client-DOAj36ga.d.mts} +4 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +10 -6
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +10 -6
- package/dist/react.mjs.map +1 -1
- package/dist/runtime/nuxt.plugin.client.js +10 -6
- package/dist/runtime/nuxt.plugin.client.js.map +1 -1
- package/dist/runtime/nuxt.plugin.client.mjs +10 -6
- package/dist/runtime/nuxt.plugin.client.mjs.map +1 -1
- package/dist/svelte.d.mts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +10 -6
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs +10 -6
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +10 -6
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs +10 -6
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1408,7 +1408,8 @@ var FilesystemAPI = class {
|
|
|
1408
1408
|
this.client = client;
|
|
1409
1409
|
}
|
|
1410
1410
|
/**
|
|
1411
|
-
* Opens a save file dialog and saves the provided data to the selected location
|
|
1411
|
+
* Opens a save file dialog and saves the provided data to the selected location.
|
|
1412
|
+
* Waits for the user without the request timeout.
|
|
1412
1413
|
* @param data The file data as Uint8Array
|
|
1413
1414
|
* @param options Options for the save dialog
|
|
1414
1415
|
* @returns The path where the file was saved, or null if cancelled
|
|
@@ -1422,7 +1423,8 @@ var FilesystemAPI = class {
|
|
|
1422
1423
|
defaultPath: options.defaultPath,
|
|
1423
1424
|
title: options.title,
|
|
1424
1425
|
filters: options.filters
|
|
1425
|
-
}
|
|
1426
|
+
},
|
|
1427
|
+
{ timeout: null }
|
|
1426
1428
|
);
|
|
1427
1429
|
return result;
|
|
1428
1430
|
}
|
|
@@ -1542,25 +1544,27 @@ var FilesystemAPI = class {
|
|
|
1542
1544
|
);
|
|
1543
1545
|
}
|
|
1544
1546
|
/**
|
|
1545
|
-
* Open a folder selection dialog
|
|
1547
|
+
* Open a folder selection dialog; waits for the user without the request timeout
|
|
1546
1548
|
* @param options Dialog options
|
|
1547
1549
|
* @returns Selected folder path, or null if cancelled
|
|
1548
1550
|
*/
|
|
1549
1551
|
async selectFolder(options = {}) {
|
|
1550
1552
|
return this.client.request(
|
|
1551
1553
|
FILESYSTEM_COMMANDS.selectFolder,
|
|
1552
|
-
options
|
|
1554
|
+
options,
|
|
1555
|
+
{ timeout: null }
|
|
1553
1556
|
);
|
|
1554
1557
|
}
|
|
1555
1558
|
/**
|
|
1556
|
-
* Open a file selection dialog
|
|
1559
|
+
* Open a file selection dialog; waits for the user without the request timeout
|
|
1557
1560
|
* @param options Dialog options
|
|
1558
1561
|
* @returns Selected file paths, or null if cancelled
|
|
1559
1562
|
*/
|
|
1560
1563
|
async selectFile(options = {}) {
|
|
1561
1564
|
return this.client.request(
|
|
1562
1565
|
FILESYSTEM_COMMANDS.selectFile,
|
|
1563
|
-
options
|
|
1566
|
+
options,
|
|
1567
|
+
{ timeout: null }
|
|
1564
1568
|
);
|
|
1565
1569
|
}
|
|
1566
1570
|
/**
|