@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/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
  /**