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.
- package/README.md +21 -20
- package/dist/BaseOPFS-Bu7FZtCb.cjs +2 -0
- package/dist/BaseOPFS-Bu7FZtCb.cjs.map +1 -0
- package/dist/{BaseOPFS-BusBkyJX.js → BaseOPFS-C3NE4BKr.js} +790 -548
- package/dist/BaseOPFS-C3NE4BKr.js.map +1 -0
- package/dist/OPFSAsync-C0RsxCX5.cjs +2 -0
- package/dist/OPFSAsync-C0RsxCX5.cjs.map +1 -0
- package/dist/{OPFSAsync-CO44W23e.js → OPFSAsync-aeLUdIqd.js} +19 -19
- package/dist/OPFSAsync-aeLUdIqd.js.map +1 -0
- package/dist/{OPFSFacade-hrNXCn6w.cjs → OPFSFacade-BJv2yuWU.cjs} +2 -2
- package/dist/{OPFSFacade-hrNXCn6w.cjs.map → OPFSFacade-BJv2yuWU.cjs.map} +1 -1
- package/dist/{OPFSFacade-CEaSqTut.js → OPFSFacade-DiogtQoq.js} +2 -2
- package/dist/{OPFSFacade-CEaSqTut.js.map → OPFSFacade-DiogtQoq.js.map} +1 -1
- package/dist/OPFSSync-3qlSBYmz.cjs +2 -0
- package/dist/OPFSSync-3qlSBYmz.cjs.map +1 -0
- package/dist/{OPFSSync-D7obTsl3.js → OPFSSync-CvSOswhW.js} +57 -57
- package/dist/OPFSSync-CvSOswhW.js.map +1 -0
- package/dist/assets/dedicated.worker-Bqqr9UBA.js.map +1 -0
- package/dist/core/BaseOPFS.d.ts +23 -3
- package/dist/core/BaseOPFS.d.ts.map +1 -1
- package/dist/core/OPFSAsync.d.ts.map +1 -1
- package/dist/core/OPFSSync.d.ts.map +1 -1
- package/dist/createOPFSAsync-B611B63X.js +10 -0
- package/dist/{createOPFSAsync-DdhJYoC0.js.map → createOPFSAsync-B611B63X.js.map} +1 -1
- package/dist/createOPFSAsync-BATjJg8k.cjs +2 -0
- package/dist/{createOPFSAsync-DyWpvmL-.cjs.map → createOPFSAsync-BATjJg8k.cjs.map} +1 -1
- package/dist/{createOPFSDedicated-BwTc0NV5.js → createOPFSDedicated-DgudPTB8.js} +1086 -817
- package/dist/createOPFSDedicated-DgudPTB8.js.map +1 -0
- package/dist/{createOPFSDedicated-CEeRexom.cjs → createOPFSDedicated-EmIwluQo.cjs} +1037 -797
- package/dist/createOPFSDedicated-EmIwluQo.cjs.map +1 -0
- package/dist/{createOPFSShared-BSFWsoLe.js → createOPFSShared-BWYln8jJ.js} +2 -2
- package/dist/{createOPFSShared-BSFWsoLe.js.map → createOPFSShared-BWYln8jJ.js.map} +1 -1
- package/dist/{createOPFSShared-BoCft_BS.cjs → createOPFSShared-DPJpCd7z.cjs} +2 -2
- package/dist/{createOPFSShared-BoCft_BS.cjs.map → createOPFSShared-DPJpCd7z.cjs.map} +1 -1
- package/dist/dedicated.worker.js +1034 -794
- package/dist/dedicated.worker.js.map +1 -1
- package/dist/facade/createOPFSDedicated.d.ts +4 -2
- package/dist/facade/createOPFSDedicated.d.ts.map +1 -1
- package/dist/index.async.cjs +1 -1
- package/dist/index.async.js +33 -32
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +44 -43
- package/dist/index.pure.cjs +1 -1
- package/dist/index.pure.js +38 -37
- package/dist/index.sharedworker.cjs +1 -1
- package/dist/index.sharedworker.js +34 -33
- package/dist/index.sync.cjs +1 -1
- package/dist/index.sync.d.ts +2 -0
- package/dist/index.sync.d.ts.map +1 -1
- package/dist/index.sync.js +34 -32
- package/dist/shared.worker.js +1056 -820
- package/dist/shared.worker.js.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/helpers.d.ts +13 -3
- package/dist/utils/helpers.d.ts.map +1 -1
- package/dist/worker/createDedicatedWorker.d.ts +8 -3
- package/dist/worker/createDedicatedWorker.d.ts.map +1 -1
- package/docs/README.md +18 -0
- package/docs/api/README.md +221 -0
- package/docs/{file-descriptors.md → api/file-descriptors.md} +13 -13
- package/docs/guides/async.md +2 -2
- package/docs/guides/dedicated.md +6 -4
- package/docs/guides/hashing.md +1 -1
- package/docs/guides/pure.md +1 -1
- package/docs/guides/sharedworker.md +1 -1
- package/docs/guides/streaming.md +2 -2
- package/docs/migration.md +8 -9
- package/docs/types.md +4 -4
- package/package.json +10 -9
- package/src/core/BaseOPFS.ts +46 -4
- package/src/core/OPFSAsync.ts +4 -5
- package/src/core/OPFSSync.ts +6 -7
- package/src/facade/createOPFSDedicated.ts +4 -2
- package/src/index.sync.ts +2 -0
- package/src/index.ts +1 -5
- package/src/types.ts +5 -3
- package/src/utils/helpers.ts +32 -6
- package/src/worker/createDedicatedWorker.ts +85 -7
- package/src/worker/dedicated.worker.ts +12 -1
- package/dist/BaseOPFS-BusBkyJX.js.map +0 -1
- package/dist/BaseOPFS-CYwrD7-q.cjs +0 -4
- package/dist/BaseOPFS-CYwrD7-q.cjs.map +0 -1
- package/dist/OPFSAsync-B2dR-2VR.cjs +0 -2
- package/dist/OPFSAsync-B2dR-2VR.cjs.map +0 -1
- package/dist/OPFSAsync-CO44W23e.js.map +0 -1
- package/dist/OPFSSync-BPrNtvFS.cjs +0 -2
- package/dist/OPFSSync-BPrNtvFS.cjs.map +0 -1
- package/dist/OPFSSync-D7obTsl3.js.map +0 -1
- package/dist/assets/dedicated.worker-DW6UqFo0.js.map +0 -1
- package/dist/createOPFSAsync-DdhJYoC0.js +0 -10
- package/dist/createOPFSAsync-DyWpvmL-.cjs +0 -2
- package/dist/createOPFSDedicated-BwTc0NV5.js.map +0 -1
- package/dist/createOPFSDedicated-CEeRexom.cjs.map +0 -1
- package/docs/api/backend.md +0 -36
- package/docs/api/create.md +0 -82
- package/docs/api/facade.md +0 -53
- 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.
|
|
11
|
-
*
|
|
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
|
|
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"}
|
package/dist/index.async.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-
|
|
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
|
package/dist/index.async.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import { O as U } from "./OPFSAsync-
|
|
3
|
-
import { O as Y } from "./OPFSFacade-
|
|
4
|
-
import { c as
|
|
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
|
-
|
|
15
|
+
p as InitializationFailedError,
|
|
16
16
|
U as OPFSAsync,
|
|
17
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
u as
|
|
28
|
-
x as
|
|
29
|
-
A as
|
|
30
|
-
B as
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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-
|
|
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
|
*/
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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,
|
|
2
|
-
import { O as U } from "./OPFSSync-
|
|
3
|
-
import { O as Y, O as
|
|
4
|
-
import { c as
|
|
5
|
-
import { O as
|
|
6
|
-
import { c as
|
|
7
|
-
import { c as
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
l as IOError,
|
|
18
|
+
S as InitializationFailedError,
|
|
19
|
+
oa as OPFSAsync,
|
|
20
|
+
O as OPFSError,
|
|
21
21
|
Y as OPFSFacade,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
Z as OPFSFileSystem,
|
|
23
|
+
p as OPFSNotSupportedError,
|
|
24
24
|
U as OPFSSync,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
package/dist/index.pure.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-
|
|
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
|
package/dist/index.pure.js
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { O as U } from "./OPFSSync-
|
|
3
|
-
import { O as Y } from "./OPFSAsync-
|
|
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
|
-
|
|
6
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
l as FileTypeError,
|
|
13
|
+
c as IOError,
|
|
14
|
+
p as InitializationFailedError,
|
|
15
15
|
Y as OPFSAsync,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
S as OPFSError,
|
|
17
|
+
d as OPFSNotSupportedError,
|
|
18
18
|
U as OPFSSync,
|
|
19
19
|
m as OperationAbortedError,
|
|
20
20
|
h as OperationNotSupportedError,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
O as PathError,
|
|
22
|
+
F as PermissionError,
|
|
23
|
+
P as StorageError,
|
|
24
|
+
y as ValidationError,
|
|
25
25
|
f as WatchEventType,
|
|
26
|
-
u as
|
|
27
|
-
x as
|
|
28
|
-
B as
|
|
29
|
-
A as
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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-
|
|
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,
|
|
2
|
-
import { O as U } from "./OPFSAsync-
|
|
3
|
-
import { O as Y } from "./OPFSFacade-
|
|
4
|
-
import { c as
|
|
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
|
-
|
|
17
|
+
p as OPFSError,
|
|
18
18
|
Y as OPFSFacade,
|
|
19
|
-
|
|
19
|
+
S as OPFSNotSupportedError,
|
|
20
20
|
m as OperationAbortedError,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
h as OperationNotSupportedError,
|
|
22
|
+
F as PathError,
|
|
23
23
|
O as PermissionError,
|
|
24
24
|
P as StorageError,
|
|
25
25
|
f as ValidationError,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
x as
|
|
29
|
-
B as
|
|
30
|
-
A as
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
package/dist/index.sync.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./BaseOPFS-
|
|
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
|
package/dist/index.sync.d.ts
CHANGED
|
@@ -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
|
package/dist/index.sync.d.ts.map
CHANGED
|
@@ -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"}
|
package/dist/index.sync.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import { O as U } from "./OPFSSync-
|
|
3
|
-
import { O as Y } from "./OPFSFacade-
|
|
4
|
-
import { c as
|
|
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
|
-
|
|
13
|
-
|
|
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
|
-
|
|
24
|
-
|
|
23
|
+
P as PermissionError,
|
|
24
|
+
h as StorageError,
|
|
25
25
|
f as ValidationError,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
x as
|
|
29
|
-
B as
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
D as
|
|
38
|
-
z as
|
|
39
|
-
H as
|
|
40
|
-
L as
|
|
41
|
-
T as
|
|
42
|
-
k as
|
|
43
|
-
M as
|
|
44
|
-
R as
|
|
45
|
-
W as
|
|
46
|
-
j as
|
|
47
|
-
q as
|
|
48
|
-
w as
|
|
49
|
-
C as
|
|
50
|
-
V as
|
|
51
|
-
_ as
|
|
52
|
-
G as
|
|
53
|
-
J as
|
|
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
|