@zenfs/core 1.6.0 → 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.
@@ -1,14 +1,14 @@
1
- import type * as Node from 'node:fs';
1
+ import type * as fs from 'node:fs';
2
2
  import { Readable, Writable } from 'readable-stream';
3
3
  import type { Callback } from '../utils.js';
4
- export declare class ReadStream extends Readable implements Node.ReadStream {
4
+ export declare class ReadStream extends Readable implements fs.ReadStream {
5
5
  close(callback?: Callback<[void], null>): void;
6
6
  wrap(oldStream: NodeJS.ReadableStream): this;
7
7
  bytesRead: number;
8
8
  path: string | Buffer;
9
9
  pending: boolean;
10
10
  }
11
- export declare class WriteStream extends Writable implements Node.WriteStream {
11
+ export declare class WriteStream extends Writable implements fs.WriteStream {
12
12
  close(callback?: Callback<[void], null>): void;
13
13
  bytesWritten: number;
14
14
  path: string | Buffer;
@@ -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.0",
3
+ "version": "1.6.2",
4
4
  "description": "A filesystem, anywhere",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -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",