opfs-worker 2.1.1 → 2.1.2

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.
Files changed (100) hide show
  1. package/README.md +21 -20
  2. package/dist/BaseOPFS-Bu7FZtCb.cjs +2 -0
  3. package/dist/BaseOPFS-Bu7FZtCb.cjs.map +1 -0
  4. package/dist/{BaseOPFS-BusBkyJX.js → BaseOPFS-C3NE4BKr.js} +790 -548
  5. package/dist/BaseOPFS-C3NE4BKr.js.map +1 -0
  6. package/dist/OPFSAsync-C0RsxCX5.cjs +2 -0
  7. package/dist/OPFSAsync-C0RsxCX5.cjs.map +1 -0
  8. package/dist/{OPFSAsync-CO44W23e.js → OPFSAsync-aeLUdIqd.js} +19 -19
  9. package/dist/OPFSAsync-aeLUdIqd.js.map +1 -0
  10. package/dist/{OPFSFacade-hrNXCn6w.cjs → OPFSFacade-BJv2yuWU.cjs} +2 -2
  11. package/dist/{OPFSFacade-hrNXCn6w.cjs.map → OPFSFacade-BJv2yuWU.cjs.map} +1 -1
  12. package/dist/{OPFSFacade-CEaSqTut.js → OPFSFacade-DiogtQoq.js} +2 -2
  13. package/dist/{OPFSFacade-CEaSqTut.js.map → OPFSFacade-DiogtQoq.js.map} +1 -1
  14. package/dist/OPFSSync-3qlSBYmz.cjs +2 -0
  15. package/dist/OPFSSync-3qlSBYmz.cjs.map +1 -0
  16. package/dist/{OPFSSync-D7obTsl3.js → OPFSSync-CvSOswhW.js} +57 -57
  17. package/dist/OPFSSync-CvSOswhW.js.map +1 -0
  18. package/dist/assets/dedicated.worker-Bqqr9UBA.js.map +1 -0
  19. package/dist/core/BaseOPFS.d.ts +23 -3
  20. package/dist/core/BaseOPFS.d.ts.map +1 -1
  21. package/dist/core/OPFSAsync.d.ts.map +1 -1
  22. package/dist/core/OPFSSync.d.ts.map +1 -1
  23. package/dist/createOPFSAsync-B611B63X.js +10 -0
  24. package/dist/{createOPFSAsync-DdhJYoC0.js.map → createOPFSAsync-B611B63X.js.map} +1 -1
  25. package/dist/createOPFSAsync-BATjJg8k.cjs +2 -0
  26. package/dist/{createOPFSAsync-DyWpvmL-.cjs.map → createOPFSAsync-BATjJg8k.cjs.map} +1 -1
  27. package/dist/{createOPFSDedicated-BwTc0NV5.js → createOPFSDedicated-DgudPTB8.js} +1086 -817
  28. package/dist/createOPFSDedicated-DgudPTB8.js.map +1 -0
  29. package/dist/{createOPFSDedicated-CEeRexom.cjs → createOPFSDedicated-EmIwluQo.cjs} +1037 -797
  30. package/dist/createOPFSDedicated-EmIwluQo.cjs.map +1 -0
  31. package/dist/{createOPFSShared-BSFWsoLe.js → createOPFSShared-BWYln8jJ.js} +2 -2
  32. package/dist/{createOPFSShared-BSFWsoLe.js.map → createOPFSShared-BWYln8jJ.js.map} +1 -1
  33. package/dist/{createOPFSShared-BoCft_BS.cjs → createOPFSShared-DPJpCd7z.cjs} +2 -2
  34. package/dist/{createOPFSShared-BoCft_BS.cjs.map → createOPFSShared-DPJpCd7z.cjs.map} +1 -1
  35. package/dist/dedicated.worker.js +1034 -794
  36. package/dist/dedicated.worker.js.map +1 -1
  37. package/dist/facade/createOPFSDedicated.d.ts +4 -2
  38. package/dist/facade/createOPFSDedicated.d.ts.map +1 -1
  39. package/dist/index.async.cjs +1 -1
  40. package/dist/index.async.js +33 -32
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.d.ts +1 -5
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +44 -43
  45. package/dist/index.pure.cjs +1 -1
  46. package/dist/index.pure.js +38 -37
  47. package/dist/index.sharedworker.cjs +1 -1
  48. package/dist/index.sharedworker.js +34 -33
  49. package/dist/index.sync.cjs +1 -1
  50. package/dist/index.sync.d.ts +2 -0
  51. package/dist/index.sync.d.ts.map +1 -1
  52. package/dist/index.sync.js +34 -32
  53. package/dist/shared.worker.js +1056 -820
  54. package/dist/shared.worker.js.map +1 -1
  55. package/dist/types.d.ts +5 -5
  56. package/dist/types.d.ts.map +1 -1
  57. package/dist/utils/helpers.d.ts +13 -3
  58. package/dist/utils/helpers.d.ts.map +1 -1
  59. package/dist/worker/createDedicatedWorker.d.ts +8 -3
  60. package/dist/worker/createDedicatedWorker.d.ts.map +1 -1
  61. package/docs/README.md +18 -0
  62. package/docs/api/README.md +221 -0
  63. package/docs/{file-descriptors.md → api/file-descriptors.md} +13 -13
  64. package/docs/guides/async.md +2 -2
  65. package/docs/guides/dedicated.md +6 -4
  66. package/docs/guides/hashing.md +1 -1
  67. package/docs/guides/pure.md +1 -1
  68. package/docs/guides/sharedworker.md +1 -1
  69. package/docs/guides/streaming.md +2 -2
  70. package/docs/migration.md +8 -9
  71. package/docs/types.md +4 -4
  72. package/package.json +10 -9
  73. package/src/core/BaseOPFS.ts +46 -4
  74. package/src/core/OPFSAsync.ts +4 -5
  75. package/src/core/OPFSSync.ts +6 -7
  76. package/src/facade/createOPFSDedicated.ts +4 -2
  77. package/src/index.sync.ts +2 -0
  78. package/src/index.ts +1 -5
  79. package/src/types.ts +5 -3
  80. package/src/utils/helpers.ts +32 -6
  81. package/src/worker/createDedicatedWorker.ts +85 -7
  82. package/src/worker/dedicated.worker.ts +12 -1
  83. package/dist/BaseOPFS-BusBkyJX.js.map +0 -1
  84. package/dist/BaseOPFS-CYwrD7-q.cjs +0 -4
  85. package/dist/BaseOPFS-CYwrD7-q.cjs.map +0 -1
  86. package/dist/OPFSAsync-B2dR-2VR.cjs +0 -2
  87. package/dist/OPFSAsync-B2dR-2VR.cjs.map +0 -1
  88. package/dist/OPFSAsync-CO44W23e.js.map +0 -1
  89. package/dist/OPFSSync-BPrNtvFS.cjs +0 -2
  90. package/dist/OPFSSync-BPrNtvFS.cjs.map +0 -1
  91. package/dist/OPFSSync-D7obTsl3.js.map +0 -1
  92. package/dist/assets/dedicated.worker-DW6UqFo0.js.map +0 -1
  93. package/dist/createOPFSAsync-DdhJYoC0.js +0 -10
  94. package/dist/createOPFSAsync-DyWpvmL-.cjs +0 -2
  95. package/dist/createOPFSDedicated-BwTc0NV5.js.map +0 -1
  96. package/dist/createOPFSDedicated-CEeRexom.cjs.map +0 -1
  97. package/docs/api/backend.md +0 -36
  98. package/docs/api/create.md +0 -82
  99. package/docs/api/facade.md +0 -53
  100. package/docs/choosing-a-mode.md +0 -41
