@zenfs/core 1.0.4 → 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.
- package/dist/backends/backend.d.ts +1 -1
- package/dist/backends/fetch.d.ts +2 -2
- package/dist/backends/memory.d.ts +3 -3
- package/dist/backends/memory.js +1 -1
- package/dist/backends/overlay.d.ts +2 -2
- package/dist/backends/port/fs.d.ts +4 -4
- package/dist/backends/port/fs.js +2 -2
- package/dist/browser.min.js +4 -4
- package/dist/browser.min.js.map +3 -3
- package/eslint.shared.js +1 -0
- package/package.json +1 -1
- package/src/backends/backend.ts +1 -1
- package/src/backends/fetch.ts +2 -2
- package/src/backends/memory.ts +3 -3
- package/src/backends/overlay.ts +2 -2
- package/src/backends/port/fs.ts +4 -4
package/dist/backends/fetch.d.ts
CHANGED
|
@@ -69,8 +69,8 @@ declare const _Fetch: {
|
|
|
69
69
|
readonly isAvailable: () => boolean;
|
|
70
70
|
readonly create: (options: FetchOptions) => FetchFS;
|
|
71
71
|
};
|
|
72
|
-
type
|
|
73
|
-
interface Fetch extends
|
|
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
|
-
|
|
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
|
|
33
|
-
interface InMemory extends
|
|
32
|
+
type _InMemory = typeof _InMemory;
|
|
33
|
+
interface InMemory extends _InMemory {
|
|
34
34
|
}
|
|
35
35
|
export declare const InMemory: InMemory;
|
|
36
36
|
export {};
|
package/dist/backends/memory.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
120
|
-
interface Overlay extends
|
|
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
|
-
|
|
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():
|
|
127
|
+
isAvailable(): boolean;
|
|
128
128
|
create(options: RPC.Options): PortFS;
|
|
129
129
|
};
|
|
130
|
-
type
|
|
131
|
-
interface Port extends
|
|
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>>;
|
package/dist/backends/port/fs.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
233
|
+
isAvailable() {
|
|
234
234
|
return true;
|
|
235
235
|
},
|
|
236
236
|
create(options) {
|