@malevich-studio/strapi-sdk-typescript 1.1.2 → 1.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/index.mjs CHANGED
@@ -1,6 +1,4 @@
1
1
  import require$$0 from 'util';
2
- import { readFile } from 'fs/promises';
3
- import { basename } from 'node:path';
4
2
 
5
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
4
 
@@ -20073,1147 +20071,6 @@ function requireLib () {
20073
20071
  var libExports = requireLib();
20074
20072
  var qs = /*@__PURE__*/getDefaultExportFromCjs(libExports);
20075
20073
 
20076
- const types$1 = {
20077
- 'application/prs.cww': ['cww'],
20078
- 'application/prs.xsf+xml': ['xsf'],
20079
- 'application/vnd.1000minds.decision-model+xml': ['1km'],
20080
- 'application/vnd.3gpp.pic-bw-large': ['plb'],
20081
- 'application/vnd.3gpp.pic-bw-small': ['psb'],
20082
- 'application/vnd.3gpp.pic-bw-var': ['pvb'],
20083
- 'application/vnd.3gpp2.tcap': ['tcap'],
20084
- 'application/vnd.3m.post-it-notes': ['pwn'],
20085
- 'application/vnd.accpac.simply.aso': ['aso'],
20086
- 'application/vnd.accpac.simply.imp': ['imp'],
20087
- 'application/vnd.acucobol': ['acu'],
20088
- 'application/vnd.acucorp': ['atc', 'acutc'],
20089
- 'application/vnd.adobe.air-application-installer-package+zip': ['air'],
20090
- 'application/vnd.adobe.formscentral.fcdt': ['fcdt'],
20091
- 'application/vnd.adobe.fxp': ['fxp', 'fxpl'],
20092
- 'application/vnd.adobe.xdp+xml': ['xdp'],
20093
- 'application/vnd.adobe.xfdf': ['*xfdf'],
20094
- 'application/vnd.age': ['age'],
20095
- 'application/vnd.ahead.space': ['ahead'],
20096
- 'application/vnd.airzip.filesecure.azf': ['azf'],
20097
- 'application/vnd.airzip.filesecure.azs': ['azs'],
20098
- 'application/vnd.amazon.ebook': ['azw'],
20099
- 'application/vnd.americandynamics.acc': ['acc'],
20100
- 'application/vnd.amiga.ami': ['ami'],
20101
- 'application/vnd.android.package-archive': ['apk'],
20102
- 'application/vnd.anser-web-certificate-issue-initiation': ['cii'],
20103
- 'application/vnd.anser-web-funds-transfer-initiation': ['fti'],
20104
- 'application/vnd.antix.game-component': ['atx'],
20105
- 'application/vnd.apple.installer+xml': ['mpkg'],
20106
- 'application/vnd.apple.keynote': ['key'],
20107
- 'application/vnd.apple.mpegurl': ['m3u8'],
20108
- 'application/vnd.apple.numbers': ['numbers'],
20109
- 'application/vnd.apple.pages': ['pages'],
20110
- 'application/vnd.apple.pkpass': ['pkpass'],
20111
- 'application/vnd.aristanetworks.swi': ['swi'],
20112
- 'application/vnd.astraea-software.iota': ['iota'],
20113
- 'application/vnd.audiograph': ['aep'],
20114
- 'application/vnd.balsamiq.bmml+xml': ['bmml'],
20115
- 'application/vnd.blueice.multipass': ['mpm'],
20116
- 'application/vnd.bmi': ['bmi'],
20117
- 'application/vnd.businessobjects': ['rep'],
20118
- 'application/vnd.chemdraw+xml': ['cdxml'],
20119
- 'application/vnd.chipnuts.karaoke-mmd': ['mmd'],
20120
- 'application/vnd.cinderella': ['cdy'],
20121
- 'application/vnd.citationstyles.style+xml': ['csl'],
20122
- 'application/vnd.claymore': ['cla'],
20123
- 'application/vnd.cloanto.rp9': ['rp9'],
20124
- 'application/vnd.clonk.c4group': ['c4g', 'c4d', 'c4f', 'c4p', 'c4u'],
20125
- 'application/vnd.cluetrust.cartomobile-config': ['c11amc'],
20126
- 'application/vnd.cluetrust.cartomobile-config-pkg': ['c11amz'],
20127
- 'application/vnd.commonspace': ['csp'],
20128
- 'application/vnd.contact.cmsg': ['cdbcmsg'],
20129
- 'application/vnd.cosmocaller': ['cmc'],
20130
- 'application/vnd.crick.clicker': ['clkx'],
20131
- 'application/vnd.crick.clicker.keyboard': ['clkk'],
20132
- 'application/vnd.crick.clicker.palette': ['clkp'],
20133
- 'application/vnd.crick.clicker.template': ['clkt'],
20134
- 'application/vnd.crick.clicker.wordbank': ['clkw'],
20135
- 'application/vnd.criticaltools.wbs+xml': ['wbs'],
20136
- 'application/vnd.ctc-posml': ['pml'],
20137
- 'application/vnd.cups-ppd': ['ppd'],
20138
- 'application/vnd.curl.car': ['car'],
20139
- 'application/vnd.curl.pcurl': ['pcurl'],
20140
- 'application/vnd.dart': ['dart'],
20141
- 'application/vnd.data-vision.rdz': ['rdz'],
20142
- 'application/vnd.dbf': ['dbf'],
20143
- 'application/vnd.dece.data': ['uvf', 'uvvf', 'uvd', 'uvvd'],
20144
- 'application/vnd.dece.ttml+xml': ['uvt', 'uvvt'],
20145
- 'application/vnd.dece.unspecified': ['uvx', 'uvvx'],
20146
- 'application/vnd.dece.zip': ['uvz', 'uvvz'],
20147
- 'application/vnd.denovo.fcselayout-link': ['fe_launch'],
20148
- 'application/vnd.dna': ['dna'],
20149
- 'application/vnd.dolby.mlp': ['mlp'],
20150
- 'application/vnd.dpgraph': ['dpg'],
20151
- 'application/vnd.dreamfactory': ['dfac'],
20152
- 'application/vnd.ds-keypoint': ['kpxx'],
20153
- 'application/vnd.dvb.ait': ['ait'],
20154
- 'application/vnd.dvb.service': ['svc'],
20155
- 'application/vnd.dynageo': ['geo'],
20156
- 'application/vnd.ecowin.chart': ['mag'],
20157
- 'application/vnd.enliven': ['nml'],
20158
- 'application/vnd.epson.esf': ['esf'],
20159
- 'application/vnd.epson.msf': ['msf'],
20160
- 'application/vnd.epson.quickanime': ['qam'],
20161
- 'application/vnd.epson.salt': ['slt'],
20162
- 'application/vnd.epson.ssf': ['ssf'],
20163
- 'application/vnd.eszigno3+xml': ['es3', 'et3'],
20164
- 'application/vnd.ezpix-album': ['ez2'],
20165
- 'application/vnd.ezpix-package': ['ez3'],
20166
- 'application/vnd.fdf': ['*fdf'],
20167
- 'application/vnd.fdsn.mseed': ['mseed'],
20168
- 'application/vnd.fdsn.seed': ['seed', 'dataless'],
20169
- 'application/vnd.flographit': ['gph'],
20170
- 'application/vnd.fluxtime.clip': ['ftc'],
20171
- 'application/vnd.framemaker': ['fm', 'frame', 'maker', 'book'],
20172
- 'application/vnd.frogans.fnc': ['fnc'],
20173
- 'application/vnd.frogans.ltf': ['ltf'],
20174
- 'application/vnd.fsc.weblaunch': ['fsc'],
20175
- 'application/vnd.fujitsu.oasys': ['oas'],
20176
- 'application/vnd.fujitsu.oasys2': ['oa2'],
20177
- 'application/vnd.fujitsu.oasys3': ['oa3'],
20178
- 'application/vnd.fujitsu.oasysgp': ['fg5'],
20179
- 'application/vnd.fujitsu.oasysprs': ['bh2'],
20180
- 'application/vnd.fujixerox.ddd': ['ddd'],
20181
- 'application/vnd.fujixerox.docuworks': ['xdw'],
20182
- 'application/vnd.fujixerox.docuworks.binder': ['xbd'],
20183
- 'application/vnd.fuzzysheet': ['fzs'],
20184
- 'application/vnd.genomatix.tuxedo': ['txd'],
20185
- 'application/vnd.geogebra.file': ['ggb'],
20186
- 'application/vnd.geogebra.slides': ['ggs'],
20187
- 'application/vnd.geogebra.tool': ['ggt'],
20188
- 'application/vnd.geometry-explorer': ['gex', 'gre'],
20189
- 'application/vnd.geonext': ['gxt'],
20190
- 'application/vnd.geoplan': ['g2w'],
20191
- 'application/vnd.geospace': ['g3w'],
20192
- 'application/vnd.gmx': ['gmx'],
20193
- 'application/vnd.google-apps.document': ['gdoc'],
20194
- 'application/vnd.google-apps.presentation': ['gslides'],
20195
- 'application/vnd.google-apps.spreadsheet': ['gsheet'],
20196
- 'application/vnd.google-earth.kml+xml': ['kml'],
20197
- 'application/vnd.google-earth.kmz': ['kmz'],
20198
- 'application/vnd.gov.sk.xmldatacontainer+xml': ['xdcf'],
20199
- 'application/vnd.grafeq': ['gqf', 'gqs'],
20200
- 'application/vnd.groove-account': ['gac'],
20201
- 'application/vnd.groove-help': ['ghf'],
20202
- 'application/vnd.groove-identity-message': ['gim'],
20203
- 'application/vnd.groove-injector': ['grv'],
20204
- 'application/vnd.groove-tool-message': ['gtm'],
20205
- 'application/vnd.groove-tool-template': ['tpl'],
20206
- 'application/vnd.groove-vcard': ['vcg'],
20207
- 'application/vnd.hal+xml': ['hal'],
20208
- 'application/vnd.handheld-entertainment+xml': ['zmm'],
20209
- 'application/vnd.hbci': ['hbci'],
20210
- 'application/vnd.hhe.lesson-player': ['les'],
20211
- 'application/vnd.hp-hpgl': ['hpgl'],
20212
- 'application/vnd.hp-hpid': ['hpid'],
20213
- 'application/vnd.hp-hps': ['hps'],
20214
- 'application/vnd.hp-jlyt': ['jlt'],
20215
- 'application/vnd.hp-pcl': ['pcl'],
20216
- 'application/vnd.hp-pclxl': ['pclxl'],
20217
- 'application/vnd.hydrostatix.sof-data': ['sfd-hdstx'],
20218
- 'application/vnd.ibm.minipay': ['mpy'],
20219
- 'application/vnd.ibm.modcap': ['afp', 'listafp', 'list3820'],
20220
- 'application/vnd.ibm.rights-management': ['irm'],
20221
- 'application/vnd.ibm.secure-container': ['sc'],
20222
- 'application/vnd.iccprofile': ['icc', 'icm'],
20223
- 'application/vnd.igloader': ['igl'],
20224
- 'application/vnd.immervision-ivp': ['ivp'],
20225
- 'application/vnd.immervision-ivu': ['ivu'],
20226
- 'application/vnd.insors.igm': ['igm'],
20227
- 'application/vnd.intercon.formnet': ['xpw', 'xpx'],
20228
- 'application/vnd.intergeo': ['i2g'],
20229
- 'application/vnd.intu.qbo': ['qbo'],
20230
- 'application/vnd.intu.qfx': ['qfx'],
20231
- 'application/vnd.ipunplugged.rcprofile': ['rcprofile'],
20232
- 'application/vnd.irepository.package+xml': ['irp'],
20233
- 'application/vnd.is-xpr': ['xpr'],
20234
- 'application/vnd.isac.fcs': ['fcs'],
20235
- 'application/vnd.jam': ['jam'],
20236
- 'application/vnd.jcp.javame.midlet-rms': ['rms'],
20237
- 'application/vnd.jisp': ['jisp'],
20238
- 'application/vnd.joost.joda-archive': ['joda'],
20239
- 'application/vnd.kahootz': ['ktz', 'ktr'],
20240
- 'application/vnd.kde.karbon': ['karbon'],
20241
- 'application/vnd.kde.kchart': ['chrt'],
20242
- 'application/vnd.kde.kformula': ['kfo'],
20243
- 'application/vnd.kde.kivio': ['flw'],
20244
- 'application/vnd.kde.kontour': ['kon'],
20245
- 'application/vnd.kde.kpresenter': ['kpr', 'kpt'],
20246
- 'application/vnd.kde.kspread': ['ksp'],
20247
- 'application/vnd.kde.kword': ['kwd', 'kwt'],
20248
- 'application/vnd.kenameaapp': ['htke'],
20249
- 'application/vnd.kidspiration': ['kia'],
20250
- 'application/vnd.kinar': ['kne', 'knp'],
20251
- 'application/vnd.koan': ['skp', 'skd', 'skt', 'skm'],
20252
- 'application/vnd.kodak-descriptor': ['sse'],
20253
- 'application/vnd.las.las+xml': ['lasxml'],
20254
- 'application/vnd.llamagraphics.life-balance.desktop': ['lbd'],
20255
- 'application/vnd.llamagraphics.life-balance.exchange+xml': ['lbe'],
20256
- 'application/vnd.lotus-1-2-3': ['123'],
20257
- 'application/vnd.lotus-approach': ['apr'],
20258
- 'application/vnd.lotus-freelance': ['pre'],
20259
- 'application/vnd.lotus-notes': ['nsf'],
20260
- 'application/vnd.lotus-organizer': ['org'],
20261
- 'application/vnd.lotus-screencam': ['scm'],
20262
- 'application/vnd.lotus-wordpro': ['lwp'],
20263
- 'application/vnd.macports.portpkg': ['portpkg'],
20264
- 'application/vnd.mapbox-vector-tile': ['mvt'],
20265
- 'application/vnd.mcd': ['mcd'],
20266
- 'application/vnd.medcalcdata': ['mc1'],
20267
- 'application/vnd.mediastation.cdkey': ['cdkey'],
20268
- 'application/vnd.mfer': ['mwf'],
20269
- 'application/vnd.mfmp': ['mfm'],
20270
- 'application/vnd.micrografx.flo': ['flo'],
20271
- 'application/vnd.micrografx.igx': ['igx'],
20272
- 'application/vnd.mif': ['mif'],
20273
- 'application/vnd.mobius.daf': ['daf'],
20274
- 'application/vnd.mobius.dis': ['dis'],
20275
- 'application/vnd.mobius.mbk': ['mbk'],
20276
- 'application/vnd.mobius.mqy': ['mqy'],
20277
- 'application/vnd.mobius.msl': ['msl'],
20278
- 'application/vnd.mobius.plc': ['plc'],
20279
- 'application/vnd.mobius.txf': ['txf'],
20280
- 'application/vnd.mophun.application': ['mpn'],
20281
- 'application/vnd.mophun.certificate': ['mpc'],
20282
- 'application/vnd.mozilla.xul+xml': ['xul'],
20283
- 'application/vnd.ms-artgalry': ['cil'],
20284
- 'application/vnd.ms-cab-compressed': ['cab'],
20285
- 'application/vnd.ms-excel': ['xls', 'xlm', 'xla', 'xlc', 'xlt', 'xlw'],
20286
- 'application/vnd.ms-excel.addin.macroenabled.12': ['xlam'],
20287
- 'application/vnd.ms-excel.sheet.binary.macroenabled.12': ['xlsb'],
20288
- 'application/vnd.ms-excel.sheet.macroenabled.12': ['xlsm'],
20289
- 'application/vnd.ms-excel.template.macroenabled.12': ['xltm'],
20290
- 'application/vnd.ms-fontobject': ['eot'],
20291
- 'application/vnd.ms-htmlhelp': ['chm'],
20292
- 'application/vnd.ms-ims': ['ims'],
20293
- 'application/vnd.ms-lrm': ['lrm'],
20294
- 'application/vnd.ms-officetheme': ['thmx'],
20295
- 'application/vnd.ms-outlook': ['msg'],
20296
- 'application/vnd.ms-pki.seccat': ['cat'],
20297
- 'application/vnd.ms-pki.stl': ['*stl'],
20298
- 'application/vnd.ms-powerpoint': ['ppt', 'pps', 'pot'],
20299
- 'application/vnd.ms-powerpoint.addin.macroenabled.12': ['ppam'],
20300
- 'application/vnd.ms-powerpoint.presentation.macroenabled.12': ['pptm'],
20301
- 'application/vnd.ms-powerpoint.slide.macroenabled.12': ['sldm'],
20302
- 'application/vnd.ms-powerpoint.slideshow.macroenabled.12': ['ppsm'],
20303
- 'application/vnd.ms-powerpoint.template.macroenabled.12': ['potm'],
20304
- 'application/vnd.ms-project': ['*mpp', 'mpt'],
20305
- 'application/vnd.ms-word.document.macroenabled.12': ['docm'],
20306
- 'application/vnd.ms-word.template.macroenabled.12': ['dotm'],
20307
- 'application/vnd.ms-works': ['wps', 'wks', 'wcm', 'wdb'],
20308
- 'application/vnd.ms-wpl': ['wpl'],
20309
- 'application/vnd.ms-xpsdocument': ['xps'],
20310
- 'application/vnd.mseq': ['mseq'],
20311
- 'application/vnd.musician': ['mus'],
20312
- 'application/vnd.muvee.style': ['msty'],
20313
- 'application/vnd.mynfc': ['taglet'],
20314
- 'application/vnd.nato.bindingdataobject+xml': ['bdo'],
20315
- 'application/vnd.neurolanguage.nlu': ['nlu'],
20316
- 'application/vnd.nitf': ['ntf', 'nitf'],
20317
- 'application/vnd.noblenet-directory': ['nnd'],
20318
- 'application/vnd.noblenet-sealer': ['nns'],
20319
- 'application/vnd.noblenet-web': ['nnw'],
20320
- 'application/vnd.nokia.n-gage.ac+xml': ['*ac'],
20321
- 'application/vnd.nokia.n-gage.data': ['ngdat'],
20322
- 'application/vnd.nokia.n-gage.symbian.install': ['n-gage'],
20323
- 'application/vnd.nokia.radio-preset': ['rpst'],
20324
- 'application/vnd.nokia.radio-presets': ['rpss'],
20325
- 'application/vnd.novadigm.edm': ['edm'],
20326
- 'application/vnd.novadigm.edx': ['edx'],
20327
- 'application/vnd.novadigm.ext': ['ext'],
20328
- 'application/vnd.oasis.opendocument.chart': ['odc'],
20329
- 'application/vnd.oasis.opendocument.chart-template': ['otc'],
20330
- 'application/vnd.oasis.opendocument.database': ['odb'],
20331
- 'application/vnd.oasis.opendocument.formula': ['odf'],
20332
- 'application/vnd.oasis.opendocument.formula-template': ['odft'],
20333
- 'application/vnd.oasis.opendocument.graphics': ['odg'],
20334
- 'application/vnd.oasis.opendocument.graphics-template': ['otg'],
20335
- 'application/vnd.oasis.opendocument.image': ['odi'],
20336
- 'application/vnd.oasis.opendocument.image-template': ['oti'],
20337
- 'application/vnd.oasis.opendocument.presentation': ['odp'],
20338
- 'application/vnd.oasis.opendocument.presentation-template': ['otp'],
20339
- 'application/vnd.oasis.opendocument.spreadsheet': ['ods'],
20340
- 'application/vnd.oasis.opendocument.spreadsheet-template': ['ots'],
20341
- 'application/vnd.oasis.opendocument.text': ['odt'],
20342
- 'application/vnd.oasis.opendocument.text-master': ['odm'],
20343
- 'application/vnd.oasis.opendocument.text-template': ['ott'],
20344
- 'application/vnd.oasis.opendocument.text-web': ['oth'],
20345
- 'application/vnd.olpc-sugar': ['xo'],
20346
- 'application/vnd.oma.dd2+xml': ['dd2'],
20347
- 'application/vnd.openblox.game+xml': ['obgx'],
20348
- 'application/vnd.openofficeorg.extension': ['oxt'],
20349
- 'application/vnd.openstreetmap.data+xml': ['osm'],
20350
- 'application/vnd.openxmlformats-officedocument.presentationml.presentation': [
20351
- 'pptx',
20352
- ],
20353
- 'application/vnd.openxmlformats-officedocument.presentationml.slide': [
20354
- 'sldx',
20355
- ],
20356
- 'application/vnd.openxmlformats-officedocument.presentationml.slideshow': [
20357
- 'ppsx',
20358
- ],
20359
- 'application/vnd.openxmlformats-officedocument.presentationml.template': [
20360
- 'potx',
20361
- ],
20362
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': ['xlsx'],
20363
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.template': [
20364
- 'xltx',
20365
- ],
20366
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': [
20367
- 'docx',
20368
- ],
20369
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.template': [
20370
- 'dotx',
20371
- ],
20372
- 'application/vnd.osgeo.mapguide.package': ['mgp'],
20373
- 'application/vnd.osgi.dp': ['dp'],
20374
- 'application/vnd.osgi.subsystem': ['esa'],
20375
- 'application/vnd.palm': ['pdb', 'pqa', 'oprc'],
20376
- 'application/vnd.pawaafile': ['paw'],
20377
- 'application/vnd.pg.format': ['str'],
20378
- 'application/vnd.pg.osasli': ['ei6'],
20379
- 'application/vnd.picsel': ['efif'],
20380
- 'application/vnd.pmi.widget': ['wg'],
20381
- 'application/vnd.pocketlearn': ['plf'],
20382
- 'application/vnd.powerbuilder6': ['pbd'],
20383
- 'application/vnd.previewsystems.box': ['box'],
20384
- 'application/vnd.proteus.magazine': ['mgz'],
20385
- 'application/vnd.publishare-delta-tree': ['qps'],
20386
- 'application/vnd.pvi.ptid1': ['ptid'],
20387
- 'application/vnd.pwg-xhtml-print+xml': ['xhtm'],
20388
- 'application/vnd.quark.quarkxpress': [
20389
- 'qxd',
20390
- 'qxt',
20391
- 'qwd',
20392
- 'qwt',
20393
- 'qxl',
20394
- 'qxb',
20395
- ],
20396
- 'application/vnd.rar': ['rar'],
20397
- 'application/vnd.realvnc.bed': ['bed'],
20398
- 'application/vnd.recordare.musicxml': ['mxl'],
20399
- 'application/vnd.recordare.musicxml+xml': ['musicxml'],
20400
- 'application/vnd.rig.cryptonote': ['cryptonote'],
20401
- 'application/vnd.rim.cod': ['cod'],
20402
- 'application/vnd.rn-realmedia': ['rm'],
20403
- 'application/vnd.rn-realmedia-vbr': ['rmvb'],
20404
- 'application/vnd.route66.link66+xml': ['link66'],
20405
- 'application/vnd.sailingtracker.track': ['st'],
20406
- 'application/vnd.seemail': ['see'],
20407
- 'application/vnd.sema': ['sema'],
20408
- 'application/vnd.semd': ['semd'],
20409
- 'application/vnd.semf': ['semf'],
20410
- 'application/vnd.shana.informed.formdata': ['ifm'],
20411
- 'application/vnd.shana.informed.formtemplate': ['itp'],
20412
- 'application/vnd.shana.informed.interchange': ['iif'],
20413
- 'application/vnd.shana.informed.package': ['ipk'],
20414
- 'application/vnd.simtech-mindmapper': ['twd', 'twds'],
20415
- 'application/vnd.smaf': ['mmf'],
20416
- 'application/vnd.smart.teacher': ['teacher'],
20417
- 'application/vnd.software602.filler.form+xml': ['fo'],
20418
- 'application/vnd.solent.sdkm+xml': ['sdkm', 'sdkd'],
20419
- 'application/vnd.spotfire.dxp': ['dxp'],
20420
- 'application/vnd.spotfire.sfs': ['sfs'],
20421
- 'application/vnd.stardivision.calc': ['sdc'],
20422
- 'application/vnd.stardivision.draw': ['sda'],
20423
- 'application/vnd.stardivision.impress': ['sdd'],
20424
- 'application/vnd.stardivision.math': ['smf'],
20425
- 'application/vnd.stardivision.writer': ['sdw', 'vor'],
20426
- 'application/vnd.stardivision.writer-global': ['sgl'],
20427
- 'application/vnd.stepmania.package': ['smzip'],
20428
- 'application/vnd.stepmania.stepchart': ['sm'],
20429
- 'application/vnd.sun.wadl+xml': ['wadl'],
20430
- 'application/vnd.sun.xml.calc': ['sxc'],
20431
- 'application/vnd.sun.xml.calc.template': ['stc'],
20432
- 'application/vnd.sun.xml.draw': ['sxd'],
20433
- 'application/vnd.sun.xml.draw.template': ['std'],
20434
- 'application/vnd.sun.xml.impress': ['sxi'],
20435
- 'application/vnd.sun.xml.impress.template': ['sti'],
20436
- 'application/vnd.sun.xml.math': ['sxm'],
20437
- 'application/vnd.sun.xml.writer': ['sxw'],
20438
- 'application/vnd.sun.xml.writer.global': ['sxg'],
20439
- 'application/vnd.sun.xml.writer.template': ['stw'],
20440
- 'application/vnd.sus-calendar': ['sus', 'susp'],
20441
- 'application/vnd.svd': ['svd'],
20442
- 'application/vnd.symbian.install': ['sis', 'sisx'],
20443
- 'application/vnd.syncml+xml': ['xsm'],
20444
- 'application/vnd.syncml.dm+wbxml': ['bdm'],
20445
- 'application/vnd.syncml.dm+xml': ['xdm'],
20446
- 'application/vnd.syncml.dmddf+xml': ['ddf'],
20447
- 'application/vnd.tao.intent-module-archive': ['tao'],
20448
- 'application/vnd.tcpdump.pcap': ['pcap', 'cap', 'dmp'],
20449
- 'application/vnd.tmobile-livetv': ['tmo'],
20450
- 'application/vnd.trid.tpt': ['tpt'],
20451
- 'application/vnd.triscape.mxs': ['mxs'],
20452
- 'application/vnd.trueapp': ['tra'],
20453
- 'application/vnd.ufdl': ['ufd', 'ufdl'],
20454
- 'application/vnd.uiq.theme': ['utz'],
20455
- 'application/vnd.umajin': ['umj'],
20456
- 'application/vnd.unity': ['unityweb'],
20457
- 'application/vnd.uoml+xml': ['uoml', 'uo'],
20458
- 'application/vnd.vcx': ['vcx'],
20459
- 'application/vnd.visio': ['vsd', 'vst', 'vss', 'vsw'],
20460
- 'application/vnd.visionary': ['vis'],
20461
- 'application/vnd.vsf': ['vsf'],
20462
- 'application/vnd.wap.wbxml': ['wbxml'],
20463
- 'application/vnd.wap.wmlc': ['wmlc'],
20464
- 'application/vnd.wap.wmlscriptc': ['wmlsc'],
20465
- 'application/vnd.webturbo': ['wtb'],
20466
- 'application/vnd.wolfram.player': ['nbp'],
20467
- 'application/vnd.wordperfect': ['wpd'],
20468
- 'application/vnd.wqd': ['wqd'],
20469
- 'application/vnd.wt.stf': ['stf'],
20470
- 'application/vnd.xara': ['xar'],
20471
- 'application/vnd.xfdl': ['xfdl'],
20472
- 'application/vnd.yamaha.hv-dic': ['hvd'],
20473
- 'application/vnd.yamaha.hv-script': ['hvs'],
20474
- 'application/vnd.yamaha.hv-voice': ['hvp'],
20475
- 'application/vnd.yamaha.openscoreformat': ['osf'],
20476
- 'application/vnd.yamaha.openscoreformat.osfpvg+xml': ['osfpvg'],
20477
- 'application/vnd.yamaha.smaf-audio': ['saf'],
20478
- 'application/vnd.yamaha.smaf-phrase': ['spf'],
20479
- 'application/vnd.yellowriver-custom-menu': ['cmp'],
20480
- 'application/vnd.zul': ['zir', 'zirz'],
20481
- 'application/vnd.zzazz.deck+xml': ['zaz'],
20482
- 'application/x-7z-compressed': ['7z'],
20483
- 'application/x-abiword': ['abw'],
20484
- 'application/x-ace-compressed': ['ace'],
20485
- 'application/x-apple-diskimage': ['*dmg'],
20486
- 'application/x-arj': ['arj'],
20487
- 'application/x-authorware-bin': ['aab', 'x32', 'u32', 'vox'],
20488
- 'application/x-authorware-map': ['aam'],
20489
- 'application/x-authorware-seg': ['aas'],
20490
- 'application/x-bcpio': ['bcpio'],
20491
- 'application/x-bdoc': ['*bdoc'],
20492
- 'application/x-bittorrent': ['torrent'],
20493
- 'application/x-blorb': ['blb', 'blorb'],
20494
- 'application/x-bzip': ['bz'],
20495
- 'application/x-bzip2': ['bz2', 'boz'],
20496
- 'application/x-cbr': ['cbr', 'cba', 'cbt', 'cbz', 'cb7'],
20497
- 'application/x-cdlink': ['vcd'],
20498
- 'application/x-cfs-compressed': ['cfs'],
20499
- 'application/x-chat': ['chat'],
20500
- 'application/x-chess-pgn': ['pgn'],
20501
- 'application/x-chrome-extension': ['crx'],
20502
- 'application/x-cocoa': ['cco'],
20503
- 'application/x-conference': ['nsc'],
20504
- 'application/x-cpio': ['cpio'],
20505
- 'application/x-csh': ['csh'],
20506
- 'application/x-debian-package': ['*deb', 'udeb'],
20507
- 'application/x-dgc-compressed': ['dgc'],
20508
- 'application/x-director': [
20509
- 'dir',
20510
- 'dcr',
20511
- 'dxr',
20512
- 'cst',
20513
- 'cct',
20514
- 'cxt',
20515
- 'w3d',
20516
- 'fgd',
20517
- 'swa',
20518
- ],
20519
- 'application/x-doom': ['wad'],
20520
- 'application/x-dtbncx+xml': ['ncx'],
20521
- 'application/x-dtbook+xml': ['dtb'],
20522
- 'application/x-dtbresource+xml': ['res'],
20523
- 'application/x-dvi': ['dvi'],
20524
- 'application/x-envoy': ['evy'],
20525
- 'application/x-eva': ['eva'],
20526
- 'application/x-font-bdf': ['bdf'],
20527
- 'application/x-font-ghostscript': ['gsf'],
20528
- 'application/x-font-linux-psf': ['psf'],
20529
- 'application/x-font-pcf': ['pcf'],
20530
- 'application/x-font-snf': ['snf'],
20531
- 'application/x-font-type1': ['pfa', 'pfb', 'pfm', 'afm'],
20532
- 'application/x-freearc': ['arc'],
20533
- 'application/x-futuresplash': ['spl'],
20534
- 'application/x-gca-compressed': ['gca'],
20535
- 'application/x-glulx': ['ulx'],
20536
- 'application/x-gnumeric': ['gnumeric'],
20537
- 'application/x-gramps-xml': ['gramps'],
20538
- 'application/x-gtar': ['gtar'],
20539
- 'application/x-hdf': ['hdf'],
20540
- 'application/x-httpd-php': ['php'],
20541
- 'application/x-install-instructions': ['install'],
20542
- 'application/x-iso9660-image': ['*iso'],
20543
- 'application/x-iwork-keynote-sffkey': ['*key'],
20544
- 'application/x-iwork-numbers-sffnumbers': ['*numbers'],
20545
- 'application/x-iwork-pages-sffpages': ['*pages'],
20546
- 'application/x-java-archive-diff': ['jardiff'],
20547
- 'application/x-java-jnlp-file': ['jnlp'],
20548
- 'application/x-keepass2': ['kdbx'],
20549
- 'application/x-latex': ['latex'],
20550
- 'application/x-lua-bytecode': ['luac'],
20551
- 'application/x-lzh-compressed': ['lzh', 'lha'],
20552
- 'application/x-makeself': ['run'],
20553
- 'application/x-mie': ['mie'],
20554
- 'application/x-mobipocket-ebook': ['*prc', 'mobi'],
20555
- 'application/x-ms-application': ['application'],
20556
- 'application/x-ms-shortcut': ['lnk'],
20557
- 'application/x-ms-wmd': ['wmd'],
20558
- 'application/x-ms-wmz': ['wmz'],
20559
- 'application/x-ms-xbap': ['xbap'],
20560
- 'application/x-msaccess': ['mdb'],
20561
- 'application/x-msbinder': ['obd'],
20562
- 'application/x-mscardfile': ['crd'],
20563
- 'application/x-msclip': ['clp'],
20564
- 'application/x-msdos-program': ['*exe'],
20565
- 'application/x-msdownload': ['*exe', '*dll', 'com', 'bat', '*msi'],
20566
- 'application/x-msmediaview': ['mvb', 'm13', 'm14'],
20567
- 'application/x-msmetafile': ['*wmf', '*wmz', '*emf', 'emz'],
20568
- 'application/x-msmoney': ['mny'],
20569
- 'application/x-mspublisher': ['pub'],
20570
- 'application/x-msschedule': ['scd'],
20571
- 'application/x-msterminal': ['trm'],
20572
- 'application/x-mswrite': ['wri'],
20573
- 'application/x-netcdf': ['nc', 'cdf'],
20574
- 'application/x-ns-proxy-autoconfig': ['pac'],
20575
- 'application/x-nzb': ['nzb'],
20576
- 'application/x-perl': ['pl', 'pm'],
20577
- 'application/x-pilot': ['*prc', '*pdb'],
20578
- 'application/x-pkcs12': ['p12', 'pfx'],
20579
- 'application/x-pkcs7-certificates': ['p7b', 'spc'],
20580
- 'application/x-pkcs7-certreqresp': ['p7r'],
20581
- 'application/x-rar-compressed': ['*rar'],
20582
- 'application/x-redhat-package-manager': ['rpm'],
20583
- 'application/x-research-info-systems': ['ris'],
20584
- 'application/x-sea': ['sea'],
20585
- 'application/x-sh': ['sh'],
20586
- 'application/x-shar': ['shar'],
20587
- 'application/x-shockwave-flash': ['swf'],
20588
- 'application/x-silverlight-app': ['xap'],
20589
- 'application/x-sql': ['*sql'],
20590
- 'application/x-stuffit': ['sit'],
20591
- 'application/x-stuffitx': ['sitx'],
20592
- 'application/x-subrip': ['srt'],
20593
- 'application/x-sv4cpio': ['sv4cpio'],
20594
- 'application/x-sv4crc': ['sv4crc'],
20595
- 'application/x-t3vm-image': ['t3'],
20596
- 'application/x-tads': ['gam'],
20597
- 'application/x-tar': ['tar'],
20598
- 'application/x-tcl': ['tcl', 'tk'],
20599
- 'application/x-tex': ['tex'],
20600
- 'application/x-tex-tfm': ['tfm'],
20601
- 'application/x-texinfo': ['texinfo', 'texi'],
20602
- 'application/x-tgif': ['*obj'],
20603
- 'application/x-ustar': ['ustar'],
20604
- 'application/x-virtualbox-hdd': ['hdd'],
20605
- 'application/x-virtualbox-ova': ['ova'],
20606
- 'application/x-virtualbox-ovf': ['ovf'],
20607
- 'application/x-virtualbox-vbox': ['vbox'],
20608
- 'application/x-virtualbox-vbox-extpack': ['vbox-extpack'],
20609
- 'application/x-virtualbox-vdi': ['vdi'],
20610
- 'application/x-virtualbox-vhd': ['vhd'],
20611
- 'application/x-virtualbox-vmdk': ['vmdk'],
20612
- 'application/x-wais-source': ['src'],
20613
- 'application/x-web-app-manifest+json': ['webapp'],
20614
- 'application/x-x509-ca-cert': ['der', 'crt', 'pem'],
20615
- 'application/x-xfig': ['fig'],
20616
- 'application/x-xliff+xml': ['*xlf'],
20617
- 'application/x-xpinstall': ['xpi'],
20618
- 'application/x-xz': ['xz'],
20619
- 'application/x-zmachine': ['z1', 'z2', 'z3', 'z4', 'z5', 'z6', 'z7', 'z8'],
20620
- 'audio/vnd.dece.audio': ['uva', 'uvva'],
20621
- 'audio/vnd.digital-winds': ['eol'],
20622
- 'audio/vnd.dra': ['dra'],
20623
- 'audio/vnd.dts': ['dts'],
20624
- 'audio/vnd.dts.hd': ['dtshd'],
20625
- 'audio/vnd.lucent.voice': ['lvp'],
20626
- 'audio/vnd.ms-playready.media.pya': ['pya'],
20627
- 'audio/vnd.nuera.ecelp4800': ['ecelp4800'],
20628
- 'audio/vnd.nuera.ecelp7470': ['ecelp7470'],
20629
- 'audio/vnd.nuera.ecelp9600': ['ecelp9600'],
20630
- 'audio/vnd.rip': ['rip'],
20631
- 'audio/x-aac': ['*aac'],
20632
- 'audio/x-aiff': ['aif', 'aiff', 'aifc'],
20633
- 'audio/x-caf': ['caf'],
20634
- 'audio/x-flac': ['flac'],
20635
- 'audio/x-m4a': ['*m4a'],
20636
- 'audio/x-matroska': ['mka'],
20637
- 'audio/x-mpegurl': ['m3u'],
20638
- 'audio/x-ms-wax': ['wax'],
20639
- 'audio/x-ms-wma': ['wma'],
20640
- 'audio/x-pn-realaudio': ['ram', 'ra'],
20641
- 'audio/x-pn-realaudio-plugin': ['rmp'],
20642
- 'audio/x-realaudio': ['*ra'],
20643
- 'audio/x-wav': ['*wav'],
20644
- 'chemical/x-cdx': ['cdx'],
20645
- 'chemical/x-cif': ['cif'],
20646
- 'chemical/x-cmdf': ['cmdf'],
20647
- 'chemical/x-cml': ['cml'],
20648
- 'chemical/x-csml': ['csml'],
20649
- 'chemical/x-xyz': ['xyz'],
20650
- 'image/prs.btif': ['btif', 'btf'],
20651
- 'image/prs.pti': ['pti'],
20652
- 'image/vnd.adobe.photoshop': ['psd'],
20653
- 'image/vnd.airzip.accelerator.azv': ['azv'],
20654
- 'image/vnd.dece.graphic': ['uvi', 'uvvi', 'uvg', 'uvvg'],
20655
- 'image/vnd.djvu': ['djvu', 'djv'],
20656
- 'image/vnd.dvb.subtitle': ['*sub'],
20657
- 'image/vnd.dwg': ['dwg'],
20658
- 'image/vnd.dxf': ['dxf'],
20659
- 'image/vnd.fastbidsheet': ['fbs'],
20660
- 'image/vnd.fpx': ['fpx'],
20661
- 'image/vnd.fst': ['fst'],
20662
- 'image/vnd.fujixerox.edmics-mmr': ['mmr'],
20663
- 'image/vnd.fujixerox.edmics-rlc': ['rlc'],
20664
- 'image/vnd.microsoft.icon': ['ico'],
20665
- 'image/vnd.ms-dds': ['dds'],
20666
- 'image/vnd.ms-modi': ['mdi'],
20667
- 'image/vnd.ms-photo': ['wdp'],
20668
- 'image/vnd.net-fpx': ['npx'],
20669
- 'image/vnd.pco.b16': ['b16'],
20670
- 'image/vnd.tencent.tap': ['tap'],
20671
- 'image/vnd.valve.source.texture': ['vtf'],
20672
- 'image/vnd.wap.wbmp': ['wbmp'],
20673
- 'image/vnd.xiff': ['xif'],
20674
- 'image/vnd.zbrush.pcx': ['pcx'],
20675
- 'image/x-3ds': ['3ds'],
20676
- 'image/x-cmu-raster': ['ras'],
20677
- 'image/x-cmx': ['cmx'],
20678
- 'image/x-freehand': ['fh', 'fhc', 'fh4', 'fh5', 'fh7'],
20679
- 'image/x-icon': ['*ico'],
20680
- 'image/x-jng': ['jng'],
20681
- 'image/x-mrsid-image': ['sid'],
20682
- 'image/x-ms-bmp': ['*bmp'],
20683
- 'image/x-pcx': ['*pcx'],
20684
- 'image/x-pict': ['pic', 'pct'],
20685
- 'image/x-portable-anymap': ['pnm'],
20686
- 'image/x-portable-bitmap': ['pbm'],
20687
- 'image/x-portable-graymap': ['pgm'],
20688
- 'image/x-portable-pixmap': ['ppm'],
20689
- 'image/x-rgb': ['rgb'],
20690
- 'image/x-tga': ['tga'],
20691
- 'image/x-xbitmap': ['xbm'],
20692
- 'image/x-xpixmap': ['xpm'],
20693
- 'image/x-xwindowdump': ['xwd'],
20694
- 'message/vnd.wfa.wsc': ['wsc'],
20695
- 'model/vnd.bary': ['bary'],
20696
- 'model/vnd.cld': ['cld'],
20697
- 'model/vnd.collada+xml': ['dae'],
20698
- 'model/vnd.dwf': ['dwf'],
20699
- 'model/vnd.gdl': ['gdl'],
20700
- 'model/vnd.gtw': ['gtw'],
20701
- 'model/vnd.mts': ['*mts'],
20702
- 'model/vnd.opengex': ['ogex'],
20703
- 'model/vnd.parasolid.transmit.binary': ['x_b'],
20704
- 'model/vnd.parasolid.transmit.text': ['x_t'],
20705
- 'model/vnd.pytha.pyox': ['pyo', 'pyox'],
20706
- 'model/vnd.sap.vds': ['vds'],
20707
- 'model/vnd.usda': ['usda'],
20708
- 'model/vnd.usdz+zip': ['usdz'],
20709
- 'model/vnd.valve.source.compiled-map': ['bsp'],
20710
- 'model/vnd.vtu': ['vtu'],
20711
- 'text/prs.lines.tag': ['dsc'],
20712
- 'text/vnd.curl': ['curl'],
20713
- 'text/vnd.curl.dcurl': ['dcurl'],
20714
- 'text/vnd.curl.mcurl': ['mcurl'],
20715
- 'text/vnd.curl.scurl': ['scurl'],
20716
- 'text/vnd.dvb.subtitle': ['sub'],
20717
- 'text/vnd.familysearch.gedcom': ['ged'],
20718
- 'text/vnd.fly': ['fly'],
20719
- 'text/vnd.fmi.flexstor': ['flx'],
20720
- 'text/vnd.graphviz': ['gv'],
20721
- 'text/vnd.in3d.3dml': ['3dml'],
20722
- 'text/vnd.in3d.spot': ['spot'],
20723
- 'text/vnd.sun.j2me.app-descriptor': ['jad'],
20724
- 'text/vnd.wap.wml': ['wml'],
20725
- 'text/vnd.wap.wmlscript': ['wmls'],
20726
- 'text/x-asm': ['s', 'asm'],
20727
- 'text/x-c': ['c', 'cc', 'cxx', 'cpp', 'h', 'hh', 'dic'],
20728
- 'text/x-component': ['htc'],
20729
- 'text/x-fortran': ['f', 'for', 'f77', 'f90'],
20730
- 'text/x-handlebars-template': ['hbs'],
20731
- 'text/x-java-source': ['java'],
20732
- 'text/x-lua': ['lua'],
20733
- 'text/x-markdown': ['mkd'],
20734
- 'text/x-nfo': ['nfo'],
20735
- 'text/x-opml': ['opml'],
20736
- 'text/x-org': ['*org'],
20737
- 'text/x-pascal': ['p', 'pas'],
20738
- 'text/x-processing': ['pde'],
20739
- 'text/x-sass': ['sass'],
20740
- 'text/x-scss': ['scss'],
20741
- 'text/x-setext': ['etx'],
20742
- 'text/x-sfv': ['sfv'],
20743
- 'text/x-suse-ymp': ['ymp'],
20744
- 'text/x-uuencode': ['uu'],
20745
- 'text/x-vcalendar': ['vcs'],
20746
- 'text/x-vcard': ['vcf'],
20747
- 'video/vnd.dece.hd': ['uvh', 'uvvh'],
20748
- 'video/vnd.dece.mobile': ['uvm', 'uvvm'],
20749
- 'video/vnd.dece.pd': ['uvp', 'uvvp'],
20750
- 'video/vnd.dece.sd': ['uvs', 'uvvs'],
20751
- 'video/vnd.dece.video': ['uvv', 'uvvv'],
20752
- 'video/vnd.dvb.file': ['dvb'],
20753
- 'video/vnd.fvt': ['fvt'],
20754
- 'video/vnd.mpegurl': ['mxu', 'm4u'],
20755
- 'video/vnd.ms-playready.media.pyv': ['pyv'],
20756
- 'video/vnd.uvvu.mp4': ['uvu', 'uvvu'],
20757
- 'video/vnd.vivo': ['viv'],
20758
- 'video/x-f4v': ['f4v'],
20759
- 'video/x-fli': ['fli'],
20760
- 'video/x-flv': ['flv'],
20761
- 'video/x-m4v': ['m4v'],
20762
- 'video/x-matroska': ['mkv', 'mk3d', 'mks'],
20763
- 'video/x-mng': ['mng'],
20764
- 'video/x-ms-asf': ['asf', 'asx'],
20765
- 'video/x-ms-vob': ['vob'],
20766
- 'video/x-ms-wm': ['wm'],
20767
- 'video/x-ms-wmv': ['wmv'],
20768
- 'video/x-ms-wmx': ['wmx'],
20769
- 'video/x-ms-wvx': ['wvx'],
20770
- 'video/x-msvideo': ['avi'],
20771
- 'video/x-sgi-movie': ['movie'],
20772
- 'video/x-smv': ['smv'],
20773
- 'x-conference/x-cooltalk': ['ice'],
20774
- };
20775
- Object.freeze(types$1);
20776
-
20777
- const types = {
20778
- 'application/andrew-inset': ['ez'],
20779
- 'application/appinstaller': ['appinstaller'],
20780
- 'application/applixware': ['aw'],
20781
- 'application/appx': ['appx'],
20782
- 'application/appxbundle': ['appxbundle'],
20783
- 'application/atom+xml': ['atom'],
20784
- 'application/atomcat+xml': ['atomcat'],
20785
- 'application/atomdeleted+xml': ['atomdeleted'],
20786
- 'application/atomsvc+xml': ['atomsvc'],
20787
- 'application/atsc-dwd+xml': ['dwd'],
20788
- 'application/atsc-held+xml': ['held'],
20789
- 'application/atsc-rsat+xml': ['rsat'],
20790
- 'application/automationml-aml+xml': ['aml'],
20791
- 'application/automationml-amlx+zip': ['amlx'],
20792
- 'application/bdoc': ['bdoc'],
20793
- 'application/calendar+xml': ['xcs'],
20794
- 'application/ccxml+xml': ['ccxml'],
20795
- 'application/cdfx+xml': ['cdfx'],
20796
- 'application/cdmi-capability': ['cdmia'],
20797
- 'application/cdmi-container': ['cdmic'],
20798
- 'application/cdmi-domain': ['cdmid'],
20799
- 'application/cdmi-object': ['cdmio'],
20800
- 'application/cdmi-queue': ['cdmiq'],
20801
- 'application/cpl+xml': ['cpl'],
20802
- 'application/cu-seeme': ['cu'],
20803
- 'application/cwl': ['cwl'],
20804
- 'application/dash+xml': ['mpd'],
20805
- 'application/dash-patch+xml': ['mpp'],
20806
- 'application/davmount+xml': ['davmount'],
20807
- 'application/docbook+xml': ['dbk'],
20808
- 'application/dssc+der': ['dssc'],
20809
- 'application/dssc+xml': ['xdssc'],
20810
- 'application/ecmascript': ['ecma'],
20811
- 'application/emma+xml': ['emma'],
20812
- 'application/emotionml+xml': ['emotionml'],
20813
- 'application/epub+zip': ['epub'],
20814
- 'application/exi': ['exi'],
20815
- 'application/express': ['exp'],
20816
- 'application/fdf': ['fdf'],
20817
- 'application/fdt+xml': ['fdt'],
20818
- 'application/font-tdpfr': ['pfr'],
20819
- 'application/geo+json': ['geojson'],
20820
- 'application/gml+xml': ['gml'],
20821
- 'application/gpx+xml': ['gpx'],
20822
- 'application/gxf': ['gxf'],
20823
- 'application/gzip': ['gz'],
20824
- 'application/hjson': ['hjson'],
20825
- 'application/hyperstudio': ['stk'],
20826
- 'application/inkml+xml': ['ink', 'inkml'],
20827
- 'application/ipfix': ['ipfix'],
20828
- 'application/its+xml': ['its'],
20829
- 'application/java-archive': ['jar', 'war', 'ear'],
20830
- 'application/java-serialized-object': ['ser'],
20831
- 'application/java-vm': ['class'],
20832
- 'application/javascript': ['*js'],
20833
- 'application/json': ['json', 'map'],
20834
- 'application/json5': ['json5'],
20835
- 'application/jsonml+json': ['jsonml'],
20836
- 'application/ld+json': ['jsonld'],
20837
- 'application/lgr+xml': ['lgr'],
20838
- 'application/lost+xml': ['lostxml'],
20839
- 'application/mac-binhex40': ['hqx'],
20840
- 'application/mac-compactpro': ['cpt'],
20841
- 'application/mads+xml': ['mads'],
20842
- 'application/manifest+json': ['webmanifest'],
20843
- 'application/marc': ['mrc'],
20844
- 'application/marcxml+xml': ['mrcx'],
20845
- 'application/mathematica': ['ma', 'nb', 'mb'],
20846
- 'application/mathml+xml': ['mathml'],
20847
- 'application/mbox': ['mbox'],
20848
- 'application/media-policy-dataset+xml': ['mpf'],
20849
- 'application/mediaservercontrol+xml': ['mscml'],
20850
- 'application/metalink+xml': ['metalink'],
20851
- 'application/metalink4+xml': ['meta4'],
20852
- 'application/mets+xml': ['mets'],
20853
- 'application/mmt-aei+xml': ['maei'],
20854
- 'application/mmt-usd+xml': ['musd'],
20855
- 'application/mods+xml': ['mods'],
20856
- 'application/mp21': ['m21', 'mp21'],
20857
- 'application/mp4': ['*mp4', '*mpg4', 'mp4s', 'm4p'],
20858
- 'application/msix': ['msix'],
20859
- 'application/msixbundle': ['msixbundle'],
20860
- 'application/msword': ['doc', 'dot'],
20861
- 'application/mxf': ['mxf'],
20862
- 'application/n-quads': ['nq'],
20863
- 'application/n-triples': ['nt'],
20864
- 'application/node': ['cjs'],
20865
- 'application/octet-stream': [
20866
- 'bin',
20867
- 'dms',
20868
- 'lrf',
20869
- 'mar',
20870
- 'so',
20871
- 'dist',
20872
- 'distz',
20873
- 'pkg',
20874
- 'bpk',
20875
- 'dump',
20876
- 'elc',
20877
- 'deploy',
20878
- 'exe',
20879
- 'dll',
20880
- 'deb',
20881
- 'dmg',
20882
- 'iso',
20883
- 'img',
20884
- 'msi',
20885
- 'msp',
20886
- 'msm',
20887
- 'buffer',
20888
- ],
20889
- 'application/oda': ['oda'],
20890
- 'application/oebps-package+xml': ['opf'],
20891
- 'application/ogg': ['ogx'],
20892
- 'application/omdoc+xml': ['omdoc'],
20893
- 'application/onenote': ['onetoc', 'onetoc2', 'onetmp', 'onepkg'],
20894
- 'application/oxps': ['oxps'],
20895
- 'application/p2p-overlay+xml': ['relo'],
20896
- 'application/patch-ops-error+xml': ['xer'],
20897
- 'application/pdf': ['pdf'],
20898
- 'application/pgp-encrypted': ['pgp'],
20899
- 'application/pgp-keys': ['asc'],
20900
- 'application/pgp-signature': ['sig', '*asc'],
20901
- 'application/pics-rules': ['prf'],
20902
- 'application/pkcs10': ['p10'],
20903
- 'application/pkcs7-mime': ['p7m', 'p7c'],
20904
- 'application/pkcs7-signature': ['p7s'],
20905
- 'application/pkcs8': ['p8'],
20906
- 'application/pkix-attr-cert': ['ac'],
20907
- 'application/pkix-cert': ['cer'],
20908
- 'application/pkix-crl': ['crl'],
20909
- 'application/pkix-pkipath': ['pkipath'],
20910
- 'application/pkixcmp': ['pki'],
20911
- 'application/pls+xml': ['pls'],
20912
- 'application/postscript': ['ai', 'eps', 'ps'],
20913
- 'application/provenance+xml': ['provx'],
20914
- 'application/pskc+xml': ['pskcxml'],
20915
- 'application/raml+yaml': ['raml'],
20916
- 'application/rdf+xml': ['rdf', 'owl'],
20917
- 'application/reginfo+xml': ['rif'],
20918
- 'application/relax-ng-compact-syntax': ['rnc'],
20919
- 'application/resource-lists+xml': ['rl'],
20920
- 'application/resource-lists-diff+xml': ['rld'],
20921
- 'application/rls-services+xml': ['rs'],
20922
- 'application/route-apd+xml': ['rapd'],
20923
- 'application/route-s-tsid+xml': ['sls'],
20924
- 'application/route-usd+xml': ['rusd'],
20925
- 'application/rpki-ghostbusters': ['gbr'],
20926
- 'application/rpki-manifest': ['mft'],
20927
- 'application/rpki-roa': ['roa'],
20928
- 'application/rsd+xml': ['rsd'],
20929
- 'application/rss+xml': ['rss'],
20930
- 'application/rtf': ['rtf'],
20931
- 'application/sbml+xml': ['sbml'],
20932
- 'application/scvp-cv-request': ['scq'],
20933
- 'application/scvp-cv-response': ['scs'],
20934
- 'application/scvp-vp-request': ['spq'],
20935
- 'application/scvp-vp-response': ['spp'],
20936
- 'application/sdp': ['sdp'],
20937
- 'application/senml+xml': ['senmlx'],
20938
- 'application/sensml+xml': ['sensmlx'],
20939
- 'application/set-payment-initiation': ['setpay'],
20940
- 'application/set-registration-initiation': ['setreg'],
20941
- 'application/shf+xml': ['shf'],
20942
- 'application/sieve': ['siv', 'sieve'],
20943
- 'application/smil+xml': ['smi', 'smil'],
20944
- 'application/sparql-query': ['rq'],
20945
- 'application/sparql-results+xml': ['srx'],
20946
- 'application/sql': ['sql'],
20947
- 'application/srgs': ['gram'],
20948
- 'application/srgs+xml': ['grxml'],
20949
- 'application/sru+xml': ['sru'],
20950
- 'application/ssdl+xml': ['ssdl'],
20951
- 'application/ssml+xml': ['ssml'],
20952
- 'application/swid+xml': ['swidtag'],
20953
- 'application/tei+xml': ['tei', 'teicorpus'],
20954
- 'application/thraud+xml': ['tfi'],
20955
- 'application/timestamped-data': ['tsd'],
20956
- 'application/toml': ['toml'],
20957
- 'application/trig': ['trig'],
20958
- 'application/ttml+xml': ['ttml'],
20959
- 'application/ubjson': ['ubj'],
20960
- 'application/urc-ressheet+xml': ['rsheet'],
20961
- 'application/urc-targetdesc+xml': ['td'],
20962
- 'application/voicexml+xml': ['vxml'],
20963
- 'application/wasm': ['wasm'],
20964
- 'application/watcherinfo+xml': ['wif'],
20965
- 'application/widget': ['wgt'],
20966
- 'application/winhlp': ['hlp'],
20967
- 'application/wsdl+xml': ['wsdl'],
20968
- 'application/wspolicy+xml': ['wspolicy'],
20969
- 'application/xaml+xml': ['xaml'],
20970
- 'application/xcap-att+xml': ['xav'],
20971
- 'application/xcap-caps+xml': ['xca'],
20972
- 'application/xcap-diff+xml': ['xdf'],
20973
- 'application/xcap-el+xml': ['xel'],
20974
- 'application/xcap-ns+xml': ['xns'],
20975
- 'application/xenc+xml': ['xenc'],
20976
- 'application/xfdf': ['xfdf'],
20977
- 'application/xhtml+xml': ['xhtml', 'xht'],
20978
- 'application/xliff+xml': ['xlf'],
20979
- 'application/xml': ['xml', 'xsl', 'xsd', 'rng'],
20980
- 'application/xml-dtd': ['dtd'],
20981
- 'application/xop+xml': ['xop'],
20982
- 'application/xproc+xml': ['xpl'],
20983
- 'application/xslt+xml': ['*xsl', 'xslt'],
20984
- 'application/xspf+xml': ['xspf'],
20985
- 'application/xv+xml': ['mxml', 'xhvml', 'xvml', 'xvm'],
20986
- 'application/yang': ['yang'],
20987
- 'application/yin+xml': ['yin'],
20988
- 'application/zip': ['zip'],
20989
- 'audio/3gpp': ['*3gpp'],
20990
- 'audio/aac': ['adts', 'aac'],
20991
- 'audio/adpcm': ['adp'],
20992
- 'audio/amr': ['amr'],
20993
- 'audio/basic': ['au', 'snd'],
20994
- 'audio/midi': ['mid', 'midi', 'kar', 'rmi'],
20995
- 'audio/mobile-xmf': ['mxmf'],
20996
- 'audio/mp3': ['*mp3'],
20997
- 'audio/mp4': ['m4a', 'mp4a'],
20998
- 'audio/mpeg': ['mpga', 'mp2', 'mp2a', 'mp3', 'm2a', 'm3a'],
20999
- 'audio/ogg': ['oga', 'ogg', 'spx', 'opus'],
21000
- 'audio/s3m': ['s3m'],
21001
- 'audio/silk': ['sil'],
21002
- 'audio/wav': ['wav'],
21003
- 'audio/wave': ['*wav'],
21004
- 'audio/webm': ['weba'],
21005
- 'audio/xm': ['xm'],
21006
- 'font/collection': ['ttc'],
21007
- 'font/otf': ['otf'],
21008
- 'font/ttf': ['ttf'],
21009
- 'font/woff': ['woff'],
21010
- 'font/woff2': ['woff2'],
21011
- 'image/aces': ['exr'],
21012
- 'image/apng': ['apng'],
21013
- 'image/avci': ['avci'],
21014
- 'image/avcs': ['avcs'],
21015
- 'image/avif': ['avif'],
21016
- 'image/bmp': ['bmp', 'dib'],
21017
- 'image/cgm': ['cgm'],
21018
- 'image/dicom-rle': ['drle'],
21019
- 'image/dpx': ['dpx'],
21020
- 'image/emf': ['emf'],
21021
- 'image/fits': ['fits'],
21022
- 'image/g3fax': ['g3'],
21023
- 'image/gif': ['gif'],
21024
- 'image/heic': ['heic'],
21025
- 'image/heic-sequence': ['heics'],
21026
- 'image/heif': ['heif'],
21027
- 'image/heif-sequence': ['heifs'],
21028
- 'image/hej2k': ['hej2'],
21029
- 'image/hsj2': ['hsj2'],
21030
- 'image/ief': ['ief'],
21031
- 'image/jls': ['jls'],
21032
- 'image/jp2': ['jp2', 'jpg2'],
21033
- 'image/jpeg': ['jpeg', 'jpg', 'jpe'],
21034
- 'image/jph': ['jph'],
21035
- 'image/jphc': ['jhc'],
21036
- 'image/jpm': ['jpm', 'jpgm'],
21037
- 'image/jpx': ['jpx', 'jpf'],
21038
- 'image/jxl': ['jxl'],
21039
- 'image/jxr': ['jxr'],
21040
- 'image/jxra': ['jxra'],
21041
- 'image/jxrs': ['jxrs'],
21042
- 'image/jxs': ['jxs'],
21043
- 'image/jxsc': ['jxsc'],
21044
- 'image/jxsi': ['jxsi'],
21045
- 'image/jxss': ['jxss'],
21046
- 'image/ktx': ['ktx'],
21047
- 'image/ktx2': ['ktx2'],
21048
- 'image/png': ['png'],
21049
- 'image/sgi': ['sgi'],
21050
- 'image/svg+xml': ['svg', 'svgz'],
21051
- 'image/t38': ['t38'],
21052
- 'image/tiff': ['tif', 'tiff'],
21053
- 'image/tiff-fx': ['tfx'],
21054
- 'image/webp': ['webp'],
21055
- 'image/wmf': ['wmf'],
21056
- 'message/disposition-notification': ['disposition-notification'],
21057
- 'message/global': ['u8msg'],
21058
- 'message/global-delivery-status': ['u8dsn'],
21059
- 'message/global-disposition-notification': ['u8mdn'],
21060
- 'message/global-headers': ['u8hdr'],
21061
- 'message/rfc822': ['eml', 'mime'],
21062
- 'model/3mf': ['3mf'],
21063
- 'model/gltf+json': ['gltf'],
21064
- 'model/gltf-binary': ['glb'],
21065
- 'model/iges': ['igs', 'iges'],
21066
- 'model/jt': ['jt'],
21067
- 'model/mesh': ['msh', 'mesh', 'silo'],
21068
- 'model/mtl': ['mtl'],
21069
- 'model/obj': ['obj'],
21070
- 'model/prc': ['prc'],
21071
- 'model/step+xml': ['stpx'],
21072
- 'model/step+zip': ['stpz'],
21073
- 'model/step-xml+zip': ['stpxz'],
21074
- 'model/stl': ['stl'],
21075
- 'model/u3d': ['u3d'],
21076
- 'model/vrml': ['wrl', 'vrml'],
21077
- 'model/x3d+binary': ['*x3db', 'x3dbz'],
21078
- 'model/x3d+fastinfoset': ['x3db'],
21079
- 'model/x3d+vrml': ['*x3dv', 'x3dvz'],
21080
- 'model/x3d+xml': ['x3d', 'x3dz'],
21081
- 'model/x3d-vrml': ['x3dv'],
21082
- 'text/cache-manifest': ['appcache', 'manifest'],
21083
- 'text/calendar': ['ics', 'ifb'],
21084
- 'text/coffeescript': ['coffee', 'litcoffee'],
21085
- 'text/css': ['css'],
21086
- 'text/csv': ['csv'],
21087
- 'text/html': ['html', 'htm', 'shtml'],
21088
- 'text/jade': ['jade'],
21089
- 'text/javascript': ['js', 'mjs'],
21090
- 'text/jsx': ['jsx'],
21091
- 'text/less': ['less'],
21092
- 'text/markdown': ['md', 'markdown'],
21093
- 'text/mathml': ['mml'],
21094
- 'text/mdx': ['mdx'],
21095
- 'text/n3': ['n3'],
21096
- 'text/plain': ['txt', 'text', 'conf', 'def', 'list', 'log', 'in', 'ini'],
21097
- 'text/richtext': ['rtx'],
21098
- 'text/rtf': ['*rtf'],
21099
- 'text/sgml': ['sgml', 'sgm'],
21100
- 'text/shex': ['shex'],
21101
- 'text/slim': ['slim', 'slm'],
21102
- 'text/spdx': ['spdx'],
21103
- 'text/stylus': ['stylus', 'styl'],
21104
- 'text/tab-separated-values': ['tsv'],
21105
- 'text/troff': ['t', 'tr', 'roff', 'man', 'me', 'ms'],
21106
- 'text/turtle': ['ttl'],
21107
- 'text/uri-list': ['uri', 'uris', 'urls'],
21108
- 'text/vcard': ['vcard'],
21109
- 'text/vtt': ['vtt'],
21110
- 'text/wgsl': ['wgsl'],
21111
- 'text/xml': ['*xml'],
21112
- 'text/yaml': ['yaml', 'yml'],
21113
- 'video/3gpp': ['3gp', '3gpp'],
21114
- 'video/3gpp2': ['3g2'],
21115
- 'video/h261': ['h261'],
21116
- 'video/h263': ['h263'],
21117
- 'video/h264': ['h264'],
21118
- 'video/iso.segment': ['m4s'],
21119
- 'video/jpeg': ['jpgv'],
21120
- 'video/jpm': ['*jpm', '*jpgm'],
21121
- 'video/mj2': ['mj2', 'mjp2'],
21122
- 'video/mp2t': ['ts', 'm2t', 'm2ts', 'mts'],
21123
- 'video/mp4': ['mp4', 'mp4v', 'mpg4'],
21124
- 'video/mpeg': ['mpeg', 'mpg', 'mpe', 'm1v', 'm2v'],
21125
- 'video/ogg': ['ogv'],
21126
- 'video/quicktime': ['qt', 'mov'],
21127
- 'video/webm': ['webm'],
21128
- };
21129
- Object.freeze(types);
21130
-
21131
- var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
21132
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
21133
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
21134
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
21135
- };
21136
- var _Mime_extensionToType, _Mime_typeToExtension, _Mime_typeToExtensions;
21137
- class Mime {
21138
- constructor(...args) {
21139
- _Mime_extensionToType.set(this, new Map());
21140
- _Mime_typeToExtension.set(this, new Map());
21141
- _Mime_typeToExtensions.set(this, new Map());
21142
- for (const arg of args) {
21143
- this.define(arg);
21144
- }
21145
- }
21146
- define(typeMap, force = false) {
21147
- for (let [type, extensions] of Object.entries(typeMap)) {
21148
- type = type.toLowerCase();
21149
- extensions = extensions.map((ext) => ext.toLowerCase());
21150
- if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type)) {
21151
- __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type, new Set());
21152
- }
21153
- const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type);
21154
- let first = true;
21155
- for (let extension of extensions) {
21156
- const starred = extension.startsWith('*');
21157
- extension = starred ? extension.slice(1) : extension;
21158
- allExtensions?.add(extension);
21159
- if (first) {
21160
- __classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type, extension);
21161
- }
21162
- first = false;
21163
- if (starred)
21164
- continue;
21165
- const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension);
21166
- if (currentType && currentType != type && !force) {
21167
- throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);
21168
- }
21169
- __classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension, type);
21170
- }
21171
- }
21172
- return this;
21173
- }
21174
- getType(path) {
21175
- if (typeof path !== 'string')
21176
- return null;
21177
- const last = path.replace(/^.*[/\\]/, '').toLowerCase();
21178
- const ext = last.replace(/^.*\./, '').toLowerCase();
21179
- const hasPath = last.length < path.length;
21180
- const hasDot = ext.length < last.length - 1;
21181
- if (!hasDot && hasPath)
21182
- return null;
21183
- return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
21184
- }
21185
- getExtension(type) {
21186
- if (typeof type !== 'string')
21187
- return null;
21188
- type = type?.split?.(';')[0];
21189
- return ((type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null);
21190
- }
21191
- getAllExtensions(type) {
21192
- if (typeof type !== 'string')
21193
- return null;
21194
- return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
21195
- }
21196
- _freeze() {
21197
- this.define = () => {
21198
- throw new Error('define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances');
21199
- };
21200
- Object.freeze(this);
21201
- for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) {
21202
- Object.freeze(extensions);
21203
- }
21204
- return this;
21205
- }
21206
- _getTestState() {
21207
- return {
21208
- types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
21209
- extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f"),
21210
- };
21211
- }
21212
- }
21213
- _Mime_extensionToType = new WeakMap(), _Mime_typeToExtension = new WeakMap(), _Mime_typeToExtensions = new WeakMap();
21214
-
21215
- var mime = new Mime(types, types$1)._freeze();
21216
-
21217
20074
  class Strapi {
21218
20075
  constructor(url, token) {
21219
20076
  this.url = url;
@@ -21270,20 +20127,6 @@ class Strapi {
21270
20127
  ...params,
21271
20128
  });
21272
20129
  }
