@zenfs/core 2.8.0 → 2.8.1
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/node/types.d.ts +6 -1
- package/package.json +2 -2
package/dist/node/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as fs from 'node:fs';
|
|
2
|
+
import type { Stream } from 'node:stream';
|
|
2
3
|
/**
|
|
3
4
|
* @hidden
|
|
4
5
|
*/
|
|
@@ -11,11 +12,15 @@ export type NodeReaddirOptions = {
|
|
|
11
12
|
* Notes on omissions and exclusions:
|
|
12
13
|
* - `__promisify__` is omitted since it is type metadata
|
|
13
14
|
* - `native` is omitted since zenfs isn't native
|
|
15
|
+
* - Static members that `ReadStream` and `WriteStream` inherit from `node:stream` are omitted since they aren't part of the `fs` API
|
|
14
16
|
* @internal @hidden
|
|
15
17
|
*/
|
|
16
18
|
export type NodeFS = {
|
|
17
19
|
[K in keyof typeof fs]: (typeof fs)[K] extends (...args: any[]) => any ? // Some kind of wizardry: by using a union with a regular function, overloads are preserved but the properties disappear.
|
|
18
|
-
(typeof fs)[K] | ((...args: any[]) => any) : (typeof fs)[K] extends object ? Omit<(typeof fs)[K], '__promisify__' | 'native'> : (typeof fs)[K];
|
|
20
|
+
(typeof fs)[K] | ((...args: any[]) => any) : (typeof fs)[K] extends object ? Omit<(typeof fs)[K], '__promisify__' | 'native' | (K extends 'ReadStream' | 'WriteStream' ? StreamStatics : never)> : (typeof fs)[K];
|
|
19
21
|
};
|
|
22
|
+
/** @internal @hidden */
|
|
23
|
+
type StreamStatics = Exclude<keyof typeof Stream, 'prototype'>;
|
|
20
24
|
/** Helper union @hidden */
|
|
21
25
|
export type GlobOptionsU = fs.GlobOptionsWithFileTypes | fs.GlobOptionsWithoutFileTypes | fs.GlobOptions;
|
|
26
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenfs/core",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "A filesystem, anywhere",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@types/node": "^26.0.0",
|
|
78
|
-
"@zenfs/streams": "^1.0.
|
|
78
|
+
"@zenfs/streams": "^1.0.2",
|
|
79
79
|
"buffer": "^6.0.3",
|
|
80
80
|
"eventemitter3": "^5.0.1",
|
|
81
81
|
"kerium": "^1.5.0",
|