@hot-updater/supabase 0.20.15 → 0.21.1

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.cjs CHANGED
@@ -34,7 +34,7 @@ path = __toESM(path);
34
34
  const supabaseDatabase = (config, hooks) => (0, __hot_updater_plugin_core.createDatabasePlugin)("supabaseDatabase", {
35
35
  getContext: () => ({ supabase: (0, __supabase_supabase_js.createClient)(config.supabaseUrl, config.supabaseAnonKey) }),
36
36
  async getBundleById(context, bundleId) {
37
- const { data, error } = await context.supabase.from("bundles").select("*").eq("id", bundleId).single();
37
+ const { data, error } = await context.supabase.from("bundles").select("channel, enabled, should_force_update, file_hash, git_commit_hash, id, message, platform, target_app_version, fingerprint_hash, storage_uri, metadata").eq("id", bundleId).single();
38
38
  if (!data || error) return null;
39
39
  return {
40
40
  channel: data.channel,
@@ -60,7 +60,7 @@ const supabaseDatabase = (config, hooks) => (0, __hot_updater_plugin_core.create
60
60
  if (where?.channel) countQuery = countQuery.eq("channel", where.channel);
61
61
  if (where?.platform) countQuery = countQuery.eq("platform", where.platform);
62
62
  const { count: total = 0 } = await countQuery;
63
- let query = context.supabase.from("bundles").select("*").order("id", { ascending: false });
63
+ let query = context.supabase.from("bundles").select("id, channel, enabled, platform, should_force_update, file_hash, git_commit_hash, message, fingerprint_hash, target_app_version, storage_uri, metadata").order("id", { ascending: false });
64
64
  if (where?.channel) query = query.eq("channel", where.channel);
65
65
  if (where?.platform) query = query.eq("platform", where.platform);
66
66
  if (limit) query = query.limit(limit);
@@ -119,1344 +119,6 @@ const supabaseDatabase = (config, hooks) => (0, __hot_updater_plugin_core.create
119
119
  }
120
120
  }, hooks);
121
121
 
122
- //#endregion
123
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/other.js
124
- const types$1 = {
125
- "application/prs.cww": ["cww"],
126
- "application/prs.xsf+xml": ["xsf"],
127
- "application/vnd.1000minds.decision-model+xml": ["1km"],
128
- "application/vnd.3gpp.pic-bw-large": ["plb"],
129
- "application/vnd.3gpp.pic-bw-small": ["psb"],
130
- "application/vnd.3gpp.pic-bw-var": ["pvb"],
131
- "application/vnd.3gpp2.tcap": ["tcap"],
132
- "application/vnd.3m.post-it-notes": ["pwn"],
133
- "application/vnd.accpac.simply.aso": ["aso"],
134
- "application/vnd.accpac.simply.imp": ["imp"],
135
- "application/vnd.acucobol": ["acu"],
136
- "application/vnd.acucorp": ["atc", "acutc"],
137
- "application/vnd.adobe.air-application-installer-package+zip": ["air"],
138
- "application/vnd.adobe.formscentral.fcdt": ["fcdt"],
139
- "application/vnd.adobe.fxp": ["fxp", "fxpl"],
140
- "application/vnd.adobe.xdp+xml": ["xdp"],
141
- "application/vnd.adobe.xfdf": ["*xfdf"],
142
- "application/vnd.age": ["age"],
143
- "application/vnd.ahead.space": ["ahead"],
144
- "application/vnd.airzip.filesecure.azf": ["azf"],
145
- "application/vnd.airzip.filesecure.azs": ["azs"],
146
- "application/vnd.amazon.ebook": ["azw"],
147
- "application/vnd.americandynamics.acc": ["acc"],
148
- "application/vnd.amiga.ami": ["ami"],
149
- "application/vnd.android.package-archive": ["apk"],
150
- "application/vnd.anser-web-certificate-issue-initiation": ["cii"],
151
- "application/vnd.anser-web-funds-transfer-initiation": ["fti"],
152
- "application/vnd.antix.game-component": ["atx"],
153
- "application/vnd.apple.installer+xml": ["mpkg"],
154
- "application/vnd.apple.keynote": ["key"],
155
- "application/vnd.apple.mpegurl": ["m3u8"],
156
- "application/vnd.apple.numbers": ["numbers"],
157
- "application/vnd.apple.pages": ["pages"],
158
- "application/vnd.apple.pkpass": ["pkpass"],
159
- "application/vnd.aristanetworks.swi": ["swi"],
160
- "application/vnd.astraea-software.iota": ["iota"],
161
- "application/vnd.audiograph": ["aep"],
162
- "application/vnd.balsamiq.bmml+xml": ["bmml"],
163
- "application/vnd.blueice.multipass": ["mpm"],
164
- "application/vnd.bmi": ["bmi"],
165
- "application/vnd.businessobjects": ["rep"],
166
- "application/vnd.chemdraw+xml": ["cdxml"],
167
- "application/vnd.chipnuts.karaoke-mmd": ["mmd"],
168
- "application/vnd.cinderella": ["cdy"],
169
- "application/vnd.citationstyles.style+xml": ["csl"],
170
- "application/vnd.claymore": ["cla"],
171
- "application/vnd.cloanto.rp9": ["rp9"],
172
- "application/vnd.clonk.c4group": [
173
- "c4g",
174
- "c4d",
175
- "c4f",
176
- "c4p",
177
- "c4u"
178
- ],
179
- "application/vnd.cluetrust.cartomobile-config": ["c11amc"],
180
- "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"],
181
- "application/vnd.commonspace": ["csp"],
182
- "application/vnd.contact.cmsg": ["cdbcmsg"],
183
- "application/vnd.cosmocaller": ["cmc"],
184
- "application/vnd.crick.clicker": ["clkx"],
185
- "application/vnd.crick.clicker.keyboard": ["clkk"],
186
- "application/vnd.crick.clicker.palette": ["clkp"],
187
- "application/vnd.crick.clicker.template": ["clkt"],
188
- "application/vnd.crick.clicker.wordbank": ["clkw"],
189
- "application/vnd.criticaltools.wbs+xml": ["wbs"],
190
- "application/vnd.ctc-posml": ["pml"],
191
- "application/vnd.cups-ppd": ["ppd"],
192
- "application/vnd.curl.car": ["car"],
193
- "application/vnd.curl.pcurl": ["pcurl"],
194
- "application/vnd.dart": ["dart"],
195
- "application/vnd.data-vision.rdz": ["rdz"],
196
- "application/vnd.dbf": ["dbf"],
197
- "application/vnd.dece.data": [
198
- "uvf",
199
- "uvvf",
200
- "uvd",
201
- "uvvd"
202
- ],
203
- "application/vnd.dece.ttml+xml": ["uvt", "uvvt"],
204
- "application/vnd.dece.unspecified": ["uvx", "uvvx"],
205
- "application/vnd.dece.zip": ["uvz", "uvvz"],
206
- "application/vnd.denovo.fcselayout-link": ["fe_launch"],
207
- "application/vnd.dna": ["dna"],
208
- "application/vnd.dolby.mlp": ["mlp"],
209
- "application/vnd.dpgraph": ["dpg"],
210
- "application/vnd.dreamfactory": ["dfac"],
211
- "application/vnd.ds-keypoint": ["kpxx"],
212
- "application/vnd.dvb.ait": ["ait"],
213
- "application/vnd.dvb.service": ["svc"],
214
- "application/vnd.dynageo": ["geo"],
215
- "application/vnd.ecowin.chart": ["mag"],
216
- "application/vnd.enliven": ["nml"],
217
- "application/vnd.epson.esf": ["esf"],
218
- "application/vnd.epson.msf": ["msf"],
219
- "application/vnd.epson.quickanime": ["qam"],
220
- "application/vnd.epson.salt": ["slt"],
221
- "application/vnd.epson.ssf": ["ssf"],
222
- "application/vnd.eszigno3+xml": ["es3", "et3"],
223
- "application/vnd.ezpix-album": ["ez2"],
224
- "application/vnd.ezpix-package": ["ez3"],
225
- "application/vnd.fdf": ["*fdf"],
226
- "application/vnd.fdsn.mseed": ["mseed"],
227
- "application/vnd.fdsn.seed": ["seed", "dataless"],
228
- "application/vnd.flographit": ["gph"],
229
- "application/vnd.fluxtime.clip": ["ftc"],
230
- "application/vnd.framemaker": [
231
- "fm",
232
- "frame",
233
- "maker",
234
- "book"
235
- ],
236
- "application/vnd.frogans.fnc": ["fnc"],
237
- "application/vnd.frogans.ltf": ["ltf"],
238
- "application/vnd.fsc.weblaunch": ["fsc"],
239
- "application/vnd.fujitsu.oasys": ["oas"],
240
- "application/vnd.fujitsu.oasys2": ["oa2"],
241
- "application/vnd.fujitsu.oasys3": ["oa3"],
242
- "application/vnd.fujitsu.oasysgp": ["fg5"],
243
- "application/vnd.fujitsu.oasysprs": ["bh2"],
244
- "application/vnd.fujixerox.ddd": ["ddd"],
245
- "application/vnd.fujixerox.docuworks": ["xdw"],
246
- "application/vnd.fujixerox.docuworks.binder": ["xbd"],
247
- "application/vnd.fuzzysheet": ["fzs"],
248
- "application/vnd.genomatix.tuxedo": ["txd"],
249
- "application/vnd.geogebra.file": ["ggb"],
250
- "application/vnd.geogebra.tool": ["ggt"],
251
- "application/vnd.geometry-explorer": ["gex", "gre"],
252
- "application/vnd.geonext": ["gxt"],
253
- "application/vnd.geoplan": ["g2w"],
254
- "application/vnd.geospace": ["g3w"],
255
- "application/vnd.gmx": ["gmx"],
256
- "application/vnd.google-apps.document": ["gdoc"],
257
- "application/vnd.google-apps.presentation": ["gslides"],
258
- "application/vnd.google-apps.spreadsheet": ["gsheet"],
259
- "application/vnd.google-earth.kml+xml": ["kml"],
260
- "application/vnd.google-earth.kmz": ["kmz"],
261
- "application/vnd.grafeq": ["gqf", "gqs"],
262
- "application/vnd.groove-account": ["gac"],
263
- "application/vnd.groove-help": ["ghf"],
264
- "application/vnd.groove-identity-message": ["gim"],
265
- "application/vnd.groove-injector": ["grv"],
266
- "application/vnd.groove-tool-message": ["gtm"],
267
- "application/vnd.groove-tool-template": ["tpl"],
268
- "application/vnd.groove-vcard": ["vcg"],
269
- "application/vnd.hal+xml": ["hal"],
270
- "application/vnd.handheld-entertainment+xml": ["zmm"],
271
- "application/vnd.hbci": ["hbci"],
272
- "application/vnd.hhe.lesson-player": ["les"],
273
- "application/vnd.hp-hpgl": ["hpgl"],
274
- "application/vnd.hp-hpid": ["hpid"],
275
- "application/vnd.hp-hps": ["hps"],
276
- "application/vnd.hp-jlyt": ["jlt"],
277
- "application/vnd.hp-pcl": ["pcl"],
278
- "application/vnd.hp-pclxl": ["pclxl"],
279
- "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"],
280
- "application/vnd.ibm.minipay": ["mpy"],
281
- "application/vnd.ibm.modcap": [
282
- "afp",
283
- "listafp",
284
- "list3820"
285
- ],
286
- "application/vnd.ibm.rights-management": ["irm"],
287
- "application/vnd.ibm.secure-container": ["sc"],
288
- "application/vnd.iccprofile": ["icc", "icm"],
289
- "application/vnd.igloader": ["igl"],
290
- "application/vnd.immervision-ivp": ["ivp"],
291
- "application/vnd.immervision-ivu": ["ivu"],
292
- "application/vnd.insors.igm": ["igm"],
293
- "application/vnd.intercon.formnet": ["xpw", "xpx"],
294
- "application/vnd.intergeo": ["i2g"],
295
- "application/vnd.intu.qbo": ["qbo"],
296
- "application/vnd.intu.qfx": ["qfx"],
297
- "application/vnd.ipunplugged.rcprofile": ["rcprofile"],
298
- "application/vnd.irepository.package+xml": ["irp"],
299
- "application/vnd.is-xpr": ["xpr"],
300
- "application/vnd.isac.fcs": ["fcs"],
301
- "application/vnd.jam": ["jam"],
302
- "application/vnd.jcp.javame.midlet-rms": ["rms"],
303
- "application/vnd.jisp": ["jisp"],
304
- "application/vnd.joost.joda-archive": ["joda"],
305
- "application/vnd.kahootz": ["ktz", "ktr"],
306
- "application/vnd.kde.karbon": ["karbon"],
307
- "application/vnd.kde.kchart": ["chrt"],
308
- "application/vnd.kde.kformula": ["kfo"],
309
- "application/vnd.kde.kivio": ["flw"],
310
- "application/vnd.kde.kontour": ["kon"],
311
- "application/vnd.kde.kpresenter": ["kpr", "kpt"],
312
- "application/vnd.kde.kspread": ["ksp"],
313
- "application/vnd.kde.kword": ["kwd", "kwt"],
314
- "application/vnd.kenameaapp": ["htke"],
315
- "application/vnd.kidspiration": ["kia"],
316
- "application/vnd.kinar": ["kne", "knp"],
317
- "application/vnd.koan": [
318
- "skp",
319
- "skd",
320
- "skt",
321
- "skm"
322
- ],
323
- "application/vnd.kodak-descriptor": ["sse"],
324
- "application/vnd.las.las+xml": ["lasxml"],
325
- "application/vnd.llamagraphics.life-balance.desktop": ["lbd"],
326
- "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"],
327
- "application/vnd.lotus-1-2-3": ["123"],
328
- "application/vnd.lotus-approach": ["apr"],
329
- "application/vnd.lotus-freelance": ["pre"],
330
- "application/vnd.lotus-notes": ["nsf"],
331
- "application/vnd.lotus-organizer": ["org"],
332
- "application/vnd.lotus-screencam": ["scm"],
333
- "application/vnd.lotus-wordpro": ["lwp"],
334
- "application/vnd.macports.portpkg": ["portpkg"],
335
- "application/vnd.mapbox-vector-tile": ["mvt"],
336
- "application/vnd.mcd": ["mcd"],
337
- "application/vnd.medcalcdata": ["mc1"],
338
- "application/vnd.mediastation.cdkey": ["cdkey"],
339
- "application/vnd.mfer": ["mwf"],
340
- "application/vnd.mfmp": ["mfm"],
341
- "application/vnd.micrografx.flo": ["flo"],
342
- "application/vnd.micrografx.igx": ["igx"],
343
- "application/vnd.mif": ["mif"],
344
- "application/vnd.mobius.daf": ["daf"],
345
- "application/vnd.mobius.dis": ["dis"],
346
- "application/vnd.mobius.mbk": ["mbk"],
347
- "application/vnd.mobius.mqy": ["mqy"],
348
- "application/vnd.mobius.msl": ["msl"],
349
- "application/vnd.mobius.plc": ["plc"],
350
- "application/vnd.mobius.txf": ["txf"],
351
- "application/vnd.mophun.application": ["mpn"],
352
- "application/vnd.mophun.certificate": ["mpc"],
353
- "application/vnd.mozilla.xul+xml": ["xul"],
354
- "application/vnd.ms-artgalry": ["cil"],
355
- "application/vnd.ms-cab-compressed": ["cab"],
356
- "application/vnd.ms-excel": [
357
- "xls",
358
- "xlm",
359
- "xla",
360
- "xlc",
361
- "xlt",
362
- "xlw"
363
- ],
364
- "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"],
365
- "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"],
366
- "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"],
367
- "application/vnd.ms-excel.template.macroenabled.12": ["xltm"],
368
- "application/vnd.ms-fontobject": ["eot"],
369
- "application/vnd.ms-htmlhelp": ["chm"],
370
- "application/vnd.ms-ims": ["ims"],
371
- "application/vnd.ms-lrm": ["lrm"],
372
- "application/vnd.ms-officetheme": ["thmx"],
373
- "application/vnd.ms-outlook": ["msg"],
374
- "application/vnd.ms-pki.seccat": ["cat"],
375
- "application/vnd.ms-pki.stl": ["*stl"],
376
- "application/vnd.ms-powerpoint": [
377
- "ppt",
378
- "pps",
379
- "pot"
380
- ],
381
- "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"],
382
- "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"],
383
- "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"],
384
- "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"],
385
- "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"],
386
- "application/vnd.ms-project": ["*mpp", "mpt"],
387
- "application/vnd.ms-word.document.macroenabled.12": ["docm"],
388
- "application/vnd.ms-word.template.macroenabled.12": ["dotm"],
389
- "application/vnd.ms-works": [
390
- "wps",
391
- "wks",
392
- "wcm",
393
- "wdb"
394
- ],
395
- "application/vnd.ms-wpl": ["wpl"],
396
- "application/vnd.ms-xpsdocument": ["xps"],
397
- "application/vnd.mseq": ["mseq"],
398
- "application/vnd.musician": ["mus"],
399
- "application/vnd.muvee.style": ["msty"],
400
- "application/vnd.mynfc": ["taglet"],
401
- "application/vnd.neurolanguage.nlu": ["nlu"],
402
- "application/vnd.nitf": ["ntf", "nitf"],
403
- "application/vnd.noblenet-directory": ["nnd"],
404
- "application/vnd.noblenet-sealer": ["nns"],
405
- "application/vnd.noblenet-web": ["nnw"],
406
- "application/vnd.nokia.n-gage.ac+xml": ["*ac"],
407
- "application/vnd.nokia.n-gage.data": ["ngdat"],
408
- "application/vnd.nokia.n-gage.symbian.install": ["n-gage"],
409
- "application/vnd.nokia.radio-preset": ["rpst"],
410
- "application/vnd.nokia.radio-presets": ["rpss"],
411
- "application/vnd.novadigm.edm": ["edm"],
412
- "application/vnd.novadigm.edx": ["edx"],
413
- "application/vnd.novadigm.ext": ["ext"],
414
- "application/vnd.oasis.opendocument.chart": ["odc"],
415
- "application/vnd.oasis.opendocument.chart-template": ["otc"],
416
- "application/vnd.oasis.opendocument.database": ["odb"],
417
- "application/vnd.oasis.opendocument.formula": ["odf"],
418
- "application/vnd.oasis.opendocument.formula-template": ["odft"],
419
- "application/vnd.oasis.opendocument.graphics": ["odg"],
420
- "application/vnd.oasis.opendocument.graphics-template": ["otg"],
421
- "application/vnd.oasis.opendocument.image": ["odi"],
422
- "application/vnd.oasis.opendocument.image-template": ["oti"],
423
- "application/vnd.oasis.opendocument.presentation": ["odp"],
424
- "application/vnd.oasis.opendocument.presentation-template": ["otp"],
425
- "application/vnd.oasis.opendocument.spreadsheet": ["ods"],
426
- "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"],
427
- "application/vnd.oasis.opendocument.text": ["odt"],
428
- "application/vnd.oasis.opendocument.text-master": ["odm"],
429
- "application/vnd.oasis.opendocument.text-template": ["ott"],
430
- "application/vnd.oasis.opendocument.text-web": ["oth"],
431
- "application/vnd.olpc-sugar": ["xo"],
432
- "application/vnd.oma.dd2+xml": ["dd2"],
433
- "application/vnd.openblox.game+xml": ["obgx"],
434
- "application/vnd.openofficeorg.extension": ["oxt"],
435
- "application/vnd.openstreetmap.data+xml": ["osm"],
436
- "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"],
437
- "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"],
438
- "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"],
439
- "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"],
440
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"],
441
- "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"],
442
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"],
443
- "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"],
444
- "application/vnd.osgeo.mapguide.package": ["mgp"],
445
- "application/vnd.osgi.dp": ["dp"],
446
- "application/vnd.osgi.subsystem": ["esa"],
447
- "application/vnd.palm": [
448
- "pdb",
449
- "pqa",
450
- "oprc"
451
- ],
452
- "application/vnd.pawaafile": ["paw"],
453
- "application/vnd.pg.format": ["str"],
454
- "application/vnd.pg.osasli": ["ei6"],
455
- "application/vnd.picsel": ["efif"],
456
- "application/vnd.pmi.widget": ["wg"],
457
- "application/vnd.pocketlearn": ["plf"],
458
- "application/vnd.powerbuilder6": ["pbd"],
459
- "application/vnd.previewsystems.box": ["box"],
460
- "application/vnd.proteus.magazine": ["mgz"],
461
- "application/vnd.publishare-delta-tree": ["qps"],
462
- "application/vnd.pvi.ptid1": ["ptid"],
463
- "application/vnd.pwg-xhtml-print+xml": ["xhtm"],
464
- "application/vnd.quark.quarkxpress": [
465
- "qxd",
466
- "qxt",
467
- "qwd",
468
- "qwt",
469
- "qxl",
470
- "qxb"
471
- ],
472
- "application/vnd.rar": ["rar"],
473
- "application/vnd.realvnc.bed": ["bed"],
474
- "application/vnd.recordare.musicxml": ["mxl"],
475
- "application/vnd.recordare.musicxml+xml": ["musicxml"],
476
- "application/vnd.rig.cryptonote": ["cryptonote"],
477
- "application/vnd.rim.cod": ["cod"],
478
- "application/vnd.rn-realmedia": ["rm"],
479
- "application/vnd.rn-realmedia-vbr": ["rmvb"],
480
- "application/vnd.route66.link66+xml": ["link66"],
481
- "application/vnd.sailingtracker.track": ["st"],
482
- "application/vnd.seemail": ["see"],
483
- "application/vnd.sema": ["sema"],
484
- "application/vnd.semd": ["semd"],
485
- "application/vnd.semf": ["semf"],
486
- "application/vnd.shana.informed.formdata": ["ifm"],
487
- "application/vnd.shana.informed.formtemplate": ["itp"],
488
- "application/vnd.shana.informed.interchange": ["iif"],
489
- "application/vnd.shana.informed.package": ["ipk"],
490
- "application/vnd.simtech-mindmapper": ["twd", "twds"],
491
- "application/vnd.smaf": ["mmf"],
492
- "application/vnd.smart.teacher": ["teacher"],
493
- "application/vnd.software602.filler.form+xml": ["fo"],
494
- "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"],
495
- "application/vnd.spotfire.dxp": ["dxp"],
496
- "application/vnd.spotfire.sfs": ["sfs"],
497
- "application/vnd.stardivision.calc": ["sdc"],
498
- "application/vnd.stardivision.draw": ["sda"],
499
- "application/vnd.stardivision.impress": ["sdd"],
500
- "application/vnd.stardivision.math": ["smf"],
501
- "application/vnd.stardivision.writer": ["sdw", "vor"],
502
- "application/vnd.stardivision.writer-global": ["sgl"],
503
- "application/vnd.stepmania.package": ["smzip"],
504
- "application/vnd.stepmania.stepchart": ["sm"],
505
- "application/vnd.sun.wadl+xml": ["wadl"],
506
- "application/vnd.sun.xml.calc": ["sxc"],
507
- "application/vnd.sun.xml.calc.template": ["stc"],
508
- "application/vnd.sun.xml.draw": ["sxd"],
509
- "application/vnd.sun.xml.draw.template": ["std"],
510
- "application/vnd.sun.xml.impress": ["sxi"],
511
- "application/vnd.sun.xml.impress.template": ["sti"],
512
- "application/vnd.sun.xml.math": ["sxm"],
513
- "application/vnd.sun.xml.writer": ["sxw"],
514
- "application/vnd.sun.xml.writer.global": ["sxg"],
515
- "application/vnd.sun.xml.writer.template": ["stw"],
516
- "application/vnd.sus-calendar": ["sus", "susp"],
517
- "application/vnd.svd": ["svd"],
518
- "application/vnd.symbian.install": ["sis", "sisx"],
519
- "application/vnd.syncml+xml": ["xsm"],
520
- "application/vnd.syncml.dm+wbxml": ["bdm"],
521
- "application/vnd.syncml.dm+xml": ["xdm"],
522
- "application/vnd.syncml.dmddf+xml": ["ddf"],
523
- "application/vnd.tao.intent-module-archive": ["tao"],
524
- "application/vnd.tcpdump.pcap": [
525
- "pcap",
526
- "cap",
527
- "dmp"
528
- ],
529
- "application/vnd.tmobile-livetv": ["tmo"],
530
- "application/vnd.trid.tpt": ["tpt"],
531
- "application/vnd.triscape.mxs": ["mxs"],
532
- "application/vnd.trueapp": ["tra"],
533
- "application/vnd.ufdl": ["ufd", "ufdl"],
534
- "application/vnd.uiq.theme": ["utz"],
535
- "application/vnd.umajin": ["umj"],
536
- "application/vnd.unity": ["unityweb"],
537
- "application/vnd.uoml+xml": ["uoml", "uo"],
538
- "application/vnd.vcx": ["vcx"],
539
- "application/vnd.visio": [
540
- "vsd",
541
- "vst",
542
- "vss",
543
- "vsw"
544
- ],
545
- "application/vnd.visionary": ["vis"],
546
- "application/vnd.vsf": ["vsf"],
547
- "application/vnd.wap.wbxml": ["wbxml"],
548
- "application/vnd.wap.wmlc": ["wmlc"],
549
- "application/vnd.wap.wmlscriptc": ["wmlsc"],
550
- "application/vnd.webturbo": ["wtb"],
551
- "application/vnd.wolfram.player": ["nbp"],
552
- "application/vnd.wordperfect": ["wpd"],
553
- "application/vnd.wqd": ["wqd"],
554
- "application/vnd.wt.stf": ["stf"],
555
- "application/vnd.xara": ["xar"],
556
- "application/vnd.xfdl": ["xfdl"],
557
- "application/vnd.yamaha.hv-dic": ["hvd"],
558
- "application/vnd.yamaha.hv-script": ["hvs"],
559
- "application/vnd.yamaha.hv-voice": ["hvp"],
560
- "application/vnd.yamaha.openscoreformat": ["osf"],
561
- "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"],
562
- "application/vnd.yamaha.smaf-audio": ["saf"],
563
- "application/vnd.yamaha.smaf-phrase": ["spf"],
564
- "application/vnd.yellowriver-custom-menu": ["cmp"],
565
- "application/vnd.zul": ["zir", "zirz"],
566
- "application/vnd.zzazz.deck+xml": ["zaz"],
567
- "application/x-7z-compressed": ["7z"],
568
- "application/x-abiword": ["abw"],
569
- "application/x-ace-compressed": ["ace"],
570
- "application/x-apple-diskimage": ["*dmg"],
571
- "application/x-arj": ["arj"],
572
- "application/x-authorware-bin": [
573
- "aab",
574
- "x32",
575
- "u32",
576
- "vox"
577
- ],
578
- "application/x-authorware-map": ["aam"],
579
- "application/x-authorware-seg": ["aas"],
580
- "application/x-bcpio": ["bcpio"],
581
- "application/x-bdoc": ["*bdoc"],
582
- "application/x-bittorrent": ["torrent"],
583
- "application/x-blorb": ["blb", "blorb"],
584
- "application/x-bzip": ["bz"],
585
- "application/x-bzip2": ["bz2", "boz"],
586
- "application/x-cbr": [
587
- "cbr",
588
- "cba",
589
- "cbt",
590
- "cbz",
591
- "cb7"
592
- ],
593
- "application/x-cdlink": ["vcd"],
594
- "application/x-cfs-compressed": ["cfs"],
595
- "application/x-chat": ["chat"],
596
- "application/x-chess-pgn": ["pgn"],
597
- "application/x-chrome-extension": ["crx"],
598
- "application/x-cocoa": ["cco"],
599
- "application/x-conference": ["nsc"],
600
- "application/x-cpio": ["cpio"],
601
- "application/x-csh": ["csh"],
602
- "application/x-debian-package": ["*deb", "udeb"],
603
- "application/x-dgc-compressed": ["dgc"],
604
- "application/x-director": [
605
- "dir",
606
- "dcr",
607
- "dxr",
608
- "cst",
609
- "cct",
610
- "cxt",
611
- "w3d",
612
- "fgd",
613
- "swa"
614
- ],
615
- "application/x-doom": ["wad"],
616
- "application/x-dtbncx+xml": ["ncx"],
617
- "application/x-dtbook+xml": ["dtb"],
618
- "application/x-dtbresource+xml": ["res"],
619
- "application/x-dvi": ["dvi"],
620
- "application/x-envoy": ["evy"],
621
- "application/x-eva": ["eva"],
622
- "application/x-font-bdf": ["bdf"],
623
- "application/x-font-ghostscript": ["gsf"],
624
- "application/x-font-linux-psf": ["psf"],
625
- "application/x-font-pcf": ["pcf"],
626
- "application/x-font-snf": ["snf"],
627
- "application/x-font-type1": [
628
- "pfa",
629
- "pfb",
630
- "pfm",
631
- "afm"
632
- ],
633
- "application/x-freearc": ["arc"],
634
- "application/x-futuresplash": ["spl"],
635
- "application/x-gca-compressed": ["gca"],
636
- "application/x-glulx": ["ulx"],
637
- "application/x-gnumeric": ["gnumeric"],
638
- "application/x-gramps-xml": ["gramps"],
639
- "application/x-gtar": ["gtar"],
640
- "application/x-hdf": ["hdf"],
641
- "application/x-httpd-php": ["php"],
642
- "application/x-install-instructions": ["install"],
643
- "application/x-iso9660-image": ["*iso"],
644
- "application/x-iwork-keynote-sffkey": ["*key"],
645
- "application/x-iwork-numbers-sffnumbers": ["*numbers"],
646
- "application/x-iwork-pages-sffpages": ["*pages"],
647
- "application/x-java-archive-diff": ["jardiff"],
648
- "application/x-java-jnlp-file": ["jnlp"],
649
- "application/x-keepass2": ["kdbx"],
650
- "application/x-latex": ["latex"],
651
- "application/x-lua-bytecode": ["luac"],
652
- "application/x-lzh-compressed": ["lzh", "lha"],
653
- "application/x-makeself": ["run"],
654
- "application/x-mie": ["mie"],
655
- "application/x-mobipocket-ebook": ["*prc", "mobi"],
656
- "application/x-ms-application": ["application"],
657
- "application/x-ms-shortcut": ["lnk"],
658
- "application/x-ms-wmd": ["wmd"],
659
- "application/x-ms-wmz": ["wmz"],
660
- "application/x-ms-xbap": ["xbap"],
661
- "application/x-msaccess": ["mdb"],
662
- "application/x-msbinder": ["obd"],
663
- "application/x-mscardfile": ["crd"],
664
- "application/x-msclip": ["clp"],
665
- "application/x-msdos-program": ["*exe"],
666
- "application/x-msdownload": [
667
- "*exe",
668
- "*dll",
669
- "com",
670
- "bat",
671
- "*msi"
672
- ],
673
- "application/x-msmediaview": [
674
- "mvb",
675
- "m13",
676
- "m14"
677
- ],
678
- "application/x-msmetafile": [
679
- "*wmf",
680
- "*wmz",
681
- "*emf",
682
- "emz"
683
- ],
684
- "application/x-msmoney": ["mny"],
685
- "application/x-mspublisher": ["pub"],
686
- "application/x-msschedule": ["scd"],
687
- "application/x-msterminal": ["trm"],
688
- "application/x-mswrite": ["wri"],
689
- "application/x-netcdf": ["nc", "cdf"],
690
- "application/x-ns-proxy-autoconfig": ["pac"],
691
- "application/x-nzb": ["nzb"],
692
- "application/x-perl": ["pl", "pm"],
693
- "application/x-pilot": ["*prc", "*pdb"],
694
- "application/x-pkcs12": ["p12", "pfx"],
695
- "application/x-pkcs7-certificates": ["p7b", "spc"],
696
- "application/x-pkcs7-certreqresp": ["p7r"],
697
- "application/x-rar-compressed": ["*rar"],
698
- "application/x-redhat-package-manager": ["rpm"],
699
- "application/x-research-info-systems": ["ris"],
700
- "application/x-sea": ["sea"],
701
- "application/x-sh": ["sh"],
702
- "application/x-shar": ["shar"],
703
- "application/x-shockwave-flash": ["swf"],
704
- "application/x-silverlight-app": ["xap"],
705
- "application/x-sql": ["*sql"],
706
- "application/x-stuffit": ["sit"],
707
- "application/x-stuffitx": ["sitx"],
708
- "application/x-subrip": ["srt"],
709
- "application/x-sv4cpio": ["sv4cpio"],
710
- "application/x-sv4crc": ["sv4crc"],
711
- "application/x-t3vm-image": ["t3"],
712
- "application/x-tads": ["gam"],
713
- "application/x-tar": ["tar"],
714
- "application/x-tcl": ["tcl", "tk"],
715
- "application/x-tex": ["tex"],
716
- "application/x-tex-tfm": ["tfm"],
717
- "application/x-texinfo": ["texinfo", "texi"],
718
- "application/x-tgif": ["*obj"],
719
- "application/x-ustar": ["ustar"],
720
- "application/x-virtualbox-hdd": ["hdd"],
721
- "application/x-virtualbox-ova": ["ova"],
722
- "application/x-virtualbox-ovf": ["ovf"],
723
- "application/x-virtualbox-vbox": ["vbox"],
724
- "application/x-virtualbox-vbox-extpack": ["vbox-extpack"],
725
- "application/x-virtualbox-vdi": ["vdi"],
726
- "application/x-virtualbox-vhd": ["vhd"],
727
- "application/x-virtualbox-vmdk": ["vmdk"],
728
- "application/x-wais-source": ["src"],
729
- "application/x-web-app-manifest+json": ["webapp"],
730
- "application/x-x509-ca-cert": [
731
- "der",
732
- "crt",
733
- "pem"
734
- ],
735
- "application/x-xfig": ["fig"],
736
- "application/x-xliff+xml": ["*xlf"],
737
- "application/x-xpinstall": ["xpi"],
738
- "application/x-xz": ["xz"],
739
- "application/x-zmachine": [
740
- "z1",
741
- "z2",
742
- "z3",
743
- "z4",
744
- "z5",
745
- "z6",
746
- "z7",
747
- "z8"
748
- ],
749
- "audio/vnd.dece.audio": ["uva", "uvva"],
750
- "audio/vnd.digital-winds": ["eol"],
751
- "audio/vnd.dra": ["dra"],
752
- "audio/vnd.dts": ["dts"],
753
- "audio/vnd.dts.hd": ["dtshd"],
754
- "audio/vnd.lucent.voice": ["lvp"],
755
- "audio/vnd.ms-playready.media.pya": ["pya"],
756
- "audio/vnd.nuera.ecelp4800": ["ecelp4800"],
757
- "audio/vnd.nuera.ecelp7470": ["ecelp7470"],
758
- "audio/vnd.nuera.ecelp9600": ["ecelp9600"],
759
- "audio/vnd.rip": ["rip"],
760
- "audio/x-aac": ["*aac"],
761
- "audio/x-aiff": [
762
- "aif",
763
- "aiff",
764
- "aifc"
765
- ],
766
- "audio/x-caf": ["caf"],
767
- "audio/x-flac": ["flac"],
768
- "audio/x-m4a": ["*m4a"],
769
- "audio/x-matroska": ["mka"],
770
- "audio/x-mpegurl": ["m3u"],
771
- "audio/x-ms-wax": ["wax"],
772
- "audio/x-ms-wma": ["wma"],
773
- "audio/x-pn-realaudio": ["ram", "ra"],
774
- "audio/x-pn-realaudio-plugin": ["rmp"],
775
- "audio/x-realaudio": ["*ra"],
776
- "audio/x-wav": ["*wav"],
777
- "chemical/x-cdx": ["cdx"],
778
- "chemical/x-cif": ["cif"],
779
- "chemical/x-cmdf": ["cmdf"],
780
- "chemical/x-cml": ["cml"],
781
- "chemical/x-csml": ["csml"],
782
- "chemical/x-xyz": ["xyz"],
783
- "image/prs.btif": ["btif", "btf"],
784
- "image/prs.pti": ["pti"],
785
- "image/vnd.adobe.photoshop": ["psd"],
786
- "image/vnd.airzip.accelerator.azv": ["azv"],
787
- "image/vnd.dece.graphic": [
788
- "uvi",
789
- "uvvi",
790
- "uvg",
791
- "uvvg"
792
- ],
793
- "image/vnd.djvu": ["djvu", "djv"],
794
- "image/vnd.dvb.subtitle": ["*sub"],
795
- "image/vnd.dwg": ["dwg"],
796
- "image/vnd.dxf": ["dxf"],
797
- "image/vnd.fastbidsheet": ["fbs"],
798
- "image/vnd.fpx": ["fpx"],
799
- "image/vnd.fst": ["fst"],
800
- "image/vnd.fujixerox.edmics-mmr": ["mmr"],
801
- "image/vnd.fujixerox.edmics-rlc": ["rlc"],
802
- "image/vnd.microsoft.icon": ["ico"],
803
- "image/vnd.ms-dds": ["dds"],
804
- "image/vnd.ms-modi": ["mdi"],
805
- "image/vnd.ms-photo": ["wdp"],
806
- "image/vnd.net-fpx": ["npx"],
807
- "image/vnd.pco.b16": ["b16"],
808
- "image/vnd.tencent.tap": ["tap"],
809
- "image/vnd.valve.source.texture": ["vtf"],
810
- "image/vnd.wap.wbmp": ["wbmp"],
811
- "image/vnd.xiff": ["xif"],
812
- "image/vnd.zbrush.pcx": ["pcx"],
813
- "image/x-3ds": ["3ds"],
814
- "image/x-cmu-raster": ["ras"],
815
- "image/x-cmx": ["cmx"],
816
- "image/x-freehand": [
817
- "fh",
818
- "fhc",
819
- "fh4",
820
- "fh5",
821
- "fh7"
822
- ],
823
- "image/x-icon": ["*ico"],
824
- "image/x-jng": ["jng"],
825
- "image/x-mrsid-image": ["sid"],
826
- "image/x-ms-bmp": ["*bmp"],
827
- "image/x-pcx": ["*pcx"],
828
- "image/x-pict": ["pic", "pct"],
829
- "image/x-portable-anymap": ["pnm"],
830
- "image/x-portable-bitmap": ["pbm"],
831
- "image/x-portable-graymap": ["pgm"],
832
- "image/x-portable-pixmap": ["ppm"],
833
- "image/x-rgb": ["rgb"],
834
- "image/x-tga": ["tga"],
835
- "image/x-xbitmap": ["xbm"],
836
- "image/x-xpixmap": ["xpm"],
837
- "image/x-xwindowdump": ["xwd"],
838
- "message/vnd.wfa.wsc": ["wsc"],
839
- "model/vnd.cld": ["cld"],
840
- "model/vnd.collada+xml": ["dae"],
841
- "model/vnd.dwf": ["dwf"],
842
- "model/vnd.gdl": ["gdl"],
843
- "model/vnd.gtw": ["gtw"],
844
- "model/vnd.mts": ["mts"],
845
- "model/vnd.opengex": ["ogex"],
846
- "model/vnd.parasolid.transmit.binary": ["x_b"],
847
- "model/vnd.parasolid.transmit.text": ["x_t"],
848
- "model/vnd.pytha.pyox": ["pyo", "pyox"],
849
- "model/vnd.sap.vds": ["vds"],
850
- "model/vnd.usda": ["usda"],
851
- "model/vnd.usdz+zip": ["usdz"],
852
- "model/vnd.valve.source.compiled-map": ["bsp"],
853
- "model/vnd.vtu": ["vtu"],
854
- "text/prs.lines.tag": ["dsc"],
855
- "text/vnd.curl": ["curl"],
856
- "text/vnd.curl.dcurl": ["dcurl"],
857
- "text/vnd.curl.mcurl": ["mcurl"],
858
- "text/vnd.curl.scurl": ["scurl"],
859
- "text/vnd.dvb.subtitle": ["sub"],
860
- "text/vnd.familysearch.gedcom": ["ged"],
861
- "text/vnd.fly": ["fly"],
862
- "text/vnd.fmi.flexstor": ["flx"],
863
- "text/vnd.graphviz": ["gv"],
864
- "text/vnd.in3d.3dml": ["3dml"],
865
- "text/vnd.in3d.spot": ["spot"],
866
- "text/vnd.sun.j2me.app-descriptor": ["jad"],
867
- "text/vnd.wap.wml": ["wml"],
868
- "text/vnd.wap.wmlscript": ["wmls"],
869
- "text/x-asm": ["s", "asm"],
870
- "text/x-c": [
871
- "c",
872
- "cc",
873
- "cxx",
874
- "cpp",
875
- "h",
876
- "hh",
877
- "dic"
878
- ],
879
- "text/x-component": ["htc"],
880
- "text/x-fortran": [
881
- "f",
882
- "for",
883
- "f77",
884
- "f90"
885
- ],
886
- "text/x-handlebars-template": ["hbs"],
887
- "text/x-java-source": ["java"],
888
- "text/x-lua": ["lua"],
889
- "text/x-markdown": ["mkd"],
890
- "text/x-nfo": ["nfo"],
891
- "text/x-opml": ["opml"],
892
- "text/x-org": ["*org"],
893
- "text/x-pascal": ["p", "pas"],
894
- "text/x-processing": ["pde"],
895
- "text/x-sass": ["sass"],
896
- "text/x-scss": ["scss"],
897
- "text/x-setext": ["etx"],
898
- "text/x-sfv": ["sfv"],
899
- "text/x-suse-ymp": ["ymp"],
900
- "text/x-uuencode": ["uu"],
901
- "text/x-vcalendar": ["vcs"],
902
- "text/x-vcard": ["vcf"],
903
- "video/vnd.dece.hd": ["uvh", "uvvh"],
904
- "video/vnd.dece.mobile": ["uvm", "uvvm"],
905
- "video/vnd.dece.pd": ["uvp", "uvvp"],
906
- "video/vnd.dece.sd": ["uvs", "uvvs"],
907
- "video/vnd.dece.video": ["uvv", "uvvv"],
908
- "video/vnd.dvb.file": ["dvb"],
909
- "video/vnd.fvt": ["fvt"],
910
- "video/vnd.mpegurl": ["mxu", "m4u"],
911
- "video/vnd.ms-playready.media.pyv": ["pyv"],
912
- "video/vnd.uvvu.mp4": ["uvu", "uvvu"],
913
- "video/vnd.vivo": ["viv"],
914
- "video/x-f4v": ["f4v"],
915
- "video/x-fli": ["fli"],
916
- "video/x-flv": ["flv"],
917
- "video/x-m4v": ["m4v"],
918
- "video/x-matroska": [
919
- "mkv",
920
- "mk3d",
921
- "mks"
922
- ],
923
- "video/x-mng": ["mng"],
924
- "video/x-ms-asf": ["asf", "asx"],
925
- "video/x-ms-vob": ["vob"],
926
- "video/x-ms-wm": ["wm"],
927
- "video/x-ms-wmv": ["wmv"],
928
- "video/x-ms-wmx": ["wmx"],
929
- "video/x-ms-wvx": ["wvx"],
930
- "video/x-msvideo": ["avi"],
931
- "video/x-sgi-movie": ["movie"],
932
- "video/x-smv": ["smv"],
933
- "x-conference/x-cooltalk": ["ice"]
934
- };
935
- Object.freeze(types$1);
936
- var other_default = types$1;
937
-
938
- //#endregion
939
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/standard.js
940
- const types = {
941
- "application/andrew-inset": ["ez"],
942
- "application/appinstaller": ["appinstaller"],
943
- "application/applixware": ["aw"],
944
- "application/appx": ["appx"],
945
- "application/appxbundle": ["appxbundle"],
946
- "application/atom+xml": ["atom"],
947
- "application/atomcat+xml": ["atomcat"],
948
- "application/atomdeleted+xml": ["atomdeleted"],
949
- "application/atomsvc+xml": ["atomsvc"],
950
- "application/atsc-dwd+xml": ["dwd"],
951
- "application/atsc-held+xml": ["held"],
952
- "application/atsc-rsat+xml": ["rsat"],
953
- "application/automationml-aml+xml": ["aml"],
954
- "application/automationml-amlx+zip": ["amlx"],
955
- "application/bdoc": ["bdoc"],
956
- "application/calendar+xml": ["xcs"],
957
- "application/ccxml+xml": ["ccxml"],
958
- "application/cdfx+xml": ["cdfx"],
959
- "application/cdmi-capability": ["cdmia"],
960
- "application/cdmi-container": ["cdmic"],
961
- "application/cdmi-domain": ["cdmid"],
962
- "application/cdmi-object": ["cdmio"],
963
- "application/cdmi-queue": ["cdmiq"],
964
- "application/cpl+xml": ["cpl"],
965
- "application/cu-seeme": ["cu"],
966
- "application/cwl": ["cwl"],
967
- "application/dash+xml": ["mpd"],
968
- "application/dash-patch+xml": ["mpp"],
969
- "application/davmount+xml": ["davmount"],
970
- "application/docbook+xml": ["dbk"],
971
- "application/dssc+der": ["dssc"],
972
- "application/dssc+xml": ["xdssc"],
973
- "application/ecmascript": ["ecma"],
974
- "application/emma+xml": ["emma"],
975
- "application/emotionml+xml": ["emotionml"],
976
- "application/epub+zip": ["epub"],
977
- "application/exi": ["exi"],
978
- "application/express": ["exp"],
979
- "application/fdf": ["fdf"],
980
- "application/fdt+xml": ["fdt"],
981
- "application/font-tdpfr": ["pfr"],
982
- "application/geo+json": ["geojson"],
983
- "application/gml+xml": ["gml"],
984
- "application/gpx+xml": ["gpx"],
985
- "application/gxf": ["gxf"],
986
- "application/gzip": ["gz"],
987
- "application/hjson": ["hjson"],
988
- "application/hyperstudio": ["stk"],
989
- "application/inkml+xml": ["ink", "inkml"],
990
- "application/ipfix": ["ipfix"],
991
- "application/its+xml": ["its"],
992
- "application/java-archive": [
993
- "jar",
994
- "war",
995
- "ear"
996
- ],
997
- "application/java-serialized-object": ["ser"],
998
- "application/java-vm": ["class"],
999
- "application/javascript": ["*js"],
1000
- "application/json": ["json", "map"],
1001
- "application/json5": ["json5"],
1002
- "application/jsonml+json": ["jsonml"],
1003
- "application/ld+json": ["jsonld"],
1004
- "application/lgr+xml": ["lgr"],
1005
- "application/lost+xml": ["lostxml"],
1006
- "application/mac-binhex40": ["hqx"],
1007
- "application/mac-compactpro": ["cpt"],
1008
- "application/mads+xml": ["mads"],
1009
- "application/manifest+json": ["webmanifest"],
1010
- "application/marc": ["mrc"],
1011
- "application/marcxml+xml": ["mrcx"],
1012
- "application/mathematica": [
1013
- "ma",
1014
- "nb",
1015
- "mb"
1016
- ],
1017
- "application/mathml+xml": ["mathml"],
1018
- "application/mbox": ["mbox"],
1019
- "application/media-policy-dataset+xml": ["mpf"],
1020
- "application/mediaservercontrol+xml": ["mscml"],
1021
- "application/metalink+xml": ["metalink"],
1022
- "application/metalink4+xml": ["meta4"],
1023
- "application/mets+xml": ["mets"],
1024
- "application/mmt-aei+xml": ["maei"],
1025
- "application/mmt-usd+xml": ["musd"],
1026
- "application/mods+xml": ["mods"],
1027
- "application/mp21": ["m21", "mp21"],
1028
- "application/mp4": [
1029
- "*mp4",
1030
- "*mpg4",
1031
- "mp4s",
1032
- "m4p"
1033
- ],
1034
- "application/msix": ["msix"],
1035
- "application/msixbundle": ["msixbundle"],
1036
- "application/msword": ["doc", "dot"],
1037
- "application/mxf": ["mxf"],
1038
- "application/n-quads": ["nq"],
1039
- "application/n-triples": ["nt"],
1040
- "application/node": ["cjs"],
1041
- "application/octet-stream": [
1042
- "bin",
1043
- "dms",
1044
- "lrf",
1045
- "mar",
1046
- "so",
1047
- "dist",
1048
- "distz",
1049
- "pkg",
1050
- "bpk",
1051
- "dump",
1052
- "elc",
1053
- "deploy",
1054
- "exe",
1055
- "dll",
1056
- "deb",
1057
- "dmg",
1058
- "iso",
1059
- "img",
1060
- "msi",
1061
- "msp",
1062
- "msm",
1063
- "buffer"
1064
- ],
1065
- "application/oda": ["oda"],
1066
- "application/oebps-package+xml": ["opf"],
1067
- "application/ogg": ["ogx"],
1068
- "application/omdoc+xml": ["omdoc"],
1069
- "application/onenote": [
1070
- "onetoc",
1071
- "onetoc2",
1072
- "onetmp",
1073
- "onepkg"
1074
- ],
1075
- "application/oxps": ["oxps"],
1076
- "application/p2p-overlay+xml": ["relo"],
1077
- "application/patch-ops-error+xml": ["xer"],
1078
- "application/pdf": ["pdf"],
1079
- "application/pgp-encrypted": ["pgp"],
1080
- "application/pgp-keys": ["asc"],
1081
- "application/pgp-signature": ["sig", "*asc"],
1082
- "application/pics-rules": ["prf"],
1083
- "application/pkcs10": ["p10"],
1084
- "application/pkcs7-mime": ["p7m", "p7c"],
1085
- "application/pkcs7-signature": ["p7s"],
1086
- "application/pkcs8": ["p8"],
1087
- "application/pkix-attr-cert": ["ac"],
1088
- "application/pkix-cert": ["cer"],
1089
- "application/pkix-crl": ["crl"],
1090
- "application/pkix-pkipath": ["pkipath"],
1091
- "application/pkixcmp": ["pki"],
1092
- "application/pls+xml": ["pls"],
1093
- "application/postscript": [
1094
- "ai",
1095
- "eps",
1096
- "ps"
1097
- ],
1098
- "application/provenance+xml": ["provx"],
1099
- "application/pskc+xml": ["pskcxml"],
1100
- "application/raml+yaml": ["raml"],
1101
- "application/rdf+xml": ["rdf", "owl"],
1102
- "application/reginfo+xml": ["rif"],
1103
- "application/relax-ng-compact-syntax": ["rnc"],
1104
- "application/resource-lists+xml": ["rl"],
1105
- "application/resource-lists-diff+xml": ["rld"],
1106
- "application/rls-services+xml": ["rs"],
1107
- "application/route-apd+xml": ["rapd"],
1108
- "application/route-s-tsid+xml": ["sls"],
1109
- "application/route-usd+xml": ["rusd"],
1110
- "application/rpki-ghostbusters": ["gbr"],
1111
- "application/rpki-manifest": ["mft"],
1112
- "application/rpki-roa": ["roa"],
1113
- "application/rsd+xml": ["rsd"],
1114
- "application/rss+xml": ["rss"],
1115
- "application/rtf": ["rtf"],
1116
- "application/sbml+xml": ["sbml"],
1117
- "application/scvp-cv-request": ["scq"],
1118
- "application/scvp-cv-response": ["scs"],
1119
- "application/scvp-vp-request": ["spq"],
1120
- "application/scvp-vp-response": ["spp"],
1121
- "application/sdp": ["sdp"],
1122
- "application/senml+xml": ["senmlx"],
1123
- "application/sensml+xml": ["sensmlx"],
1124
- "application/set-payment-initiation": ["setpay"],
1125
- "application/set-registration-initiation": ["setreg"],
1126
- "application/shf+xml": ["shf"],
1127
- "application/sieve": ["siv", "sieve"],
1128
- "application/smil+xml": ["smi", "smil"],
1129
- "application/sparql-query": ["rq"],
1130
- "application/sparql-results+xml": ["srx"],
1131
- "application/sql": ["sql"],
1132
- "application/srgs": ["gram"],
1133
- "application/srgs+xml": ["grxml"],
1134
- "application/sru+xml": ["sru"],
1135
- "application/ssdl+xml": ["ssdl"],
1136
- "application/ssml+xml": ["ssml"],
1137
- "application/swid+xml": ["swidtag"],
1138
- "application/tei+xml": ["tei", "teicorpus"],
1139
- "application/thraud+xml": ["tfi"],
1140
- "application/timestamped-data": ["tsd"],
1141
- "application/toml": ["toml"],
1142
- "application/trig": ["trig"],
1143
- "application/ttml+xml": ["ttml"],
1144
- "application/ubjson": ["ubj"],
1145
- "application/urc-ressheet+xml": ["rsheet"],
1146
- "application/urc-targetdesc+xml": ["td"],
1147
- "application/voicexml+xml": ["vxml"],
1148
- "application/wasm": ["wasm"],
1149
- "application/watcherinfo+xml": ["wif"],
1150
- "application/widget": ["wgt"],
1151
- "application/winhlp": ["hlp"],
1152
- "application/wsdl+xml": ["wsdl"],
1153
- "application/wspolicy+xml": ["wspolicy"],
1154
- "application/xaml+xml": ["xaml"],
1155
- "application/xcap-att+xml": ["xav"],
1156
- "application/xcap-caps+xml": ["xca"],
1157
- "application/xcap-diff+xml": ["xdf"],
1158
- "application/xcap-el+xml": ["xel"],
1159
- "application/xcap-ns+xml": ["xns"],
1160
- "application/xenc+xml": ["xenc"],
1161
- "application/xfdf": ["xfdf"],
1162
- "application/xhtml+xml": ["xhtml", "xht"],
1163
- "application/xliff+xml": ["xlf"],
1164
- "application/xml": [
1165
- "xml",
1166
- "xsl",
1167
- "xsd",
1168
- "rng"
1169
- ],
1170
- "application/xml-dtd": ["dtd"],
1171
- "application/xop+xml": ["xop"],
1172
- "application/xproc+xml": ["xpl"],
1173
- "application/xslt+xml": ["*xsl", "xslt"],
1174
- "application/xspf+xml": ["xspf"],
1175
- "application/xv+xml": [
1176
- "mxml",
1177
- "xhvml",
1178
- "xvml",
1179
- "xvm"
1180
- ],
1181
- "application/yang": ["yang"],
1182
- "application/yin+xml": ["yin"],
1183
- "application/zip": ["zip"],
1184
- "audio/3gpp": ["*3gpp"],
1185
- "audio/aac": ["adts", "aac"],
1186
- "audio/adpcm": ["adp"],
1187
- "audio/amr": ["amr"],
1188
- "audio/basic": ["au", "snd"],
1189
- "audio/midi": [
1190
- "mid",
1191
- "midi",
1192
- "kar",
1193
- "rmi"
1194
- ],
1195
- "audio/mobile-xmf": ["mxmf"],
1196
- "audio/mp3": ["*mp3"],
1197
- "audio/mp4": ["m4a", "mp4a"],
1198
- "audio/mpeg": [
1199
- "mpga",
1200
- "mp2",
1201
- "mp2a",
1202
- "mp3",
1203
- "m2a",
1204
- "m3a"
1205
- ],
1206
- "audio/ogg": [
1207
- "oga",
1208
- "ogg",
1209
- "spx",
1210
- "opus"
1211
- ],
1212
- "audio/s3m": ["s3m"],
1213
- "audio/silk": ["sil"],
1214
- "audio/wav": ["wav"],
1215
- "audio/wave": ["*wav"],
1216
- "audio/webm": ["weba"],
1217
- "audio/xm": ["xm"],
1218
- "font/collection": ["ttc"],
1219
- "font/otf": ["otf"],
1220
- "font/ttf": ["ttf"],
1221
- "font/woff": ["woff"],
1222
- "font/woff2": ["woff2"],
1223
- "image/aces": ["exr"],
1224
- "image/apng": ["apng"],
1225
- "image/avci": ["avci"],
1226
- "image/avcs": ["avcs"],
1227
- "image/avif": ["avif"],
1228
- "image/bmp": ["bmp", "dib"],
1229
- "image/cgm": ["cgm"],
1230
- "image/dicom-rle": ["drle"],
1231
- "image/dpx": ["dpx"],
1232
- "image/emf": ["emf"],
1233
- "image/fits": ["fits"],
1234
- "image/g3fax": ["g3"],
1235
- "image/gif": ["gif"],
1236
- "image/heic": ["heic"],
1237
- "image/heic-sequence": ["heics"],
1238
- "image/heif": ["heif"],
1239
- "image/heif-sequence": ["heifs"],
1240
- "image/hej2k": ["hej2"],
1241
- "image/hsj2": ["hsj2"],
1242
- "image/ief": ["ief"],
1243
- "image/jls": ["jls"],
1244
- "image/jp2": ["jp2", "jpg2"],
1245
- "image/jpeg": [
1246
- "jpeg",
1247
- "jpg",
1248
- "jpe"
1249
- ],
1250
- "image/jph": ["jph"],
1251
- "image/jphc": ["jhc"],
1252
- "image/jpm": ["jpm", "jpgm"],
1253
- "image/jpx": ["jpx", "jpf"],
1254
- "image/jxr": ["jxr"],
1255
- "image/jxra": ["jxra"],
1256
- "image/jxrs": ["jxrs"],
1257
- "image/jxs": ["jxs"],
1258
- "image/jxsc": ["jxsc"],
1259
- "image/jxsi": ["jxsi"],
1260
- "image/jxss": ["jxss"],
1261
- "image/ktx": ["ktx"],
1262
- "image/ktx2": ["ktx2"],
1263
- "image/png": ["png"],
1264
- "image/sgi": ["sgi"],
1265
- "image/svg+xml": ["svg", "svgz"],
1266
- "image/t38": ["t38"],
1267
- "image/tiff": ["tif", "tiff"],
1268
- "image/tiff-fx": ["tfx"],
1269
- "image/webp": ["webp"],
1270
- "image/wmf": ["wmf"],
1271
- "message/disposition-notification": ["disposition-notification"],
1272
- "message/global": ["u8msg"],
1273
- "message/global-delivery-status": ["u8dsn"],
1274
- "message/global-disposition-notification": ["u8mdn"],
1275
- "message/global-headers": ["u8hdr"],
1276
- "message/rfc822": ["eml", "mime"],
1277
- "model/3mf": ["3mf"],
1278
- "model/gltf+json": ["gltf"],
1279
- "model/gltf-binary": ["glb"],
1280
- "model/iges": ["igs", "iges"],
1281
- "model/jt": ["jt"],
1282
- "model/mesh": [
1283
- "msh",
1284
- "mesh",
1285
- "silo"
1286
- ],
1287
- "model/mtl": ["mtl"],
1288
- "model/obj": ["obj"],
1289
- "model/prc": ["prc"],
1290
- "model/step+xml": ["stpx"],
1291
- "model/step+zip": ["stpz"],
1292
- "model/step-xml+zip": ["stpxz"],
1293
- "model/stl": ["stl"],
1294
- "model/u3d": ["u3d"],
1295
- "model/vrml": ["wrl", "vrml"],
1296
- "model/x3d+binary": ["*x3db", "x3dbz"],
1297
- "model/x3d+fastinfoset": ["x3db"],
1298
- "model/x3d+vrml": ["*x3dv", "x3dvz"],
1299
- "model/x3d+xml": ["x3d", "x3dz"],
1300
- "model/x3d-vrml": ["x3dv"],
1301
- "text/cache-manifest": ["appcache", "manifest"],
1302
- "text/calendar": ["ics", "ifb"],
1303
- "text/coffeescript": ["coffee", "litcoffee"],
1304
- "text/css": ["css"],
1305
- "text/csv": ["csv"],
1306
- "text/html": [
1307
- "html",
1308
- "htm",
1309
- "shtml"
1310
- ],
1311
- "text/jade": ["jade"],
1312
- "text/javascript": ["js", "mjs"],
1313
- "text/jsx": ["jsx"],
1314
- "text/less": ["less"],
1315
- "text/markdown": ["md", "markdown"],
1316
- "text/mathml": ["mml"],
1317
- "text/mdx": ["mdx"],
1318
- "text/n3": ["n3"],
1319
- "text/plain": [
1320
- "txt",
1321
- "text",
1322
- "conf",
1323
- "def",
1324
- "list",
1325
- "log",
1326
- "in",
1327
- "ini"
1328
- ],
1329
- "text/richtext": ["rtx"],
1330
- "text/rtf": ["*rtf"],
1331
- "text/sgml": ["sgml", "sgm"],
1332
- "text/shex": ["shex"],
1333
- "text/slim": ["slim", "slm"],
1334
- "text/spdx": ["spdx"],
1335
- "text/stylus": ["stylus", "styl"],
1336
- "text/tab-separated-values": ["tsv"],
1337
- "text/troff": [
1338
- "t",
1339
- "tr",
1340
- "roff",
1341
- "man",
1342
- "me",
1343
- "ms"
1344
- ],
1345
- "text/turtle": ["ttl"],
1346
- "text/uri-list": [
1347
- "uri",
1348
- "uris",
1349
- "urls"
1350
- ],
1351
- "text/vcard": ["vcard"],
1352
- "text/vtt": ["vtt"],
1353
- "text/wgsl": ["wgsl"],
1354
- "text/xml": ["*xml"],
1355
- "text/yaml": ["yaml", "yml"],
1356
- "video/3gpp": ["3gp", "3gpp"],
1357
- "video/3gpp2": ["3g2"],
1358
- "video/h261": ["h261"],
1359
- "video/h263": ["h263"],
1360
- "video/h264": ["h264"],
1361
- "video/iso.segment": ["m4s"],
1362
- "video/jpeg": ["jpgv"],
1363
- "video/jpm": ["*jpm", "*jpgm"],
1364
- "video/mj2": ["mj2", "mjp2"],
1365
- "video/mp2t": ["ts"],
1366
- "video/mp4": [
1367
- "mp4",
1368
- "mp4v",
1369
- "mpg4"
1370
- ],
1371
- "video/mpeg": [
1372
- "mpeg",
1373
- "mpg",
1374
- "mpe",
1375
- "m1v",
1376
- "m2v"
1377
- ],
1378
- "video/ogg": ["ogv"],
1379
- "video/quicktime": ["qt", "mov"],
1380
- "video/webm": ["webm"]
1381
- };
1382
- Object.freeze(types);
1383
- var standard_default = types;
1384
-
1385
- //#endregion
1386
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
1387
- var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind, f) {
1388
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1389
- 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");
1390
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1391
- };
1392
- var _Mime_extensionToType, _Mime_typeToExtension, _Mime_typeToExtensions;
1393
- var Mime = class {
1394
- constructor(...args) {
1395
- _Mime_extensionToType.set(this, /* @__PURE__ */ new Map());
1396
- _Mime_typeToExtension.set(this, /* @__PURE__ */ new Map());
1397
- _Mime_typeToExtensions.set(this, /* @__PURE__ */ new Map());
1398
- for (const arg of args) this.define(arg);
1399
- }
1400
- define(typeMap, force = false) {
1401
- for (let [type, extensions] of Object.entries(typeMap)) {
1402
- type = type.toLowerCase();
1403
- extensions = extensions.map((ext) => ext.toLowerCase());
1404
- if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type)) __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type, /* @__PURE__ */ new Set());
1405
- const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type);
1406
- let first = true;
1407
- for (let extension of extensions) {
1408
- const starred = extension.startsWith("*");
1409
- extension = starred ? extension.slice(1) : extension;
1410
- allExtensions?.add(extension);
1411
- if (first) __classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type, extension);
1412
- first = false;
1413
- if (starred) continue;
1414
- const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension);
1415
- if (currentType && currentType != type && !force) throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);
1416
- __classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension, type);
1417
- }
1418
- }
1419
- return this;
1420
- }
1421
- getType(path$2) {
1422
- if (typeof path$2 !== "string") return null;
1423
- const last = path$2.replace(/^.*[/\\]/, "").toLowerCase();
1424
- const ext = last.replace(/^.*\./, "").toLowerCase();
1425
- const hasPath = last.length < path$2.length;
1426
- if (!(ext.length < last.length - 1) && hasPath) return null;
1427
- return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
1428
- }
1429
- getExtension(type) {
1430
- if (typeof type !== "string") return null;
1431
- type = type?.split?.(";")[0];
1432
- return (type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null;
1433
- }
1434
- getAllExtensions(type) {
1435
- if (typeof type !== "string") return null;
1436
- return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
1437
- }
1438
- _freeze() {
1439
- this.define = () => {
1440
- throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1441
- };
1442
- Object.freeze(this);
1443
- for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) Object.freeze(extensions);
1444
- return this;
1445
- }
1446
- _getTestState() {
1447
- return {
1448
- types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
1449
- extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
1450
- };
1451
- }
1452
- };
1453
- _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
1454
- var Mime_default = Mime;
1455
-
1456
- //#endregion
1457
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
1458
- var src_default = new Mime_default(standard_default, other_default)._freeze();
1459
-
1460
122
  //#endregion
