@zenfs/core 1.6.1 → 1.6.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/emulation/types.d.ts +25 -0
- package/dist/emulation/types.js +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as fs from 'node:fs';
|
|
2
|
+
/**
|
|
3
|
+
* Options used for caching, among other things.
|
|
4
|
+
* @internal @hidden *UNSTABLE*
|
|
5
|
+
*/
|
|
6
|
+
export interface InternalOptions {
|
|
7
|
+
/**
|
|
8
|
+
* If true, then this readdir was called from another function.
|
|
9
|
+
* In this case, don't clear the cache when done.
|
|
10
|
+
* @internal *UNSTABLE*
|
|
11
|
+
*/
|
|
12
|
+
_isIndirect?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ReaddirOptions extends InternalOptions {
|
|
15
|
+
withFileTypes?: boolean;
|
|
16
|
+
recursive?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** Helper union @hidden */
|
|
19
|
+
export type GlobOptionsU = fs.GlobOptionsWithFileTypes | fs.GlobOptionsWithoutFileTypes | fs.GlobOptions;
|
|
20
|
+
/** Helper with union @hidden */
|
|
21
|
+
export type ReaddirOptsU<T> = (ReaddirOptions & (fs.ObjectEncodingOptions | T)) | NullEnc;
|
|
22
|
+
/** Helper with intersection @hidden */
|
|
23
|
+
export type ReaddirOptsI<T> = ReaddirOptions & fs.ObjectEncodingOptions & T;
|
|
24
|
+
/** @hidden */
|
|
25
|
+
export type NullEnc = BufferEncoding | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenfs/core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "A filesystem, anywhere",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"build:docs": "typedoc",
|
|
60
60
|
"dev": "npm run build -- --watch",
|
|
61
61
|
"prepublishOnly": "npm run build",
|
|
62
|
-
"
|
|
62
|
+
"postinstall": "patch-package"
|
|
63
63
|
},
|
|
64
64
|
"lint-staged": {
|
|
65
65
|
"*": [
|
|
@@ -72,7 +72,8 @@
|
|
|
72
72
|
"buffer": "^6.0.3",
|
|
73
73
|
"eventemitter3": "^5.0.1",
|
|
74
74
|
"readable-stream": "^4.5.2",
|
|
75
|
-
"utilium": "^1.1.1"
|
|
75
|
+
"utilium": "^1.1.1",
|
|
76
|
+
"patch-package": "^8.0.0"
|
|
76
77
|
},
|
|
77
78
|
"optionalDependencies": {
|
|
78
79
|
"minimatch": "^9.0.3"
|
|
@@ -84,7 +85,6 @@
|
|
|
84
85
|
"eslint": "^9.15.0",
|
|
85
86
|
"globals": "^15.9.0",
|
|
86
87
|
"lint-staged": "^15.2.7",
|
|
87
|
-
"patch-package": "^8.0.0",
|
|
88
88
|
"prettier": "^3.2.5",
|
|
89
89
|
"tsx": "^4.19.1",
|
|
90
90
|
"typedoc": "^0.27.1",
|