@d0paminedriven/fs 7.6.0 → 9.0.0
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/{chunk-4LZQHSBL.js → chunk-O2L4VG4G.js} +2 -2
- package/dist/{chunk-MUFEXR25.js → chunk-SVEJJM2H.js} +2 -2
- package/dist/fs/index.js +2 -2
- package/dist/fs-atomic/index.d.ts +1 -1
- package/dist/fs-fetch/index.js +1 -1
- package/dist/fs-tmp/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +19 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FsFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SVEJJM2H.js";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-7QVYU63E.js";
|
|
@@ -74,4 +74,4 @@ var Fs = class extends FsFetch {
|
|
|
74
74
|
export {
|
|
75
75
|
Fs
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=chunk-
|
|
77
|
+
//# sourceMappingURL=chunk-O2L4VG4G.js.map
|
|
@@ -152,7 +152,7 @@ var FsFetch = class extends FsTmp {
|
|
|
152
152
|
}
|
|
153
153
|
const result = await this.assetToBufferView(inputUrl);
|
|
154
154
|
const cleanedData = this.cleanDataUrl(result.b64encodedData);
|
|
155
|
-
this.
|
|
155
|
+
await this.asyncWithWs(formattedPath, Buffer.from(cleanedData, "base64"));
|
|
156
156
|
} catch (err) {
|
|
157
157
|
console.error(`[fetchRemoteWriteLocalLargeFiles error]:`, err);
|
|
158
158
|
}
|
|
@@ -162,4 +162,4 @@ var FsFetch = class extends FsTmp {
|
|
|
162
162
|
export {
|
|
163
163
|
FsFetch
|
|
164
164
|
};
|
|
165
|
-
//# sourceMappingURL=chunk-
|
|
165
|
+
//# sourceMappingURL=chunk-SVEJJM2H.js.map
|
package/dist/fs/index.js
CHANGED
|
@@ -20,7 +20,7 @@ declare class FsAtomic extends FsBase {
|
|
|
20
20
|
mkdirSync<const T extends string>(path: T, options?: MkDirSyncOptions): string | undefined;
|
|
21
21
|
generateDirIfDNE<const T extends string>(path: T, options?: MkDirSyncOptions): string | undefined;
|
|
22
22
|
fileToBuffer: <const T extends string>(path: T) => Buffer<ArrayBuffer>;
|
|
23
|
-
fileToBufferAsync: <const T extends string>(path: T) => Promise<
|
|
23
|
+
fileToBufferAsync: <const T extends string>(path: T) => Promise<NonSharedBuffer>;
|
|
24
24
|
dirContainsDir<const From extends string, const To extends string>(readDir: From, targetDir: To, options?: ReadDirOptions): boolean;
|
|
25
25
|
rmFile<const FP extends string>(filePath: FP, options?: RmOptions): void;
|
|
26
26
|
/**
|
package/dist/fs-fetch/index.js
CHANGED
package/dist/fs-tmp/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare class FsTmp extends FsCore {
|
|
|
35
35
|
*/
|
|
36
36
|
writeTmp<const F extends string>(filename: F, data: WriteStreamDataShape, options?: WriteStreamOptions): void;
|
|
37
37
|
writeTmpAsync<const F extends string>(filename: F, data: string, options?: WriteFileAsyncOptions): Promise<string | void>;
|
|
38
|
-
readTmpAsync<const F extends string>(filename: F): Promise<
|
|
38
|
+
readTmpAsync<const F extends string>(filename: F): Promise<NonSharedBuffer>;
|
|
39
39
|
/**
|
|
40
40
|
* Read a file from the tmp directory
|
|
41
41
|
* @param filename The filename to read (can include subdirectories)
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d0paminedriven/fs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"homepage": "https://github.com/DopamineDriven/d0paminedriven/blob/master/packages/fs/README.md",
|
|
5
|
-
"author":
|
|
6
|
-
"email": "andrew@windycitydevs.io",
|
|
7
|
-
"name": "Andrew Ross"
|
|
8
|
-
},
|
|
5
|
+
"author": "Andrew Ross",
|
|
9
6
|
"description": "convenient fs helpers",
|
|
10
7
|
"repository": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/DopamineDriven/d0paminedriven",
|
|
10
|
+
"directory": "packages/fs"
|
|
13
11
|
},
|
|
14
12
|
"publishConfig": {
|
|
15
13
|
"access": "public"
|
|
@@ -96,27 +94,28 @@
|
|
|
96
94
|
"./utils": "./dist/utils/index.js"
|
|
97
95
|
},
|
|
98
96
|
"dependencies": {
|
|
99
|
-
"dotenv": "^17.2.
|
|
97
|
+
"dotenv": "^17.2.3",
|
|
100
98
|
"dotenv-expand": "^12.0.3",
|
|
101
99
|
"fflate": "^0.8.2",
|
|
102
|
-
"sharp": "^0.34.
|
|
100
|
+
"sharp": "^0.34.5"
|
|
103
101
|
},
|
|
104
102
|
"devDependencies": {
|
|
105
|
-
"@types/node": "^24.
|
|
103
|
+
"@types/node": "^24.10.1",
|
|
106
104
|
"chokidar": "^4.0.3",
|
|
107
|
-
"dotenv-cli": "^
|
|
108
|
-
"eslint": "^9.
|
|
109
|
-
"jiti": "^2.
|
|
105
|
+
"dotenv-cli": "^11.0.0",
|
|
106
|
+
"eslint": "^9.39.1",
|
|
107
|
+
"jiti": "^2.6.1",
|
|
110
108
|
"prettier": "^3.6.2",
|
|
111
|
-
"terser": "^5.44.
|
|
109
|
+
"terser": "^5.44.1",
|
|
110
|
+
"tsdown": "^0.16.6",
|
|
112
111
|
"tslib": "^2.8.1",
|
|
113
|
-
"tsup": "^8.5.
|
|
114
|
-
"tsx": "^4.20.
|
|
115
|
-
"typescript": "^5.9.
|
|
116
|
-
"typescript-eslint": "^8.
|
|
112
|
+
"tsup": "^8.5.1",
|
|
113
|
+
"tsx": "^4.20.6",
|
|
114
|
+
"typescript": "^5.9.3",
|
|
115
|
+
"typescript-eslint": "^8.47.0",
|
|
116
|
+
"@d0paminedriven/tsconfig": "0.1.0",
|
|
117
117
|
"@d0paminedriven/prettier-config": "0.1.0",
|
|
118
|
-
"@d0paminedriven/eslint-config": "0.1.0"
|
|
119
|
-
"@d0paminedriven/tsconfig": "0.1.0"
|
|
118
|
+
"@d0paminedriven/eslint-config": "0.1.0"
|
|
120
119
|
},
|
|
121
120
|
"prettier": "@d0paminedriven/prettier-config",
|
|
122
121
|
"scripts": {
|