@gjsify/fs 0.4.37 → 0.4.39
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.
|
@@ -4,21 +4,21 @@ export { constants } from './constants.js';
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
readFile: (path: string | URL | {
|
|
6
6
|
toString(): string;
|
|
7
|
-
}, opts?: ("utf8" | "utf-8" | "ascii" | "binary" | "
|
|
7
|
+
}, opts?: ("base64" | "utf8" | "utf-8" | "ascii" | "binary" | "hex") | import("./sync.js").ReadFileOpts) => Promise<string | Uint8Array<ArrayBufferLike>>;
|
|
8
8
|
writeFile: (path: string | URL | {
|
|
9
9
|
toString(): string;
|
|
10
10
|
}, data: string | (Uint8Array<ArrayBufferLike> | {
|
|
11
11
|
buffer: ArrayBufferLike;
|
|
12
12
|
byteOffset?: number;
|
|
13
13
|
byteLength?: number;
|
|
14
|
-
}), opts?: ("utf8" | "utf-8" | "ascii" | "binary" | "
|
|
14
|
+
}), opts?: ("base64" | "utf8" | "utf-8" | "ascii" | "binary" | "hex") | import("./sync.js").WriteFileOpts) => Promise<void>;
|
|
15
15
|
appendFile: (path: string | URL | {
|
|
16
16
|
toString(): string;
|
|
17
17
|
}, data: string | (Uint8Array<ArrayBufferLike> | {
|
|
18
18
|
buffer: ArrayBufferLike;
|
|
19
19
|
byteOffset?: number;
|
|
20
20
|
byteLength?: number;
|
|
21
|
-
}), opts?: ("utf8" | "utf-8" | "ascii" | "binary" | "
|
|
21
|
+
}), opts?: ("base64" | "utf8" | "utf-8" | "ascii" | "binary" | "hex") | import("./sync.js").WriteFileOpts) => Promise<void>;
|
|
22
22
|
stat: (path: string | URL | {
|
|
23
23
|
toString(): string;
|
|
24
24
|
}, opts?: import("./sync.js").StatOpts) => Promise<import("./types.js").Stats | import("./types.js").BigIntStats>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as sync from './sync.js';
|
|
2
2
|
export declare const readFile: (path: string | URL | {
|
|
3
3
|
toString(): string;
|
|
4
|
-
}, opts?: ("utf8" | "utf-8" | "ascii" | "binary" | "
|
|
4
|
+
}, opts?: ("base64" | "utf8" | "utf-8" | "ascii" | "binary" | "hex") | sync.ReadFileOpts) => Promise<string | Uint8Array<ArrayBufferLike>>;
|
|
5
5
|
export declare const writeFile: (path: string | URL | {
|
|
6
6
|
toString(): string;
|
|
7
7
|
}, data: string | (Uint8Array<ArrayBufferLike> | {
|
|
8
8
|
buffer: ArrayBufferLike;
|
|
9
9
|
byteOffset?: number;
|
|
10
10
|
byteLength?: number;
|
|
11
|
-
}), opts?: ("utf8" | "utf-8" | "ascii" | "binary" | "
|
|
11
|
+
}), opts?: ("base64" | "utf8" | "utf-8" | "ascii" | "binary" | "hex") | sync.WriteFileOpts) => Promise<void>;
|
|
12
12
|
export declare const appendFile: (path: string | URL | {
|
|
13
13
|
toString(): string;
|
|
14
14
|
}, data: string | (Uint8Array<ArrayBufferLike> | {
|
|
15
15
|
buffer: ArrayBufferLike;
|
|
16
16
|
byteOffset?: number;
|
|
17
17
|
byteLength?: number;
|
|
18
|
-
}), opts?: ("utf8" | "utf-8" | "ascii" | "binary" | "
|
|
18
|
+
}), opts?: ("base64" | "utf8" | "utf-8" | "ascii" | "binary" | "hex") | sync.WriteFileOpts) => Promise<void>;
|
|
19
19
|
export declare const stat: (path: string | URL | {
|
|
20
20
|
toString(): string;
|
|
21
21
|
}, opts?: sync.StatOpts) => Promise<import("./types.js").Stats | import("./types.js").BigIntStats>;
|
package/lib/types/browser.d.ts
CHANGED
|
@@ -56,21 +56,21 @@ declare const defaultExport: {
|
|
|
56
56
|
write(fd: number, buf: Uint8Array | string, offsetOrCb?: number | ((err: NodeJS.ErrnoException | null, value?: number) => void), lengthOrEnc?: number | string, positionOrCb?: number | null | ((err: NodeJS.ErrnoException | null, value?: number) => void), maybeCb?: (err: NodeJS.ErrnoException | null, value?: number) => void): void;
|
|
57
57
|
readFileSync(path: string | URL | {
|
|
58
58
|
toString(): string;
|
|
59
|
-
}, opts?: ("utf8" | "utf-8" | "ascii" | "binary" | "
|
|
59
|
+
}, opts?: ("base64" | "utf8" | "utf-8" | "ascii" | "binary" | "hex") | syncApi.ReadFileOpts): string | Uint8Array;
|
|
60
60
|
writeFileSync(path: string | URL | {
|
|
61
61
|
toString(): string;
|
|
62
62
|
}, data: string | (Uint8Array<ArrayBufferLike> | {
|
|
63
63
|
buffer: ArrayBufferLike;
|
|
64
64
|
byteOffset?: number;
|
|
65
65
|
byteLength?: number;
|
|
66
|
-
}), opts?: ("utf8" | "utf-8" | "ascii" | "binary" | "
|
|
66
|
+
}), opts?: ("base64" | "utf8" | "utf-8" | "ascii" | "binary" | "hex") | syncApi.WriteFileOpts): void;
|
|
67
67
|
appendFileSync(path: string | URL | {
|
|
68
68
|
toString(): string;
|
|
69
69
|
}, data: string | (Uint8Array<ArrayBufferLike> | {
|
|
70
70
|
buffer: ArrayBufferLike;
|
|
71
71
|
byteOffset?: number;
|
|
72
72
|
byteLength?: number;
|
|
73
|
-
}), opts?: ("utf8" | "utf-8" | "ascii" | "binary" | "
|
|
73
|
+
}), opts?: ("base64" | "utf8" | "utf-8" | "ascii" | "binary" | "hex") | syncApi.WriteFileOpts): void;
|
|
74
74
|
statSync(path: string | URL | {
|
|
75
75
|
toString(): string;
|
|
76
76
|
}, opts?: syncApi.StatOpts): StatsCls | BigIntStatsCls | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/fs",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.39",
|
|
4
4
|
"description": "Node.js fs module for Gjs",
|
|
5
5
|
"module": "lib/esm/index.js",
|
|
6
6
|
"types": "lib/types/index.d.ts",
|
|
@@ -66,19 +66,19 @@
|
|
|
66
66
|
"fs"
|
|
67
67
|
],
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@gjsify/cli": "^0.4.
|
|
70
|
-
"@gjsify/unit": "^0.4.
|
|
69
|
+
"@gjsify/cli": "^0.4.39",
|
|
70
|
+
"@gjsify/unit": "^0.4.39",
|
|
71
71
|
"@types/node": "^25.9.1",
|
|
72
|
-
"typescript": "^
|
|
72
|
+
"typescript": "^6.0.3"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@girs/gio-2.0": "2.88.0-4.0.4",
|
|
76
76
|
"@girs/glib-2.0": "2.88.0-4.0.4",
|
|
77
|
-
"@gjsify/buffer": "^0.4.
|
|
78
|
-
"@gjsify/events": "^0.4.
|
|
79
|
-
"@gjsify/stream": "^0.4.
|
|
80
|
-
"@gjsify/url": "^0.4.
|
|
81
|
-
"@gjsify/utils": "^0.4.
|
|
77
|
+
"@gjsify/buffer": "^0.4.39",
|
|
78
|
+
"@gjsify/events": "^0.4.39",
|
|
79
|
+
"@gjsify/stream": "^0.4.39",
|
|
80
|
+
"@gjsify/url": "^0.4.39",
|
|
81
|
+
"@gjsify/utils": "^0.4.39"
|
|
82
82
|
},
|
|
83
83
|
"gjsify": {
|
|
84
84
|
"runtimes": {
|