@@ -7,8 +7,10 @@ import type { DedicatedWorkerOptions } from '../worker/createDedicatedWorker';
7
7
  * Prefer importing from `opfs-worker/sync` when you only need the worker backend
8
8
  * (avoids pulling `OPFSAsync` into the graph). Importing from `opfs-worker` works too.
9
9
  *
10
- * By default uses an inlined worker. Pass `url` / `worker` to load
11
- * `opfs-worker/dedicated.worker.js` instead (see {@link DedicatedWorkerOptions}).
10
+ * By default uses an inlined worker. Calls with the same `root` (and same `url`)
11
+ * reuse one Worker on this page; different roots get different Workers.
12
+ * Pass `url` / `worker` to load `opfs-worker/dedicated.worker.js` instead
13
+ * (see {@link DedicatedWorkerOptions}).
12
14
  *
13
15
  * Need the raw bytes API or the Worker instance? Use `fs.backend` / `fs.worker`.
14
16
  * For the workerless async backend, use {@link createOPFSAsync}.
@@ -1 +1 @@
1
- {"version":3,"file":"createOPFSDedicated.d.ts","sourceRoot":"","sources":["../../src/facade/createOPFSDedicated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,UAAU,CAIhF"}
1
+ {"version":3,"file":"createOPFSDedicated.d.ts","sourceRoot":"","sources":["../../src/facade/createOPFSDedicated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,UAAU,CAIhF"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-CYwrD7-q.cjs"),e=require("./OPFSAsync-B2dR-2VR.cjs"),a=require("./OPFSFacade-hrNXCn6w.cjs"),t=require("./createOPFSAsync-DyWpvmL-.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSAsync=e.OPFSAsync;exports.OPFSFacade=a.OPFSFacade;exports.createOPFSAsync=t.createOPFSAsync;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-Bu7FZtCb.cjs"),e=require("./OPFSAsync-C0RsxCX5.cjs"),a=require("./OPFSFacade-BJv2yuWU.cjs"),t=require("./createOPFSAsync-BATjJg8k.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.absoluteOpfsPath=r.absoluteOpfsPath;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSAsync=e.OPFSAsync;exports.OPFSFacade=a.OPFSFacade;exports.createOPFSAsync=t.createOPFSAsync;
2
2
  //# sourceMappingURL=index.async.cjs.map
@@ -1,7 +1,7 @@
1
- import { A as e, K as s, B as o, D as t, E as i, F as n, g as E, c, I as l, f as d, O as p, a as S, d as m, e as F, P as O, b as h, S as P, V as y, W as f, k as u, x, v as A, H as B, i as v, y as I, u as N, h as b, J as g, N as z, l as D, M as H, t as L, L as T, q as k, j as M, m as R, p as W, o as j, n as q, z as w, r as C, G as V, s as _, C as G, w as J } from "./BaseOPFS-BusBkyJX.js";
2
- import { O as U } from "./OPFSAsync-CO44W23e.js";
3
- import { O as Y } from "./OPFSFacade-CEaSqTut.js";
4
- import { c as Z } from "./createOPFSAsync-DdhJYoC0.js";
1
+ import { A as e, L as s, B as o, D as t, E as i, F as n, g as E, c, I as l, f as p, O as d, a as S, d as m, e as F, P as O, b as h, S as P, V as f, W as y, j as u, l as x, y as A, x as B, J as b, i as v, z as I, v as N, h as g, K as z, Q as D, n as H, N as L, u as T, M as k, r as M, k as R, m as W, q as j, p as q, o as w, C, t as V, H as _, s as G, G as J, w as K } from "./BaseOPFS-C3NE4BKr.js";
2
+ import { O as U } from "./OPFSAsync-aeLUdIqd.js";
3
+ import { O as Y } from "./OPFSFacade-DiogtQoq.js";
4
+ import { c as $ } from "./createOPFSAsync-B611B63X.js";
5
5
  export {
6
6
  e as AlreadyExistsError,
7
7
  s as BINARY_FILE_EXTENSIONS,
@@ -12,9 +12,9 @@ export {
12
12
  E as FileSystemOperationError,
13
13
  c as FileTypeError,
14
14
  l as IOError,
15
- d as InitializationFailedError,
15
+ p as InitializationFailedError,
16
16
  U as OPFSAsync,
17
- p as OPFSError,
17
+ d as OPFSError,
18
18
  Y as OPFSFacade,
19
19
  S as OPFSNotSupportedError,
20
20
  m as OperationAbortedError,
@@ -22,34 +22,35 @@ export {
22
22
  O as PathError,
23
23
  h as PermissionError,
24
24
  P as StorageError,
25
- y as ValidationError,
26
- f as WatchEventType,
27
- u as basename,
28
- x as buffersEqual,
29
- A as calculateFileHash,
30
- B as calculateReadLength,
25
+ f as ValidationError,
26
+ y as WatchEventType,
27
+ u as absoluteOpfsPath,
28
+ x as basename,
29
+ A as buffersEqual,
30
+ B as calculateFileHash,
31
+ b as calculateReadLength,
31
32
  v as checkOPFSSupport,
32
33
  I as convertBlobToUint8Array,
33
34
  N as createBuffer,
34
- b as createFDError,
35
- Z as createOPFSAsync,
36
- g as createSyncHandleSafe,
37
- z as decodeBuffer,
38
- D as dirname,
39
- H as encodeString,
40
- L as extname,
41
- T as isBinaryFileExtension,
42
- k as isPathExcluded,
43
- M as joinPath,
44
- R as mapDomError,
45
- W as matchMinimatch,
46
- j as normalizeMinimatch,
47
- q as normalizePath,
48
- w as removeEntry,
49
- C as resolvePath,
50
- V as safeCloseSyncHandle,
51
- _ as splitPath,
52
- G as validateReadWriteArgs,
53
- J as withLock
35
+ g as createFDError,
36
+ $ as createOPFSAsync,
37
+ z as createSyncHandleSafe,
38
+ D as decodeBuffer,
39
+ H as dirname,
40
+ L as encodeString,
41
+ T as extname,
42
+ k as isBinaryFileExtension,
43
+ M as isPathExcluded,
44
+ R as joinPath,
45
+ W as mapDomError,
46
+ j as matchMinimatch,
47
+ q as normalizeMinimatch,
48
+ w as normalizePath,
49
+ C as removeEntry,
50
+ V as resolvePath,
51
+ _ as safeCloseSyncHandle,
52
+ G as splitPath,
53
+ J as validateReadWriteArgs,
54
+ K as withLock
54
55
  };
55
56
  //# sourceMappingURL=index.async.js.map
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-CYwrD7-q.cjs"),t=require("./OPFSSync-BPrNtvFS.cjs"),a=require("./OPFSFacade-hrNXCn6w.cjs"),e=require("./createOPFSDedicated-CEeRexom.cjs"),o=require("./OPFSAsync-B2dR-2VR.cjs"),i=require("./createOPFSAsync-DyWpvmL-.cjs"),c=require("./createOPFSShared-BoCft_BS.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSSync=t.OPFSSync;exports.OPFSFacade=a.OPFSFacade;exports.OPFSFileSystem=a.OPFSFacade;exports.createOPFS=e.createOPFSDedicated;exports.createOPFSDedicated=e.createOPFSDedicated;exports.createWorker=e.createOPFSDedicated;exports.OPFSAsync=o.OPFSAsync;exports.createOPFSAsync=i.createOPFSAsync;exports.createOPFSShared=c.createOPFSShared;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-Bu7FZtCb.cjs"),t=require("./OPFSSync-3qlSBYmz.cjs"),a=require("./OPFSFacade-BJv2yuWU.cjs"),e=require("./createOPFSDedicated-EmIwluQo.cjs"),o=require("./OPFSAsync-C0RsxCX5.cjs"),i=require("./createOPFSAsync-BATjJg8k.cjs"),c=require("./createOPFSShared-DPJpCd7z.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.absoluteOpfsPath=r.absoluteOpfsPath;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSSync=t.OPFSSync;exports.OPFSFacade=a.OPFSFacade;exports.OPFSFileSystem=a.OPFSFacade;exports.createOPFS=e.createOPFSDedicated;exports.createOPFSDedicated=e.createOPFSDedicated;exports.createWorker=e.createOPFSDedicated;exports.OPFSAsync=o.OPFSAsync;exports.createOPFSAsync=i.createOPFSAsync;exports.createOPFSShared=c.createOPFSShared;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -2,15 +2,11 @@ export * from './types';
2
2
  export * from './utils/errors';
3
3
  export * from './utils/helpers';
4
4
  export * from './utils/encoder';
5
- export { BaseOPFS, OPFSFacade, OPFSSync, createOPFSDedicated, } from './index.sync';
5
+ export { BaseOPFS, OPFSFacade, OPFSSync, createOPFS, createOPFSDedicated, } from './index.sync';
6
6
  export type { DedicatedWorkerOptions, OPFSBackend, } from './index.sync';
7
7
  export { OPFSAsync, createOPFSAsync, } from './index.async';
8
8
  export { createOPFSShared, } from './index.sharedworker';
9
9
  export type { SharedWorkerOptions, } from './index.sharedworker';
10
- /**
11
- * Kept as a short alias for a default Sync backend
12
- */
13
- export { createOPFSDedicated as createOPFS } from './index.sync';
14
10
  /**
15
11
  * @deprecated Use {@link createOPFSDedicated}. Kept for 1.x → 2.x migration.
16
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EACH,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,mBAAmB,GACtB,MAAM,cAAc,CAAC;AAEtB,YAAY,EACR,sBAAsB,EACtB,WAAW,GACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EACH,SAAS,EACT,eAAe,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,gBAAgB,GACnB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACR,mBAAmB,GACtB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAEjE;;GAEG;AACH,OAAO,EAAE,mBAAmB,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EACH,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,UAAU,EACV,mBAAmB,GACtB,MAAM,cAAc,CAAC;AAEtB,YAAY,EACR,sBAAsB,EACtB,WAAW,GACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EACH,SAAS,EACT,eAAe,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,gBAAgB,GACnB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACR,mBAAmB,GACtB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,OAAO,EAAE,mBAAmB,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { A as e, K as s, B as o, D as t, E as i, F as c, g as n, c as E, I as S, f as l, O as F, a as O, d, e as m, P as p, b as P, S as f, V as h, W as y, k as x, x as u, v as A, H as B, i as v, y as I, u as N, h as b, J as g, N as D, l as k, M as z, t as H, L, q as T, j as W, m as M, p as R, o as j, n as q, z as w, r as C, G as V, s as _, C as G, w as J } from "./BaseOPFS-BusBkyJX.js";
2
- import { O as U } from "./OPFSSync-D7obTsl3.js";
3
- import { O as Y, O as Q } from "./OPFSFacade-CEaSqTut.js";
4
- import { c as $, c as aa, c as ra } from "./createOPFSDedicated-BwTc0NV5.js";
5
- import { O as sa } from "./OPFSAsync-CO44W23e.js";
6
- import { c as ta } from "./createOPFSAsync-DdhJYoC0.js";
7
- import { c as ca } from "./createOPFSShared-BSFWsoLe.js";
1
+ import { A as e, L as s, B as o, D as t, E as i, F as c, g as n, c as E, I as l, f as S, O, a as p, d as F, e as d, P as m, b as P, S as f, V as h, W as y, j as u, l as x, y as A, x as B, J as b, i as v, z as I, v as N, h as g, K as D, Q as k, n as z, N as H, u as L, M as T, r as W, k as M, m as R, q as j, p as q, o as w, C, t as V, H as _, s as G, G as J, w as K } from "./BaseOPFS-C3NE4BKr.js";
2
+ import { O as U } from "./OPFSSync-CvSOswhW.js";
3
+ import { O as Y, O as Z } from "./OPFSFacade-DiogtQoq.js";
4
+ import { c as aa, c as ra, c as ea } from "./createOPFSDedicated-DgudPTB8.js";
5
+ import { O as oa } from "./OPFSAsync-aeLUdIqd.js";
6
+ import { c as ia } from "./createOPFSAsync-B611B63X.js";
7
+ import { c as na } from "./createOPFSShared-BWYln8jJ.js";
8
8
  export {
9
9
  e as AlreadyExistsError,
10
10
  s as BINARY_FILE_EXTENSIONS,
@@ -14,51 +14,52 @@ export {
14
14
  c as FileBusyError,
15
15
  n as FileSystemOperationError,
16
16
  E as FileTypeError,
17
- S as IOError,
18
- l as InitializationFailedError,
19
- sa as OPFSAsync,
20
- F as OPFSError,
17
+ l as IOError,
18
+ S as InitializationFailedError,
19
+ oa as OPFSAsync,
20
+ O as OPFSError,
21
21
  Y as OPFSFacade,
22
- Q as OPFSFileSystem,
23
- O as OPFSNotSupportedError,
22
+ Z as OPFSFileSystem,
23
+ p as OPFSNotSupportedError,
24
24
  U as OPFSSync,
25
- d as OperationAbortedError,
26
- m as OperationNotSupportedError,
27
- p as PathError,
25
+ F as OperationAbortedError,
26
+ d as OperationNotSupportedError,
27
+ m as PathError,
28
28
  P as PermissionError,
29
29
  f as StorageError,
30
30
  h as ValidationError,
31
31
  y as WatchEventType,
32
+ u as absoluteOpfsPath,
32
33
  x as basename,
33
- u as buffersEqual,
34
- A as calculateFileHash,
35
- B as calculateReadLength,
34
+ A as buffersEqual,
35
+ B as calculateFileHash,
36
+ b as calculateReadLength,
36
37
  v as checkOPFSSupport,
37
38
  I as convertBlobToUint8Array,
38
39
  N as createBuffer,
39
- b as createFDError,
40
- $ as createOPFS,
41
- ta as createOPFSAsync,
42
- aa as createOPFSDedicated,
43
- ca as createOPFSShared,
44
- g as createSyncHandleSafe,
45
- ra as createWorker,
46
- D as decodeBuffer,
47
- k as dirname,
48
- z as encodeString,
49
- H as extname,
50
- L as isBinaryFileExtension,
51
- T as isPathExcluded,
52
- W as joinPath,
53
- M as mapDomError,
54
- R as matchMinimatch,
55
- j as normalizeMinimatch,
56
- q as normalizePath,
57
- w as removeEntry,
58
- C as resolvePath,
59
- V as safeCloseSyncHandle,
60
- _ as splitPath,
61
- G as validateReadWriteArgs,
62
- J as withLock
40
+ g as createFDError,
41
+ aa as createOPFS,
42
+ ia as createOPFSAsync,
43
+ ra as createOPFSDedicated,
44
+ na as createOPFSShared,
45
+ D as createSyncHandleSafe,
46
+ ea as createWorker,
47
+ k as decodeBuffer,
48
+ z as dirname,
49
+ H as encodeString,
50
+ L as extname,
51
+ T as isBinaryFileExtension,
52
+ W as isPathExcluded,
53
+ M as joinPath,
54
+ R as mapDomError,
55
+ j as matchMinimatch,
56
+ q as normalizeMinimatch,
57
+ w as normalizePath,
58
+ C as removeEntry,
59
+ V as resolvePath,
60
+ _ as safeCloseSyncHandle,
61
+ G as splitPath,
62
+ J as validateReadWriteArgs,
63
+ K as withLock
63
64
  };
64
65
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-CYwrD7-q.cjs"),e=require("./OPFSSync-BPrNtvFS.cjs"),o=require("./OPFSAsync-B2dR-2VR.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSSync=e.OPFSSync;exports.OPFSAsync=o.OPFSAsync;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-Bu7FZtCb.cjs"),e=require("./OPFSSync-3qlSBYmz.cjs"),a=require("./OPFSAsync-C0RsxCX5.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.absoluteOpfsPath=r.absoluteOpfsPath;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSSync=e.OPFSSync;exports.OPFSAsync=a.OPFSAsync;
2
2
  //# sourceMappingURL=index.pure.cjs.map
@@ -1,53 +1,54 @@
1
- import { A as e, K as s, B as o, D as t, E as i, F as n, g as E, c, I as l, f as S, O as d, a as p, d as m, e as h, P as F, b as O, S as y, V as P, W as f, k as u, x, v as B, H as A, i as v, y as I, u as N, h as b, J as g, N as z, l as D, M as H, t as L, L as T, q as k, j as M, m as R, p as W, o as j, n as q, z as w, r as C, G as V, s as _, C as G, w as J } from "./BaseOPFS-BusBkyJX.js";
2
- import { O as U } from "./OPFSSync-D7obTsl3.js";
3
- import { O as Y } from "./OPFSAsync-CO44W23e.js";
1
+ import { A as s, L as e, B as o, D as t, E as i, F as n, g as E, c as l, I as c, f as p, O as S, a as d, d as m, e as h, P as O, b as F, S as P, V as y, W as f, j as u, l as x, y as B, x as A, J as b, i as v, z as I, v as N, h as g, K as z, Q as D, n as H, N as L, u as T, M as k, r as M, k as R, m as W, q as j, p as q, o as w, C, t as V, H as _, s as G, G as J, w as K } from "./BaseOPFS-C3NE4BKr.js";
2
+ import { O as U } from "./OPFSSync-CvSOswhW.js";
3
+ import { O as Y } from "./OPFSAsync-aeLUdIqd.js";
4
4
  export {
5
- e as AlreadyExistsError,
6
- s as BINARY_FILE_EXTENSIONS,
5
+ s as AlreadyExistsError,
6
+ e as BINARY_FILE_EXTENSIONS,
7
7
  o as BaseOPFS,
8
8
  t as DirectoryOperationError,
9
9
  i as ExistenceError,
10
10
  n as FileBusyError,
11
11
  E as FileSystemOperationError,
12
- c as FileTypeError,
13
- l as IOError,
14
- S as InitializationFailedError,
12
+ l as FileTypeError,
13
+ c as IOError,
14
+ p as InitializationFailedError,
15
15
  Y as OPFSAsync,
16
- d as OPFSError,
17
- p as OPFSNotSupportedError,
16
+ S as OPFSError,
17
+ d as OPFSNotSupportedError,
18
18
  U as OPFSSync,
19
19
  m as OperationAbortedError,
20
20
  h as OperationNotSupportedError,
21
- F as PathError,
22
- O as PermissionError,
23
- y as StorageError,
24
- P as ValidationError,
21
+ O as PathError,
22
+ F as PermissionError,
23
+ P as StorageError,
24
+ y as ValidationError,
25
25
  f as WatchEventType,
26
- u as basename,
27
- x as buffersEqual,
28
- B as calculateFileHash,
29
- A as calculateReadLength,
26
+ u as absoluteOpfsPath,
27
+ x as basename,
28
+ B as buffersEqual,
29
+ A as calculateFileHash,
30
+ b as calculateReadLength,
30
31
  v as checkOPFSSupport,
31
32
  I as convertBlobToUint8Array,
32
33
  N as createBuffer,
33
- b as createFDError,
34
- g as createSyncHandleSafe,
35
- z as decodeBuffer,
36
- D as dirname,
37
- H as encodeString,
38
- L as extname,
39
- T as isBinaryFileExtension,
40
- k as isPathExcluded,
41
- M as joinPath,
42
- R as mapDomError,
43
- W as matchMinimatch,
44
- j as normalizeMinimatch,
45
- q as normalizePath,
46
- w as removeEntry,
47
- C as resolvePath,
48
- V as safeCloseSyncHandle,
49
- _ as splitPath,
50
- G as validateReadWriteArgs,
51
- J as withLock
34
+ g as createFDError,
35
+ z as createSyncHandleSafe,
36
+ D as decodeBuffer,
37
+ H as dirname,
38
+ L as encodeString,
39
+ T as extname,
40
+ k as isBinaryFileExtension,
41
+ M as isPathExcluded,
42
+ R as joinPath,
43
+ W as mapDomError,
44
+ j as matchMinimatch,
45
+ q as normalizeMinimatch,
46
+ w as normalizePath,
47
+ C as removeEntry,
48
+ V as resolvePath,
49
+ _ as safeCloseSyncHandle,
50
+ G as splitPath,
51
+ J as validateReadWriteArgs,
52
+ K as withLock
52
53
  };
53
54
  //# sourceMappingURL=index.pure.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-CYwrD7-q.cjs"),e=require("./OPFSAsync-B2dR-2VR.cjs"),a=require("./OPFSFacade-hrNXCn6w.cjs"),t=require("./createOPFSShared-BoCft_BS.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSAsync=e.OPFSAsync;exports.OPFSFacade=a.OPFSFacade;exports.createOPFSShared=t.createOPFSShared;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-Bu7FZtCb.cjs"),e=require("./OPFSAsync-C0RsxCX5.cjs"),a=require("./OPFSFacade-BJv2yuWU.cjs"),t=require("./createOPFSShared-DPJpCd7z.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.absoluteOpfsPath=r.absoluteOpfsPath;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSAsync=e.OPFSAsync;exports.OPFSFacade=a.OPFSFacade;exports.createOPFSShared=t.createOPFSShared;
2
2
  //# sourceMappingURL=index.sharedworker.cjs.map
@@ -1,7 +1,7 @@
1
- import { A as e, K as s, B as o, D as t, E as i, F as n, g as E, c, I as l, f as d, O as S, a as p, d as m, e as F, P as h, b as O, S as P, V as f, W as y, k as u, x, v as B, H as A, i as v, y as I, u as N, h as b, J as g, N as z, l as D, M as H, t as L, L as T, q as k, j as M, m as R, p as W, o as j, n as q, z as w, r as C, G as V, s as _, C as G, w as J } from "./BaseOPFS-BusBkyJX.js";
2
- import { O as U } from "./OPFSAsync-CO44W23e.js";
3
- import { O as Y } from "./OPFSFacade-CEaSqTut.js";
4
- import { c as Z } from "./createOPFSShared-BSFWsoLe.js";
1
+ import { A as e, L as s, B as o, D as t, E as i, F as n, g as E, c, I as l, f as d, O as p, a as S, d as m, e as h, P as F, b as O, S as P, V as f, W as u, j as y, l as x, y as B, x as A, J as b, i as v, z as I, v as N, h as g, K as z, Q as D, n as H, N as L, u as T, M as k, r as M, k as R, m as W, q as j, p as q, o as w, C, t as V, H as _, s as G, G as J, w as K } from "./BaseOPFS-C3NE4BKr.js";
2
+ import { O as U } from "./OPFSAsync-aeLUdIqd.js";
3
+ import { O as Y } from "./OPFSFacade-DiogtQoq.js";
4
+ import { c as $ } from "./createOPFSShared-BWYln8jJ.js";
5
5
  export {
6
6
  e as AlreadyExistsError,
7
7
  s as BINARY_FILE_EXTENSIONS,
@@ -14,42 +14,43 @@ export {
14
14
  l as IOError,
15
15
  d as InitializationFailedError,
16
16
  U as OPFSAsync,
17
- S as OPFSError,
17
+ p as OPFSError,
18
18
  Y as OPFSFacade,
19
- p as OPFSNotSupportedError,
19
+ S as OPFSNotSupportedError,
20
20
  m as OperationAbortedError,
21
- F as OperationNotSupportedError,
22
- h as PathError,
21
+ h as OperationNotSupportedError,
22
+ F as PathError,
23
23
  O as PermissionError,
24
24
  P as StorageError,
25
25
  f as ValidationError,
26
- y as WatchEventType,
27
- u as basename,
28
- x as buffersEqual,
29
- B as calculateFileHash,
30
- A as calculateReadLength,
26
+ u as WatchEventType,
27
+ y as absoluteOpfsPath,
28
+ x as basename,
29
+ B as buffersEqual,
30
+ A as calculateFileHash,
31
+ b as calculateReadLength,
31
32
  v as checkOPFSSupport,
32
33
  I as convertBlobToUint8Array,
33
34
  N as createBuffer,
34
- b as createFDError,
35
- Z as createOPFSShared,
36
- g as createSyncHandleSafe,
37
- z as decodeBuffer,
38
- D as dirname,
39
- H as encodeString,
40
- L as extname,
41
- T as isBinaryFileExtension,
42
- k as isPathExcluded,
43
- M as joinPath,
44
- R as mapDomError,
45
- W as matchMinimatch,
46
- j as normalizeMinimatch,
47
- q as normalizePath,
48
- w as removeEntry,
49
- C as resolvePath,
50
- V as safeCloseSyncHandle,
51
- _ as splitPath,
52
- G as validateReadWriteArgs,
53
- J as withLock
35
+ g as createFDError,
36
+ $ as createOPFSShared,
37
+ z as createSyncHandleSafe,
38
+ D as decodeBuffer,
39
+ H as dirname,
40
+ L as encodeString,
41
+ T as extname,
42
+ k as isBinaryFileExtension,
43
+ M as isPathExcluded,
44
+ R as joinPath,
45
+ W as mapDomError,
46
+ j as matchMinimatch,
47
+ q as normalizeMinimatch,
48
+ w as normalizePath,
49
+ C as removeEntry,
50
+ V as resolvePath,
51
+ _ as safeCloseSyncHandle,
52
+ G as splitPath,
53
+ J as validateReadWriteArgs,
54
+ K as withLock
54
55
  };
55
56
  //# sourceMappingURL=index.sharedworker.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-CYwrD7-q.cjs"),e=require("./OPFSSync-BPrNtvFS.cjs"),a=require("./OPFSFacade-hrNXCn6w.cjs"),t=require("./createOPFSDedicated-CEeRexom.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSSync=e.OPFSSync;exports.OPFSFacade=a.OPFSFacade;exports.createOPFSDedicated=t.createOPFSDedicated;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-Bu7FZtCb.cjs"),a=require("./OPFSSync-3qlSBYmz.cjs"),t=require("./OPFSFacade-BJv2yuWU.cjs"),e=require("./createOPFSDedicated-EmIwluQo.cjs");exports.AlreadyExistsError=r.AlreadyExistsError;exports.BINARY_FILE_EXTENSIONS=r.BINARY_FILE_EXTENSIONS;exports.BaseOPFS=r.BaseOPFS;exports.DirectoryOperationError=r.DirectoryOperationError;exports.ExistenceError=r.ExistenceError;exports.FileBusyError=r.FileBusyError;exports.FileSystemOperationError=r.FileSystemOperationError;exports.FileTypeError=r.FileTypeError;exports.IOError=r.IOError;exports.InitializationFailedError=r.InitializationFailedError;exports.OPFSError=r.OPFSError;exports.OPFSNotSupportedError=r.OPFSNotSupportedError;exports.OperationAbortedError=r.OperationAbortedError;exports.OperationNotSupportedError=r.OperationNotSupportedError;exports.PathError=r.PathError;exports.PermissionError=r.PermissionError;exports.StorageError=r.StorageError;exports.ValidationError=r.ValidationError;exports.WatchEventType=r.WatchEventType;exports.absoluteOpfsPath=r.absoluteOpfsPath;exports.basename=r.basename;exports.buffersEqual=r.buffersEqual;exports.calculateFileHash=r.calculateFileHash;exports.calculateReadLength=r.calculateReadLength;exports.checkOPFSSupport=r.checkOPFSSupport;exports.convertBlobToUint8Array=r.convertBlobToUint8Array;exports.createBuffer=r.createBuffer;exports.createFDError=r.createFDError;exports.createSyncHandleSafe=r.createSyncHandleSafe;exports.decodeBuffer=r.decodeBuffer;exports.dirname=r.dirname;exports.encodeString=r.encodeString;exports.extname=r.extname;exports.isBinaryFileExtension=r.isBinaryFileExtension;exports.isPathExcluded=r.isPathExcluded;exports.joinPath=r.joinPath;exports.mapDomError=r.mapDomError;exports.matchMinimatch=r.matchMinimatch;exports.normalizeMinimatch=r.normalizeMinimatch;exports.normalizePath=r.normalizePath;exports.removeEntry=r.removeEntry;exports.resolvePath=r.resolvePath;exports.safeCloseSyncHandle=r.safeCloseSyncHandle;exports.splitPath=r.splitPath;exports.validateReadWriteArgs=r.validateReadWriteArgs;exports.withLock=r.withLock;exports.OPFSSync=a.OPFSSync;exports.OPFSFacade=t.OPFSFacade;exports.createOPFS=e.createOPFSDedicated;exports.createOPFSDedicated=e.createOPFSDedicated;
2
2
  //# sourceMappingURL=index.sync.cjs.map
@@ -7,5 +7,7 @@ export { OPFSSync } from './core/OPFSSync';
7
7
  export { OPFSFacade } from './facade/OPFSFacade';
8
8
  export type { OPFSBackend } from './facade/OPFSFacade';
9
9
  export { createOPFSDedicated } from './facade/createOPFSDedicated';
10
+ /** Short alias for {@link createOPFSDedicated} */
11
+ export { createOPFSDedicated as createOPFS } from './facade/createOPFSDedicated';
10
12
  export type { DedicatedWorkerOptions } from './worker/createDedicatedWorker';
11
13
  //# sourceMappingURL=index.sync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.sync.d.ts","sourceRoot":"","sources":["../src/index.sync.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.sync.d.ts","sourceRoot":"","sources":["../src/index.sync.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,kDAAkD;AAClD,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACjF,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1,7 +1,7 @@
1
- import { A as e, K as s, B as o, D as t, E as i, F as n, g as E, c, I as l, f as d, O as S, a as p, d as m, e as F, P as O, b as h, S as P, V as f, W as y, k as u, x, v as B, H as v, i as A, y as I, u as N, h as b, J as g, N as D, l as z, M as H, t as L, L as T, q as k, j as M, m as R, p as W, o as j, n as q, z as w, r as C, G as V, s as _, C as G, w as J } from "./BaseOPFS-BusBkyJX.js";
2
- import { O as U } from "./OPFSSync-D7obTsl3.js";
3
- import { O as Y } from "./OPFSFacade-CEaSqTut.js";
4
- import { c as Z } from "./createOPFSDedicated-BwTc0NV5.js";
1
+ import { A as e, L as s, B as o, D as t, E as i, F as n, g as c, c as E, I as l, f as d, O as S, a as p, d as m, e as F, P as O, b as P, S as h, V as f, W as u, j as y, l as x, y as B, x as b, J as v, i as A, z as I, v as N, h as g, K as D, Q as z, n as H, N as L, u as T, M as k, r as M, k as R, m as W, q as j, p as q, o as w, C, t as V, H as _, s as G, G as J, w as K } from "./BaseOPFS-C3NE4BKr.js";
2
+ import { O as U } from "./OPFSSync-CvSOswhW.js";
3
+ import { O as Y } from "./OPFSFacade-DiogtQoq.js";
4
+ import { c as $, c as aa } from "./createOPFSDedicated-DgudPTB8.js";
5
5
  export {
6
6
  e as AlreadyExistsError,
7
7
  s as BINARY_FILE_EXTENSIONS,
@@ -9,8 +9,8 @@ export {
9
9
  t as DirectoryOperationError,
10
10
  i as ExistenceError,
11
11
  n as FileBusyError,
12
- E as FileSystemOperationError,
13
- c as FileTypeError,
12
+ c as FileSystemOperationError,
13
+ E as FileTypeError,
14
14
  l as IOError,
15
15
  d as InitializationFailedError,
16
16
  S as OPFSError,
@@ -20,36 +20,38 @@ export {
20
20
  m as OperationAbortedError,
21
21
  F as OperationNotSupportedError,
22
22
  O as PathError,
23
- h as PermissionError,
24
- P as StorageError,
23
+ P as PermissionError,
24
+ h as StorageError,
25
25
  f as ValidationError,
26
- y as WatchEventType,
27
- u as basename,
28
- x as buffersEqual,
29
- B as calculateFileHash,
26
+ u as WatchEventType,
27
+ y as absoluteOpfsPath,
28
+ x as basename,
29
+ B as buffersEqual,
30
+ b as calculateFileHash,
30
31
  v as calculateReadLength,
31
32
  A as checkOPFSSupport,
32
33
  I as convertBlobToUint8Array,
33
34
  N as createBuffer,
34
- b as createFDError,
35
- Z as createOPFSDedicated,
36
- g as createSyncHandleSafe,
37
- D as decodeBuffer,
38
- z as dirname,
39
- H as encodeString,
40
- L as extname,
41
- T as isBinaryFileExtension,
42
- k as isPathExcluded,
43
- M as joinPath,
44
- R as mapDomError,
45
- W as matchMinimatch,
46
- j as normalizeMinimatch,
47
- q as normalizePath,
48
- w as removeEntry,
49
- C as resolvePath,
50
- V as safeCloseSyncHandle,
51
- _ as splitPath,
52
- G as validateReadWriteArgs,
53
- J as withLock
35
+ g as createFDError,
36
+ $ as createOPFS,
37
+ aa as createOPFSDedicated,
38
+ D as createSyncHandleSafe,
39
+ z as decodeBuffer,
40
+ H as dirname,
41
+ L as encodeString,
42
+ T as extname,
43
+ k as isBinaryFileExtension,
44
+ M as isPathExcluded,
45
+ R as joinPath,
46
+ W as mapDomError,
47
+ j as matchMinimatch,
48
+ q as normalizeMinimatch,
49
+ w as normalizePath,
50
+ C as removeEntry,
51
+ V as resolvePath,
52
+ _ as safeCloseSyncHandle,
53
+ G as splitPath,
54
+ J as validateReadWriteArgs,
55
+ K as withLock
54
56
  };
55
57
  //# sourceMappingURL=index.sync.js.map