@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FsFetch
3
- } from "./chunk-MUFEXR25.js";
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-4LZQHSBL.js.map
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.withWs(formattedPath, Buffer.from(cleanedData, "base64"));
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-MUFEXR25.js.map
165
+ //# sourceMappingURL=chunk-SVEJJM2H.js.map
package/dist/fs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Fs
3
- } from "../chunk-4LZQHSBL.js";
4
- import "../chunk-MUFEXR25.js";
3
+ } from "../chunk-O2L4VG4G.js";
4
+ import "../chunk-SVEJJM2H.js";
5
5
  import "../chunk-QKZIGBLD.js";
6
6
  import "../chunk-CTSJFQMC.js";
7
7
  import "../chunk-ZQRB46YA.js";
@@ -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<Buffer<ArrayBufferLike>>;
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
  /**
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FsFetch
3
- } from "../chunk-MUFEXR25.js";
3
+ } from "../chunk-SVEJJM2H.js";
4
4
  import "../chunk-QKZIGBLD.js";
5
5
  import "../chunk-CTSJFQMC.js";
6
6
  import "../chunk-ZQRB46YA.js";
@@ -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<Buffer<ArrayBufferLike>>;
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
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Fs
3
- } from "./chunk-4LZQHSBL.js";
3
+ } from "./chunk-O2L4VG4G.js";
4
4
  import {
5
5
  FsFetch
6
- } from "./chunk-MUFEXR25.js";
6
+ } from "./chunk-SVEJJM2H.js";
7
7
  import {
8
8
  FsTmp
9
9
  } from "./chunk-QKZIGBLD.js";
package/package.json CHANGED
@@ -1,15 +1,13 @@
1
1
  {
2
2
  "name": "@d0paminedriven/fs",
3
- "version": "7.6.0",
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
- "url": "https://github.com/DopamineDriven/d0paminedriven/tree/master",
12
- "directory": "./packages/fs"
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.2",
97
+ "dotenv": "^17.2.3",
100
98
  "dotenv-expand": "^12.0.3",
101
99
  "fflate": "^0.8.2",
102
- "sharp": "^0.34.3"
100
+ "sharp": "^0.34.5"
103
101
  },
104
102
  "devDependencies": {
105
- "@types/node": "^24.5.0",
103
+ "@types/node": "^24.10.1",
106
104
  "chokidar": "^4.0.3",
107
- "dotenv-cli": "^10.0.0",
108
- "eslint": "^9.35.0",
109
- "jiti": "^2.5.1",
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.0",
109
+ "terser": "^5.44.1",
110
+ "tsdown": "^0.16.6",
112
111
  "tslib": "^2.8.1",
113
- "tsup": "^8.5.0",
114
- "tsx": "^4.20.5",
115
- "typescript": "^5.9.2",
116
- "typescript-eslint": "^8.44.0",
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": {