@d0paminedriven/fs 7.5.0 → 7.6.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-6UANVLO3.js → chunk-3RC3WC7A.js} +2 -2
- package/dist/{chunk-LYQ3KQSL.js → chunk-4LZQHSBL.js} +2 -2
- package/dist/chunk-6R36YN3W.js +386 -0
- package/dist/{chunk-HQ2FHXLJ.js → chunk-CTSJFQMC.js} +2 -2
- package/dist/{chunk-DSH3OL5Q.js → chunk-I4ITMOIV.js} +2 -2
- package/dist/{chunk-F57L5MBU.js → chunk-MUFEXR25.js} +2 -2
- package/dist/{chunk-KNLXF622.js → chunk-PHTZ7NRL.js} +26 -6
- package/dist/{chunk-4DZLRFGH.js → chunk-Q6QZ5XEP.js} +1 -1
- package/dist/{chunk-N33N54TN.js → chunk-QKZIGBLD.js} +2 -2
- package/dist/{chunk-3MPIZJSN.js → chunk-TUY7Y4DL.js} +502 -326
- package/dist/{chunk-CJBGTYSB.js → chunk-ZQRB46YA.js} +3 -3
- package/dist/fs/index.d.ts +60 -7
- package/dist/fs/index.js +11 -10
- package/dist/fs-atomic/index.d.ts +1 -0
- package/dist/fs-atomic/index.js +5 -4
- package/dist/fs-base/index.d.ts +1 -0
- package/dist/fs-base/index.js +4 -3
- package/dist/fs-core/index.d.ts +2 -1
- package/dist/fs-core/index.js +8 -7
- package/dist/fs-fetch/index.d.ts +4 -3
- package/dist/fs-fetch/index.js +10 -9
- package/dist/fs-size/index.d.ts +1 -0
- package/dist/fs-size/index.js +7 -6
- package/dist/fs-tmp/index.d.ts +1 -0
- package/dist/fs-tmp/index.js +9 -8
- package/dist/image/index.d.ts +180 -37
- package/dist/image/index.js +3 -2
- package/dist/image/workup.d.ts +39 -0
- package/dist/image/workup.js +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -10
- package/dist/mime/index.d.ts +45 -15
- package/dist/mime/index.js +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +1 -1
- package/package.json +14 -10
package/dist/mime/index.d.ts
CHANGED
|
@@ -19,8 +19,11 @@ declare const extMimeMap: {
|
|
|
19
19
|
readonly bmp: readonly ["image/bmp"];
|
|
20
20
|
readonly bz: readonly ["application/x-bzip"];
|
|
21
21
|
readonly bz2: readonly ["application/x-bzip2"];
|
|
22
|
+
readonly c: readonly ["text/x-c"];
|
|
22
23
|
readonly cda: readonly ["application/x-cdf"];
|
|
23
|
-
readonly cjs: readonly ["
|
|
24
|
+
readonly cjs: readonly ["text/javascript", "application/node"];
|
|
25
|
+
readonly cpp: readonly ["text/x-c++"];
|
|
26
|
+
readonly cs: readonly ["text/x-csharp"];
|
|
24
27
|
readonly csh: readonly ["application/x-csh"];
|
|
25
28
|
readonly css: readonly ["text/css"];
|
|
26
29
|
readonly csv: readonly ["text/csv"];
|
|
@@ -44,12 +47,13 @@ declare const extMimeMap: {
|
|
|
44
47
|
readonly ivs: readonly ["haptics/ivs"];
|
|
45
48
|
readonly ivt: readonly ["haptics/ivs"];
|
|
46
49
|
readonly jar: readonly ["application/java-archive"];
|
|
50
|
+
readonly java: readonly ["text/x-java"];
|
|
47
51
|
readonly jfif: readonly ["image/jpeg"];
|
|
48
52
|
readonly jif: readonly ["image/jpeg"];
|
|
49
53
|
readonly jpe: readonly ["image/jpeg"];
|
|
50
54
|
readonly jpeg: readonly ["image/jpeg"];
|
|
51
55
|
readonly jpg: readonly ["image/jpeg"];
|
|
52
|
-
readonly js: readonly ["
|
|
56
|
+
readonly js: readonly ["text/javascript", "application/node"];
|
|
53
57
|
readonly json: readonly ["application/json"];
|
|
54
58
|
readonly jsonld: readonly ["application/ld+json"];
|
|
55
59
|
readonly ktx: readonly ["image/ktx"];
|
|
@@ -80,17 +84,19 @@ declare const extMimeMap: {
|
|
|
80
84
|
readonly ogx: readonly ["application/ogg"];
|
|
81
85
|
readonly opus: readonly ["audio/ogg"];
|
|
82
86
|
readonly otf: readonly ["font/otf"];
|
|
87
|
+
readonly pk1: readonly ["application/octet-stream"];
|
|
83
88
|
readonly png: readonly ["image/png"];
|
|
84
89
|
readonly pdf: readonly ["application/pdf"];
|
|
85
|
-
readonly php: readonly ["application/x-httpd-php"];
|
|
90
|
+
readonly php: readonly ["text/x-php", "application/x-httpd-php"];
|
|
86
91
|
readonly pjp: readonly ["image/jpeg"];
|
|
87
92
|
readonly pjpeg: readonly ["image/jpeg"];
|
|
88
93
|
readonly pkpass: readonly ["application/vnd.apple.pkpass"];
|
|
89
94
|
readonly ppt: readonly ["application/vnd.ms-powerpoint"];
|
|
90
95
|
readonly pptx: readonly ["application/vnd.openxmlformats-officedocument.presentationml.presentation"];
|
|
91
|
-
readonly py: readonly ["text/x-python"];
|
|
96
|
+
readonly py: readonly ["text/x-python", "text/x-script.python"];
|
|
92
97
|
readonly pyc: readonly ["application/x-python-code"];
|
|
93
98
|
readonly rar: readonly ["application/vnd.rar"];
|
|
99
|
+
readonly rb: readonly ["text/x-ruby"];
|
|
94
100
|
readonly rs: readonly ["text/rust"];
|
|
95
101
|
readonly rtf: readonly ["application/rtf"];
|
|
96
102
|
readonly sh: readonly ["application/x-sh"];
|
|
@@ -98,10 +104,11 @@ declare const extMimeMap: {
|
|
|
98
104
|
readonly sse: readonly ["text/event-stream"];
|
|
99
105
|
readonly svg: readonly ["image/svg+xml"];
|
|
100
106
|
readonly tar: readonly ["application/x-tar"];
|
|
107
|
+
readonly tex: readonly ["text/x-tex"];
|
|
101
108
|
readonly tif: readonly ["image/tiff"];
|
|
102
109
|
readonly tiff: readonly ["image/tiff"];
|
|
103
110
|
readonly toml: readonly ["application/toml"];
|
|
104
|
-
readonly ts: readonly ["text/typescript", "video/mp2t", "video/vnd.dlna.mpeg-tts"];
|
|
111
|
+
readonly ts: readonly ["text/typescript", "application/typescript", "video/mp2t", "video/vnd.dlna.mpeg-tts"];
|
|
105
112
|
readonly ttf: readonly ["application/font-sfnt", "font/ttf"];
|
|
106
113
|
readonly txt: readonly ["text/plain"];
|
|
107
114
|
readonly usdz: readonly ["model/vnd.usdz+zip"];
|
|
@@ -229,7 +236,15 @@ declare const mimeToExt: {
|
|
|
229
236
|
readonly "text/typescript": readonly ["ts"];
|
|
230
237
|
readonly "text/vtt": readonly ["vtt"];
|
|
231
238
|
readonly "text/xml": readonly ["xml"];
|
|
239
|
+
readonly "text/x-c": readonly ["c"];
|
|
240
|
+
readonly "text/x-csharp": readonly ["cs"];
|
|
241
|
+
readonly "text/x-c++": readonly ["cpp"];
|
|
242
|
+
readonly "text/x-java": readonly ["java"];
|
|
243
|
+
readonly "text/x-php": readonly ["php"];
|
|
232
244
|
readonly "text/x-python": readonly ["py"];
|
|
245
|
+
readonly "text/x-ruby": readonly ["rb"];
|
|
246
|
+
readonly "text/x-script.python": readonly ["py"];
|
|
247
|
+
readonly "text/x-tex": readonly ["tex"];
|
|
233
248
|
readonly "video/3gpp": readonly ["3gp"];
|
|
234
249
|
readonly "video/3gpp2": readonly ["3g2"];
|
|
235
250
|
readonly "video/mp2t": readonly ["ts"];
|
|
@@ -264,8 +279,11 @@ declare class MimeService extends UrlService {
|
|
|
264
279
|
readonly bmp: readonly ["image/bmp"];
|
|
265
280
|
readonly bz: readonly ["application/x-bzip"];
|
|
266
281
|
readonly bz2: readonly ["application/x-bzip2"];
|
|
282
|
+
readonly c: readonly ["text/x-c"];
|
|
267
283
|
readonly cda: readonly ["application/x-cdf"];
|
|
268
|
-
readonly cjs: readonly ["
|
|
284
|
+
readonly cjs: readonly ["text/javascript", "application/node"];
|
|
285
|
+
readonly cpp: readonly ["text/x-c++"];
|
|
286
|
+
readonly cs: readonly ["text/x-csharp"];
|
|
269
287
|
readonly csh: readonly ["application/x-csh"];
|
|
270
288
|
readonly css: readonly ["text/css"];
|
|
271
289
|
readonly csv: readonly ["text/csv"];
|
|
@@ -289,12 +307,13 @@ declare class MimeService extends UrlService {
|
|
|
289
307
|
readonly ivs: readonly ["haptics/ivs"];
|
|
290
308
|
readonly ivt: readonly ["haptics/ivs"];
|
|
291
309
|
readonly jar: readonly ["application/java-archive"];
|
|
310
|
+
readonly java: readonly ["text/x-java"];
|
|
292
311
|
readonly jfif: readonly ["image/jpeg"];
|
|
293
312
|
readonly jif: readonly ["image/jpeg"];
|
|
294
313
|
readonly jpe: readonly ["image/jpeg"];
|
|
295
314
|
readonly jpeg: readonly ["image/jpeg"];
|
|
296
315
|
readonly jpg: readonly ["image/jpeg"];
|
|
297
|
-
readonly js: readonly ["
|
|
316
|
+
readonly js: readonly ["text/javascript", "application/node"];
|
|
298
317
|
readonly json: readonly ["application/json"];
|
|
299
318
|
readonly jsonld: readonly ["application/ld+json"];
|
|
300
319
|
readonly ktx: readonly ["image/ktx"];
|
|
@@ -325,17 +344,19 @@ declare class MimeService extends UrlService {
|
|
|
325
344
|
readonly ogx: readonly ["application/ogg"];
|
|
326
345
|
readonly opus: readonly ["audio/ogg"];
|
|
327
346
|
readonly otf: readonly ["font/otf"];
|
|
347
|
+
readonly pk1: readonly ["application/octet-stream"];
|
|
328
348
|
readonly png: readonly ["image/png"];
|
|
329
349
|
readonly pdf: readonly ["application/pdf"];
|
|
330
|
-
readonly php: readonly ["application/x-httpd-php"];
|
|
350
|
+
readonly php: readonly ["text/x-php", "application/x-httpd-php"];
|
|
331
351
|
readonly pjp: readonly ["image/jpeg"];
|
|
332
352
|
readonly pjpeg: readonly ["image/jpeg"];
|
|
333
353
|
readonly pkpass: readonly ["application/vnd.apple.pkpass"];
|
|
334
354
|
readonly ppt: readonly ["application/vnd.ms-powerpoint"];
|
|
335
355
|
readonly pptx: readonly ["application/vnd.openxmlformats-officedocument.presentationml.presentation"];
|
|
336
|
-
readonly py: readonly ["text/x-python"];
|
|
356
|
+
readonly py: readonly ["text/x-python", "text/x-script.python"];
|
|
337
357
|
readonly pyc: readonly ["application/x-python-code"];
|
|
338
358
|
readonly rar: readonly ["application/vnd.rar"];
|
|
359
|
+
readonly rb: readonly ["text/x-ruby"];
|
|
339
360
|
readonly rs: readonly ["text/rust"];
|
|
340
361
|
readonly rtf: readonly ["application/rtf"];
|
|
341
362
|
readonly sh: readonly ["application/x-sh"];
|
|
@@ -343,10 +364,11 @@ declare class MimeService extends UrlService {
|
|
|
343
364
|
readonly sse: readonly ["text/event-stream"];
|
|
344
365
|
readonly svg: readonly ["image/svg+xml"];
|
|
345
366
|
readonly tar: readonly ["application/x-tar"];
|
|
367
|
+
readonly tex: readonly ["text/x-tex"];
|
|
346
368
|
readonly tif: readonly ["image/tiff"];
|
|
347
369
|
readonly tiff: readonly ["image/tiff"];
|
|
348
370
|
readonly toml: readonly ["application/toml"];
|
|
349
|
-
readonly ts: readonly ["text/typescript", "video/mp2t", "video/vnd.dlna.mpeg-tts"];
|
|
371
|
+
readonly ts: readonly ["text/typescript", "application/typescript", "video/mp2t", "video/vnd.dlna.mpeg-tts"];
|
|
350
372
|
readonly ttf: readonly ["application/font-sfnt", "font/ttf"];
|
|
351
373
|
readonly txt: readonly ["text/plain"];
|
|
352
374
|
readonly usdz: readonly ["model/vnd.usdz+zip"];
|
|
@@ -474,7 +496,15 @@ declare class MimeService extends UrlService {
|
|
|
474
496
|
readonly "text/typescript": readonly ["ts"];
|
|
475
497
|
readonly "text/vtt": readonly ["vtt"];
|
|
476
498
|
readonly "text/xml": readonly ["xml"];
|
|
499
|
+
readonly "text/x-c": readonly ["c"];
|
|
500
|
+
readonly "text/x-csharp": readonly ["cs"];
|
|
501
|
+
readonly "text/x-c++": readonly ["cpp"];
|
|
502
|
+
readonly "text/x-java": readonly ["java"];
|
|
503
|
+
readonly "text/x-php": readonly ["php"];
|
|
477
504
|
readonly "text/x-python": readonly ["py"];
|
|
505
|
+
readonly "text/x-ruby": readonly ["rb"];
|
|
506
|
+
readonly "text/x-script.python": readonly ["py"];
|
|
507
|
+
readonly "text/x-tex": readonly ["tex"];
|
|
478
508
|
readonly "video/3gpp": readonly ["3gp"];
|
|
479
509
|
readonly "video/3gpp2": readonly ["3g2"];
|
|
480
510
|
readonly "video/mp2t": readonly ["ts"];
|
|
@@ -488,16 +518,16 @@ declare class MimeService extends UrlService {
|
|
|
488
518
|
compareMimeToExt(p?: "mime" | "ext"): {
|
|
489
519
|
[k: string]: number;
|
|
490
520
|
};
|
|
491
|
-
mimeToExt(mime: keyof typeof this.toExtObj): "apng" | "png" | "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" | "yml" | "aac" | "mid" | "m4a" | "mp3" | "opus" | "ogg" | "wav" | "weba" | "midi" | "otf" | "woff" | "woff2" | "hjif" | "hmpg" | "ivs" | "aces" | "avci" | "dpx" | "emf" | "jpg" | "ktx" | "ktx2" | "
|
|
492
|
-
assetType<const T extends string>(url: T): "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" | "
|
|
493
|
-
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 ["application/x-cdf"] | readonly ["application/node"
|
|
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"];
|
|
494
524
|
getMimeFor<const E extends FileExtension>(ext: E, opts?: {
|
|
495
525
|
type?: MimeTopLevelType;
|
|
496
526
|
}): FileExtensionToMimeType<E>;
|
|
497
|
-
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" | "application/x-cdf" | "application/node" | "text/
|
|
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;
|
|
498
528
|
getMimeTypeForPath<T extends string>(path: T, opts?: {
|
|
499
529
|
type?: MimeTopLevelType;
|
|
500
|
-
}): "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" | "application/x-cdf" | "application/node" | "text/
|
|
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";
|
|
501
531
|
}
|
|
502
532
|
|
|
503
533
|
export { type AllMimeTypes, type FileExtension, type FileExtensionToMimeType, type InferTopLevelPresent, MimeService, type MimeTopLevelType, type MimeType, type MimeTypeToFileExtension, type PresentMimeTopLevelTypes, extMimeMap, mimeToExt };
|
package/dist/mime/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -315,13 +315,13 @@ type SizeOpts = {
|
|
|
315
315
|
interface ImageSpecs {
|
|
316
316
|
width: number;
|
|
317
317
|
height: number;
|
|
318
|
-
format: "apng" | "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "unknown";
|
|
318
|
+
format: "apng" | "png" | "jpeg" | "gif" | "bmp" | "webp" | "avif" | "svg" | "ico" | "heic" | "tiff" | "unknown";
|
|
319
319
|
frames: number;
|
|
320
320
|
animated: boolean;
|
|
321
321
|
hasAlpha: boolean | null;
|
|
322
322
|
orientation: number | null;
|
|
323
323
|
aspectRatio: number;
|
|
324
|
-
colorModel: "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed" | "cmyk" | "ycbcr" | "ycck" | "unknown";
|
|
324
|
+
colorModel: "rgb" | "rgba" | "grayscale" | "grayscale-alpha" | "indexed" | "cmyk" | "ycbcr" | "ycck" | "vector" | "lab" | "unknown";
|
|
325
325
|
colorSpace: "unknown" | "srgb" | "display_p3" | "adobe_rgb" | "prophoto_rgb" | "rec2020" | "rec709" | "cmyk" | "lab" | "xyz" | "gray";
|
|
326
326
|
iccProfile: string | null;
|
|
327
327
|
exifDateTimeOriginal: string | null;
|
package/dist/types/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d0paminedriven/fs",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"homepage": "https://github.com/DopamineDriven/d0paminedriven/blob/master/packages/fs/README.md",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "andrew@windycitydevs.io",
|
|
@@ -45,6 +45,9 @@
|
|
|
45
45
|
"image": [
|
|
46
46
|
"dist/image/index.d.ts"
|
|
47
47
|
],
|
|
48
|
+
"image/workup": [
|
|
49
|
+
"dist/image/workup.d.ts"
|
|
50
|
+
],
|
|
48
51
|
"ld": [
|
|
49
52
|
"dist/ld/index.d.ts"
|
|
50
53
|
],
|
|
@@ -84,6 +87,7 @@
|
|
|
84
87
|
"./fs-size": "./dist/fs-size/index.js",
|
|
85
88
|
"./fs-tmp": "./dist/fs-tmp/index.js",
|
|
86
89
|
"./image": "./dist/image/index.js",
|
|
90
|
+
"./image/workup": "./dist/image/workup.js",
|
|
87
91
|
"./ld": "./dist/ld/index.js",
|
|
88
92
|
"./mime": "./dist/mime/index.js",
|
|
89
93
|
"./types": "./dist/types/index.js",
|
|
@@ -92,27 +96,27 @@
|
|
|
92
96
|
"./utils": "./dist/utils/index.js"
|
|
93
97
|
},
|
|
94
98
|
"dependencies": {
|
|
95
|
-
"dotenv": "^17.2.
|
|
96
|
-
"dotenv-expand": "^12.0.
|
|
99
|
+
"dotenv": "^17.2.2",
|
|
100
|
+
"dotenv-expand": "^12.0.3",
|
|
97
101
|
"fflate": "^0.8.2",
|
|
98
102
|
"sharp": "^0.34.3"
|
|
99
103
|
},
|
|
100
104
|
"devDependencies": {
|
|
101
|
-
"@types/node": "^24.
|
|
105
|
+
"@types/node": "^24.5.0",
|
|
102
106
|
"chokidar": "^4.0.3",
|
|
103
107
|
"dotenv-cli": "^10.0.0",
|
|
104
|
-
"eslint": "^9.
|
|
108
|
+
"eslint": "^9.35.0",
|
|
105
109
|
"jiti": "^2.5.1",
|
|
106
110
|
"prettier": "^3.6.2",
|
|
107
|
-
"terser": "^5.
|
|
111
|
+
"terser": "^5.44.0",
|
|
108
112
|
"tslib": "^2.8.1",
|
|
109
113
|
"tsup": "^8.5.0",
|
|
110
|
-
"tsx": "^4.20.
|
|
114
|
+
"tsx": "^4.20.5",
|
|
111
115
|
"typescript": "^5.9.2",
|
|
112
|
-
"typescript-eslint": "^8.
|
|
116
|
+
"typescript-eslint": "^8.44.0",
|
|
117
|
+
"@d0paminedriven/prettier-config": "0.1.0",
|
|
113
118
|
"@d0paminedriven/eslint-config": "0.1.0",
|
|
114
|
-
"@d0paminedriven/tsconfig": "0.1.0"
|
|
115
|
-
"@d0paminedriven/prettier-config": "0.1.0"
|
|
119
|
+
"@d0paminedriven/tsconfig": "0.1.0"
|
|
116
120
|
},
|
|
117
121
|
"prettier": "@d0paminedriven/prettier-config",
|
|
118
122
|
"scripts": {
|