@d0paminedriven/fs 7.0.1 → 7.2.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-QBG7TFHM.js → chunk-6FJJLFJL.js} +2 -2
- package/dist/{chunk-CN45SMBB.js → chunk-GH6MFTV5.js} +27 -12
- package/dist/chunk-KUGIFRTF.js +577 -0
- package/dist/{chunk-G27YIWW7.js → chunk-MRKO3PAA.js} +1 -1
- package/dist/{chunk-IUGBPDQJ.js → chunk-O2P3L3CJ.js} +1 -1
- package/dist/{chunk-CTA73JRX.js → chunk-SYISQ57E.js} +184 -427
- package/dist/fs/index.d.ts +204 -85
- package/dist/fs/index.js +6 -5
- package/dist/image/index.d.ts +88 -0
- package/dist/image/index.js +11 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +9 -5
- package/dist/mime/index.d.ts +51 -21
- package/dist/mime/index.js +3 -3
- package/dist/types/index.d.ts +8 -8
- package/dist/types/index.js +1 -1
- package/dist/types/stream.d.ts +9 -0
- package/dist/types/stream.js +1 -0
- package/dist/url/index.js +2 -2
- package/dist/utils/index.js +1 -1
- package/package.json +11 -3
- package/dist/fs/index.cjs +0 -1630
- package/dist/fs/index.d.cts +0 -392
- package/dist/index.cjs +0 -1648
- package/dist/index.d.cts +0 -9
- package/dist/mime/index.cjs +0 -494
- package/dist/mime/index.d.cts +0 -472
- package/dist/types/index.cjs +0 -38
- package/dist/types/index.d.cts +0 -333
- package/dist/url/index.cjs +0 -181
- package/dist/url/index.d.cts +0 -33
- package/dist/utils/index.cjs +0 -157
- package/dist/utils/index.d.cts +0 -25
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UtilsService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O2P3L3CJ.js";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-7QVYU63E.js";
|
|
@@ -30,4 +30,4 @@ var UrlService = class extends UtilsService {
|
|
|
30
30
|
export {
|
|
31
31
|
UrlService
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-6FJJLFJL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UrlService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6FJJLFJL.js";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-7QVYU63E.js";
|
|
@@ -25,6 +25,7 @@ var extMimeMap = {
|
|
|
25
25
|
csh: ["application/x-csh"],
|
|
26
26
|
css: ["text/css"],
|
|
27
27
|
csv: ["text/csv"],
|
|
28
|
+
cur: ["image/x-icon"],
|
|
28
29
|
doc: ["application/msword"],
|
|
29
30
|
docx: [
|
|
30
31
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
@@ -41,11 +42,14 @@ var extMimeMap = {
|
|
|
41
42
|
hmpg: ["haptics/hmpg"],
|
|
42
43
|
htm: ["text/html"],
|
|
43
44
|
html: ["text/html"],
|
|
44
|
-
ico: ["image/vnd.microsoft.icon"],
|
|
45
|
+
ico: ["image/vnd.microsoft.icon", "image/x-icon"],
|
|
45
46
|
ics: ["text/calendar"],
|
|
46
47
|
ivs: ["haptics/ivs"],
|
|
47
48
|
ivt: ["haptics/ivs"],
|
|
48
49
|
jar: ["application/java-archive"],
|
|
50
|
+
jfif: ["image/jpeg"],
|
|
51
|
+
jif: ["image/jpeg"],
|
|
52
|
+
jpe: ["image/jpeg"],
|
|
49
53
|
jpeg: ["image/jpeg"],
|
|
50
54
|
jpg: ["image/jpeg"],
|
|
51
55
|
js: ["application/node", "text/javascript"],
|
|
@@ -63,8 +67,10 @@ var extMimeMap = {
|
|
|
63
67
|
mjs: ["text/javascript"],
|
|
64
68
|
mp3: ["audio/mpeg"],
|
|
65
69
|
mp4: ["video/mp4"],
|
|
70
|
+
mpd: ["application/dash+xml"],
|
|
66
71
|
mpeg: ["video/mpeg"],
|
|
67
72
|
mpkg: ["application/vnd.apple.installer+xml"],
|
|
73
|
+
mtlx: ["application/xml"],
|
|
68
74
|
ndjson: ["application/x-ndjson"],
|
|
69
75
|
node: ["application/node", "text/javascript"],
|
|
70
76
|
obj: ["model/obj", "application/octet-stream", "text/plain"],
|
|
@@ -80,6 +86,8 @@ var extMimeMap = {
|
|
|
80
86
|
png: ["image/png"],
|
|
81
87
|
pdf: ["application/pdf"],
|
|
82
88
|
php: ["application/x-httpd-php"],
|
|
89
|
+
pjp: ["image/jpeg"],
|
|
90
|
+
pjpeg: ["image/jpeg"],
|
|
83
91
|
pkpass: ["application/vnd.apple.pkpass"],
|
|
84
92
|
ppt: ["application/vnd.ms-powerpoint"],
|
|
85
93
|
pptx: [
|
|
@@ -106,14 +114,16 @@ var extMimeMap = {
|
|
|
106
114
|
vtt: ["text/vtt"],
|
|
107
115
|
wasm: ["application/wasm"],
|
|
108
116
|
wav: ["audio/wav"],
|
|
109
|
-
weba: ["
|
|
117
|
+
weba: ["audio/webm"],
|
|
118
|
+
webm: ["video/webm"],
|
|
119
|
+
webmanifest: ["application/manifest+json"],
|
|
110
120
|
webp: ["image/webp"],
|
|
111
121
|
woff: ["font/woff"],
|
|
112
122
|
woff2: ["font/woff2"],
|
|
113
123
|
xhtml: ["application/xhtml+xml"],
|
|
114
124
|
xls: ["application/vnd.ms-excel"],
|
|
115
125
|
xlsx: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
|
116
|
-
xml: ["application/xml"],
|
|
126
|
+
xml: ["application/xml", "text/xml"],
|
|
117
127
|
xul: ["application/vnd.mozilla.xul+xml"],
|
|
118
128
|
yaml: ["application/yaml"],
|
|
119
129
|
yml: ["application/yaml"],
|
|
@@ -123,12 +133,14 @@ var extMimeMap = {
|
|
|
123
133
|
"7z": ["application/x-7z-compressed"]
|
|
124
134
|
};
|
|
125
135
|
var mimeToExt = {
|
|
136
|
+
"application/dash+xml": ["mpd"],
|
|
126
137
|
"application/epub+zip": ["epub"],
|
|
127
138
|
"application/font-sfnt": ["ttf"],
|
|
128
139
|
"application/gzip": ["gz"],
|
|
129
140
|
"application/java-archive": ["jar"],
|
|
130
141
|
"application/json": ["json"],
|
|
131
142
|
"application/ld+json": ["jsonld"],
|
|
143
|
+
"application/manifest+json": ["webmanifest"],
|
|
132
144
|
"application/msword": ["doc"],
|
|
133
145
|
"application/node": ["node", "js"],
|
|
134
146
|
"application/octet-stream": ["bin", "obj"],
|
|
@@ -174,7 +186,7 @@ var mimeToExt = {
|
|
|
174
186
|
"application/x-tar": ["tar"],
|
|
175
187
|
"application/x-zip-compressed": ["zip"],
|
|
176
188
|
"application/xhtml+xml": ["xhtml"],
|
|
177
|
-
"application/xml": ["xml"],
|
|
189
|
+
"application/xml": ["xml", "mtlx"],
|
|
178
190
|
"application/yaml": ["yml", "yaml"],
|
|
179
191
|
"application/zip": ["zip"],
|
|
180
192
|
"audio/aac": ["aac"],
|
|
@@ -183,6 +195,7 @@ var mimeToExt = {
|
|
|
183
195
|
"audio/mpeg": ["mp3"],
|
|
184
196
|
"audio/ogg": ["opus", "ogg", "oga"],
|
|
185
197
|
"audio/wav": ["wav"],
|
|
198
|
+
"audio/webm": ["weba"],
|
|
186
199
|
"audio/x-midi": ["midi"],
|
|
187
200
|
"font/otf": ["otf"],
|
|
188
201
|
"font/ttf": ["ttf"],
|
|
@@ -199,7 +212,7 @@ var mimeToExt = {
|
|
|
199
212
|
"image/dpx": ["dpx"],
|
|
200
213
|
"image/emf": ["emf"],
|
|
201
214
|
"image/gif": ["gif"],
|
|
202
|
-
"image/jpeg": ["jpg", "jpeg"],
|
|
215
|
+
"image/jpeg": ["jpg", "jpeg", "jpe", "jif", "jfif", "pjp", "pjpeg"],
|
|
203
216
|
"image/ktx": ["ktx"],
|
|
204
217
|
"image/ktx2": ["ktx2"],
|
|
205
218
|
"image/png": ["png"],
|
|
@@ -207,6 +220,7 @@ var mimeToExt = {
|
|
|
207
220
|
"image/tiff": ["tiff", "tif"],
|
|
208
221
|
"image/vnd.microsoft.icon": ["ico"],
|
|
209
222
|
"image/webp": ["webp"],
|
|
223
|
+
"image/x-icon": ["cur", "ico"],
|
|
210
224
|
"model/gltf-binary": ["glb"],
|
|
211
225
|
"model/gltf+json": ["gltf"],
|
|
212
226
|
"model/obj": ["obj"],
|
|
@@ -215,14 +229,15 @@ var mimeToExt = {
|
|
|
215
229
|
"text/calendar": ["ics"],
|
|
216
230
|
"text/css": ["css"],
|
|
217
231
|
"text/csv": ["csv"],
|
|
218
|
-
"text/event-stream": ["sse"
|
|
232
|
+
"text/event-stream": ["sse"],
|
|
219
233
|
"text/html": ["html", "htm"],
|
|
220
|
-
"text/javascript": ["
|
|
234
|
+
"text/javascript": ["js", "mjs", "cjs"],
|
|
221
235
|
"text/markdown": ["md"],
|
|
222
236
|
"text/plain": ["txt"],
|
|
223
237
|
"text/rust": ["rs"],
|
|
224
238
|
"text/typescript": ["ts"],
|
|
225
239
|
"text/vtt": ["vtt"],
|
|
240
|
+
"text/xml": ["xml"],
|
|
226
241
|
"text/x-python": ["py"],
|
|
227
242
|
"video/3gpp": ["3gp"],
|
|
228
243
|
"video/3gpp2": ["3g2"],
|
|
@@ -231,7 +246,7 @@ var mimeToExt = {
|
|
|
231
246
|
"video/mpeg": ["mpeg"],
|
|
232
247
|
"video/ogg": ["ogv"],
|
|
233
248
|
"video/vnd.dlna.mpeg-tts": ["ts"],
|
|
234
|
-
"video/webm": ["
|
|
249
|
+
"video/webm": ["webm"],
|
|
235
250
|
"video/x-msvideo": ["avi"]
|
|
236
251
|
};
|
|
237
252
|
var MimeService = class extends UrlService {
|
|
@@ -281,8 +296,8 @@ var MimeService = class extends UrlService {
|
|
|
281
296
|
if (mime === "audio/ogg") return "ogg";
|
|
282
297
|
return extensions[0];
|
|
283
298
|
}
|
|
284
|
-
if (extensions.length ===
|
|
285
|
-
return
|
|
299
|
+
if (extensions.length === 7) {
|
|
300
|
+
return extensions[0];
|
|
286
301
|
}
|
|
287
302
|
return extensions[0];
|
|
288
303
|
}
|
|
@@ -319,4 +334,4 @@ export {
|
|
|
319
334
|
mimeToExt,
|
|
320
335
|
MimeService
|
|
321
336
|
};
|
|
322
|
-
//# sourceMappingURL=chunk-
|
|
337
|
+
//# sourceMappingURL=chunk-GH6MFTV5.js.map
|