From f0263cb9e50de31c58abe0fbb8c8fde21beb71aa Mon Sep 17 00:00:00 2001 From: Robert Kieffer Date: Thu, 3 Apr 2025 07:02:05 -0700 Subject: [PATCH] fix: update mime types --- types/other.ts | 19 ++++++++++++++++++- types/standard.ts | 22 +++++++++++++++++----- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/types/other.ts b/types/other.ts index 04ced6a..ed1095a 100644 --- a/types/other.ts +++ b/types/other.ts @@ -36,6 +36,7 @@ const types: { [key: string]: string[] } = { 'application/vnd.aristanetworks.swi': ['swi'], 'application/vnd.astraea-software.iota': ['iota'], 'application/vnd.audiograph': ['aep'], + 'application/vnd.autodesk.fbx': ['fbx'], 'application/vnd.balsamiq.bmml+xml': ['bmml'], 'application/vnd.blueice.multipass': ['mpm'], 'application/vnd.bmi': ['bmi'], @@ -65,6 +66,7 @@ const types: { [key: string]: string[] } = { 'application/vnd.dart': ['dart'], 'application/vnd.data-vision.rdz': ['rdz'], 'application/vnd.dbf': ['dbf'], + 'application/vnd.dcmp+xml': ['dcmp'], 'application/vnd.dece.data': ['uvf', 'uvvf', 'uvd', 'uvvd'], 'application/vnd.dece.ttml+xml': ['uvt', 'uvvt'], 'application/vnd.dece.unspecified': ['uvx', 'uvvx'], @@ -116,7 +118,13 @@ const types: { [key: string]: string[] } = { 'application/vnd.geospace': ['g3w'], 'application/vnd.gmx': ['gmx'], 'application/vnd.google-apps.document': ['gdoc'], + 'application/vnd.google-apps.drawing': ['gdraw'], + 'application/vnd.google-apps.form': ['gform'], + 'application/vnd.google-apps.jam': ['gjam'], + 'application/vnd.google-apps.map': ['gmap'], 'application/vnd.google-apps.presentation': ['gslides'], + 'application/vnd.google-apps.script': ['gscript'], + 'application/vnd.google-apps.site': ['gsite'], 'application/vnd.google-apps.spreadsheet': ['gsheet'], 'application/vnd.google-earth.kml+xml': ['kml'], 'application/vnd.google-earth.kmz': ['kmz'], @@ -227,6 +235,7 @@ const types: { [key: string]: string[] } = { 'application/vnd.ms-powerpoint.slideshow.macroenabled.12': ['ppsm'], 'application/vnd.ms-powerpoint.template.macroenabled.12': ['potm'], 'application/vnd.ms-project': ['*mpp', 'mpt'], + 'application/vnd.ms-visio.viewer': ['vdx'], 'application/vnd.ms-word.document.macroenabled.12': ['docm'], 'application/vnd.ms-word.template.macroenabled.12': ['dotm'], 'application/vnd.ms-works': ['wps', 'wks', 'wcm', 'wdb'], @@ -306,6 +315,9 @@ const types: { [key: string]: string[] } = { 'application/vnd.pocketlearn': ['plf'], 'application/vnd.powerbuilder6': ['pbd'], 'application/vnd.previewsystems.box': ['box'], + 'application/vnd.procrate.brushset': ['brushset'], + 'application/vnd.procreate.brush': ['brush'], + 'application/vnd.procreate.dream': ['drm'], 'application/vnd.proteus.magazine': ['mgz'], 'application/vnd.publishare-delta-tree': ['qps'], 'application/vnd.pvi.ptid1': ['ptid'], @@ -381,7 +393,7 @@ const types: { [key: string]: string[] } = { 'application/vnd.unity': ['unityweb'], 'application/vnd.uoml+xml': ['uoml', 'uo'], 'application/vnd.vcx': ['vcx'], - 'application/vnd.visio': ['vsd', 'vst', 'vss', 'vsw'], + 'application/vnd.visio': ['vsd', 'vst', 'vss', 'vsw', 'vsdx', 'vtx'], 'application/vnd.visionary': ['vis'], 'application/vnd.vsf': ['vsf'], 'application/vnd.wap.wbxml': ['wbxml'], @@ -415,6 +427,7 @@ const types: { [key: string]: string[] } = { 'application/x-bcpio': ['bcpio'], 'application/x-bdoc': ['*bdoc'], 'application/x-bittorrent': ['torrent'], + 'application/x-blender': ['blend'], 'application/x-blorb': ['blb', 'blorb'], 'application/x-bzip': ['bz'], 'application/x-bzip2': ['bz2', 'boz'], @@ -425,6 +438,7 @@ const types: { [key: string]: string[] } = { 'application/x-chess-pgn': ['pgn'], 'application/x-chrome-extension': ['crx'], 'application/x-cocoa': ['cco'], + 'application/x-compressed': ['*rar'], 'application/x-conference': ['nsc'], 'application/x-cpio': ['cpio'], 'application/x-csh': ['csh'], @@ -464,6 +478,7 @@ const types: { [key: string]: string[] } = { 'application/x-hdf': ['hdf'], 'application/x-httpd-php': ['php'], 'application/x-install-instructions': ['install'], + 'application/x-ipynb+json': ['ipynb'], 'application/x-iso9660-image': ['*iso'], 'application/x-iwork-keynote-sffkey': ['*key'], 'application/x-iwork-numbers-sffnumbers': ['*numbers'], @@ -541,6 +556,7 @@ const types: { [key: string]: string[] } = { 'application/x-xliff+xml': ['*xlf'], 'application/x-xpinstall': ['xpi'], 'application/x-xz': ['xz'], + 'application/x-zip-compressed': ['*zip'], 'application/x-zmachine': ['z1', 'z2', 'z3', 'z4', 'z5', 'z6', 'z7', 'z8'], 'audio/vnd.dece.audio': ['uva', 'uvva'], 'audio/vnd.digital-winds': ['eol'], @@ -598,6 +614,7 @@ const types: { [key: string]: string[] } = { 'image/vnd.xiff': ['xif'], 'image/vnd.zbrush.pcx': ['pcx'], 'image/x-3ds': ['3ds'], + 'image/x-adobe-dng': ['dng'], 'image/x-cmu-raster': ['ras'], 'image/x-cmx': ['cmx'], 'image/x-freehand': ['fh', 'fhc', 'fh4', 'fh5', 'fh7'], diff --git a/types/standard.ts b/types/standard.ts index 295da88..7b84e89 100644 --- a/types/standard.ts +++ b/types/standard.ts @@ -28,6 +28,7 @@ const types: { [key: string]: string[] } = { 'application/dash+xml': ['mpd'], 'application/dash-patch+xml': ['mpp'], 'application/davmount+xml': ['davmount'], + 'application/dicom': ['dcm'], 'application/docbook+xml': ['dbk'], 'application/dssc+der': ['dssc'], 'application/dssc+xml': ['xdssc'], @@ -114,7 +115,14 @@ const types: { [key: string]: string[] } = { 'application/oebps-package+xml': ['opf'], 'application/ogg': ['ogx'], 'application/omdoc+xml': ['omdoc'], - 'application/onenote': ['onetoc', 'onetoc2', 'onetmp', 'onepkg'], + 'application/onenote': [ + 'onetoc', + 'onetoc2', + 'onetmp', + 'onepkg', + 'one', + 'onea', + ], 'application/oxps': ['oxps'], 'application/p2p-overlay+xml': ['relo'], 'application/patch-ops-error+xml': ['xer'], @@ -210,6 +218,7 @@ const types: { [key: string]: string[] } = { 'application/yang': ['yang'], 'application/yin+xml': ['yin'], 'application/zip': ['zip'], + 'application/zip+dotlottie': ['lottie'], 'audio/3gpp': ['*3gpp'], 'audio/aac': ['adts', 'aac'], 'audio/adpcm': ['adp'], @@ -218,7 +227,7 @@ const types: { [key: string]: string[] } = { 'audio/midi': ['mid', 'midi', 'kar', 'rmi'], 'audio/mobile-xmf': ['mxmf'], 'audio/mp3': ['*mp3'], - 'audio/mp4': ['m4a', 'mp4a'], + 'audio/mp4': ['m4a', 'mp4a', 'm4b'], 'audio/mpeg': ['mpga', 'mp2', 'mp2a', 'mp3', 'm2a', 'm3a'], 'audio/ogg': ['oga', 'ogg', 'spx', 'opus'], 'audio/s3m': ['s3m'], @@ -250,11 +259,12 @@ const types: { [key: string]: string[] } = { 'image/heif': ['heif'], 'image/heif-sequence': ['heifs'], 'image/hej2k': ['hej2'], - 'image/hsj2': ['hsj2'], 'image/ief': ['ief'], + 'image/jaii': ['jaii'], + 'image/jais': ['jais'], 'image/jls': ['jls'], 'image/jp2': ['jp2', 'jpg2'], - 'image/jpeg': ['jpeg', 'jpg', 'jpe'], + 'image/jpeg': ['jpg', 'jpeg', 'jpe'], 'image/jph': ['jph'], 'image/jphc': ['jhc'], 'image/jpm': ['jpm', 'jpgm'], @@ -269,6 +279,7 @@ const types: { [key: string]: string[] } = { 'image/jxss': ['jxss'], 'image/ktx': ['ktx'], 'image/ktx2': ['ktx2'], + 'image/pjpeg': ['jfif'], 'image/png': ['png'], 'image/sgi': ['sgi'], 'image/svg+xml': ['svg', 'svgz'], @@ -282,7 +293,7 @@ const types: { [key: string]: string[] } = { 'message/global-delivery-status': ['u8dsn'], 'message/global-disposition-notification': ['u8mdn'], 'message/global-headers': ['u8hdr'], - 'message/rfc822': ['eml', 'mime'], + 'message/rfc822': ['eml', 'mime', 'mht', 'mhtml'], 'model/3mf': ['3mf'], 'model/gltf+json': ['gltf'], 'model/gltf-binary': ['glb'], @@ -292,6 +303,7 @@ const types: { [key: string]: string[] } = { 'model/mtl': ['mtl'], 'model/obj': ['obj'], 'model/prc': ['prc'], + 'model/step': ['step', 'stp', 'stpnc', 'p21', '210'], 'model/step+xml': ['stpx'], 'model/step+zip': ['stpz'], 'model/step-xml+zip': ['stpxz'],