@lvce-editor/file-system-worker 4.1.0 → 4.2.0

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.
@@ -1845,16 +1845,6 @@ const {
1845
1845
  setFactory
1846
1846
  } = createLazyRpc(RendererProcess);
1847
1847
 
1848
- /* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */
1849
-
1850
- const fromAsync = async asyncIterable => {
1851
- const children = [];
1852
- for await (const value of asyncIterable) {
1853
- children.push(value);
1854
- }
1855
- return children;
1856
- };
1857
-
1858
1848
  /**
1859
1849
  * Do not use directly, use FileSystemHtml.getChildHandles
1860
1850
  * instead which prompts for the required permission to
@@ -1862,9 +1852,8 @@ const fromAsync = async asyncIterable => {
1862
1852
  */
1863
1853
  const getChildHandles = async handle => {
1864
1854
  object(handle);
1865
-
1866
1855
  // @ts-ignore - values() exists on FileSystemDirectoryHandle but TypeScript types may not include it
1867
- const handles = await fromAsync(handle.values());
1856
+ const handles = await Array.fromAsync(handle.values());
1868
1857
  return handles;
1869
1858
  };
1870
1859
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-system-worker",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "File System Worker",
5
5
  "keywords": [
6
6
  "Lvce Editor"
@@ -12,8 +12,5 @@
12
12
  "license": "MIT",
13
13
  "author": "Lvce Editor",
14
14
  "type": "module",
15
- "main": "dist/fileSystemWorkerMain.js",
16
- "dependencies": {
17
- "blob-util": "^2.0.2"
18
- }
15
+ "main": "dist/fileSystemWorkerMain.js"
19
16
  }