@nxtedition/mime 1.1.3 → 1.1.4
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/README.md +78 -32
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +112 -15
- package/lib/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -21,6 +21,10 @@ lookup('video.nut') // 'video/x-nut'
|
|
|
21
21
|
lookup('audio.ac3') // 'audio/ac3'
|
|
22
22
|
lookup('subs.stl') // 'application/x-ebu-stl'
|
|
23
23
|
lookup('subs.scc') // 'text/x-scc'
|
|
24
|
+
|
|
25
|
+
// Bare extensions work too (like the standard mime package):
|
|
26
|
+
lookup('nut') // 'video/x-nut'
|
|
27
|
+
lookup('dnxhd') // 'video/x-dnxhd'
|
|
24
28
|
```
|
|
25
29
|
|
|
26
30
|
### Get extension from MIME type
|
|
@@ -32,49 +36,91 @@ extension('video/mp4') // 'mp4'
|
|
|
32
36
|
extension('video/x-dnxhd') // 'dnxhd'
|
|
33
37
|
extension('audio/ac3') // 'ac3'
|
|
34
38
|
extension('application/x-ebu-stl') // 'stl'
|
|
35
|
-
extension('video/quicktime'
|
|
39
|
+
extension('video/quicktime') // 'mov'
|
|
40
|
+
|
|
41
|
+
// MIME types are case-insensitive and parameters are ignored:
|
|
42
|
+
extension('Video/X-DnxHD; profile=hd') // 'dnxhd'
|
|
36
43
|
```
|
|
37
44
|
|
|
38
45
|
## Broadcast & media types
|
|
39
46
|
|
|
40
|
-
Types handled beyond the standard `mime` package:
|
|
41
|
-
|
|
42
|
-
| Extension
|
|
43
|
-
|
|
|
44
|
-
| `.nut`
|
|
45
|
-
| `.
|
|
46
|
-
| `.
|
|
47
|
-
| `.
|
|
48
|
-
| `.
|
|
49
|
-
| `.
|
|
50
|
-
| `.
|
|
51
|
-
| `.
|
|
52
|
-
| `.
|
|
53
|
-
| `.
|
|
54
|
-
| `.
|
|
55
|
-
| `.
|
|
56
|
-
| `.
|
|
57
|
-
| `.
|
|
58
|
-
| `.
|
|
59
|
-
| `.
|
|
60
|
-
| `.
|
|
61
|
-
| `.
|
|
62
|
-
| `.
|
|
63
|
-
| `.
|
|
64
|
-
| `.
|
|
65
|
-
| `.
|
|
66
|
-
| `.
|
|
67
|
-
| `.
|
|
47
|
+
Types handled beyond (or instead of) the standard `mime` package:
|
|
48
|
+
|
|
49
|
+
| Extension | MIME Type | Format |
|
|
50
|
+
| ---------------------- | ----------------------------- | ------------------------- |
|
|
51
|
+
| `.nut` | `video/x-nut` | NUT container |
|
|
52
|
+
| `.aaf` | `application/x-aaf` | Avid AAF |
|
|
53
|
+
| `.lxf` | `application/x-lxf` | Leitch LXF |
|
|
54
|
+
| `.dnxhd` `.dnxhr` | `video/x-dnxhd` | Avid DNxHD/DNxHR |
|
|
55
|
+
| `.dv` | `video/x-dv` | DV video |
|
|
56
|
+
| `.h265` `.265` `.hevc` | `video/h265` | Raw HEVC stream |
|
|
57
|
+
| `.264` `.avc` | `video/h264` | Raw AVC stream |
|
|
58
|
+
| `.h266` `.266` `.vvc` | `video/h266` | Raw VVC stream |
|
|
59
|
+
| `.av1` | `video/av1` | Raw AV1 stream |
|
|
60
|
+
| `.ffv1` | `video/ffv1` | FFV1 archival codec |
|
|
61
|
+
| `.vc1` | `video/vc1` | VC-1 video |
|
|
62
|
+
| `.prores` | `video/x-prores` | Apple ProRes |
|
|
63
|
+
| `.r3d` | `video/x-red-r3d` | RED REDCODE RAW |
|
|
64
|
+
| `.braw` | `video/x-blackmagic-braw` | Blackmagic RAW |
|
|
65
|
+
| `.ari` | `image/x-arri-ari` | ARRIRAW frame |
|
|
66
|
+
| `.ac3` | `audio/ac3` | Dolby Digital |
|
|
67
|
+
| `.eac3` `.ec3` | `audio/eac3` | Dolby Digital Plus |
|
|
68
|
+
| `.opus` | `audio/opus` | Opus audio |
|
|
69
|
+
| `.flac` | `audio/flac` | FLAC lossless |
|
|
70
|
+
| `.pcm-s16le` | `audio/x-pcm-s16le` | Raw 16-bit PCM |
|
|
71
|
+
| `.pcm-s24le` | `audio/x-pcm-s24le` | Raw 24-bit PCM |
|
|
72
|
+
| `.pcm-s32le` | `audio/x-pcm-s32le` | Raw 32-bit PCM |
|
|
73
|
+
| `.bwf` | `audio/wav` | Broadcast Wave |
|
|
74
|
+
| `.w64` | `audio/x-w64` | Sony Wave64 |
|
|
75
|
+
| `.rf64` | `audio/x-rf64` | EBU RF64 |
|
|
76
|
+
| `.stl` | `application/x-ebu-stl` | EBU STL subtitles |
|
|
77
|
+
| `.scc` | `text/x-scc` | Scenarist Closed Captions |
|
|
78
|
+
| `.cap` | `application/x-cap` | Softel CAP captions |
|
|
79
|
+
| `.890` | `application/x-890` | Cavena 890 subtitles |
|
|
80
|
+
| `.pac` | `application/x-pac` | Screen Electronics PAC |
|
|
81
|
+
| `.ass` | `text/x-ass` | Advanced SubStation Alpha |
|
|
82
|
+
| `.ssa` | `text/x-ssa` | SubStation Alpha |
|
|
83
|
+
| `.dfxp` `.itt` | `application/ttml+xml` | TTML dialects |
|
|
84
|
+
| `.exr` | `image/x-exr` | OpenEXR |
|
|
85
|
+
| `.cin` | `image/x-cin` | Cineon |
|
|
86
|
+
| `.ism` | `application/vnd.ms-sstr+xml` | Smooth Streaming |
|
|
87
|
+
| `.mp3` | `audio/mp3` | MP3 (Chrome workaround) |
|
|
88
|
+
|
|
89
|
+
Camera RAW stills are also covered: `cr2`, `cr3`, `nef`, `nrw`, `arw`, `srf`, `sr2`, `raf`, `rw2`, `orf`, `pef`, `ptx`, `x3f`, `3fr`, `fff`, `iiq`, `mrw`, `mef`, `dng`, `raw`, `rwl`, `k25`, `kdc`, `bay`, `erf`, `srw`, `mos` — each mapped to its vendor `image/x-*` type.
|
|
90
|
+
|
|
91
|
+
### Deliberate differences from `mime`
|
|
92
|
+
|
|
93
|
+
Some mappings intentionally shadow standard ones for broadcast use. If you serve 3D models, pcap captures, or proxy autoconfig files, this package is not for you:
|
|
94
|
+
|
|
95
|
+
- `.stl` → `application/x-ebu-stl` (not `model/stl`)
|
|
96
|
+
- `.cap` → `application/x-cap` (not `application/vnd.tcpdump.pcap`)
|
|
97
|
+
- `.pac` → `application/x-pac` (not `application/x-ns-proxy-autoconfig`)
|
|
98
|
+
- `.opus` → `audio/opus` (not `audio/ogg`)
|
|
99
|
+
- `.flac` → `audio/flac` (not `audio/x-flac`)
|
|
100
|
+
- `.exr` → `image/x-exr` (not `image/aces`)
|
|
101
|
+
- `.mp3` → `audio/mp3` (not `audio/mpeg`, see [Chromium #227004](https://bugs.chromium.org/p/chromium/issues/detail?id=227004))
|
|
102
|
+
|
|
103
|
+
In the reverse direction, common media extensions are preferred over mime-db's first entries:
|
|
104
|
+
|
|
105
|
+
- `video/quicktime` → `mov` (not `qt`)
|
|
106
|
+
- `audio/mpeg` → `mp3` (not `mpga`)
|
|
107
|
+
- `audio/aac` → `aac` (not `adts`)
|
|
108
|
+
|
|
109
|
+
`extension()` also accepts common alias spellings that have no forward mapping: `video/nut`, `video/dnxhd`, `video/dv`, `video/hevc` (→ `h265`), `video/x-m2ts`, `audio/pcm-s16le`/`-s24le`/`-s32le` (without the `x-` prefix), and `image/x-dpx`.
|
|
68
110
|
|
|
69
111
|
## API
|
|
70
112
|
|
|
71
113
|
### `lookup(name: string): string | null`
|
|
72
114
|
|
|
73
|
-
Returns the MIME type for the given filename or
|
|
115
|
+
Returns the MIME type for the given filename, path, or bare extension, or `null` if unknown. Matching is case-insensitive and follows the standard `mime` package's path semantics: the extension is what follows the last dot of the basename, provided that dot is not the basename's first character (a dotfile with a path, like `/path/.nut`, is extensionless). A name without such an extension is treated as a bare extension only when it has no path component (`nut` and `.nut` both resolve).
|
|
116
|
+
|
|
117
|
+
Also exported as `getType`.
|
|
118
|
+
|
|
119
|
+
### `extension(mimeType: string): string | null`
|
|
74
120
|
|
|
75
|
-
|
|
121
|
+
Returns the file extension for the given MIME type, or `null` if unknown. Matching is case-insensitive and ignores parameters (e.g. `; charset=...`).
|
|
76
122
|
|
|
77
|
-
|
|
123
|
+
Also exported as `getExtension`.
|
|
78
124
|
|
|
79
125
|
## License
|
|
80
126
|
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAwOA,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmClD;AAED,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,CAAA;AAE5B,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmBzD;AAED,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -1,18 +1,56 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import standardTypes from 'mime/types/standard.js';
|
|
2
|
+
import otherTypes from 'mime/types/other.js';
|
|
3
|
+
const EXT_TO_MIME = new Map();
|
|
4
|
+
const MIME_TO_EXT = new Map();
|
|
5
|
+
// Replicates Mime#define over mime's public data exports. The default mime
|
|
6
|
+
// instance is frozen (no runtime define), so merging at load time is exactly
|
|
7
|
+
// equivalent: the first extension of a type wins the reverse mapping, and
|
|
8
|
+
// '*'-prefixed extensions don't claim the forward mapping.
|
|
9
|
+
for (const typeMap of [standardTypes, otherTypes]) {
|
|
10
|
+
for (const [type, extensions] of Object.entries(typeMap)) {
|
|
11
|
+
let first = true;
|
|
12
|
+
for (let ext of extensions) {
|
|
13
|
+
const starred = ext.startsWith('*');
|
|
14
|
+
if (starred) {
|
|
15
|
+
ext = ext.slice(1);
|
|
16
|
+
}
|
|
17
|
+
if (first) {
|
|
18
|
+
MIME_TO_EXT.set(type, ext);
|
|
19
|
+
first = false;
|
|
20
|
+
}
|
|
21
|
+
if (!starred) {
|
|
22
|
+
EXT_TO_MIME.set(ext, type);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
// Custom mappings applied on top of mime-db. Some deliberately shadow
|
|
28
|
+
// standard mappings (stl, cap, pac, opus, flac, exr, mp3) — see README.
|
|
29
|
+
for (const [ext, type] of Object.entries({
|
|
3
30
|
// Broadcast containers
|
|
4
31
|
nut: 'video/x-nut',
|
|
5
|
-
aaf: 'application/
|
|
6
|
-
lxf: 'application/
|
|
32
|
+
aaf: 'application/x-aaf',
|
|
33
|
+
lxf: 'application/x-lxf',
|
|
7
34
|
// Raw codecs
|
|
8
35
|
dnxhd: 'video/x-dnxhd',
|
|
9
36
|
dnxhr: 'video/x-dnxhd',
|
|
10
37
|
dv: 'video/x-dv',
|
|
11
38
|
h265: 'video/h265',
|
|
12
39
|
265: 'video/h265',
|
|
40
|
+
hevc: 'video/h265',
|
|
41
|
+
264: 'video/h264',
|
|
42
|
+
avc: 'video/h264',
|
|
43
|
+
h266: 'video/h266',
|
|
44
|
+
266: 'video/h266',
|
|
45
|
+
vvc: 'video/h266',
|
|
13
46
|
av1: 'video/av1',
|
|
14
47
|
ffv1: 'video/ffv1',
|
|
15
48
|
vc1: 'video/vc1',
|
|
49
|
+
prores: 'video/x-prores',
|
|
50
|
+
// Cinema camera RAW
|
|
51
|
+
r3d: 'video/x-red-r3d',
|
|
52
|
+
braw: 'video/x-blackmagic-braw',
|
|
53
|
+
ari: 'image/x-arri-ari',
|
|
16
54
|
// Raw PCM
|
|
17
55
|
'pcm-s32le': 'audio/x-pcm-s32le',
|
|
18
56
|
'pcm-s24le': 'audio/x-pcm-s24le',
|
|
@@ -23,6 +61,10 @@ const EXT_TO_MIME = {
|
|
|
23
61
|
ec3: 'audio/eac3',
|
|
24
62
|
opus: 'audio/opus',
|
|
25
63
|
flac: 'audio/flac',
|
|
64
|
+
// Broadcast audio containers
|
|
65
|
+
bwf: 'audio/wav',
|
|
66
|
+
w64: 'audio/x-w64',
|
|
67
|
+
rf64: 'audio/x-rf64',
|
|
26
68
|
// Broadcast subtitle/caption formats
|
|
27
69
|
stl: 'application/x-ebu-stl',
|
|
28
70
|
scc: 'text/x-scc',
|
|
@@ -31,6 +73,8 @@ const EXT_TO_MIME = {
|
|
|
31
73
|
pac: 'application/x-pac',
|
|
32
74
|
ass: 'text/x-ass',
|
|
33
75
|
ssa: 'text/x-ssa',
|
|
76
|
+
dfxp: 'application/ttml+xml',
|
|
77
|
+
itt: 'application/ttml+xml',
|
|
34
78
|
// Camera RAW
|
|
35
79
|
cr2: 'image/x-canon-cr2',
|
|
36
80
|
nef: 'image/x-nikon-nef',
|
|
@@ -67,20 +111,32 @@ const EXT_TO_MIME = {
|
|
|
67
111
|
// NOTE: Workaround for Chrome.
|
|
68
112
|
// See, https://bugs.chromium.org/p/chromium/issues/detail?id=227004.
|
|
69
113
|
mp3: 'audio/mp3',
|
|
70
|
-
}
|
|
71
|
-
|
|
114
|
+
})) {
|
|
115
|
+
EXT_TO_MIME.set(ext, type);
|
|
116
|
+
}
|
|
117
|
+
for (const [type, ext] of Object.entries({
|
|
72
118
|
// Broadcast containers
|
|
73
119
|
'video/x-nut': 'nut',
|
|
74
120
|
'video/nut': 'nut',
|
|
121
|
+
'video/x-m2ts': 'm2ts',
|
|
122
|
+
'application/x-aaf': 'aaf',
|
|
123
|
+
'application/x-lxf': 'lxf',
|
|
75
124
|
// Raw codecs
|
|
76
125
|
'video/x-dnxhd': 'dnxhd',
|
|
77
126
|
'video/dnxhd': 'dnxhd',
|
|
78
127
|
'video/x-dv': 'dv',
|
|
79
128
|
'video/dv': 'dv',
|
|
80
129
|
'video/h265': 'h265',
|
|
130
|
+
'video/hevc': 'h265',
|
|
131
|
+
'video/h266': 'h266',
|
|
81
132
|
'video/av1': 'av1',
|
|
82
133
|
'video/ffv1': 'ffv1',
|
|
83
134
|
'video/vc1': 'vc1',
|
|
135
|
+
'video/x-prores': 'prores',
|
|
136
|
+
// Cinema camera RAW
|
|
137
|
+
'video/x-red-r3d': 'r3d',
|
|
138
|
+
'video/x-blackmagic-braw': 'braw',
|
|
139
|
+
'image/x-arri-ari': 'ari',
|
|
84
140
|
// Raw PCM
|
|
85
141
|
'audio/x-pcm-s32le': 'pcm-s32le',
|
|
86
142
|
'audio/pcm-s32le': 'pcm-s32le',
|
|
@@ -93,6 +149,14 @@ const MIME_TO_EXT = {
|
|
|
93
149
|
'audio/eac3': 'eac3',
|
|
94
150
|
'audio/opus': 'opus',
|
|
95
151
|
'audio/flac': 'flac',
|
|
152
|
+
// Broadcast audio containers
|
|
153
|
+
'audio/x-w64': 'w64',
|
|
154
|
+
'audio/x-rf64': 'rf64',
|
|
155
|
+
// Prefer the ubiquitous extensions over mime-db's first entries
|
|
156
|
+
// ('mpga' and 'adts').
|
|
157
|
+
'audio/mpeg': 'mp3',
|
|
158
|
+
'audio/mp3': 'mp3',
|
|
159
|
+
'audio/aac': 'aac',
|
|
96
160
|
// Broadcast subtitle/caption formats
|
|
97
161
|
'application/x-ebu-stl': 'stl',
|
|
98
162
|
'text/x-scc': 'scc',
|
|
@@ -132,31 +196,64 @@ const MIME_TO_EXT = {
|
|
|
132
196
|
// Imaging
|
|
133
197
|
'image/x-exr': 'exr',
|
|
134
198
|
'image/x-cin': 'cin',
|
|
199
|
+
'image/x-dpx': 'dpx',
|
|
135
200
|
// Streaming
|
|
136
201
|
'application/vnd.ms-sstr+xml': 'ism',
|
|
137
202
|
// QuickTime — prefer .mov over .qt
|
|
138
203
|
'video/quicktime': 'mov',
|
|
139
|
-
}
|
|
204
|
+
})) {
|
|
205
|
+
MIME_TO_EXT.set(type, ext);
|
|
206
|
+
}
|
|
140
207
|
export function lookup(name) {
|
|
141
208
|
if (typeof name !== 'string' || name.length === 0) {
|
|
142
209
|
return null;
|
|
143
210
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
211
|
+
// Mirrors mime's path parsing: the extension is what follows the last dot
|
|
212
|
+
// of the basename, provided that dot is not the basename's first character
|
|
213
|
+
// (a dotfile with a path, like '/path/.nut', is extensionless). A name
|
|
214
|
+
// without such an extension is treated as a bare extension, but only when
|
|
215
|
+
// it has no path component ('nut' and '.nut' both resolve).
|
|
216
|
+
let start = 0;
|
|
217
|
+
for (let i = name.length - 1; i >= 0; i--) {
|
|
218
|
+
const code = name.charCodeAt(i);
|
|
219
|
+
if (code === 0x2f /* / */ || code === 0x5c /* \ */) {
|
|
220
|
+
start = i + 1;
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
const dot = name.lastIndexOf('.');
|
|
225
|
+
let ext;
|
|
226
|
+
if (dot > start) {
|
|
227
|
+
ext = name.slice(dot + 1).toLowerCase();
|
|
228
|
+
}
|
|
229
|
+
else if (start === 0) {
|
|
230
|
+
ext = (dot === 0 ? name.slice(1) : name).toLowerCase();
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
if (ext.length === 0) {
|
|
236
|
+
return null;
|
|
148
237
|
}
|
|
149
|
-
return
|
|
238
|
+
return EXT_TO_MIME.get(ext) ?? null;
|
|
150
239
|
}
|
|
151
240
|
export { lookup as getType };
|
|
152
241
|
export function extension(mimeType) {
|
|
153
242
|
if (typeof mimeType !== 'string' || mimeType.length === 0) {
|
|
154
243
|
return null;
|
|
155
244
|
}
|
|
156
|
-
|
|
157
|
-
|
|
245
|
+
// Fast path for canonical (lowercase, parameterless) types.
|
|
246
|
+
const ext = MIME_TO_EXT.get(mimeType);
|
|
247
|
+
if (ext !== undefined) {
|
|
248
|
+
return ext;
|
|
249
|
+
}
|
|
250
|
+
// Mirrors mime's normalization: parameters stripped, trimmed, lowercased.
|
|
251
|
+
const semi = mimeType.indexOf(';');
|
|
252
|
+
const essence = (semi === -1 ? mimeType : mimeType.slice(0, semi)).trim().toLowerCase();
|
|
253
|
+
if (essence === mimeType) {
|
|
254
|
+
return null;
|
|
158
255
|
}
|
|
159
|
-
return
|
|
256
|
+
return MIME_TO_EXT.get(essence) ?? null;
|
|
160
257
|
}
|
|
161
258
|
export { extension as getExtension };
|
|
162
259
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,wBAAwB,CAAA;AAClD,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAE5C,MAAM,WAAW,GAAG,IAAI,GAAG,EAAkB,CAAA;AAC7C,MAAM,WAAW,GAAG,IAAI,GAAG,EAAkB,CAAA;AAE7C,2EAA2E;AAC3E,6EAA6E;AAC7E,0EAA0E;AAC1E,2DAA2D;AAC3D,KAAK,MAAM,OAAO,IAAI,CAAC,aAAa,EAAE,UAAU,CAAwC,EAAE,CAAC;IACzF,KAAK,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACzD,IAAI,KAAK,GAAG,IAAI,CAAA;QAChB,KAAK,IAAI,GAAG,IAAI,UAAU,EAAE,CAAC;YAC3B,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;YACnC,IAAI,OAAO,EAAE,CAAC;gBACZ,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;YACpB,CAAC;YACD,IAAI,KAAK,EAAE,CAAC;gBACV,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;gBAC1B,KAAK,GAAG,KAAK,CAAA;YACf,CAAC;YACD,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC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A0E;IAC1E,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IAClC,MAAM,OAAO,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACvF,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;QACzB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,CAAA;AACzC,CAAC;AAED,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/mime",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -25,9 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^25.5.0",
|
|
28
|
+
"mitata": "^1.0.34",
|
|
28
29
|
"oxlint-tsgolint": "^0.17.0",
|
|
29
30
|
"rimraf": "^6.1.3",
|
|
30
31
|
"typescript": "^5.9.3"
|
|
31
32
|
},
|
|
32
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "c9f2526dc870597de119b8ec5083f97901d4a2e2"
|
|
33
34
|
}
|