@d0paminedriven/fs 7.3.0 → 7.5.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.
@@ -11,4 +11,4 @@ var unitsObj = {
11
11
  export {
12
12
  unitsObj
13
13
  };
14
- //# sourceMappingURL=chunk-R63XI7FS.js.map
14
+ //# sourceMappingURL=chunk-4DZLRFGH.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FsBase
3
- } from "./chunk-LQP2FYMK.js";
3
+ } from "./chunk-DSH3OL5Q.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-7QVYU63E.js";
@@ -104,4 +104,4 @@ var FsAtomic = class extends FsBase {
104
104
  export {
105
105
  FsAtomic
106
106
  };
107
- //# sourceMappingURL=chunk-NHYRCNMW.js.map
107
+ //# sourceMappingURL=chunk-6UANVLO3.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  unitsObj
3
- } from "./chunk-R63XI7FS.js";
3
+ } from "./chunk-4DZLRFGH.js";
4
4
  import {
5
5
  FsAtomic
6
- } from "./chunk-NHYRCNMW.js";
6
+ } from "./chunk-6UANVLO3.js";
7
7
  import {
8
8
  __name
9
9
  } from "./chunk-7QVYU63E.js";
@@ -72,4 +72,4 @@ var FsSize = class extends FsAtomic {
72
72
  export {
73
73
  FsSize
74
74
  };
75
- //# sourceMappingURL=chunk-2IRCHZCF.js.map
75
+ //# sourceMappingURL=chunk-CJBGTYSB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ImageService
3
- } from "./chunk-2XQ44ZWR.js";
3
+ } from "./chunk-3MPIZJSN.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-7QVYU63E.js";
@@ -62,6 +62,8 @@ var FsBase = class extends ImageService {
62
62
  return true;
63
63
  } else if (path.includes(this.homeDir)) {
64
64
  return true;
65
+ } else {
66
+ return false;
65
67
  }
66
68
  }
