@zenfs/core 0.5.5 → 0.5.7
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/backends/AsyncMirror.d.ts +1 -1
- package/dist/backends/AsyncMirror.js +2 -0
- package/dist/backends/InMemory.d.ts +2 -2
- package/dist/backends/InMemory.js +1 -0
- package/dist/backends/Overlay.d.ts +1 -1
- package/dist/backends/backend.d.ts +1 -1
- package/dist/browser.min.js +4 -4
- package/dist/browser.min.js.map +4 -4
- package/dist/emulation/{callbacks.d.ts → async.d.ts} +53 -16
- package/dist/emulation/{callbacks.js → async.js} +121 -52
- package/dist/emulation/constants.d.ts +5 -0
- package/dist/emulation/constants.js +5 -0
- package/dist/emulation/dir.d.ts +3 -2
- package/dist/emulation/dir.js +6 -2
- package/dist/emulation/index.d.ts +2 -2
- package/dist/emulation/index.js +2 -2
- package/dist/emulation/promises.d.ts +91 -117
- package/dist/emulation/promises.js +106 -105
- package/dist/emulation/shared.d.ts +2 -11
- package/dist/emulation/streams.d.ts +5 -0
- package/dist/emulation/sync.d.ts +49 -14
- package/dist/emulation/sync.js +50 -22
- package/dist/file.d.ts +7 -7
- package/dist/file.js +1 -1
- package/dist/stats.d.ts +32 -16
- package/dist/stats.js +2 -29
- package/dist/utils.d.ts +2 -3
- package/dist/utils.js +6 -92
- package/package.json +8 -5
- package/scripts/build.js +82 -0
- package/scripts/make-index.js +4 -6
|
@@ -230,6 +230,7 @@ export const AsyncMirror = {
|
|
|
230
230
|
options: {
|
|
231
231
|
sync: {
|
|
232
232
|
type: 'object',
|
|
233
|
+
required: true,
|
|
233
234
|
description: 'The synchronous file system to mirror the asynchronous file system to.',
|
|
234
235
|
validator: async (backend) => {
|
|
235
236
|
if ('metadata' in backend && !backend.metadata().synchronous) {
|
|
@@ -239,6 +240,7 @@ export const AsyncMirror = {
|
|
|
239
240
|
},
|
|
240
241
|
async: {
|
|
241
242
|
type: 'object',
|
|
243
|
+
required: true,
|
|
242
244
|
description: 'The asynchronous file system to mirror.',
|
|
243
245
|
},
|
|
244
246
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ino } from '../inode.js';
|
|
2
2
|
import type { Backend } from './backend.js';
|
|
3
|
-
import { SyncStore, SimpleSyncStore, SyncTransaction } from './SyncStore.js';
|
|
3
|
+
import { SyncStore, SimpleSyncStore, SyncTransaction, SyncStoreFS } from './SyncStore.js';
|
|
4
4
|
/**
|
|
5
5
|
* A simple in-memory store
|
|
6
6
|
*/
|
|
@@ -18,4 +18,4 @@ export declare class InMemoryStore implements SyncStore, SimpleSyncStore {
|
|
|
18
18
|
* A simple in-memory file system backed by an InMemoryStore.
|
|
19
19
|
* Files are not persisted across page loads.
|
|
20
20
|
*/
|
|
21
|
-
export declare const InMemory: Backend
|
|
21
|
+
export declare const InMemory: Backend<SyncStoreFS>;
|
|
@@ -11,7 +11,7 @@ export interface OptionConfig<T> {
|
|
|
11
11
|
/**
|
|
12
12
|
* Whether or not the option is required (optional can be set to null or undefined). Defaults to false.
|
|
13
13
|
*/
|
|
14
|
-
required
|
|
14
|
+
required: boolean;
|
|
15
15
|
/**
|
|
16
16
|
* Description of the option. Used in error messages and documentation.
|
|
17
17
|
*/
|