21273
- /**
21274
- * For Node.js
21275
- *
21276
- * @param files list of files names which will be uploaded, example: ['/app/data/cover.js']
21277
- */
21278
- async upload(files) {
21279
- const form = new FormData();
21280
- await Promise.all(files.map(async (item) => {
21281
- const fileBuffer = await readFile(item.path);
21282
- const file = new File([fileBuffer], item.filename || basename(item.path), { type: mime.getType(item.path) || 'image/jpeg' });
21283
- form.append('files', file);
21284
- }));
21285
- return await this.uploadForm(form);
21286
- }
21287
20130
  async uploadForm(form) {
21288
20131
  return (await this.baseFetch('upload', {
21289
20132
  method: 'POST',
@@ -21292,9 +20135,11 @@ class Strapi {
21292
20135
  }
21293
20136
  async baseFetch(endpoint, params = {}) {
21294
20137
  const response = await fetch(`${this.url}/api/${endpoint}`, _.merge({
21295
- headers: {
21296
- Authorization: `Bearer ${this.token}`,
21297
- },
20138
+ ...(this.token ? {
20139
+ headers: {
20140
+ Authorization: `Bearer ${this.token}`,
20141
+ }
20142
+ } : {}),
21298
20143
  }, params));
21299
20144
  if (!response.ok) {
21300
20145
  console.log(`${this.url}/api/${endpoint}`);