@zenfs/core 2.3.3 → 2.3.4
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/readline.d.ts +1 -1
- package/dist/vfs/async.d.ts +4 -4
- package/dist/vfs/promises.d.ts +4 -4
- package/dist/vfs/promises.js +1 -1
- package/dist/vfs/sync.d.ts +4 -4
- package/package.json +2 -2
package/dist/readline.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export declare class Interface extends EventEmitter<InterfaceEvents> implements
|
|
|
84
84
|
* Gets the maximum number of listeners
|
|
85
85
|
*/
|
|
86
86
|
getMaxListeners(): number;
|
|
87
|
-
[Symbol.asyncIterator](): AsyncIteratorObject<string>;
|
|
87
|
+
[Symbol.asyncIterator](): AsyncIteratorObject<string, undefined>;
|
|
88
88
|
[Symbol.dispose](): void;
|
|
89
89
|
[Symbol.asyncDispose](): Promise<void>;
|
|
90
90
|
rawListeners(event: keyof InterfaceEvents): ((...args: any[]) => void)[];
|
package/dist/vfs/async.d.ts
CHANGED
|
@@ -271,8 +271,8 @@ type GlobCallback<Args extends unknown[]> = (e: Exception | null, ...args: Args)
|
|
|
271
271
|
/**
|
|
272
272
|
* Retrieves the files matching the specified pattern.
|
|
273
273
|
*/
|
|
274
|
-
export declare function glob(this: V_Context, pattern: string | string[], callback: GlobCallback<[string[]]>): void;
|
|
275
|
-
export declare function glob(this: V_Context, pattern: string | string[], options: fs.GlobOptionsWithFileTypes, callback: GlobCallback<[Dirent[]]>): void;
|
|
276
|
-
export declare function glob(this: V_Context, pattern: string | string[], options: fs.GlobOptionsWithoutFileTypes, callback: GlobCallback<[string[]]>): void;
|
|
277
|
-
export declare function glob(this: V_Context, pattern: string | string[], options: fs.GlobOptions, callback: GlobCallback<[Dirent[] | string[]]>): void;
|
|
274
|
+
export declare function glob(this: V_Context, pattern: string | readonly string[], callback: GlobCallback<[string[]]>): void;
|
|
275
|
+
export declare function glob(this: V_Context, pattern: string | readonly string[], options: fs.GlobOptionsWithFileTypes, callback: GlobCallback<[Dirent[]]>): void;
|
|
276
|
+
export declare function glob(this: V_Context, pattern: string | readonly string[], options: fs.GlobOptionsWithoutFileTypes, callback: GlobCallback<[string[]]>): void;
|
|
277
|
+
export declare function glob(this: V_Context, pattern: string | readonly string[], options: fs.GlobOptions, callback: GlobCallback<[Dirent[] | string[]]>): void;
|
|
278
278
|
export {};
|
package/dist/vfs/promises.d.ts
CHANGED
|
@@ -419,7 +419,7 @@ export declare function statfs(this: V_Context, path: fs.PathLike, opts?: fs.Sta
|
|
|
419
419
|
/**
|
|
420
420
|
* Retrieves the files matching the specified pattern.
|
|
421
421
|
*/
|
|
422
|
-
export declare function glob(this: V_Context, pattern: string | string[]): NodeJS.AsyncIterator<string>;
|
|
423
|
-
export declare function glob(this: V_Context, pattern: string | string[], opt: fs.GlobOptionsWithFileTypes): NodeJS.AsyncIterator<Dirent>;
|
|
424
|
-
export declare function glob(this: V_Context, pattern: string | string[], opt: fs.GlobOptionsWithoutFileTypes): NodeJS.AsyncIterator<string>;
|
|
425
|
-
export declare function glob(this: V_Context, pattern: string | string[], opt: fs.GlobOptions): NodeJS.AsyncIterator<Dirent | string>;
|
|
422
|
+
export declare function glob(this: V_Context, pattern: string | readonly string[]): NodeJS.AsyncIterator<string>;
|
|
423
|
+
export declare function glob(this: V_Context, pattern: string | readonly string[], opt: fs.GlobOptionsWithFileTypes): NodeJS.AsyncIterator<Dirent>;
|
|
424
|
+
export declare function glob(this: V_Context, pattern: string | readonly string[], opt: fs.GlobOptionsWithoutFileTypes): NodeJS.AsyncIterator<string>;
|
|
425
|
+
export declare function glob(this: V_Context, pattern: string | readonly string[], opt: fs.GlobOptions): NodeJS.AsyncIterator<Dirent | string>;
|
package/dist/vfs/promises.js
CHANGED
|
@@ -273,7 +273,7 @@ export class FileHandle {
|
|
|
273
273
|
const pos = Number.isSafeInteger(position) ? position : this.position;
|
|
274
274
|
buffer ||= new Uint8Array(this.inode.size);
|
|
275
275
|
offset ??= 0;
|
|
276
|
-
return this._read(buffer, offset, length ?? buffer.byteLength - offset, pos);
|
|
276
|
+
return this._read(buffer, offset, length ?? buffer.byteLength - offset, pos ? Number(pos) : undefined);
|
|
277
277
|
}
|
|
278
278
|
async readFile(_options) {
|
|
279
279
|
const options = normalizeOptions(_options, null, 'r', 0o444);
|
package/dist/vfs/sync.d.ts
CHANGED
|
@@ -233,7 +233,7 @@ export declare function statfsSync(this: V_Context, path: fs.PathLike, options?:
|
|
|
233
233
|
/**
|
|
234
234
|
* Retrieves the files matching the specified pattern.
|
|
235
235
|
*/
|
|
236
|
-
export declare function globSync(pattern: string | string[]): string[];
|
|
237
|
-
export declare function globSync(pattern: string | string[], options: fs.GlobOptionsWithFileTypes): Dirent[];
|
|
238
|
-
export declare function globSync(pattern: string | string[], options: fs.GlobOptionsWithoutFileTypes): string[];
|
|
239
|
-
export declare function globSync(pattern: string | string[], options: fs.GlobOptions): Dirent[] | string[];
|
|
236
|
+
export declare function globSync(pattern: string | readonly string[]): string[];
|
|
237
|
+
export declare function globSync(pattern: string | readonly string[], options: fs.GlobOptionsWithFileTypes): Dirent[];
|
|
238
|
+
export declare function globSync(pattern: string | readonly string[], options: fs.GlobOptionsWithoutFileTypes): string[];
|
|
239
|
+
export declare function globSync(pattern: string | readonly string[], options: fs.GlobOptions): Dirent[] | string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenfs/core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "A filesystem, anywhere",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"prepublishOnly": "npm run build"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@types/node": "^
|
|
70
|
+
"@types/node": "^24.0.13",
|
|
71
71
|
"buffer": "^6.0.3",
|
|
72
72
|
"eventemitter3": "^5.0.1",
|
|
73
73
|
"kerium": "^1.3.4",
|