@d0paminedriven/fs 9.0.0 → 10.1.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.
Files changed (45) hide show
  1. package/dist/{chunk-SVEJJM2H.js → chunk-4D2YBCI6.js} +32 -34
  2. package/dist/{chunk-6R36YN3W.js → chunk-5CACVZVF.js} +2 -2
  3. package/dist/{chunk-Q6QZ5XEP.js → chunk-5H6GE5AO.js} +1 -1
  4. package/dist/{chunk-ZQRB46YA.js → chunk-DNR5ZI2T.js} +3 -3
  5. package/dist/{chunk-O2L4VG4G.js → chunk-JZ6JNZZ6.js} +8 -8
  6. package/dist/{chunk-PHTZ7NRL.js → chunk-L2QMQOEJ.js} +23 -14
  7. package/dist/{chunk-UW52DMHT.js → chunk-NJHN5OE3.js} +2 -2
  8. package/dist/{chunk-CTSJFQMC.js → chunk-OHKRQJZH.js} +24 -11
  9. package/dist/{chunk-6HHKXBIM.js → chunk-OT5JEQKW.js} +2 -2
  10. package/dist/{chunk-QKZIGBLD.js → chunk-PATMSIQK.js} +3 -3
  11. package/dist/{chunk-Z2WZLZC4.js → chunk-PB5A7ZFD.js} +6 -2
  12. package/dist/{chunk-I4ITMOIV.js → chunk-VDKUXJE7.js} +2 -2
  13. package/dist/{chunk-TUY7Y4DL.js → chunk-Y5QWE4EG.js} +6 -6
  14. package/dist/{chunk-3RC3WC7A.js → chunk-YRCJWFZD.js} +2 -2
  15. package/dist/fs/index.d.ts +3 -132
  16. package/dist/fs/index.js +14 -14
  17. package/dist/fs-atomic/index.d.ts +2 -1
  18. package/dist/fs-atomic/index.js +8 -8
  19. package/dist/fs-base/index.d.ts +2 -1
  20. package/dist/fs-base/index.js +7 -7
  21. package/dist/fs-core/index.d.ts +6 -4
  22. package/dist/fs-core/index.js +11 -11
  23. package/dist/fs-fetch/index.d.ts +5 -4
  24. package/dist/fs-fetch/index.js +13 -13
  25. package/dist/fs-size/index.d.ts +2 -1
  26. package/dist/fs-size/index.js +10 -10
  27. package/dist/fs-tmp/index.d.ts +5 -4
  28. package/dist/fs-tmp/index.js +12 -12
  29. package/dist/image/index.d.ts +7 -266
  30. package/dist/image/index.js +6 -6
  31. package/dist/image/workup.d.ts +2 -1
  32. package/dist/image/workup.js +5 -5
  33. package/dist/index.d.ts +3 -2
  34. package/dist/index.js +14 -14
  35. package/dist/ld/index.d.ts +4 -1
  36. package/dist/ld/index.js +1 -1
  37. package/dist/mime/index.d.ts +47 -28
  38. package/dist/mime/index.js +4 -4
  39. package/dist/types/index.d.ts +13 -16
  40. package/dist/types/index.js +1 -1
  41. package/dist/url/index.d.ts +2 -1
  42. package/dist/url/index.js +3 -3
  43. package/dist/utils/index.d.ts +2 -1
  44. package/dist/utils/index.js +2 -2
  45. package/package.json +3 -2
@@ -1,9 +1,10 @@
1
1
  import { XOR } from '../types/index.js';
2
2
  import { UrlService } from '../url/index.js';
3
3
  import 'stream';
4
- import 'buffer';
4
+ import 'fs';
5
5
  import '../utils/index.js';
6
6
  import '../ld/index.js';
7
+ import '@d0paminedriven/metadata';
7
8
 
