@zenfs/core 0.16.2 → 0.16.3
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/browser.min.js +2 -2
- package/dist/browser.min.js.map +2 -2
- package/dist/config.js +1 -3
- package/package.json +1 -1
- package/scripts/build.js +1 -3
- package/src/config.ts +2 -5
package/dist/config.js
CHANGED
|
@@ -41,9 +41,7 @@ export async function resolveMountConfig(config, _depth = 0) {
|
|
|
41
41
|
}
|
|
42
42
|
await checkOptions(backend, config);
|
|
43
43
|
const mount = (await backend.create(config));
|
|
44
|
-
|
|
45
|
-
mount._disableSync = config.disableAsyncCache || false;
|
|
46
|
-
}
|
|
44
|
+
mount._disableSync = config.disableAsyncCache || false;
|
|
47
45
|
await mount.ready();
|
|
48
46
|
return mount;
|
|
49
47
|
}
|
package/package.json
CHANGED
package/scripts/build.js
CHANGED
package/src/config.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as fs from './emulation/index.js';
|
|
|
4
4
|
import type { AbsolutePath } from './emulation/path.js';
|
|
5
5
|
import { setCred, type MountObject } from './emulation/shared.js';
|
|
6
6
|
import { Errno, ErrnoError } from './error.js';
|
|
7
|
-
import { FileSystem
|
|
7
|
+
import { FileSystem } from './filesystem.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Configuration for a specific mount point
|
|
@@ -59,10 +59,7 @@ export async function resolveMountConfig<T extends Backend>(config: MountConfigu
|
|
|
59
59
|
}
|
|
60
60
|
await checkOptions(backend, config);
|
|
61
61
|
const mount = (await backend.create(config)) as FilesystemOf<T>;
|
|
62
|
-
|
|
63
|
-
type AsyncFS = InstanceType<ReturnType<typeof Async<new () => FilesystemOf<T>>>>;
|
|
64
|
-
(mount as AsyncFS)._disableSync = config.disableAsyncCache || false;
|
|
65
|
-
}
|
|
62
|
+
mount._disableSync = config.disableAsyncCache || false;
|
|
66
63
|
await mount.ready();
|
|
67
64
|
return mount;
|
|
68
65
|
}
|