@zenfs/core 1.0.3 → 1.0.5

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.
@@ -33,7 +33,7 @@ export interface SharedConfig {
33
33
  /**
34
34
  * If set, disables the sync cache and sync operations on async file systems.
35
35
  */
36
- disableAsyncCache: boolean;
36
+ disableAsyncCache?: boolean;
37
37
  }
38
38
  /**
39
39
  * A backend
@@ -69,8 +69,8 @@ declare const _Fetch: {
69
69
  readonly isAvailable: () => boolean;
70
70
  readonly create: (options: FetchOptions) => FetchFS;
71
71
  };
72
- type _fetch = typeof _Fetch;
73
- interface Fetch extends _fetch {
72
+ type _Fetch = typeof _Fetch;
73
+ interface Fetch extends _Fetch {
74
74
  }
75
75
  export declare const Fetch: Fetch;
76
76
  export {};
@@ -15,7 +15,7 @@ export declare class InMemoryStore extends Map<Ino, Uint8Array> implements Simpl
15
15
  * A simple in-memory file system backed by an InMemoryStore.
16
16
  * Files are not persisted across page loads.
17
17
  */
18
- export declare const _InMemory: {
18
+ declare const _InMemory: {
19
19
  readonly name: "InMemory";
20
20
  readonly isAvailable: () => boolean;
21
21
  readonly options: {
@@ -29,8 +29,8 @@ export declare const _InMemory: {
29
29
  name?: string;
30
30
  }) => StoreFS<InMemoryStore>;
31
31
  };
32
- type _inmemory = typeof _InMemory;
33
- interface InMemory extends _inmemory {
32
+ type _InMemory = typeof _InMemory;
33
+ interface InMemory extends _InMemory {
34
34
  }
35
35
  export declare const InMemory: InMemory;
36
36
  export {};
@@ -20,7 +20,7 @@ export class InMemoryStore extends Map {
20
20
  * A simple in-memory file system backed by an InMemoryStore.
21
21
  * Files are not persisted across page loads.
22
22
  */
23
- export const _InMemory = {
23
+ const _InMemory = {
24
24
  name: 'InMemory',
25
25
  isAvailable() {
26
26
  return true;
@@ -116,8 +116,8 @@ declare const _Overlay: {
116
116
  readonly isAvailable: () => boolean;
117
117
  readonly create: (options: OverlayOptions) => OverlayFS;
118
118
  };
119
- type _overlay = typeof _Overlay;
120
- interface Overlay extends _overlay {
119
+ type _Overlay = typeof _Overlay;
120
+ interface Overlay extends _Overlay {
121
121
  }
122
122
  export declare const Overlay: Overlay;
123
123
  export {};
@@ -109,7 +109,7 @@ export type FileOrFSRequest = FSRequest | FileRequest;
109
109
  export declare function handleRequest(port: RPC.Port, fs: FileSystem, request: FileOrFSRequest): Promise<void>;
110
110
  export declare function attachFS(port: RPC.Port, fs: FileSystem): void;
111
111
  export declare function detachFS(port: RPC.Port, fs: FileSystem): void;
112
- export declare const _Port: {
112
+ declare const _Port: {
113
113
  name: string;
114
114
  options: {
115
115
  port: {
@@ -124,11 +124,11 @@ export declare const _Port: {
124
124
  description: string;
125
125
  };
126
126
  };
127
- isAvailable(): Promise<boolean>;
127
+ isAvailable(): boolean;
128
128
  create(options: RPC.Options): PortFS;
129
129
  };
130
- type _port = typeof _Port;
131
- interface Port extends _port {
130
+ type _Port = typeof _Port;
131
+ interface Port extends _Port {
132
132
  }
133
133
  export declare const Port: Port;
134
134
  export declare function resolveRemoteMount<T extends Backend>(port: RPC.Port, config: MountConfiguration<T>, _depth?: number): Promise<FilesystemOf<T>>;
@@ -210,7 +210,7 @@ export function attachFS(port, fs) {
210
210
  export function detachFS(port, fs) {
211
211
  RPC.detach(port, request => handleRequest(port, fs, request));
212
212
  }
213
- export const _Port = {
213
+ const _Port = {
214
214
  name: 'Port',
215
215
  options: {
216
216
  port: {
@@ -230,7 +230,7 @@ export const _Port = {
230
230
  description: 'How long to wait before the request times out',
231
231
  },
232
232
  },
233
- async isAvailable() {
233
+ isAvailable() {
234
234
  return true;
235
235
  },
236
236
  create(options) {