@zenfs/core 1.11.0 → 1.11.2
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/index.d.ts +0 -1
- package/dist/index.js +0 -2
- package/dist/vfs/promises.d.ts +2 -1
- package/dist/vfs/streams.d.ts +1 -0
- package/package.json +4 -3
- package/types/readable-stream.d.ts +1 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/vfs/promises.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type * as fs from 'node:fs';
|
|
|
2
2
|
import type * as promises from 'node:fs/promises';
|
|
3
3
|
import type { Interface as ReadlineInterface } from 'node:readline';
|
|
4
4
|
import type { Stream } from 'node:stream';
|
|
5
|
+
import type { ReadableStream as NodeReadableStream } from 'node:stream/web';
|
|
5
6
|
import type { V_Context } from '../context.js';
|
|
6
7
|
import type { File } from '../internal/file.js';
|
|
7
8
|
import type { Stats } from '../stats.js';
|
|
@@ -88,7 +89,7 @@ export declare class FileHandle implements promises.FileHandle {
|
|
|
88
89
|
* Read file data using a `ReadableStream`.
|
|
89
90
|
* The handle will not be closed automatically.
|
|
90
91
|
*/
|
|
91
|
-
readableWebStream(options?: promises.ReadableWebStreamOptions):
|
|
92
|
+
readableWebStream(options?: promises.ReadableWebStreamOptions): NodeReadableStream<Uint8Array>;
|
|
92
93
|
/**
|
|
93
94
|
* @todo Implement
|
|
94
95
|
*/
|
package/dist/vfs/streams.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenfs/core",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"description": "A filesystem, anywhere",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"url": "https://github.com/zen-fs/core/issues"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
|
-
"node": ">=
|
|
43
|
+
"node": ">= 18"
|
|
44
44
|
},
|
|
45
45
|
"exports": {
|
|
46
46
|
".": "./dist/index.js",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"./promises": "./dist/vfs/promises.js",
|
|
50
50
|
"./path": "./dist/vfs/path.js",
|
|
51
51
|
"./eslint": "./eslint.shared.js",
|
|
52
|
-
"./tests/*": "./tests/*"
|
|
52
|
+
"./tests/*": "./tests/*",
|
|
53
|
+
"./types/*": "./types/*"
|
|
53
54
|
},
|
|
54
55
|
"publishConfig": {
|
|
55
56
|
"access": "public",
|
|
@@ -11,6 +11,7 @@ This allows us to bypass those problems.
|
|
|
11
11
|
Warning: Do not install @types/readable-stream alongside this package!
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
+
/// <reference types="node" preserve="true" />
|
|
14
15
|
declare module 'readable-stream' {
|
|
15
16
|
import { Readable, Writable } from 'node:stream';
|
|
16
17
|
export { Readable, Writable };
|