67
69
  isRootPathTargeted(path) {
@@ -104,6 +106,7 @@ var FsBase = class extends ImageService {
104
106
  return Readable.from([data]);
105
107
  if (this.isWebReadableStream(data)) return Readable.fromWeb(data);
106
108
  if (this.isAsyncIterable(data)) return Readable.from(data);
109
+ if (data instanceof Readable) return data;
107
110
  throw new TypeError("Unsupported data type for toReadable()");
108
111
  }
109
112
  /**
@@ -234,4 +237,4 @@ var FsBase = class extends ImageService {
234
237
  export {
235
238
  FsBase
236
239
  };
237
- //# sourceMappingURL=chunk-LQP2FYMK.js.map
240
+ //# sourceMappingURL=chunk-DSH3OL5Q.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FsTmp
3
- } from "./chunk-PTXZQBLV.js";
3
+ } from "./chunk-N33N54TN.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-7QVYU63E.js";
@@ -136,7 +136,7 @@ var FsFetch = class extends FsTmp {
136
136
  throw new Error(`Failed to fetch asset: ${res.statusText}`);
137
137
  }
138
138
  const writeStream = fsSync.createWriteStream(
139
- relative(this.cwd ?? process.cwd(), formattedPath)
139
+ relative(this.cwd, formattedPath)
140
140
  );
141
141
  const reader = res.body.getReader();
142
142
  const pump = /* @__PURE__ */ __name(async () => {
@@ -162,4 +162,4 @@ var FsFetch = class extends FsTmp {
162
162
  export {
163
163
  FsFetch
164
164
  };
165
- //# sourceMappingURL=chunk-NOOFSAF4.js.map
165
+ //# sourceMappingURL=chunk-F57L5MBU.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FsSize
3
- } from "./chunk-2IRCHZCF.js";
3
+ } from "./chunk-CJBGTYSB.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-7QVYU63E.js";
@@ -66,4 +66,4 @@ var FsCore = class extends FsSize {
66
66
  export {
67
67
  FsCore
68
68
  };
69
- //# sourceMappingURL=chunk-KOKPGEU4.js.map
69
+ //# sourceMappingURL=chunk-HQ2FHXLJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FsFetch
3
- } from "./chunk-NOOFSAF4.js";
3
+ } from "./chunk-F57L5MBU.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-7QVYU63E.js";
@@ -17,20 +17,28 @@ var Fs = class extends FsFetch {
17
17
  static {
18
18
  __name(this, "Fs");
19
19
  }
20
- async getImageSpecs(filePath) {
21
- const buffer = await this.fileToBufferAsync(filePath);
22
- return this.getImageSpecsWorkup(buffer);
20
+ async getImageSpecs(filePath, size = 4096 * 6) {
21
+ if (filePath.startsWith("https")) {
22
+ return await this.extractRemote(filePath, size);
23
+ }
24
+ return await this.extractViaPath(filePath, size);
25
+ }
26
+ async getImageSpecsFlexi(target, size = 4096 * 6) {
27
+ if (Buffer.isBuffer(target)) {
28
+ return this.getImageSpecsWorkup(target, size);
29
+ } else {
30
+ return await this.getImageSpecs(target, size);
31
+ }
23
32
  }
24
- async getImageSpecsTmp(target) {
25
- const buffer = await this.readTmpAsync(target);
26
- return this.getImageSpecsWorkup(buffer);
33
+ async getImageSpecsTmp(filepath, size = 4096 * 6) {
34
+ return this.extractViaPath(resolve(this.tmpDir, filepath), size);
27
35
  }
28
36
  /**
29
37
  * Extract image metadata using streaming (only reads ~4KB)
30
38
  * Much more memory efficient for large images
31
39
  */
32
- async getImageSpecsStream(filePath) {
33
- return this.extractFromPath(filePath);
40
+ async getImageSpecsStream(filePath, size = 4096) {
41
+ return this.extractFromPath(filePath, size);
34
42
  }
35
43
  async getImageSpecsStreamTmp(filePath) {
36
44
  return this.extractFromPath(resolve(this.tmpDir, filePath));
@@ -66,4 +74,4 @@ var Fs = class extends FsFetch {
66
74
  export {
67
75
  Fs
68
76
  };
69
- //# sourceMappingURL=chunk-HPM4IQQR.js.map
77
+ //# sourceMappingURL=chunk-LYQ3KQSL.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FsCore
3
- } from "./chunk-KOKPGEU4.js";
3
+ } from "./chunk-HQ2FHXLJ.js";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-7QVYU63E.js";
@@ -364,4 +364,4 @@ var FsTmp = class extends FsCore {
364
364
  export {
365
365
  FsTmp
366
366
  };
367
- //# sourceMappingURL=chunk-PTXZQBLV.js.map
367
+ //# sourceMappingURL=chunk-N33N54TN.js.map
@@ -21,16 +21,19 @@ import 'dotenv-expand';
21
21
  declare class Fs extends FsFetch {
22
22
  cwd: string;
23
23
  constructor(cwd: string);
24
- getImageSpecs(filePath: string): Promise<{
24
+ getImageSpecs(filePath: string, size?: number): Promise<ImageSpecs>;
25
+ getImageSpecsFlexi(target: Buffer | string, size?: number): Promise<ImageSpecs>;
26
+ getImageSpecsTmp(filepath: string, size?: number): Promise<{
25
27
  width: number;
26
28
  height: number;
27
- format: "png";
29
+ format: "apng" | "png";
28
30
  frames: number;
29
31
  animated: boolean;
30
32
  hasAlpha: boolean;
33
+ colorModel: "unknown" | "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed";
31
34
  orientation: null;
32
35
  aspectRatio: number;
33
- colorSpace: "unknown" | "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed";
36
+ colorSpace: "unknown" | "cmyk" | "srgb" | "display_p3" | "adobe_rgb" | "prophoto_rgb" | "rec2020" | "rec709" | "lab" | "xyz" | "gray";
34
37
  iccProfile: string | null;
35
38
  exifDateTimeOriginal: string | null;
36
39
  } | {
@@ -42,7 +45,8 @@ declare class Fs extends FsFetch {
42
45
  hasAlpha: false;
43
46
  orientation: number | null;
44
47
  aspectRatio: number;
45
- colorSpace: "unknown" | "grayscale" | "ycbcr" | "ycck";
48
+ colorSpace: "unknown" | "cmyk" | "srgb" | "display_p3" | "adobe_rgb" | "prophoto_rgb" | "rec2020" | "rec709" | "lab" | "xyz" | "gray";
49
+ colorModel: "unknown" | "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed" | "cmyk" | "ycbcr" | "ycck";
46
50
  iccProfile: string | null;
47
51
  exifDateTimeOriginal: string | null;
48
52
  } | {
@@ -54,7 +58,8 @@ declare class Fs extends FsFetch {
54
58
  hasAlpha: null;
55
59
  orientation: null;
56
60
  aspectRatio: number;
57
- colorSpace: "indexed";
61
+ colorModel: "indexed";
62
+ colorSpace: "unknown";
58
63
  iccProfile: null;
59
64
  exifDateTimeOriginal: null;
60
65
  } | {
@@ -66,7 +71,8 @@ declare class Fs extends FsFetch {
66
71
  hasAlpha: null;
67
72
  orientation: number;
68
73
  aspectRatio: number;
69
- colorSpace: "rgb" | "indexed";
74
+ colorModel: "unknown" | "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed" | "cmyk" | "ycbcr" | "ycck";
75
+ colorSpace: "unknown";
70
76
  iccProfile: null;
71
77
  exifDateTimeOriginal: null;
72
78
  } | {
@@ -76,9 +82,10 @@ declare class Fs extends FsFetch {
76
82
  frames: number;
77
83
  animated: boolean;
78
84
  hasAlpha: boolean;
85
+ colorModel: "unknown" | "rgb" | "rgba";
79
86
  orientation: null;
80
87
  aspectRatio: number;
81
- colorSpace: "unknown" | "rgb" | "rgba";
88
+ colorSpace: "unknown" | "cmyk" | "srgb" | "display_p3" | "adobe_rgb" | "prophoto_rgb" | "rec2020" | "rec709" | "lab" | "xyz" | "gray";
82
89
  iccProfile: string | null;
83
90
  exifDateTimeOriginal: null;
84
91
  } | {
@@ -87,83 +94,11 @@ declare class Fs extends FsFetch {
87
94
  format: "avif";
88
95
  frames: number;
89
96
  animated: boolean;
97
+ colorModel: "unknown" | "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed" | "cmyk" | "ycbcr" | "ycck";
90
98
  hasAlpha: true | null;
91
99
  orientation: null;
92
100
  aspectRatio: number;
93
- colorSpace: "unknown" | "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed" | "cmyk" | "ycbcr" | "ycck";
94
- iccProfile: string | null;
95
- exifDateTimeOriginal: string | null;
96
- }>;
97
- getImageSpecsTmp(target: string): Promise<{
98
- width: number;
99
- height: number;
100
- format: "png";
101
- frames: number;
102
- animated: boolean;
103
- hasAlpha: boolean;
104
- orientation: null;
105
- aspectRatio: number;
106
- colorSpace: "unknown" | "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed";
107
- iccProfile: string | null;
108
- exifDateTimeOriginal: string | null;
109
- } | {
110
- width: number;
111
- height: number;
112
- format: "jpeg";
113
- frames: number;
114
- animated: false;
115
- hasAlpha: false;
116
- orientation: number | null;
117
- aspectRatio: number;
118
- colorSpace: "unknown" | "grayscale" | "ycbcr" | "ycck";
119
- iccProfile: string | null;
120
- exifDateTimeOriginal: string | null;
121
- } | {
122
- width: number;
123
- height: number;
124
- format: "gif";
125
- frames: number;
126
- animated: boolean;
127
- hasAlpha: null;
128
- orientation: null;
129
- aspectRatio: number;
130
- colorSpace: "indexed";
131
- iccProfile: null;
132
- exifDateTimeOriginal: null;
133
- } | {
134
- width: number;
135
- height: number;
136
- format: "bmp";
137
- frames: number;
138
- animated: false;
139
- hasAlpha: null;
140
- orientation: number;
141
- aspectRatio: number;
142
- colorSpace: "rgb" | "indexed";
143
- iccProfile: null;
144
- exifDateTimeOriginal: null;
145
- } | {
146
- width: number;
147
- height: number;
148
- format: "webp";
149
- frames: number;
150
- animated: boolean;
151
- hasAlpha: boolean;
152
- orientation: null;
153
- aspectRatio: number;
154
- colorSpace: "unknown" | "rgb" | "rgba";
155
- iccProfile: string | null;
156
- exifDateTimeOriginal: null;
157
- } | {
158
- width: number;
159
- height: number;
160
- format: "avif";
161
- frames: number;
162
- animated: boolean;
163
- hasAlpha: true | null;
164
- orientation: null;
165
- aspectRatio: number;
166
- colorSpace: "unknown" | "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed" | "cmyk" | "ycbcr" | "ycck";
101
+ colorSpace: "unknown" | "cmyk" | "srgb" | "display_p3" | "adobe_rgb" | "prophoto_rgb" | "rec2020" | "rec709" | "lab" | "xyz" | "gray";
167
102
  iccProfile: string | null;
168
103
  exifDateTimeOriginal: string | null;
169
104
  }>;
@@ -171,7 +106,7 @@ declare class Fs extends FsFetch {
171
106
  * Extract image metadata using streaming (only reads ~4KB)
172
107
  * Much more memory efficient for large images
173
108
  */
174
- getImageSpecsStream(filePath: string): Promise<ImageSpecs>;
109
+ getImageSpecsStream(filePath: string, size?: number): Promise<ImageSpecs>;
175
110
  getImageSpecsStreamTmp(filePath: string): Promise<ImageSpecs>;
176
111
  /**
177
112
  *
@@ -179,7 +114,7 @@ declare class Fs extends FsFetch {
179
114
  *
180
115
  * work in progress, for internal package maintainer use only
181
116
  */
182
- imageTransform<const F extends "webp" | "avif" | "jpg" | "png" | "tif" | "tiff" | "jp2" | "jpeg">({ format, target, quality, tint, resize }: {
117
+ imageTransform<const F extends "webp" | "avif" | "jpg" | "gif" | "svg" | "png" | "tif" | "tiff" | "jp2" | "jpeg">({ format, target, quality, tint, resize }: {
183
118
  format: F;
184
119
  target: Buffer<ArrayBuffer>;
185
120
  quality?: number;
package/dist/fs/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  Fs
3
- } from "../chunk-HPM4IQQR.js";
4
- import "../chunk-NOOFSAF4.js";
5
- import "../chunk-PTXZQBLV.js";
6
- import "../chunk-KOKPGEU4.js";
7
- import "../chunk-2IRCHZCF.js";
8
- import "../chunk-R63XI7FS.js";
9
- import "../chunk-NHYRCNMW.js";
10
- import "../chunk-LQP2FYMK.js";
11
- import "../chunk-2XQ44ZWR.js";
3
+ } from "../chunk-LYQ3KQSL.js";
4
+ import "../chunk-F57L5MBU.js";
5
+ import "../chunk-N33N54TN.js";
6
+ import "../chunk-HQ2FHXLJ.js";
7
+ import "../chunk-CJBGTYSB.js";
8
+ import "../chunk-4DZLRFGH.js";
9
+ import "../chunk-6UANVLO3.js";
10
+ import "../chunk-DSH3OL5Q.js";
11
+ import "../chunk-3MPIZJSN.js";
12
12
  import "../chunk-KNLXF622.js";
13
13
  import "../chunk-UW52DMHT.js";
14
14
  import "../chunk-6HHKXBIM.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  FsAtomic
3
- } from "../chunk-NHYRCNMW.js";
4
- import "../chunk-LQP2FYMK.js";
5
- import "../chunk-2XQ44ZWR.js";
3
+ } from "../chunk-6UANVLO3.js";
4
+ import "../chunk-DSH3OL5Q.js";
5
+ import "../chunk-3MPIZJSN.js";
6
6
  import "../chunk-KNLXF622.js";
7
7
  import "../chunk-UW52DMHT.js";
8
8
  import "../chunk-6HHKXBIM.js";
@@ -23,7 +23,7 @@ declare class FsBase extends ImageService {
23
23
  private get env();
24
24
  parseDotEnv(): expand.DotenvParseOutput | undefined;
25
25
  relative(from: string, to: string): string;
26
- isHomeTargeted(path: string): true | undefined;
26
+ isHomeTargeted(path: string): boolean;
27
27
  isRootPathTargeted<const T extends string>(path: T): boolean;
28
28
  pathHandler<const T extends string>(path: T): string;
29
29
  isUint8Array(v: unknown): v is Uint8Array<ArrayBufferLike>;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FsBase
3
- } from "../chunk-LQP2FYMK.js";
4
- import "../chunk-2XQ44ZWR.js";
3
+ } from "../chunk-DSH3OL5Q.js";
4
+ import "../chunk-3MPIZJSN.js";
5
5
  import "../chunk-KNLXF622.js";
6
6
  import "../chunk-UW52DMHT.js";
7
7
  import "../chunk-6HHKXBIM.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  FsCore
3
- } from "../chunk-KOKPGEU4.js";
4
- import "../chunk-2IRCHZCF.js";
5
- import "../chunk-R63XI7FS.js";
6
- import "../chunk-NHYRCNMW.js";
7
- import "../chunk-LQP2FYMK.js";
8
- import "../chunk-2XQ44ZWR.js";
3
+ } from "../chunk-HQ2FHXLJ.js";
4
+ import "../chunk-CJBGTYSB.js";
5
+ import "../chunk-4DZLRFGH.js";
6
+ import "../chunk-6UANVLO3.js";
7
+ import "../chunk-DSH3OL5Q.js";
8
+ import "../chunk-3MPIZJSN.js";
9
9
  import "../chunk-KNLXF622.js";
10
10
  import "../chunk-UW52DMHT.js";
11
11
  import "../chunk-6HHKXBIM.js";
@@ -21,11 +21,11 @@ declare class FsFetch extends FsTmp {
21
21
  constructor(cwd: string);
22
22
  assetToBuffer<const T extends string>(path: T): Promise<{
23
23
  readonly b64encodedData: `data:audio/aac;base64, ${string}` | `data:application/x-abiword;base64, ${string}` | `data:image/aces;base64, ${string}` | `data:image/apng;base64, ${string}` | `data:application/x-freearc;base64, ${string}` | `data:image/avci;base64, ${string}` | `data:image/avif;base64, ${string}` | `data:video/x-msvideo;base64, ${string}` | `data:application/vnd.amazon.ebook;base64, ${string}` | `data:application/octet-stream;base64, ${string}` | `data:multipart/voice-message;base64, ${string}` | `data:image/bmp;base64, ${string}` | `data:application/x-bzip;base64, ${string}` | `data:application/x-bzip2;base64, ${string}` | `data:application/x-cdf;base64, ${string}` | `data:application/node;base64, ${string}` | `data:text/javascript;base64, ${string}` | `data:application/x-csh;base64, ${string}` | `data:text/css;base64, ${string}` | `data:text/csv;base64, ${string}` | `data:image/x-icon;base64, ${string}` | `data:application/msword;base64, ${string}` | `data:application/vnd.openxmlformats-officedocument.wordprocessingml.document;base64, ${string}` | `data:image/dpx;base64, ${string}` | `data:image/emf;base64, ${string}` | `data:application/vnd.ms-fontobject;base64, ${string}` | `data:application/epub+zip;base64, ${string}` | `data:image/gif;base64, ${string}` | `data:model/gltf-binary;base64, ${string}` | `data:model/gltf+json;base64, ${string}` | `data:application/gzip;base64, ${string}` | `data:application/x-gzip;base64, ${string}` | `data:haptics/hjif;base64, ${string}` | `data:haptics/hmpg;base64, ${string}` | `data:text/html;base64, ${string}` | `data:image/vnd.microsoft.icon;base64, ${string}` | `data:text/calendar;base64, ${string}` | `data:haptics/ivs;base64, ${string}` | `data:application/java-archive;base64, ${string}` | `data:image/jpeg;base64, ${string}` | `data:application/json;base64, ${string}` | `data:application/ld+json;base64, ${string}` | `data:image/ktx;base64, ${string}` | `data:image/ktx2;base64, ${string}` | `data:application/vnd.apple.mpegurl;base64, ${string}` | `data:audio/mp4;base64, ${string}` | `data:video/mp4;base64, ${string}` | `data:text/markdown;base64, ${string}` | `data:application/x-mdx;base64, ${string}` | `data:audio/midi;base64, ${string}` | `data:audio/x-midi;base64, ${string}` | `data:audio/mpeg;base64, ${string}` | `data:application/dash+xml;base64, ${string}` | `data:video/mpeg;base64, ${string}` | `data:application/vnd.apple.installer+xml;base64, ${string}` | `data:application/xml;base64, ${string}` | `data:application/x-ndjson;base64, ${string}` | `data:model/obj;base64, ${string}` | `data:text/plain;base64, ${string}` | `data:application/vnd.oasis.opendocument.presentation;base64, ${string}` | `data:application/vnd.oasis.opendocument.spreadsheet;base64, ${string}` | `data:application/vnd.oasis.opendocument.text;base64, ${string}` | `data:audio/ogg;base64, ${string}` | `data:video/ogg;base64, ${string}` | `data:application/ogg;base64, ${string}` | `data:font/otf;base64, ${string}` | `data:image/png;base64, ${string}` | `data:application/pdf;base64, ${string}` | `data:application/x-httpd-php;base64, ${string}` | `data:application/vnd.apple.pkpass;base64, ${string}` | `data:application/vnd.ms-powerpoint;base64, ${string}` | `data:application/vnd.openxmlformats-officedocument.presentationml.presentation;base64, ${string}` | `data:text/x-python;base64, ${string}` | `data:application/x-python-code;base64, ${string}` | `data:application/vnd.rar;base64, ${string}` | `data:text/rust;base64, ${string}` | `data:application/rtf;base64, ${string}` | `data:application/x-sh;base64, ${string}` | `data:application/sql;base64, ${string}` | `data:text/event-stream;base64, ${string}` | `data:image/svg+xml;base64, ${string}` | `data:application/x-tar;base64, ${string}` | `data:image/tiff;base64, ${string}` | `data:application/toml;base64, ${string}` | `data:text/typescript;base64, ${string}` | `data:video/mp2t;base64, ${string}` | `data:video/vnd.dlna.mpeg-tts;base64, ${string}` | `data:application/font-sfnt;base64, ${string}` | `data:font/ttf;base64, ${string}` | `data:model/vnd.usdz+zip;base64, ${string}` | `data:application/vnd.visio;base64, ${string}` | `data:text/vtt;base64, ${string}` | `data:application/wasm;base64, ${string}` | `data:audio/wav;base64, ${string}` | `data:audio/webm;base64, ${string}` | `data:video/webm;base64, ${string}` | `data:application/manifest+json;base64, ${string}` | `data:image/webp;base64, ${string}` | `data:font/woff;base64, ${string}` | `data:font/woff2;base64, ${string}` | `data:application/xhtml+xml;base64, ${string}` | `data:application/vnd.ms-excel;base64, ${string}` | `data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64, ${string}` | `data:text/xml;base64, ${string}` | `data:application/vnd.mozilla.xul+xml;base64, ${string}` | `data:application/yaml;base64, ${string}` | `data:application/zip;base64, ${string}` | `data:application/x-zip-compressed;base64, ${string}` | `data:video/3gpp;base64, ${string}` | `data:video/3gpp2;base64, ${string}` | `data:application/x-7z-compressed;base64, ${string}`;
24
- readonly extension: "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "mpd" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonld" | "webmanifest" | "doc" | "node" | "js" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "toml" | "azw" | "mpkg" | "m3u8" | "pkpass" | "xul" | "xls" | "eot" | "ppt" | "odp" | "ods" | "odt" | "pptx" | "xlsx" | "docx" | "rar" | "vsd" | "wasm" | "7z" | "abw" | "bz" | "bz2" | "cda" | "csh" | "arc" | "php" | "mdx" | "ndjson" | "pyc" | "sh" | "tar" | "zip" | "xhtml" | "xml" | "mtlx" | "yml" | "yaml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "oga" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "ivt" | "aces" | "apng" | "avci" | "dpx" | "emf" | "jpg" | "jpe" | "jif" | "jfif" | "pjp" | "pjpeg" | "ktx" | "ktx2" | "svg" | "tiff" | "tif" | "ico" | "cur" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "html" | "htm" | "mjs" | "cjs" | "md" | "txt" | "rs" | "ts" | "vtt" | "py" | "3gp" | "3g2" | "mp4" | "m4v" | "mpeg" | "ogv" | "webm" | "avi";
24
+ readonly extension: "apng" | "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "mpd" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonld" | "webmanifest" | "doc" | "node" | "js" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "toml" | "azw" | "mpkg" | "m3u8" | "pkpass" | "xul" | "xls" | "eot" | "ppt" | "odp" | "ods" | "odt" | "pptx" | "xlsx" | "docx" | "rar" | "vsd" | "wasm" | "7z" | "abw" | "bz" | "bz2" | "cda" | "csh" | "arc" | "php" | "mdx" | "ndjson" | "pyc" | "sh" | "tar" | "zip" | "xhtml" | "xml" | "mtlx" | "yml" | "yaml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "oga" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "ivt" | "aces" | "avci" | "dpx" | "emf" | "jpg" | "jpe" | "jif" | "jfif" | "pjp" | "pjpeg" | "ktx" | "ktx2" | "svg" | "tiff" | "tif" | "ico" | "cur" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "html" | "htm" | "mjs" | "cjs" | "md" | "txt" | "rs" | "ts" | "vtt" | "py" | "3gp" | "3g2" | "mp4" | "m4v" | "mpeg" | "ogv" | "webm" | "avi";
25
25
  }>;
26
26
  assetToBufferView<const T extends string>(path: T): Promise<{
27
27
  readonly b64encodedData: string;
28
- readonly extension: "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "mpd" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonld" | "webmanifest" | "doc" | "node" | "js" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "toml" | "azw" | "mpkg" | "m3u8" | "pkpass" | "xul" | "xls" | "eot" | "ppt" | "odp" | "ods" | "odt" | "pptx" | "xlsx" | "docx" | "rar" | "vsd" | "wasm" | "7z" | "abw" | "bz" | "bz2" | "cda" | "csh" | "arc" | "php" | "mdx" | "ndjson" | "pyc" | "sh" | "tar" | "zip" | "xhtml" | "xml" | "mtlx" | "yml" | "yaml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "oga" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "ivt" | "aces" | "apng" | "avci" | "dpx" | "emf" | "jpg" | "jpe" | "jif" | "jfif" | "pjp" | "pjpeg" | "ktx" | "ktx2" | "svg" | "tiff" | "tif" | "ico" | "cur" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "html" | "htm" | "mjs" | "cjs" | "md" | "txt" | "rs" | "ts" | "vtt" | "py" | "3gp" | "3g2" | "mp4" | "m4v" | "mpeg" | "ogv" | "webm" | "avi" | undefined;
28
+ readonly extension: "apng" | "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "mpd" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonld" | "webmanifest" | "doc" | "node" | "js" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "toml" | "azw" | "mpkg" | "m3u8" | "pkpass" | "xul" | "xls" | "eot" | "ppt" | "odp" | "ods" | "odt" | "pptx" | "xlsx" | "docx" | "rar" | "vsd" | "wasm" | "7z" | "abw" | "bz" | "bz2" | "cda" | "csh" | "arc" | "php" | "mdx" | "ndjson" | "pyc" | "sh" | "tar" | "zip" | "xhtml" | "xml" | "mtlx" | "yml" | "yaml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "oga" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "ivt" | "aces" | "avci" | "dpx" | "emf" | "jpg" | "jpe" | "jif" | "jfif" | "pjp" | "pjpeg" | "ktx" | "ktx2" | "svg" | "tiff" | "tif" | "ico" | "cur" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "html" | "htm" | "mjs" | "cjs" | "md" | "txt" | "rs" | "ts" | "vtt" | "py" | "3gp" | "3g2" | "mp4" | "m4v" | "mpeg" | "ogv" | "webm" | "avi" | undefined;
29
29
  }>;
30
30
  /**
31
31
  *
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  FsFetch
3
- } from "../chunk-NOOFSAF4.js";
4
- import "../chunk-PTXZQBLV.js";
5
- import "../chunk-KOKPGEU4.js";
6
- import "../chunk-2IRCHZCF.js";
7
- import "../chunk-R63XI7FS.js";
8
- import "../chunk-NHYRCNMW.js";
9
- import "../chunk-LQP2FYMK.js";
10
- import "../chunk-2XQ44ZWR.js";
3
+ } from "../chunk-F57L5MBU.js";
4
+ import "../chunk-N33N54TN.js";
5
+ import "../chunk-HQ2FHXLJ.js";
6
+ import "../chunk-CJBGTYSB.js";
7
+ import "../chunk-4DZLRFGH.js";
8
+ import "../chunk-6UANVLO3.js";
9
+ import "../chunk-DSH3OL5Q.js";
10
+ import "../chunk-3MPIZJSN.js";
11
11
  import "../chunk-KNLXF622.js";
12
12
  import "../chunk-UW52DMHT.js";
13
13
  import "../chunk-6HHKXBIM.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  FsSize
3
- } from "../chunk-2IRCHZCF.js";
4
- import "../chunk-R63XI7FS.js";
5
- import "../chunk-NHYRCNMW.js";
6
- import "../chunk-LQP2FYMK.js";
7
- import "../chunk-2XQ44ZWR.js";
3
+ } from "../chunk-CJBGTYSB.js";
4
+ import "../chunk-4DZLRFGH.js";
5
+ import "../chunk-6UANVLO3.js";
6
+ import "../chunk-DSH3OL5Q.js";
7
+ import "../chunk-3MPIZJSN.js";
8
8
  import "../chunk-KNLXF622.js";
9
9
  import "../chunk-UW52DMHT.js";
10
10
  import "../chunk-6HHKXBIM.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  FsTmp
3
- } from "../chunk-PTXZQBLV.js";
4
- import "../chunk-KOKPGEU4.js";
5
- import "../chunk-2IRCHZCF.js";
6
- import "../chunk-R63XI7FS.js";
7
- import "../chunk-NHYRCNMW.js";
8
- import "../chunk-LQP2FYMK.js";
9
- import "../chunk-2XQ44ZWR.js";
3
+ } from "../chunk-N33N54TN.js";
4
+ import "../chunk-HQ2FHXLJ.js";
5
+ import "../chunk-CJBGTYSB.js";
6
+ import "../chunk-4DZLRFGH.js";
7
+ import "../chunk-6UANVLO3.js";
8
+ import "../chunk-DSH3OL5Q.js";
9
+ import "../chunk-3MPIZJSN.js";
10
10
  import "../chunk-KNLXF622.js";
11
11
  import "../chunk-UW52DMHT.js";
12
12
  import "../chunk-6HHKXBIM.js";