8
9
  declare const extMimeMap: {
9
10
  readonly aac: readonly ["audio/aac"];
@@ -38,6 +39,7 @@ declare const extMimeMap: {
38
39
  readonly glb: readonly ["model/gltf-binary"];
39
40
  readonly gltf: readonly ["model/gltf+json"];
40
41
  readonly gz: readonly ["application/gzip", "application/x-gzip"];
42
+ readonly heic: readonly ["image/heic"];
41
43
  readonly hjif: readonly ["haptics/hjif"];
42
44
  readonly hmpg: readonly ["haptics/hmpg"];
43
45
  readonly htm: readonly ["text/html"];
@@ -56,10 +58,13 @@ declare const extMimeMap: {
56
58
  readonly js: readonly ["text/javascript", "application/node"];
57
59
  readonly json: readonly ["application/json"];
58
60
  readonly jsonld: readonly ["application/ld+json"];
61
+ readonly jsonc: readonly ["application/json", "application/jsonc"];
62
+ readonly json5: readonly ["application/json", "application/json5"];
59
63
  readonly ktx: readonly ["image/ktx"];
60
64
  readonly ktx2: readonly ["image/ktx2"];
61
65
  readonly m3u8: readonly ["application/vnd.apple.mpegurl"];
62
66
  readonly m4a: readonly ["audio/mp4"];
67
+ readonly m4s: readonly ["video/mp4"];
63
68
  readonly m4v: readonly ["video/mp4"];
64
69
  readonly md: readonly ["text/markdown"];
65
70
  readonly mdx: readonly ["application/x-mdx"];
@@ -140,7 +145,9 @@ declare const mimeToExt: {
140
145
  readonly "application/font-sfnt": readonly ["ttf"];
141
146
  readonly "application/gzip": readonly ["gz"];
142
147
  readonly "application/java-archive": readonly ["jar"];
143
- readonly "application/json": readonly ["json"];
148
+ readonly "application/json": readonly ["json", "jsonc"];
149
+ readonly "application/jsonc": readonly ["jsonc"];
150
+ readonly "application/json5": readonly ["json5"];
144
151
  readonly "application/ld+json": readonly ["jsonld"];
145
152
  readonly "application/manifest+json": readonly ["webmanifest"];
146
153
  readonly "application/msword": readonly ["doc"];
@@ -150,11 +157,13 @@ declare const mimeToExt: {
150
157
  readonly "application/pdf": readonly ["pdf"];
151
158
  readonly "application/rtf": readonly ["rtf"];
152
159
  readonly "application/sql": readonly ["sql"];
160
+ readonly "application/text": readonly ["md"];
153
161
  readonly "application/toml": readonly ["toml"];
154
162
  readonly "application/vnd.amazon.ebook": readonly ["azw"];
155
163
  readonly "application/vnd.apple.installer+xml": readonly ["mpkg"];
156
164
  readonly "application/vnd.apple.mpegurl": readonly ["m3u8"];
157
165
  readonly "application/vnd.apple.pkpass": readonly ["pkpass"];
166
+ readonly "application/vnd.json5": readonly ["json5"];
158
167
  readonly "application/vnd.mozilla.xul+xml": readonly ["xul"];
159
168
  readonly "application/vnd.ms-excel": readonly ["xls"];
160
169
  readonly "application/vnd.ms-fontobject": readonly ["eot"];
@@ -184,7 +193,7 @@ declare const mimeToExt: {
184
193
  readonly "application/x-tar": readonly ["tar"];
185
194
  readonly "application/x-zip-compressed": readonly ["zip"];
186
195
  readonly "application/xhtml+xml": readonly ["xhtml"];
187
- readonly "application/xml": readonly ["xml", "mtlx"];
196
+ readonly "application/xml": readonly ["xml"];
188
197
  readonly "application/yaml": readonly ["yml", "yaml"];
189
198
  readonly "application/zip": readonly ["zip"];
190
199
  readonly "audio/aac": readonly ["aac"];
@@ -210,15 +219,16 @@ declare const mimeToExt: {
210
219
  readonly "image/dpx": readonly ["dpx"];
211
220
  readonly "image/emf": readonly ["emf"];
212
221
  readonly "image/gif": readonly ["gif"];
213
- readonly "image/jpeg": readonly ["jpg", "jpeg", "jpe", "jif", "jfif", "pjp", "pjpeg"];
222
+ readonly "image/heic": readonly ["heic"];
223
+ readonly "image/jpeg": readonly ["jpg", "jpeg"];
214
224
  readonly "image/ktx": readonly ["ktx"];
215
225
  readonly "image/ktx2": readonly ["ktx2"];
216
226
  readonly "image/png": readonly ["png"];
217
227
  readonly "image/svg+xml": readonly ["svg"];
218
- readonly "image/tiff": readonly ["tiff", "tif"];
228
+ readonly "image/tiff": readonly ["tiff"];
219
229
  readonly "image/vnd.microsoft.icon": readonly ["ico"];
220
230
  readonly "image/webp": readonly ["webp"];
221
- readonly "image/x-icon": readonly ["cur", "ico"];
231
+ readonly "image/x-icon": readonly ["ico", "cur"];
222
232
  readonly "model/gltf-binary": readonly ["glb"];
223
233
  readonly "model/gltf+json": readonly ["gltf"];
224
234
  readonly "model/obj": readonly ["obj"];
@@ -227,32 +237,32 @@ declare const mimeToExt: {
227
237
  readonly "text/calendar": readonly ["ics"];
228
238
  readonly "text/css": readonly ["css"];
229
239
  readonly "text/csv": readonly ["csv"];
230
- readonly "text/event-stream": readonly ["sse"];
240
+ readonly "text/event-stream": readonly ["sse", "ts", "rs", "py", "txt"];
231
241
  readonly "text/html": readonly ["html", "htm"];
232
- readonly "text/javascript": readonly ["js", "mjs", "cjs"];
242
+ readonly "text/javascript": readonly ["cjs", "js", "mjs"];
233
243
  readonly "text/markdown": readonly ["md"];
234
244
  readonly "text/plain": readonly ["txt"];
235
245
  readonly "text/rust": readonly ["rs"];
236
246
  readonly "text/typescript": readonly ["ts"];
237
247
  readonly "text/vtt": readonly ["vtt"];
238
- readonly "text/xml": readonly ["xml"];
239
248
  readonly "text/x-c": readonly ["c"];
240
- readonly "text/x-csharp": readonly ["cs"];
241
249
  readonly "text/x-c++": readonly ["cpp"];
250
+ readonly "text/x-csharp": readonly ["cs"];
242
251
  readonly "text/x-java": readonly ["java"];
243
252
  readonly "text/x-php": readonly ["php"];
244
253
  readonly "text/x-python": readonly ["py"];
245
254
  readonly "text/x-ruby": readonly ["rb"];
246
255
  readonly "text/x-script.python": readonly ["py"];
247
256
  readonly "text/x-tex": readonly ["tex"];
257
+ readonly "text/xml": readonly ["xml"];
248
258
  readonly "video/3gpp": readonly ["3gp"];
249
259
  readonly "video/3gpp2": readonly ["3g2"];
250
260
  readonly "video/mp2t": readonly ["ts"];
251
- readonly "video/mp4": readonly ["mp4", "m4v"];
261
+ readonly "video/mp4": readonly ["mp4", "m4v", "m4s"];
252
262
  readonly "video/mpeg": readonly ["mpeg"];
253
263
  readonly "video/ogg": readonly ["ogv"];
254
264
  readonly "video/vnd.dlna.mpeg-tts": readonly ["ts"];
255
- readonly "video/webm": readonly ["webm"];
265
+ readonly "video/webm": readonly ["weba"];
256
266
  readonly "video/x-msvideo": readonly ["avi"];
257
267
  };
258
268
  type FileExtension = keyof typeof extMimeMap;
@@ -298,6 +308,7 @@ declare class MimeService extends UrlService {
298
308
  readonly glb: readonly ["model/gltf-binary"];
299
309
  readonly gltf: readonly ["model/gltf+json"];
300
310
  readonly gz: readonly ["application/gzip", "application/x-gzip"];
311
+ readonly heic: readonly ["image/heic"];
301
312
  readonly hjif: readonly ["haptics/hjif"];
302
313
  readonly hmpg: readonly ["haptics/hmpg"];
303
314
  readonly htm: readonly ["text/html"];
@@ -316,10 +327,13 @@ declare class MimeService extends UrlService {
316
327
  readonly js: readonly ["text/javascript", "application/node"];
317
328
  readonly json: readonly ["application/json"];
318
329
  readonly jsonld: readonly ["application/ld+json"];
330
+ readonly jsonc: readonly ["application/json", "application/jsonc"];
331
+ readonly json5: readonly ["application/json", "application/json5"];
319
332
  readonly ktx: readonly ["image/ktx"];
320
333
  readonly ktx2: readonly ["image/ktx2"];
321
334
  readonly m3u8: readonly ["application/vnd.apple.mpegurl"];
322
335
  readonly m4a: readonly ["audio/mp4"];
336
+ readonly m4s: readonly ["video/mp4"];
323
337
  readonly m4v: readonly ["video/mp4"];
324
338
  readonly md: readonly ["text/markdown"];
325
339
  readonly mdx: readonly ["application/x-mdx"];
@@ -400,7 +414,9 @@ declare class MimeService extends UrlService {
400
414
  readonly "application/font-sfnt": readonly ["ttf"];
401
415
  readonly "application/gzip": readonly ["gz"];
402
416
  readonly "application/java-archive": readonly ["jar"];
403
- readonly "application/json": readonly ["json"];
417
+ readonly "application/json": readonly ["json", "jsonc"];
418
+ readonly "application/jsonc": readonly ["jsonc"];
419
+ readonly "application/json5": readonly ["json5"];
404
420
  readonly "application/ld+json": readonly ["jsonld"];
405
421
  readonly "application/manifest+json": readonly ["webmanifest"];
406
422
  readonly "application/msword": readonly ["doc"];
@@ -410,11 +426,13 @@ declare class MimeService extends UrlService {
410
426
  readonly "application/pdf": readonly ["pdf"];
411
427
  readonly "application/rtf": readonly ["rtf"];
412
428
  readonly "application/sql": readonly ["sql"];
429
+ readonly "application/text": readonly ["md"];
413
430
  readonly "application/toml": readonly ["toml"];
414
431
  readonly "application/vnd.amazon.ebook": readonly ["azw"];
415
432
  readonly "application/vnd.apple.installer+xml": readonly ["mpkg"];
416
433
  readonly "application/vnd.apple.mpegurl": readonly ["m3u8"];
417
434
  readonly "application/vnd.apple.pkpass": readonly ["pkpass"];
435
+ readonly "application/vnd.json5": readonly ["json5"];
418
436
  readonly "application/vnd.mozilla.xul+xml": readonly ["xul"];
419
437
  readonly "application/vnd.ms-excel": readonly ["xls"];
420
438
  readonly "application/vnd.ms-fontobject": readonly ["eot"];
@@ -444,7 +462,7 @@ declare class MimeService extends UrlService {
444
462
  readonly "application/x-tar": readonly ["tar"];
445
463
  readonly "application/x-zip-compressed": readonly ["zip"];
446
464
  readonly "application/xhtml+xml": readonly ["xhtml"];
447
- readonly "application/xml": readonly ["xml", "mtlx"];
465
+ readonly "application/xml": readonly ["xml"];
448
466
  readonly "application/yaml": readonly ["yml", "yaml"];
449
467
  readonly "application/zip": readonly ["zip"];
450
468
  readonly "audio/aac": readonly ["aac"];
@@ -470,15 +488,16 @@ declare class MimeService extends UrlService {
470
488
  readonly "image/dpx": readonly ["dpx"];
471
489
  readonly "image/emf": readonly ["emf"];
472
490
  readonly "image/gif": readonly ["gif"];
473
- readonly "image/jpeg": readonly ["jpg", "jpeg", "jpe", "jif", "jfif", "pjp", "pjpeg"];
491
+ readonly "image/heic": readonly ["heic"];
492
+ readonly "image/jpeg": readonly ["jpg", "jpeg"];
474
493
  readonly "image/ktx": readonly ["ktx"];
475
494
  readonly "image/ktx2": readonly ["ktx2"];
476
495
  readonly "image/png": readonly ["png"];
477
496
  readonly "image/svg+xml": readonly ["svg"];
478
- readonly "image/tiff": readonly ["tiff", "tif"];
497
+ readonly "image/tiff": readonly ["tiff"];
479
498
  readonly "image/vnd.microsoft.icon": readonly ["ico"];
480
499
  readonly "image/webp": readonly ["webp"];
481
- readonly "image/x-icon": readonly ["cur", "ico"];
500
+ readonly "image/x-icon": readonly ["ico", "cur"];
482
501
  readonly "model/gltf-binary": readonly ["glb"];
483
502
  readonly "model/gltf+json": readonly ["gltf"];
484
503
  readonly "model/obj": readonly ["obj"];
@@ -487,47 +506,47 @@ declare class MimeService extends UrlService {
487
506
  readonly "text/calendar": readonly ["ics"];
488
507
  readonly "text/css": readonly ["css"];
489
508
  readonly "text/csv": readonly ["csv"];
490
- readonly "text/event-stream": readonly ["sse"];
509
+ readonly "text/event-stream": readonly ["sse", "ts", "rs", "py", "txt"];
491
510
  readonly "text/html": readonly ["html", "htm"];
492
- readonly "text/javascript": readonly ["js", "mjs", "cjs"];
511
+ readonly "text/javascript": readonly ["cjs", "js", "mjs"];
493
512
  readonly "text/markdown": readonly ["md"];
494
513
  readonly "text/plain": readonly ["txt"];
495
514
  readonly "text/rust": readonly ["rs"];
496
515
  readonly "text/typescript": readonly ["ts"];
497
516
  readonly "text/vtt": readonly ["vtt"];
498
- readonly "text/xml": readonly ["xml"];
499
517
  readonly "text/x-c": readonly ["c"];
500
- readonly "text/x-csharp": readonly ["cs"];
501
518
  readonly "text/x-c++": readonly ["cpp"];
519
+ readonly "text/x-csharp": readonly ["cs"];
502
520
  readonly "text/x-java": readonly ["java"];
503
521
  readonly "text/x-php": readonly ["php"];
504
522
  readonly "text/x-python": readonly ["py"];
505
523
  readonly "text/x-ruby": readonly ["rb"];
506
524
  readonly "text/x-script.python": readonly ["py"];
507
525
  readonly "text/x-tex": readonly ["tex"];
526
+ readonly "text/xml": readonly ["xml"];
508
527
  readonly "video/3gpp": readonly ["3gp"];
509
528
  readonly "video/3gpp2": readonly ["3g2"];
510
529
  readonly "video/mp2t": readonly ["ts"];
511
- readonly "video/mp4": readonly ["mp4", "m4v"];
530
+ readonly "video/mp4": readonly ["mp4", "m4v", "m4s"];
512
531
  readonly "video/mpeg": readonly ["mpeg"];
513
532
  readonly "video/ogg": readonly ["ogv"];
514
533
  readonly "video/vnd.dlna.mpeg-tts": readonly ["ts"];
515
- readonly "video/webm": readonly ["webm"];
534
+ readonly "video/webm": readonly ["weba"];
516
535
  readonly "video/x-msvideo": readonly ["avi"];
517
536
  };
518
537
  compareMimeToExt(p?: "mime" | "ext"): {
519
538
  [k: string]: number;
520
539
  };
521
- mimeToExt(mime: keyof typeof this.toExtObj): "apng" | "png" | "gif" | "bmp" | "webp" | "avif" | "svg" | "ico" | "tiff" | "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" | "yml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "aces" | "avci" | "dpx" | "emf" | "jpg" | "ktx" | "ktx2" | "cur" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "html" | "md" | "txt" | "rs" | "ts" | "vtt" | "c" | "cs" | "cpp" | "java" | "py" | "rb" | "tex" | "3gp" | "3g2" | "mp4" | "mpeg" | "ogv" | "webm" | "avi";
522
- assetType<const T extends string>(url: T): "apng" | "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "svg" | "ico" | "tiff" | "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" | "tif" | "cur" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "html" | "htm" | "mjs" | "cjs" | "md" | "txt" | "rs" | "ts" | "vtt" | "c" | "cs" | "cpp" | "java" | "py" | "rb" | "tex" | "3gp" | "3g2" | "mp4" | "m4v" | "mpeg" | "ogv" | "webm" | "avi" | "pk1" | undefined;
523
- getMimes<const E extends FileExtension>(ext: E): readonly ["audio/aac"] | readonly ["application/x-abiword"] | readonly ["image/aces"] | readonly ["image/apng"] | readonly ["application/x-freearc"] | readonly ["image/avci"] | readonly ["image/avif"] | readonly ["video/x-msvideo"] | readonly ["application/vnd.amazon.ebook"] | readonly ["application/octet-stream", "multipart/voice-message"] | readonly ["image/bmp"] | readonly ["application/x-bzip"] | readonly ["application/x-bzip2"] | readonly ["text/x-c"] | readonly ["application/x-cdf"] | readonly ["text/javascript", "application/node"] | readonly ["text/x-c++"] | readonly ["text/x-csharp"] | readonly ["application/x-csh"] | readonly ["text/css"] | readonly ["text/csv"] | readonly ["image/x-icon"] | readonly ["application/msword"] | readonly ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"] | readonly ["image/dpx"] | readonly ["image/emf"] | readonly ["application/vnd.ms-fontobject"] | readonly ["application/epub+zip"] | readonly ["image/gif"] | readonly ["model/gltf-binary"] | readonly ["model/gltf+json"] | readonly ["application/gzip", "application/x-gzip"] | readonly ["haptics/hjif"] | readonly ["haptics/hmpg"] | readonly ["text/html"] | readonly ["image/vnd.microsoft.icon", "image/x-icon"] | readonly ["text/calendar"] | readonly ["haptics/ivs"] | readonly ["application/java-archive"] | readonly ["text/x-java"] | readonly ["image/jpeg"] | readonly ["application/json"] | readonly ["application/ld+json"] | readonly ["image/ktx"] | readonly ["image/ktx2"] | readonly ["application/vnd.apple.mpegurl"] | readonly ["audio/mp4"] | readonly ["video/mp4"] | readonly ["text/markdown"] | readonly ["application/x-mdx"] | readonly ["audio/midi"] | readonly ["audio/x-midi"] | readonly ["text/javascript"] | readonly ["audio/mpeg"] | readonly ["application/dash+xml"] | readonly ["video/mpeg"] | readonly ["application/vnd.apple.installer+xml"] | readonly ["application/xml"] | readonly ["application/x-ndjson"] | readonly ["application/node", "text/javascript"] | readonly ["model/obj", "application/octet-stream", "text/plain"] | readonly ["application/vnd.oasis.opendocument.presentation"] | readonly ["application/vnd.oasis.opendocument.spreadsheet"] | readonly ["application/vnd.oasis.opendocument.text"] | readonly ["audio/ogg"] | readonly ["video/ogg"] | readonly ["application/ogg"] | readonly ["font/otf"] | readonly ["application/octet-stream"] | readonly ["image/png"] | readonly ["application/pdf"] | readonly ["text/x-php", "application/x-httpd-php"] | readonly ["application/vnd.apple.pkpass"] | readonly ["application/vnd.ms-powerpoint"] | readonly ["application/vnd.openxmlformats-officedocument.presentationml.presentation"] | readonly ["text/x-python", "text/x-script.python"] | readonly ["application/x-python-code"] | readonly ["application/vnd.rar"] | readonly ["text/x-ruby"] | readonly ["text/rust"] | readonly ["application/rtf"] | readonly ["application/x-sh"] | readonly ["application/sql"] | readonly ["text/event-stream"] | readonly ["image/svg+xml"] | readonly ["application/x-tar"] | readonly ["text/x-tex"] | readonly ["image/tiff"] | readonly ["application/toml"] | readonly ["text/typescript", "application/typescript", "video/mp2t", "video/vnd.dlna.mpeg-tts"] | readonly ["application/font-sfnt", "font/ttf"] | readonly ["text/plain"] | readonly ["model/vnd.usdz+zip"] | readonly ["application/vnd.visio"] | readonly ["text/vtt"] | readonly ["application/wasm"] | readonly ["audio/wav"] | readonly ["audio/webm"] | readonly ["video/webm"] | readonly ["application/manifest+json"] | readonly ["image/webp"] | readonly ["font/woff"] | readonly ["font/woff2"] | readonly ["application/xhtml+xml"] | readonly ["application/vnd.ms-excel"] | readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] | readonly ["application/xml", "text/xml"] | readonly ["application/vnd.mozilla.xul+xml"] | readonly ["application/yaml"] | readonly ["application/zip", "application/x-zip-compressed"] | readonly ["video/3gpp"] | readonly ["video/3gpp2"] | readonly ["application/x-7z-compressed"];
540
+ mimeToExt(mime: keyof typeof this.toExtObj): "apng" | "png" | "gif" | "bmp" | "webp" | "avif" | "svg" | "ico" | "heic" | "tiff" | "mpd" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonc" | "json5" | "jsonld" | "webmanifest" | "doc" | "node" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "md" | "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" | "yml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "aces" | "avci" | "dpx" | "emf" | "jpg" | "ktx" | "ktx2" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "ts" | "rs" | "py" | "txt" | "html" | "cjs" | "vtt" | "c" | "cpp" | "cs" | "java" | "rb" | "tex" | "3gp" | "3g2" | "mp4" | "mpeg" | "ogv" | "avi";
541
+ assetType<const T extends string>(url: T): "apng" | "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "svg" | "ico" | "heic" | "tiff" | "mpd" | "epub" | "ttf" | "gz" | "jar" | "json" | "jsonc" | "json5" | "jsonld" | "webmanifest" | "doc" | "node" | "js" | "bin" | "obj" | "ogx" | "pdf" | "rtf" | "sql" | "md" | "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" | "yml" | "yaml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "oga" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "ivt" | "aces" | "avci" | "dpx" | "emf" | "jpg" | "ktx" | "ktx2" | "cur" | "glb" | "gltf" | "usdz" | "ics" | "css" | "csv" | "sse" | "ts" | "rs" | "py" | "txt" | "html" | "htm" | "cjs" | "mjs" | "vtt" | "c" | "cpp" | "cs" | "java" | "rb" | "tex" | "3gp" | "3g2" | "mp4" | "m4v" | "m4s" | "mpeg" | "ogv" | "avi" | "jfif" | "jif" | "jpe" | "mtlx" | "pk1" | "pjp" | "pjpeg" | "tif" | "webm" | undefined;
542
+ getMimes<const E extends FileExtension>(ext: E): readonly ["audio/aac"] | readonly ["application/x-abiword"] | readonly ["image/aces"] | readonly ["image/apng"] | readonly ["application/x-freearc"] | readonly ["image/avci"] | readonly ["image/avif"] | readonly ["video/x-msvideo"] | readonly ["application/vnd.amazon.ebook"] | readonly ["application/octet-stream", "multipart/voice-message"] | readonly ["image/bmp"] | readonly ["application/x-bzip"] | readonly ["application/x-bzip2"] | readonly ["text/x-c"] | readonly ["application/x-cdf"] | readonly ["text/javascript", "application/node"] | readonly ["text/x-c++"] | readonly ["text/x-csharp"] | readonly ["application/x-csh"] | readonly ["text/css"] | readonly ["text/csv"] | readonly ["image/x-icon"] | readonly ["application/msword"] | readonly ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"] | readonly ["image/dpx"] | readonly ["image/emf"] | readonly ["application/vnd.ms-fontobject"] | readonly ["application/epub+zip"] | readonly ["image/gif"] | readonly ["model/gltf-binary"] | readonly ["model/gltf+json"] | readonly ["application/gzip", "application/x-gzip"] | readonly ["image/heic"] | readonly ["haptics/hjif"] | readonly ["haptics/hmpg"] | readonly ["text/html"] | readonly ["image/vnd.microsoft.icon", "image/x-icon"] | readonly ["text/calendar"] | readonly ["haptics/ivs"] | readonly ["application/java-archive"] | readonly ["text/x-java"] | readonly ["image/jpeg"] | readonly ["application/json"] | readonly ["application/ld+json"] | readonly ["application/json", "application/jsonc"] | readonly ["application/json", "application/json5"] | readonly ["image/ktx"] | readonly ["image/ktx2"] | readonly ["application/vnd.apple.mpegurl"] | readonly ["audio/mp4"] | readonly ["video/mp4"] | readonly ["text/markdown"] | readonly ["application/x-mdx"] | readonly ["audio/midi"] | readonly ["audio/x-midi"] | readonly ["text/javascript"] | readonly ["audio/mpeg"] | readonly ["application/dash+xml"] | readonly ["video/mpeg"] | readonly ["application/vnd.apple.installer+xml"] | readonly ["application/xml"] | readonly ["application/x-ndjson"] | readonly ["application/node", "text/javascript"] | readonly ["model/obj", "application/octet-stream", "text/plain"] | readonly ["application/vnd.oasis.opendocument.presentation"] | readonly ["application/vnd.oasis.opendocument.spreadsheet"] | readonly ["application/vnd.oasis.opendocument.text"] | readonly ["audio/ogg"] | readonly ["video/ogg"] | readonly ["application/ogg"] | readonly ["font/otf"] | readonly ["application/octet-stream"] | readonly ["image/png"] | readonly ["application/pdf"] | readonly ["text/x-php", "application/x-httpd-php"] | readonly ["application/vnd.apple.pkpass"] | readonly ["application/vnd.ms-powerpoint"] | readonly ["application/vnd.openxmlformats-officedocument.presentationml.presentation"] | readonly ["text/x-python", "text/x-script.python"] | readonly ["application/x-python-code"] | readonly ["application/vnd.rar"] | readonly ["text/x-ruby"] | readonly ["text/rust"] | readonly ["application/rtf"] | readonly ["application/x-sh"] | readonly ["application/sql"] | readonly ["text/event-stream"] | readonly ["image/svg+xml"] | readonly ["application/x-tar"] | readonly ["text/x-tex"] | readonly ["image/tiff"] | readonly ["application/toml"] | readonly ["text/typescript", "application/typescript", "video/mp2t", "video/vnd.dlna.mpeg-tts"] | readonly ["application/font-sfnt", "font/ttf"] | readonly ["text/plain"] | readonly ["model/vnd.usdz+zip"] | readonly ["application/vnd.visio"] | readonly ["text/vtt"] | readonly ["application/wasm"] | readonly ["audio/wav"] | readonly ["audio/webm"] | readonly ["video/webm"] | readonly ["application/manifest+json"] | readonly ["image/webp"] | readonly ["font/woff"] | readonly ["font/woff2"] | readonly ["application/xhtml+xml"] | readonly ["application/vnd.ms-excel"] | readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"] | readonly ["application/xml", "text/xml"] | readonly ["application/vnd.mozilla.xul+xml"] | readonly ["application/yaml"] | readonly ["application/zip", "application/x-zip-compressed"] | readonly ["video/3gpp"] | readonly ["video/3gpp2"] | readonly ["application/x-7z-compressed"];
524
543
  getMimeFor<const E extends FileExtension>(ext: E, opts?: {
525
544
  type?: MimeTopLevelType;
526
545
  }): FileExtensionToMimeType<E>;
527
- isMimeFor<const E extends FileExtension>(ext: E, mime: FileExtensionToMimeType<E>): "audio/aac" | "application/x-abiword" | "image/aces" | "image/apng" | "application/x-freearc" | "image/avci" | "image/avif" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "multipart/voice-message" | "image/bmp" | "application/x-bzip" | "application/x-bzip2" | "text/x-c" | "application/x-cdf" | "text/javascript" | "application/node" | "text/x-c++" | "text/x-csharp" | "application/x-csh" | "text/css" | "text/csv" | "image/x-icon" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/dpx" | "image/emf" | "application/vnd.ms-fontobject" | "application/epub+zip" | "image/gif" | "model/gltf-binary" | "model/gltf+json" | "application/gzip" | "application/x-gzip" | "haptics/hjif" | "haptics/hmpg" | "text/html" | "image/vnd.microsoft.icon" | "text/calendar" | "haptics/ivs" | "application/java-archive" | "text/x-java" | "image/jpeg" | "application/json" | "application/ld+json" | "image/ktx" | "image/ktx2" | "application/vnd.apple.mpegurl" | "audio/mp4" | "video/mp4" | "text/markdown" | "application/x-mdx" | "audio/midi" | "audio/x-midi" | "audio/mpeg" | "application/dash+xml" | "video/mpeg" | "application/vnd.apple.installer+xml" | "application/xml" | "application/x-ndjson" | "model/obj" | "text/plain" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "font/otf" | "image/png" | "application/pdf" | "text/x-php" | "application/x-httpd-php" | "application/vnd.apple.pkpass" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "text/x-python" | "text/x-script.python" | "application/x-python-code" | "application/vnd.rar" | "text/x-ruby" | "text/rust" | "application/rtf" | "application/x-sh" | "application/sql" | "text/event-stream" | "image/svg+xml" | "application/x-tar" | "text/x-tex" | "image/tiff" | "application/toml" | "text/typescript" | "application/typescript" | "video/mp2t" | "video/vnd.dlna.mpeg-tts" | "application/font-sfnt" | "font/ttf" | "model/vnd.usdz+zip" | "application/vnd.visio" | "text/vtt" | "application/wasm" | "audio/wav" | "audio/webm" | "video/webm" | "application/manifest+json" | "image/webp" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "text/xml" | "application/vnd.mozilla.xul+xml" | "application/yaml" | "application/zip" | "application/x-zip-compressed" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed" | undefined;
546
+ isMimeFor<const E extends FileExtension>(ext: E, mime: FileExtensionToMimeType<E>): "audio/aac" | "application/x-abiword" | "image/aces" | "image/apng" | "application/x-freearc" | "image/avci" | "image/avif" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "multipart/voice-message" | "image/bmp" | "application/x-bzip" | "application/x-bzip2" | "text/x-c" | "application/x-cdf" | "text/javascript" | "application/node" | "text/x-c++" | "text/x-csharp" | "application/x-csh" | "text/css" | "text/csv" | "image/x-icon" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/dpx" | "image/emf" | "application/vnd.ms-fontobject" | "application/epub+zip" | "image/gif" | "model/gltf-binary" | "model/gltf+json" | "application/gzip" | "application/x-gzip" | "image/heic" | "haptics/hjif" | "haptics/hmpg" | "text/html" | "image/vnd.microsoft.icon" | "text/calendar" | "haptics/ivs" | "application/java-archive" | "text/x-java" | "image/jpeg" | "application/json" | "application/ld+json" | "application/jsonc" | "application/json5" | "image/ktx" | "image/ktx2" | "application/vnd.apple.mpegurl" | "audio/mp4" | "video/mp4" | "text/markdown" | "application/x-mdx" | "audio/midi" | "audio/x-midi" | "audio/mpeg" | "application/dash+xml" | "video/mpeg" | "application/vnd.apple.installer+xml" | "application/xml" | "application/x-ndjson" | "model/obj" | "text/plain" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "font/otf" | "image/png" | "application/pdf" | "text/x-php" | "application/x-httpd-php" | "application/vnd.apple.pkpass" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "text/x-python" | "text/x-script.python" | "application/x-python-code" | "application/vnd.rar" | "text/x-ruby" | "text/rust" | "application/rtf" | "application/x-sh" | "application/sql" | "text/event-stream" | "image/svg+xml" | "application/x-tar" | "text/x-tex" | "image/tiff" | "application/toml" | "text/typescript" | "application/typescript" | "video/mp2t" | "video/vnd.dlna.mpeg-tts" | "application/font-sfnt" | "font/ttf" | "model/vnd.usdz+zip" | "application/vnd.visio" | "text/vtt" | "application/wasm" | "audio/wav" | "audio/webm" | "video/webm" | "application/manifest+json" | "image/webp" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "text/xml" | "application/vnd.mozilla.xul+xml" | "application/yaml" | "application/zip" | "application/x-zip-compressed" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed" | undefined;
528
547
  getMimeTypeForPath<T extends string>(path: T, opts?: {
529
548
  type?: MimeTopLevelType;
530
- }): "audio/aac" | "application/x-abiword" | "image/aces" | "image/apng" | "application/x-freearc" | "image/avci" | "image/avif" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "multipart/voice-message" | "image/bmp" | "application/x-bzip" | "application/x-bzip2" | "text/x-c" | "application/x-cdf" | "text/javascript" | "application/node" | "text/x-c++" | "text/x-csharp" | "application/x-csh" | "text/css" | "text/csv" | "image/x-icon" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/dpx" | "image/emf" | "application/vnd.ms-fontobject" | "application/epub+zip" | "image/gif" | "model/gltf-binary" | "model/gltf+json" | "application/gzip" | "application/x-gzip" | "haptics/hjif" | "haptics/hmpg" | "text/html" | "image/vnd.microsoft.icon" | "text/calendar" | "haptics/ivs" | "application/java-archive" | "text/x-java" | "image/jpeg" | "application/json" | "application/ld+json" | "image/ktx" | "image/ktx2" | "application/vnd.apple.mpegurl" | "audio/mp4" | "video/mp4" | "text/markdown" | "application/x-mdx" | "audio/midi" | "audio/x-midi" | "audio/mpeg" | "application/dash+xml" | "video/mpeg" | "application/vnd.apple.installer+xml" | "application/xml" | "application/x-ndjson" | "model/obj" | "text/plain" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "font/otf" | "image/png" | "application/pdf" | "text/x-php" | "application/x-httpd-php" | "application/vnd.apple.pkpass" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "text/x-python" | "text/x-script.python" | "application/x-python-code" | "application/vnd.rar" | "text/x-ruby" | "text/rust" | "application/rtf" | "application/x-sh" | "application/sql" | "text/event-stream" | "image/svg+xml" | "application/x-tar" | "text/x-tex" | "image/tiff" | "application/toml" | "text/typescript" | "application/typescript" | "video/mp2t" | "video/vnd.dlna.mpeg-tts" | "application/font-sfnt" | "font/ttf" | "model/vnd.usdz+zip" | "application/vnd.visio" | "text/vtt" | "application/wasm" | "audio/wav" | "audio/webm" | "video/webm" | "application/manifest+json" | "image/webp" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "text/xml" | "application/vnd.mozilla.xul+xml" | "application/yaml" | "application/zip" | "application/x-zip-compressed" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed";
549
+ }): "audio/aac" | "application/x-abiword" | "image/aces" | "image/apng" | "application/x-freearc" | "image/avci" | "image/avif" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "multipart/voice-message" | "image/bmp" | "application/x-bzip" | "application/x-bzip2" | "text/x-c" | "application/x-cdf" | "text/javascript" | "application/node" | "text/x-c++" | "text/x-csharp" | "application/x-csh" | "text/css" | "text/csv" | "image/x-icon" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "image/dpx" | "image/emf" | "application/vnd.ms-fontobject" | "application/epub+zip" | "image/gif" | "model/gltf-binary" | "model/gltf+json" | "application/gzip" | "application/x-gzip" | "image/heic" | "haptics/hjif" | "haptics/hmpg" | "text/html" | "image/vnd.microsoft.icon" | "text/calendar" | "haptics/ivs" | "application/java-archive" | "text/x-java" | "image/jpeg" | "application/json" | "application/ld+json" | "application/jsonc" | "application/json5" | "image/ktx" | "image/ktx2" | "application/vnd.apple.mpegurl" | "audio/mp4" | "video/mp4" | "text/markdown" | "application/x-mdx" | "audio/midi" | "audio/x-midi" | "audio/mpeg" | "application/dash+xml" | "video/mpeg" | "application/vnd.apple.installer+xml" | "application/xml" | "application/x-ndjson" | "model/obj" | "text/plain" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "font/otf" | "image/png" | "application/pdf" | "text/x-php" | "application/x-httpd-php" | "application/vnd.apple.pkpass" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "text/x-python" | "text/x-script.python" | "application/x-python-code" | "application/vnd.rar" | "text/x-ruby" | "text/rust" | "application/rtf" | "application/x-sh" | "application/sql" | "text/event-stream" | "image/svg+xml" | "application/x-tar" | "text/x-tex" | "image/tiff" | "application/toml" | "text/typescript" | "application/typescript" | "video/mp2t" | "video/vnd.dlna.mpeg-tts" | "application/font-sfnt" | "font/ttf" | "model/vnd.usdz+zip" | "application/vnd.visio" | "text/vtt" | "application/wasm" | "audio/wav" | "audio/webm" | "video/webm" | "application/manifest+json" | "image/webp" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "text/xml" | "application/vnd.mozilla.xul+xml" | "application/yaml" | "application/zip" | "application/x-zip-compressed" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed";
531
550
  }
532
551
 
533
552
  export { type AllMimeTypes, type FileExtension, type FileExtensionToMimeType, type InferTopLevelPresent, MimeService, type MimeTopLevelType, type MimeType, type MimeTypeToFileExtension, type PresentMimeTopLevelTypes, extMimeMap, mimeToExt };
@@ -2,10 +2,10 @@ import {
2
2
  MimeService,
3
3
  extMimeMap,
4
4
  mimeToExt
5
- } from "../chunk-PHTZ7NRL.js";
6
- import "../chunk-UW52DMHT.js";
7
- import "../chunk-6HHKXBIM.js";
8
- import "../chunk-Z2WZLZC4.js";
5
+ } from "../chunk-L2QMQOEJ.js";
6
+ import "../chunk-NJHN5OE3.js";
7
+ import "../chunk-OT5JEQKW.js";
8
+ import "../chunk-PB5A7ZFD.js";
9
9
  import "../chunk-7QVYU63E.js";
10
10
  export {
11
11
  MimeService,
@@ -1,7 +1,8 @@
1
1
  import * as stream from 'stream';
2
- import { WithImplicitCoercion } from 'buffer';
2
+ import stream__default from 'stream';
3
+ import { ObjectEncodingOptions } from 'fs';
3
4
 
4
- type BufferEncodingUnion = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | "utf-16le";
5
+ type BufferEncodingUnion = Exclude<CTR<ObjEncodingOptions, "encoding">["encoding"], null>;
5
6
  interface Dict<T> {
6
7
  [key: string]: T | undefined;
7
8
  }
@@ -58,8 +59,7 @@ interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
58
59
  interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
59
60
  encoding?: "buffer" | null | undefined;
60
61
  }
61
- interface ObjEncodingOptions {
62
- encoding?: BufferEncodingUnion | null | undefined;
62
+ interface ObjEncodingOptions extends ObjectEncodingOptions {
63
63
  }
64
64
  type OpenMode = string | number;
65
65
  interface Abortable {
@@ -83,24 +83,21 @@ interface MkDirOptions {
83
83
  mode?: Mode | undefined;
84
84
  }
85
85
  type BashEnv = "development" | "production" | "test" | undefined;
86
- type CoercionUnion = string | Uint8Array | readonly number[];
87
- type WriteStreamDataShape = WithImplicitCoercion<CoercionUnion> | CoercionUnion;
88
86
  type WriteStreamProps<T extends string = string> = {
89
- data: WithImplicitCoercion<CoercionUnion>;
87
+ data: WriteableDataType;
90
88
  cwd: string;
91
89
  path: T;
92
90
  };
93
- type WriteStreamOptions = BufferEncodingUnion | {
91
+ type WriteStreamOptions = XOR<BufferEncodingUnion, {
94
92
  encoding?: BufferEncodingUnion;
95
93
  autoClose?: boolean;
96
94
  emitClose?: boolean;
97
95
  start?: number;
98
96
  highWaterMark?: number;
99
97
  flush?: boolean;
100
- };
101
- type WriteFileAsyncDataUnion = WithImplicitCoercion<string> | {
102
- [Symbol.toPrimitive](hint: "string"): string;
103
- } | string;
98
+ }>;
99
+ type WriteableDataType = string | Buffer | NodeJS.TypedArray | NodeJS.NonSharedDataView;
100
+ type WriteFileAsyncDataType = string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | stream__default;
104
101
  interface ReadDirOptionsEntity extends ObjEncodingOptions {
105
102
  withFileTypes?: false | undefined;
106
103
  recursive?: boolean | undefined;
@@ -108,14 +105,14 @@ interface ReadDirOptionsEntity extends ObjEncodingOptions {
108
105
  type ReadDirOptions = {
109
106
  [P in keyof ReadDirOptionsEntity]: ReadDirOptionsEntity[P];
110
107
  };
111
- type WriteFileAsyncOptions = (ObjEncodingOptions & {
108
+ type WriteFileAsyncOptions = XOR<ObjEncodingOptions & {
112
109
  mode?: Mode | undefined;
113
110
  flag?: OpenMode | undefined;
114
111
  flush?: boolean | undefined;
115
- } & Abortable) | BufferEncodingUnion | null;
112
+ } & Abortable, BufferEncodingUnion> | null;
116
113
  type WriteFileAsyncProps<T extends string = string> = {
117
114
  path: T;
118
- data: WriteFileAsyncDataUnion;
115
+ data: WriteableDataType;
119
116
  options?: (ObjEncodingOptions & {
120
117
  mode?: Mode | undefined;
121
118
  flag?: OpenMode | undefined;
@@ -331,4 +328,4 @@ interface BoxInfo {
331
328
  size: number;
332
329
  }
333
330
 
334
- export { type Abortable, type ArrFieldReplacer, type ArrayBufferView, type ArrayOrReadOnlyArray, type BashEnv, type BoxInfo, type BufferEncodingUnion, type CTR, type CoercionUnion, type CommonExecOptions, type CommonOptions, type ConditionalPromise, type ConditionalToRequired, type DX, type DeepPartial, type DeepPartialFields, type DeepReplace, type Depth, type Dict, type Equal, type ExcludeFieldEnumerable, type ExecSyncOptions, type ExecSyncOptionsWithBufferEncoding, type ExecSyncOptionsWithStringEncoding, type ExecuteCommandProps, type Expect, type Extends, type FieldToConditionallyNever, type IOType, type ImageSpecs, type InferDepth, type InjectScriptsProps, type IsExact, type IsOptional, type MkDirOptions, type MkDirSyncOptions, type MkDirSyncProps, type Mode, type NoParamCallback, type ObjEncodingOptions, type OmitSrc, type OnlyOptional, type OnlyRequired, type OpenMode, type ParsedUrlInfo, type ProcessEnv, type ProcessEnvOptions, type RTC, type ReadDirOptions, type ReadDirOptionsEntity, type ReadDirProps, type RemoveFields, type RequireNested, type RequiredToConditional, type Rm, type RmOptions, type Signals, type SizeOpts, type StdioOptions, type TCN, type TypedArray, type Unenumerate, type Unit, type UnwrapPromise, type Without, type WriteFileAsyncDataUnion, type WriteFileAsyncOptions, type WriteFileAsyncProps, type WriteStreamDataShape, type WriteStreamOptions, type WriteStreamProps, type XOR, unitsObj };
331
+ export { type Abortable, type ArrFieldReplacer, type ArrayBufferView, type ArrayOrReadOnlyArray, type BashEnv, type BoxInfo, type BufferEncodingUnion, type CTR, type CommonExecOptions, type CommonOptions, type ConditionalPromise, type ConditionalToRequired, type DX, type DeepPartial, type DeepPartialFields, type DeepReplace, type Depth, type Dict, type Equal, type ExcludeFieldEnumerable, type ExecSyncOptions, type ExecSyncOptionsWithBufferEncoding, type ExecSyncOptionsWithStringEncoding, type ExecuteCommandProps, type Expect, type Extends, type FieldToConditionallyNever, type IOType, type ImageSpecs, type InferDepth, type InjectScriptsProps, type IsExact, type IsOptional, type MkDirOptions, type MkDirSyncOptions, type MkDirSyncProps, type Mode, type NoParamCallback, type ObjEncodingOptions, type OmitSrc, type OnlyOptional, type OnlyRequired, type OpenMode, type ParsedUrlInfo, type ProcessEnv, type ProcessEnvOptions, type RTC, type ReadDirOptions, type ReadDirOptionsEntity, type ReadDirProps, type RemoveFields, type RequireNested, type RequiredToConditional, type Rm, type RmOptions, type Signals, type SizeOpts, type StdioOptions, type TCN, type TypedArray, type Unenumerate, type Unit, type UnwrapPromise, type Without, type WriteFileAsyncDataType, type WriteFileAsyncOptions, type WriteFileAsyncProps, type WriteStreamOptions, type WriteStreamProps, type WriteableDataType, type XOR, unitsObj };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unitsObj
3
- } from "../chunk-Q6QZ5XEP.js";
3
+ } from "../chunk-5H6GE5AO.js";
4
4
  import "../chunk-7QVYU63E.js";
5
5
  export {
6
6
  unitsObj
@@ -1,8 +1,9 @@
1
1
  import { UtilsService } from '../utils/index.js';
2
2
  import '../types/index.js';
3
3
  import 'stream';
4
- import 'buffer';
4
+ import 'fs';
5
5
  import '../ld/index.js';
6
+ import '@d0paminedriven/metadata';
6
7
 
7
8
  type HandleQueryParamsOrHash<T> = T extends `${infer X}?${string}` ? X : T extends `${infer X}#${string}` ? X : T;
8
9
  type SplitForwardSlash<S extends string> = S extends `${infer First}/${infer Rest}` ? [First, ...SplitForwardSlash<Rest>] : S extends "" ? [] : [S];
package/dist/url/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  UrlService
3
- } from "../chunk-UW52DMHT.js";
4
- import "../chunk-6HHKXBIM.js";
5
- import "../chunk-Z2WZLZC4.js";
3
+ } from "../chunk-NJHN5OE3.js";
4
+ import "../chunk-OT5JEQKW.js";
5
+ import "../chunk-PB5A7ZFD.js";
6
6
  import "../chunk-7QVYU63E.js";
7
7
  export {
8
8
  UrlService
@@ -1,7 +1,8 @@
1
1
  import { RemoveFields, Unenumerate } from '../types/index.js';
2
2
  import { LevenshteinDistance } from '../ld/index.js';
3
3
  import 'stream';
4
- import 'buffer';
4
+ import 'fs';
5
+ import '@d0paminedriven/metadata';
5
6
 
6
7
  declare class UtilsService extends LevenshteinDistance {
7
8
  chunkArray<T extends number>(arr: string[], maxChunkLength: T): string[][];
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  UtilsService
3
- } from "../chunk-6HHKXBIM.js";
4
- import "../chunk-Z2WZLZC4.js";
3
+ } from "../chunk-OT5JEQKW.js";
4
+ import "../chunk-PB5A7ZFD.js";
5
5
  import "../chunk-7QVYU63E.js";
6
6
  export {
7
7
  UtilsService
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d0paminedriven/fs",
3
- "version": "9.0.0",
3
+ "version": "10.1.0",
4
4
  "homepage": "https://github.com/DopamineDriven/d0paminedriven/blob/master/packages/fs/README.md",
5
5
  "author": "Andrew Ross",
6
6
  "description": "convenient fs helpers",
@@ -94,6 +94,7 @@
94
94
  "./utils": "./dist/utils/index.js"
95
95
  },
96
96
  "dependencies": {
97
+ "@d0paminedriven/metadata": "^4.0.1",
97
98
  "dotenv": "^17.2.3",
98
99
  "dotenv-expand": "^12.0.3",
99
100
  "fflate": "^0.8.2",
@@ -113,8 +114,8 @@
113
114
  "tsx": "^4.20.6",
114
115
  "typescript": "^5.9.3",
115
116
  "typescript-eslint": "^8.47.0",
116
- "@d0paminedriven/tsconfig": "0.1.0",
117
117
  "@d0paminedriven/prettier-config": "0.1.0",
118
+ "@d0paminedriven/tsconfig": "0.1.0",
118
119
  "@d0paminedriven/eslint-config": "0.1.0"
119
120
  },
120
121
  "prettier": "@d0paminedriven/prettier-config",