Skip to content

Commit f5edc31

Browse files
committed
Revert "chore: update MDN types used in test"
This reverts commit 0cf1e55.
1 parent 0cf1e55 commit f5edc31

File tree

3 files changed

+11
-43
lines changed

3 files changed

+11
-43
lines changed

test/vendor.test.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@ describe('Mime vendor tests', () => {
2626
const MDN = {
2727
aac: 'audio/aac',
2828
abw: 'application/x-abiword',
29-
apng: 'image/apng',
3029
arc: 'application/x-freearc',
31-
avif: 'image/avif',
3230
avi: 'video/x-msvideo',
3331
azw: 'application/vnd.amazon.ebook',
3432
bin: 'application/octet-stream',
3533
bmp: 'image/bmp',
3634
bz: 'application/x-bzip',
3735
bz2: 'application/x-bzip2',
38-
cda: 'application/x-cdf',
3936
csh: 'application/x-csh',
4037
css: 'text/css',
4138
csv: 'text/csv',
@@ -55,11 +52,10 @@ describe('Mime vendor tests', () => {
5552
js: 'text/javascript',
5653
json: 'application/json',
5754
jsonld: 'application/ld+json',
58-
mid: 'audio/midi',
59-
midi: 'audio/midi',
55+
mid: 'audio/x-midi',
56+
midi: 'audio/x-midi',
6057
mjs: 'text/javascript',
6158
mp3: 'audio/mpeg',
62-
mp4: 'video/mp4',
6359
mpeg: 'video/mpeg',
6460
mpkg: 'application/vnd.apple.installer+xml',
6561
odp: 'application/vnd.oasis.opendocument.presentation',
@@ -68,17 +64,18 @@ describe('Mime vendor tests', () => {
6864
oga: 'audio/ogg',
6965
ogv: 'video/ogg',
7066
ogx: 'application/ogg',
71-
opus: 'audio/ogg',
67+
opus: 'audio/opus',
7268
otf: 'font/otf',
7369
png: 'image/png',
7470
pdf: 'application/pdf',
75-
php: 'application/x-httpd-php',
71+
php: 'application/php',
7672
ppt: 'application/vnd.ms-powerpoint',
7773
pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
7874
rar: 'application/vnd.rar',
7975
rtf: 'application/rtf',
8076
sh: 'application/x-sh',
8177
svg: 'image/svg+xml',
78+
swf: 'application/x-shockwave-flash',
8279
tar: 'application/x-tar',
8380
tif: 'image/tiff',
8481
tiff: 'image/tiff',

types/other.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const types: { [key: string]: string[] } = {
3636
'application/vnd.aristanetworks.swi': ['swi'],
3737
'application/vnd.astraea-software.iota': ['iota'],
3838
'application/vnd.audiograph': ['aep'],
39-
'application/vnd.autodesk.fbx': ['fbx'],
4039
'application/vnd.balsamiq.bmml+xml': ['bmml'],
4140
'application/vnd.blueice.multipass': ['mpm'],
4241
'application/vnd.bmi': ['bmi'],
@@ -66,7 +65,6 @@ const types: { [key: string]: string[] } = {
6665
'application/vnd.dart': ['dart'],
6766
'application/vnd.data-vision.rdz': ['rdz'],
6867
'application/vnd.dbf': ['dbf'],
69-
'application/vnd.dcmp+xml': ['dcmp'],
7068
'application/vnd.dece.data': ['uvf', 'uvvf', 'uvd', 'uvvd'],
7169
'application/vnd.dece.ttml+xml': ['uvt', 'uvvt'],
7270
'application/vnd.dece.unspecified': ['uvx', 'uvvx'],
@@ -118,13 +116,7 @@ const types: { [key: string]: string[] } = {
118116
'application/vnd.geospace': ['g3w'],
119117
'application/vnd.gmx': ['gmx'],
120118
'application/vnd.google-apps.document': ['gdoc'],
121-
'application/vnd.google-apps.drawing': ['gdraw'],
122-
'application/vnd.google-apps.form': ['gform'],
123-
'application/vnd.google-apps.jam': ['gjam'],
124-
'application/vnd.google-apps.map': ['gmap'],
125119
'application/vnd.google-apps.presentation': ['gslides'],
126-
'application/vnd.google-apps.script': ['gscript'],
127-
'application/vnd.google-apps.site': ['gsite'],
128120
'application/vnd.google-apps.spreadsheet': ['gsheet'],
129121
'application/vnd.google-earth.kml+xml': ['kml'],
130122
'application/vnd.google-earth.kmz': ['kmz'],
@@ -235,7 +227,6 @@ const types: { [key: string]: string[] } = {
235227
'application/vnd.ms-powerpoint.slideshow.macroenabled.12': ['ppsm'],
236228
'application/vnd.ms-powerpoint.template.macroenabled.12': ['potm'],
237229
'application/vnd.ms-project': ['*mpp', 'mpt'],
238-
'application/vnd.ms-visio.viewer': ['vdx'],
239230
'application/vnd.ms-word.document.macroenabled.12': ['docm'],
240231
'application/vnd.ms-word.template.macroenabled.12': ['dotm'],
241232
'application/vnd.ms-works': ['wps', 'wks', 'wcm', 'wdb'],
@@ -315,9 +306,6 @@ const types: { [key: string]: string[] } = {
315306
'application/vnd.pocketlearn': ['plf'],
316307
'application/vnd.powerbuilder6': ['pbd'],
317308
'application/vnd.previewsystems.box': ['box'],
318-
'application/vnd.procrate.brushset': ['brushset'],
319-
'application/vnd.procreate.brush': ['brush'],
320-
'application/vnd.procreate.dream': ['drm'],
321309
'application/vnd.proteus.magazine': ['mgz'],
322310
'application/vnd.publishare-delta-tree': ['qps'],
323311
'application/vnd.pvi.ptid1': ['ptid'],
@@ -393,7 +381,7 @@ const types: { [key: string]: string[] } = {
393381
'application/vnd.unity': ['unityweb'],
394382
'application/vnd.uoml+xml': ['uoml', 'uo'],
395383
'application/vnd.vcx': ['vcx'],
396-
'application/vnd.visio': ['vsd', 'vst', 'vss', 'vsw', 'vsdx', 'vtx'],
384+
'application/vnd.visio': ['vsd', 'vst', 'vss', 'vsw'],
397385
'application/vnd.visionary': ['vis'],
398386
'application/vnd.vsf': ['vsf'],
399387
'application/vnd.wap.wbxml': ['wbxml'],
@@ -427,7 +415,6 @@ const types: { [key: string]: string[] } = {
427415
'application/x-bcpio': ['bcpio'],
428416
'application/x-bdoc': ['*bdoc'],
429417
'application/x-bittorrent': ['torrent'],
430-
'application/x-blender': ['blend'],
431418
'application/x-blorb': ['blb', 'blorb'],
432419
'application/x-bzip': ['bz'],
433420
'application/x-bzip2': ['bz2', 'boz'],
@@ -438,7 +425,6 @@ const types: { [key: string]: string[] } = {
438425
'application/x-chess-pgn': ['pgn'],
439426
'application/x-chrome-extension': ['crx'],
440427
'application/x-cocoa': ['cco'],
441-
'application/x-compressed': ['*rar'],
442428
'application/x-conference': ['nsc'],
443429
'application/x-cpio': ['cpio'],
444430
'application/x-csh': ['csh'],
@@ -478,7 +464,6 @@ const types: { [key: string]: string[] } = {
478464
'application/x-hdf': ['hdf'],
479465
'application/x-httpd-php': ['php'],
480466
'application/x-install-instructions': ['install'],
481-
'application/x-ipynb+json': ['ipynb'],
482467
'application/x-iso9660-image': ['*iso'],
483468
'application/x-iwork-keynote-sffkey': ['*key'],
484469
'application/x-iwork-numbers-sffnumbers': ['*numbers'],
@@ -556,7 +541,6 @@ const types: { [key: string]: string[] } = {
556541
'application/x-xliff+xml': ['*xlf'],
557542
'application/x-xpinstall': ['xpi'],
558543
'application/x-xz': ['xz'],
559-
'application/x-zip-compressed': ['*zip'],
560544
'application/x-zmachine': ['z1', 'z2', 'z3', 'z4', 'z5', 'z6', 'z7', 'z8'],
561545
'audio/vnd.dece.audio': ['uva', 'uvva'],
562546
'audio/vnd.digital-winds': ['eol'],
@@ -614,7 +598,6 @@ const types: { [key: string]: string[] } = {
614598
'image/vnd.xiff': ['xif'],
615599
'image/vnd.zbrush.pcx': ['pcx'],
616600
'image/x-3ds': ['3ds'],
617-
'image/x-adobe-dng': ['dng'],
618601
'image/x-cmu-raster': ['ras'],
619602
'image/x-cmx': ['cmx'],
620603
'image/x-freehand': ['fh', 'fhc', 'fh4', 'fh5', 'fh7'],

types/standard.ts

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const types: { [key: string]: string[] } = {
2828
'application/dash+xml': ['mpd'],
2929
'application/dash-patch+xml': ['mpp'],
3030
'application/davmount+xml': ['davmount'],
31-
'application/dicom': ['dcm'],
3231
'application/docbook+xml': ['dbk'],
3332
'application/dssc+der': ['dssc'],
3433
'application/dssc+xml': ['xdssc'],
@@ -115,14 +114,7 @@ const types: { [key: string]: string[] } = {
115114
'application/oebps-package+xml': ['opf'],
116115
'application/ogg': ['ogx'],
117116
'application/omdoc+xml': ['omdoc'],
118-
'application/onenote': [
119-
'onetoc',
120-
'onetoc2',
121-
'onetmp',
122-
'onepkg',
123-
'one',
124-
'onea',
125-
],
117+
'application/onenote': ['onetoc', 'onetoc2', 'onetmp', 'onepkg'],
126118
'application/oxps': ['oxps'],
127119
'application/p2p-overlay+xml': ['relo'],
128120
'application/patch-ops-error+xml': ['xer'],
@@ -218,7 +210,6 @@ const types: { [key: string]: string[] } = {
218210
'application/yang': ['yang'],
219211
'application/yin+xml': ['yin'],
220212
'application/zip': ['zip'],
221-
'application/zip+dotlottie': ['lottie'],
222213
'audio/3gpp': ['*3gpp'],
223214
'audio/aac': ['adts', 'aac'],
224215
'audio/adpcm': ['adp'],
@@ -227,7 +218,7 @@ const types: { [key: string]: string[] } = {
227218
'audio/midi': ['mid', 'midi', 'kar', 'rmi'],
228219
'audio/mobile-xmf': ['mxmf'],
229220
'audio/mp3': ['*mp3'],
230-
'audio/mp4': ['m4a', 'mp4a', 'm4b'],
221+
'audio/mp4': ['m4a', 'mp4a'],
231222
'audio/mpeg': ['mpga', 'mp2', 'mp2a', 'mp3', 'm2a', 'm3a'],
232223
'audio/ogg': ['oga', 'ogg', 'spx', 'opus'],
233224
'audio/s3m': ['s3m'],
@@ -259,12 +250,11 @@ const types: { [key: string]: string[] } = {
259250
'image/heif': ['heif'],
260251
'image/heif-sequence': ['heifs'],
261252
'image/hej2k': ['hej2'],
253+
'image/hsj2': ['hsj2'],
262254
'image/ief': ['ief'],
263-
'image/jaii': ['jaii'],
264-
'image/jais': ['jais'],
265255
'image/jls': ['jls'],
266256
'image/jp2': ['jp2', 'jpg2'],
267-
'image/jpeg': ['jpg', 'jpeg', 'jpe'],
257+
'image/jpeg': ['jpeg', 'jpg', 'jpe'],
268258
'image/jph': ['jph'],
269259
'image/jphc': ['jhc'],
270260
'image/jpm': ['jpm', 'jpgm'],
@@ -279,7 +269,6 @@ const types: { [key: string]: string[] } = {
279269
'image/jxss': ['jxss'],
280270
'image/ktx': ['ktx'],
281271
'image/ktx2': ['ktx2'],
282-
'image/pjpeg': ['jfif'],
283272
'image/png': ['png'],
284273
'image/sgi': ['sgi'],
285274
'image/svg+xml': ['svg', 'svgz'],
@@ -293,7 +282,7 @@ const types: { [key: string]: string[] } = {
293282
'message/global-delivery-status': ['u8dsn'],
294283
'message/global-disposition-notification': ['u8mdn'],
295284
'message/global-headers': ['u8hdr'],
296-
'message/rfc822': ['eml', 'mime', 'mht', 'mhtml'],
285+
'message/rfc822': ['eml', 'mime'],
297286
'model/3mf': ['3mf'],
298287
'model/gltf+json': ['gltf'],
299288
'model/gltf-binary': ['glb'],
@@ -303,7 +292,6 @@ const types: { [key: string]: string[] } = {
303292
'model/mtl': ['mtl'],
304293
'model/obj': ['obj'],
305294
'model/prc': ['prc'],
306-
'model/step': ['step', 'stp', 'stpnc', 'p21', '210'],
307295
'model/step+xml': ['stpx'],
308296
'model/step+zip': ['stpz'],
309297
'model/step-xml+zip': ['stpxz'],

0 commit comments

Comments
 (0)