1461
123
  //#region src/supabaseStorage.ts
1462
124
  const supabaseStorage = (config, hooks) => (_) => {
@@ -1464,24 +126,40 @@ const supabaseStorage = (config, hooks) => (_) => {
1464
126
  const getStorageKey = (0, __hot_updater_plugin_core.createStorageKeyBuilder)(config.basePath);
1465
127
  return {
1466
128
  name: "supabaseStorage",
1467
- async deleteBundle(bundleId) {
1468
- const Key = getStorageKey(bundleId, "bundle.zip");
1469
- const { error } = await bucket.remove([Key]);
129
+ supportedProtocol: "supabase-storage",
130
+ async delete(storageUri) {
131
+ const { key, bucket: bucketName } = (0, __hot_updater_plugin_core.parseStorageUri)(storageUri, "supabase-storage");
132
+ if (bucketName !== config.bucketName) throw new Error(`Bucket name mismatch: expected "${config.bucketName}", but found "${bucketName}".`);
133
+ const { error } = await bucket.remove([key]);
1470
134
  if (error) {
1471
- if (error.message?.includes("not found")) throw new Error(`Bundle with id ${bundleId} not found`);
135
+ if (error.message?.includes("not found")) throw new Error(`Bundle not found`);
1472
136
  throw new Error(`Failed to delete bundle: ${error.message}`);
1473
137
  }
1474
- return { storageUri: `supabase-storage://${config.bucketName}/${Key}` };
1475
138
  },
1476
- async uploadBundle(bundleId, bundlePath) {
1477
- const Body = await fs_promises.default.readFile(bundlePath);
1478
- const ContentType = src_default.getType(bundlePath) ?? void 0;
1479
- const Key = getStorageKey(bundleId, path.default.basename(bundlePath));
1480
- const upload = await bucket.upload(Key, Body, { contentType: ContentType });
139
+ async upload(key, filePath) {
140
+ const Body = await fs_promises.default.readFile(filePath);
141
+ const ContentType = (0, __hot_updater_plugin_core.getContentType)(filePath);
142
+ const Key = getStorageKey(key, path.default.basename(filePath));
143
+ const upload = await bucket.upload(Key, Body, {
144
+ contentType: ContentType,
145
+ cacheControl: "max-age=31536000",
146
+ headers: {}
147
+ });
1481
148
  if (upload.error) throw upload.error;
1482
149
  const fullPath = upload.data.fullPath;
1483
150
  hooks?.onStorageUploaded?.();
1484
151
  return { storageUri: `supabase-storage://${fullPath}` };
152
+ },
153
+ async getDownloadUrl(storageUri) {
154
+ const u = new URL(storageUri);
155
+ if (u.protocol.replace(":", "") !== "supabase-storage") throw new Error("Invalid Supabase storage URI protocol");
156
+ let key = `${u.host}${u.pathname}`.replace(/^\//, "");
157
+ if (!key) throw new Error("Invalid Supabase storage URI: missing key");
158
+ if (key.startsWith(`${config.bucketName}/`)) key = key.substring(`${config.bucketName}/`.length);
159
+ const { data, error } = await bucket.createSignedUrl(key, 3600);
160
+ if (error) throw new Error(`Failed to generate download URL: ${error.message}`);
161
+ if (!data?.signedUrl) throw new Error("Failed to generate download URL");
162
+ return { fileUrl: data.signedUrl };
1485
163
  }
1486
164
  };
1487
165
  };