@pod-os/core 0.20.1-rc.f98c05a.0 → 0.20.1-rc.fd664af.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.js +462 -3
- package/lib/index.js +565 -106
- package/package.json +7 -6
- package/types/problems/index.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -3224,6 +3224,465 @@ var Err = class {
|
|
|
3224
3224
|
};
|
|
3225
3225
|
var fromThrowable = Result.fromThrowable;
|
|
3226
3226
|
|
|
3227
|
+
// ../node_modules/mime/dist/types/standard.js
|
|
3228
|
+
var types = {
|
|
3229
|
+
"application/andrew-inset": ["ez"],
|
|
3230
|
+
"application/appinstaller": ["appinstaller"],
|
|
3231
|
+
"application/applixware": ["aw"],
|
|
3232
|
+
"application/appx": ["appx"],
|
|
3233
|
+
"application/appxbundle": ["appxbundle"],
|
|
3234
|
+
"application/atom+xml": ["atom"],
|
|
3235
|
+
"application/atomcat+xml": ["atomcat"],
|
|
3236
|
+
"application/atomdeleted+xml": ["atomdeleted"],
|
|
3237
|
+
"application/atomsvc+xml": ["atomsvc"],
|
|
3238
|
+
"application/atsc-dwd+xml": ["dwd"],
|
|
3239
|
+
"application/atsc-held+xml": ["held"],
|
|
3240
|
+
"application/atsc-rsat+xml": ["rsat"],
|
|
3241
|
+
"application/automationml-aml+xml": ["aml"],
|
|
3242
|
+
"application/automationml-amlx+zip": ["amlx"],
|
|
3243
|
+
"application/bdoc": ["bdoc"],
|
|
3244
|
+
"application/calendar+xml": ["xcs"],
|
|
3245
|
+
"application/ccxml+xml": ["ccxml"],
|
|
3246
|
+
"application/cdfx+xml": ["cdfx"],
|
|
3247
|
+
"application/cdmi-capability": ["cdmia"],
|
|
3248
|
+
"application/cdmi-container": ["cdmic"],
|
|
3249
|
+
"application/cdmi-domain": ["cdmid"],
|
|
3250
|
+
"application/cdmi-object": ["cdmio"],
|
|
3251
|
+
"application/cdmi-queue": ["cdmiq"],
|
|
3252
|
+
"application/cpl+xml": ["cpl"],
|
|
3253
|
+
"application/cu-seeme": ["cu"],
|
|
3254
|
+
"application/cwl": ["cwl"],
|
|
3255
|
+
"application/dash+xml": ["mpd"],
|
|
3256
|
+
"application/dash-patch+xml": ["mpp"],
|
|
3257
|
+
"application/davmount+xml": ["davmount"],
|
|
3258
|
+
"application/dicom": ["dcm"],
|
|
3259
|
+
"application/docbook+xml": ["dbk"],
|
|
3260
|
+
"application/dssc+der": ["dssc"],
|
|
3261
|
+
"application/dssc+xml": ["xdssc"],
|
|
3262
|
+
"application/ecmascript": ["ecma"],
|
|
3263
|
+
"application/emma+xml": ["emma"],
|
|
3264
|
+
"application/emotionml+xml": ["emotionml"],
|
|
3265
|
+
"application/epub+zip": ["epub"],
|
|
3266
|
+
"application/exi": ["exi"],
|
|
3267
|
+
"application/express": ["exp"],
|
|
3268
|
+
"application/fdf": ["fdf"],
|
|
3269
|
+
"application/fdt+xml": ["fdt"],
|
|
3270
|
+
"application/font-tdpfr": ["pfr"],
|
|
3271
|
+
"application/geo+json": ["geojson"],
|
|
3272
|
+
"application/gml+xml": ["gml"],
|
|
3273
|
+
"application/gpx+xml": ["gpx"],
|
|
3274
|
+
"application/gxf": ["gxf"],
|
|
3275
|
+
"application/gzip": ["gz"],
|
|
3276
|
+
"application/hjson": ["hjson"],
|
|
3277
|
+
"application/hyperstudio": ["stk"],
|
|
3278
|
+
"application/inkml+xml": ["ink", "inkml"],
|
|
3279
|
+
"application/ipfix": ["ipfix"],
|
|
3280
|
+
"application/its+xml": ["its"],
|
|
3281
|
+
"application/java-archive": ["jar", "war", "ear"],
|
|
3282
|
+
"application/java-serialized-object": ["ser"],
|
|
3283
|
+
"application/java-vm": ["class"],
|
|
3284
|
+
"application/javascript": ["*js"],
|
|
3285
|
+
"application/json": ["json", "map"],
|
|
3286
|
+
"application/json5": ["json5"],
|
|
3287
|
+
"application/jsonml+json": ["jsonml"],
|
|
3288
|
+
"application/ld+json": ["jsonld"],
|
|
3289
|
+
"application/lgr+xml": ["lgr"],
|
|
3290
|
+
"application/lost+xml": ["lostxml"],
|
|
3291
|
+
"application/mac-binhex40": ["hqx"],
|
|
3292
|
+
"application/mac-compactpro": ["cpt"],
|
|
3293
|
+
"application/mads+xml": ["mads"],
|
|
3294
|
+
"application/manifest+json": ["webmanifest"],
|
|
3295
|
+
"application/marc": ["mrc"],
|
|
3296
|
+
"application/marcxml+xml": ["mrcx"],
|
|
3297
|
+
"application/mathematica": ["ma", "nb", "mb"],
|
|
3298
|
+
"application/mathml+xml": ["mathml"],
|
|
3299
|
+
"application/mbox": ["mbox"],
|
|
3300
|
+
"application/media-policy-dataset+xml": ["mpf"],
|
|
3301
|
+
"application/mediaservercontrol+xml": ["mscml"],
|
|
3302
|
+
"application/metalink+xml": ["metalink"],
|
|
3303
|
+
"application/metalink4+xml": ["meta4"],
|
|
3304
|
+
"application/mets+xml": ["mets"],
|
|
3305
|
+
"application/mmt-aei+xml": ["maei"],
|
|
3306
|
+
"application/mmt-usd+xml": ["musd"],
|
|
3307
|
+
"application/mods+xml": ["mods"],
|
|
3308
|
+
"application/mp21": ["m21", "mp21"],
|
|
3309
|
+
"application/mp4": ["*mp4", "*mpg4", "mp4s", "m4p"],
|
|
3310
|
+
"application/msix": ["msix"],
|
|
3311
|
+
"application/msixbundle": ["msixbundle"],
|
|
3312
|
+
"application/msword": ["doc", "dot"],
|
|
3313
|
+
"application/mxf": ["mxf"],
|
|
3314
|
+
"application/n-quads": ["nq"],
|
|
3315
|
+
"application/n-triples": ["nt"],
|
|
3316
|
+
"application/node": ["cjs"],
|
|
3317
|
+
"application/octet-stream": [
|
|
3318
|
+
"bin",
|
|
3319
|
+
"dms",
|
|
3320
|
+
"lrf",
|
|
3321
|
+
"mar",
|
|
3322
|
+
"so",
|
|
3323
|
+
"dist",
|
|
3324
|
+
"distz",
|
|
3325
|
+
"pkg",
|
|
3326
|
+
"bpk",
|
|
3327
|
+
"dump",
|
|
3328
|
+
"elc",
|
|
3329
|
+
"deploy",
|
|
3330
|
+
"exe",
|
|
3331
|
+
"dll",
|
|
3332
|
+
"deb",
|
|
3333
|
+
"dmg",
|
|
3334
|
+
"iso",
|
|
3335
|
+
"img",
|
|
3336
|
+
"msi",
|
|
3337
|
+
"msp",
|
|
3338
|
+
"msm",
|
|
3339
|
+
"buffer"
|
|
3340
|
+
],
|
|
3341
|
+
"application/oda": ["oda"],
|
|
3342
|
+
"application/oebps-package+xml": ["opf"],
|
|
3343
|
+
"application/ogg": ["ogx"],
|
|
3344
|
+
"application/omdoc+xml": ["omdoc"],
|
|
3345
|
+
"application/onenote": [
|
|
3346
|
+
"onetoc",
|
|
3347
|
+
"onetoc2",
|
|
3348
|
+
"onetmp",
|
|
3349
|
+
"onepkg",
|
|
3350
|
+
"one",
|
|
3351
|
+
"onea"
|
|
3352
|
+
],
|
|
3353
|
+
"application/oxps": ["oxps"],
|
|
3354
|
+
"application/p2p-overlay+xml": ["relo"],
|
|
3355
|
+
"application/patch-ops-error+xml": ["xer"],
|
|
3356
|
+
"application/pdf": ["pdf"],
|
|
3357
|
+
"application/pgp-encrypted": ["pgp"],
|
|
3358
|
+
"application/pgp-keys": ["asc"],
|
|
3359
|
+
"application/pgp-signature": ["sig", "*asc"],
|
|
3360
|
+
"application/pics-rules": ["prf"],
|
|
3361
|
+
"application/pkcs10": ["p10"],
|
|
3362
|
+
"application/pkcs7-mime": ["p7m", "p7c"],
|
|
3363
|
+
"application/pkcs7-signature": ["p7s"],
|
|
3364
|
+
"application/pkcs8": ["p8"],
|
|
3365
|
+
"application/pkix-attr-cert": ["ac"],
|
|
3366
|
+
"application/pkix-cert": ["cer"],
|
|
3367
|
+
"application/pkix-crl": ["crl"],
|
|
3368
|
+
"application/pkix-pkipath": ["pkipath"],
|
|
3369
|
+
"application/pkixcmp": ["pki"],
|
|
3370
|
+
"application/pls+xml": ["pls"],
|
|
3371
|
+
"application/postscript": ["ai", "eps", "ps"],
|
|
3372
|
+
"application/provenance+xml": ["provx"],
|
|
3373
|
+
"application/pskc+xml": ["pskcxml"],
|
|
3374
|
+
"application/raml+yaml": ["raml"],
|
|
3375
|
+
"application/rdf+xml": ["rdf", "owl"],
|
|
3376
|
+
"application/reginfo+xml": ["rif"],
|
|
3377
|
+
"application/relax-ng-compact-syntax": ["rnc"],
|
|
3378
|
+
"application/resource-lists+xml": ["rl"],
|
|
3379
|
+
"application/resource-lists-diff+xml": ["rld"],
|
|
3380
|
+
"application/rls-services+xml": ["rs"],
|
|
3381
|
+
"application/route-apd+xml": ["rapd"],
|
|
3382
|
+
"application/route-s-tsid+xml": ["sls"],
|
|
3383
|
+
"application/route-usd+xml": ["rusd"],
|
|
3384
|
+
"application/rpki-ghostbusters": ["gbr"],
|
|
3385
|
+
"application/rpki-manifest": ["mft"],
|
|
3386
|
+
"application/rpki-roa": ["roa"],
|
|
3387
|
+
"application/rsd+xml": ["rsd"],
|
|
3388
|
+
"application/rss+xml": ["rss"],
|
|
3389
|
+
"application/rtf": ["rtf"],
|
|
3390
|
+
"application/sbml+xml": ["sbml"],
|
|
3391
|
+
"application/scvp-cv-request": ["scq"],
|
|
3392
|
+
"application/scvp-cv-response": ["scs"],
|
|
3393
|
+
"application/scvp-vp-request": ["spq"],
|
|
3394
|
+
"application/scvp-vp-response": ["spp"],
|
|
3395
|
+
"application/sdp": ["sdp"],
|
|
3396
|
+
"application/senml+xml": ["senmlx"],
|
|
3397
|
+
"application/sensml+xml": ["sensmlx"],
|
|
3398
|
+
"application/set-payment-initiation": ["setpay"],
|
|
3399
|
+
"application/set-registration-initiation": ["setreg"],
|
|
3400
|
+
"application/shf+xml": ["shf"],
|
|
3401
|
+
"application/sieve": ["siv", "sieve"],
|
|
3402
|
+
"application/smil+xml": ["smi", "smil"],
|
|
3403
|
+
"application/sparql-query": ["rq"],
|
|
3404
|
+
"application/sparql-results+xml": ["srx"],
|
|
3405
|
+
"application/sql": ["sql"],
|
|
3406
|
+
"application/srgs": ["gram"],
|
|
3407
|
+
"application/srgs+xml": ["grxml"],
|
|
3408
|
+
"application/sru+xml": ["sru"],
|
|
3409
|
+
"application/ssdl+xml": ["ssdl"],
|
|
3410
|
+
"application/ssml+xml": ["ssml"],
|
|
3411
|
+
"application/swid+xml": ["swidtag"],
|
|
3412
|
+
"application/tei+xml": ["tei", "teicorpus"],
|
|
3413
|
+
"application/thraud+xml": ["tfi"],
|
|
3414
|
+
"application/timestamped-data": ["tsd"],
|
|
3415
|
+
"application/toml": ["toml"],
|
|
3416
|
+
"application/trig": ["trig"],
|
|
3417
|
+
"application/ttml+xml": ["ttml"],
|
|
3418
|
+
"application/ubjson": ["ubj"],
|
|
3419
|
+
"application/urc-ressheet+xml": ["rsheet"],
|
|
3420
|
+
"application/urc-targetdesc+xml": ["td"],
|
|
3421
|
+
"application/voicexml+xml": ["vxml"],
|
|
3422
|
+
"application/wasm": ["wasm"],
|
|
3423
|
+
"application/watcherinfo+xml": ["wif"],
|
|
3424
|
+
"application/widget": ["wgt"],
|
|
3425
|
+
"application/winhlp": ["hlp"],
|
|
3426
|
+
"application/wsdl+xml": ["wsdl"],
|
|
3427
|
+
"application/wspolicy+xml": ["wspolicy"],
|
|
3428
|
+
"application/xaml+xml": ["xaml"],
|
|
3429
|
+
"application/xcap-att+xml": ["xav"],
|
|
3430
|
+
"application/xcap-caps+xml": ["xca"],
|
|
3431
|
+
"application/xcap-diff+xml": ["xdf"],
|
|
3432
|
+
"application/xcap-el+xml": ["xel"],
|
|
3433
|
+
"application/xcap-ns+xml": ["xns"],
|
|
3434
|
+
"application/xenc+xml": ["xenc"],
|
|
3435
|
+
"application/xfdf": ["xfdf"],
|
|
3436
|
+
"application/xhtml+xml": ["xhtml", "xht"],
|
|
3437
|
+
"application/xliff+xml": ["xlf"],
|
|
3438
|
+
"application/xml": ["xml", "xsl", "xsd", "rng"],
|
|
3439
|
+
"application/xml-dtd": ["dtd"],
|
|
3440
|
+
"application/xop+xml": ["xop"],
|
|
3441
|
+
"application/xproc+xml": ["xpl"],
|
|
3442
|
+
"application/xslt+xml": ["*xsl", "xslt"],
|
|
3443
|
+
"application/xspf+xml": ["xspf"],
|
|
3444
|
+
"application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"],
|
|
3445
|
+
"application/yang": ["yang"],
|
|
3446
|
+
"application/yin+xml": ["yin"],
|
|
3447
|
+
"application/zip": ["zip"],
|
|
3448
|
+
"application/zip+dotlottie": ["lottie"],
|
|
3449
|
+
"audio/3gpp": ["*3gpp"],
|
|
3450
|
+
"audio/aac": ["adts", "aac"],
|
|
3451
|
+
"audio/adpcm": ["adp"],
|
|
3452
|
+
"audio/amr": ["amr"],
|
|
3453
|
+
"audio/basic": ["au", "snd"],
|
|
3454
|
+
"audio/midi": ["mid", "midi", "kar", "rmi"],
|
|
3455
|
+
"audio/mobile-xmf": ["mxmf"],
|
|
3456
|
+
"audio/mp3": ["*mp3"],
|
|
3457
|
+
"audio/mp4": ["m4a", "mp4a", "m4b"],
|
|
3458
|
+
"audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"],
|
|
3459
|
+
"audio/ogg": ["oga", "ogg", "spx", "opus"],
|
|
3460
|
+
"audio/s3m": ["s3m"],
|
|
3461
|
+
"audio/silk": ["sil"],
|
|
3462
|
+
"audio/wav": ["wav"],
|
|
3463
|
+
"audio/wave": ["*wav"],
|
|
3464
|
+
"audio/webm": ["weba"],
|
|
3465
|
+
"audio/xm": ["xm"],
|
|
3466
|
+
"font/collection": ["ttc"],
|
|
3467
|
+
"font/otf": ["otf"],
|
|
3468
|
+
"font/ttf": ["ttf"],
|
|
3469
|
+
"font/woff": ["woff"],
|
|
3470
|
+
"font/woff2": ["woff2"],
|
|
3471
|
+
"image/aces": ["exr"],
|
|
3472
|
+
"image/apng": ["apng"],
|
|
3473
|
+
"image/avci": ["avci"],
|
|
3474
|
+
"image/avcs": ["avcs"],
|
|
3475
|
+
"image/avif": ["avif"],
|
|
3476
|
+
"image/bmp": ["bmp", "dib"],
|
|
3477
|
+
"image/cgm": ["cgm"],
|
|
3478
|
+
"image/dicom-rle": ["drle"],
|
|
3479
|
+
"image/dpx": ["dpx"],
|
|
3480
|
+
"image/emf": ["emf"],
|
|
3481
|
+
"image/fits": ["fits"],
|
|
3482
|
+
"image/g3fax": ["g3"],
|
|
3483
|
+
"image/gif": ["gif"],
|
|
3484
|
+
"image/heic": ["heic"],
|
|
3485
|
+
"image/heic-sequence": ["heics"],
|
|
3486
|
+
"image/heif": ["heif"],
|
|
3487
|
+
"image/heif-sequence": ["heifs"],
|
|
3488
|
+
"image/hej2k": ["hej2"],
|
|
3489
|
+
"image/ief": ["ief"],
|
|
3490
|
+
"image/jaii": ["jaii"],
|
|
3491
|
+
"image/jais": ["jais"],
|
|
3492
|
+
"image/jls": ["jls"],
|
|
3493
|
+
"image/jp2": ["jp2", "jpg2"],
|
|
3494
|
+
"image/jpeg": ["jpg", "jpeg", "jpe"],
|
|
3495
|
+
"image/jph": ["jph"],
|
|
3496
|
+
"image/jphc": ["jhc"],
|
|
3497
|
+
"image/jpm": ["jpm", "jpgm"],
|
|
3498
|
+
"image/jpx": ["jpx", "jpf"],
|
|
3499
|
+
"image/jxl": ["jxl"],
|
|
3500
|
+
"image/jxr": ["jxr"],
|
|
3501
|
+
"image/jxra": ["jxra"],
|
|
3502
|
+
"image/jxrs": ["jxrs"],
|
|
3503
|
+
"image/jxs": ["jxs"],
|
|
3504
|
+
"image/jxsc": ["jxsc"],
|
|
3505
|
+
"image/jxsi": ["jxsi"],
|
|
3506
|
+
"image/jxss": ["jxss"],
|
|
3507
|
+
"image/ktx": ["ktx"],
|
|
3508
|
+
"image/ktx2": ["ktx2"],
|
|
3509
|
+
"image/pjpeg": ["jfif"],
|
|
3510
|
+
"image/png": ["png"],
|
|
3511
|
+
"image/sgi": ["sgi"],
|
|
3512
|
+
"image/svg+xml": ["svg", "svgz"],
|
|
3513
|
+
"image/t38": ["t38"],
|
|
3514
|
+
"image/tiff": ["tif", "tiff"],
|
|
3515
|
+
"image/tiff-fx": ["tfx"],
|
|
3516
|
+
"image/webp": ["webp"],
|
|
3517
|
+
"image/wmf": ["wmf"],
|
|
3518
|
+
"message/disposition-notification": ["disposition-notification"],
|
|
3519
|
+
"message/global": ["u8msg"],
|
|
3520
|
+
"message/global-delivery-status": ["u8dsn"],
|
|
3521
|
+
"message/global-disposition-notification": ["u8mdn"],
|
|
3522
|
+
"message/global-headers": ["u8hdr"],
|
|
3523
|
+
"message/rfc822": ["eml", "mime", "mht", "mhtml"],
|
|
3524
|
+
"model/3mf": ["3mf"],
|
|
3525
|
+
"model/gltf+json": ["gltf"],
|
|
3526
|
+
"model/gltf-binary": ["glb"],
|
|
3527
|
+
"model/iges": ["igs", "iges"],
|
|
3528
|
+
"model/jt": ["jt"],
|
|
3529
|
+
"model/mesh": ["msh", "mesh", "silo"],
|
|
3530
|
+
"model/mtl": ["mtl"],
|
|
3531
|
+
"model/obj": ["obj"],
|
|
3532
|
+
"model/prc": ["prc"],
|
|
3533
|
+
"model/step": ["step", "stp", "stpnc", "p21", "210"],
|
|
3534
|
+
"model/step+xml": ["stpx"],
|
|
3535
|
+
"model/step+zip": ["stpz"],
|
|
3536
|
+
"model/step-xml+zip": ["stpxz"],
|
|
3537
|
+
"model/stl": ["stl"],
|
|
3538
|
+
"model/u3d": ["u3d"],
|
|
3539
|
+
"model/vrml": ["wrl", "vrml"],
|
|
3540
|
+
"model/x3d+binary": ["*x3db", "x3dbz"],
|
|
3541
|
+
"model/x3d+fastinfoset": ["x3db"],
|
|
3542
|
+
"model/x3d+vrml": ["*x3dv", "x3dvz"],
|
|
3543
|
+
"model/x3d+xml": ["x3d", "x3dz"],
|
|
3544
|
+
"model/x3d-vrml": ["x3dv"],
|
|
3545
|
+
"text/cache-manifest": ["appcache", "manifest"],
|
|
3546
|
+
"text/calendar": ["ics", "ifb"],
|
|
3547
|
+
"text/coffeescript": ["coffee", "litcoffee"],
|
|
3548
|
+
"text/css": ["css"],
|
|
3549
|
+
"text/csv": ["csv"],
|
|
3550
|
+
"text/html": ["html", "htm", "shtml"],
|
|
3551
|
+
"text/jade": ["jade"],
|
|
3552
|
+
"text/javascript": ["js", "mjs"],
|
|
3553
|
+
"text/jsx": ["jsx"],
|
|
3554
|
+
"text/less": ["less"],
|
|
3555
|
+
"text/markdown": ["md", "markdown"],
|
|
3556
|
+
"text/mathml": ["mml"],
|
|
3557
|
+
"text/mdx": ["mdx"],
|
|
3558
|
+
"text/n3": ["n3"],
|
|
3559
|
+
"text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"],
|
|
3560
|
+
"text/richtext": ["rtx"],
|
|
3561
|
+
"text/rtf": ["*rtf"],
|
|
3562
|
+
"text/sgml": ["sgml", "sgm"],
|
|
3563
|
+
"text/shex": ["shex"],
|
|
3564
|
+
"text/slim": ["slim", "slm"],
|
|
3565
|
+
"text/spdx": ["spdx"],
|
|
3566
|
+
"text/stylus": ["stylus", "styl"],
|
|
3567
|
+
"text/tab-separated-values": ["tsv"],
|
|
3568
|
+
"text/troff": ["t", "tr", "roff", "man", "me", "ms"],
|
|
3569
|
+
"text/turtle": ["ttl"],
|
|
3570
|
+
"text/uri-list": ["uri", "uris", "urls"],
|
|
3571
|
+
"text/vcard": ["vcard"],
|
|
3572
|
+
"text/vtt": ["vtt"],
|
|
3573
|
+
"text/wgsl": ["wgsl"],
|
|
3574
|
+
"text/xml": ["*xml"],
|
|
3575
|
+
"text/yaml": ["yaml", "yml"],
|
|
3576
|
+
"video/3gpp": ["3gp", "3gpp"],
|
|
3577
|
+
"video/3gpp2": ["3g2"],
|
|
3578
|
+
"video/h261": ["h261"],
|
|
3579
|
+
"video/h263": ["h263"],
|
|
3580
|
+
"video/h264": ["h264"],
|
|
3581
|
+
"video/iso.segment": ["m4s"],
|
|
3582
|
+
"video/jpeg": ["jpgv"],
|
|
3583
|
+
"video/jpm": ["*jpm", "*jpgm"],
|
|
3584
|
+
"video/mj2": ["mj2", "mjp2"],
|
|
3585
|
+
"video/mp2t": ["ts", "m2t", "m2ts", "mts"],
|
|
3586
|
+
"video/mp4": ["mp4", "mp4v", "mpg4"],
|
|
3587
|
+
"video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"],
|
|
3588
|
+
"video/ogg": ["ogv"],
|
|
3589
|
+
"video/quicktime": ["qt", "mov"],
|
|
3590
|
+
"video/webm": ["webm"]
|
|
3591
|
+
};
|
|
3592
|
+
Object.freeze(types);
|
|
3593
|
+
var standard_default = types;
|
|
3594
|
+
|
|
3595
|
+
// ../node_modules/mime/dist/src/Mime.js
|
|
3596
|
+
var __classPrivateFieldGet = function(receiver2, state2, kind2, f) {
|
|
3597
|
+
if (kind2 === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3598
|
+
if (typeof state2 === "function" ? receiver2 !== state2 || !f : !state2.has(receiver2)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
3599
|
+
return kind2 === "m" ? f : kind2 === "a" ? f.call(receiver2) : f ? f.value : state2.get(receiver2);
|
|
3600
|
+
};
|
|
3601
|
+
var _Mime_extensionToType;
|
|
3602
|
+
var _Mime_typeToExtension;
|
|
3603
|
+
var _Mime_typeToExtensions;
|
|
3604
|
+
var Mime = class {
|
|
3605
|
+
constructor(...args) {
|
|
3606
|
+
_Mime_extensionToType.set(this, /* @__PURE__ */ new Map());
|
|
3607
|
+
_Mime_typeToExtension.set(this, /* @__PURE__ */ new Map());
|
|
3608
|
+
_Mime_typeToExtensions.set(this, /* @__PURE__ */ new Map());
|
|
3609
|
+
for (const arg2 of args) {
|
|
3610
|
+
this.define(arg2);
|
|
3611
|
+
}
|
|
3612
|
+
}
|
|
3613
|
+
define(typeMap, force = false) {
|
|
3614
|
+
for (let [type5, extensions] of Object.entries(typeMap)) {
|
|
3615
|
+
type5 = type5.toLowerCase();
|
|
3616
|
+
extensions = extensions.map((ext) => ext.toLowerCase());
|
|
3617
|
+
if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type5)) {
|
|
3618
|
+
__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type5, /* @__PURE__ */ new Set());
|
|
3619
|
+
}
|
|
3620
|
+
const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type5);
|
|
3621
|
+
let first4 = true;
|
|
3622
|
+
for (let extension3 of extensions) {
|
|
3623
|
+
const starred = extension3.startsWith("*");
|
|
3624
|
+
extension3 = starred ? extension3.slice(1) : extension3;
|
|
3625
|
+
allExtensions?.add(extension3);
|
|
3626
|
+
if (first4) {
|
|
3627
|
+
__classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type5, extension3);
|
|
3628
|
+
}
|
|
3629
|
+
first4 = false;
|
|
3630
|
+
if (starred)
|
|
3631
|
+
continue;
|
|
3632
|
+
const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension3);
|
|
3633
|
+
if (currentType && currentType != type5 && !force) {
|
|
3634
|
+
throw new Error(`"${type5} -> ${extension3}" conflicts with "${currentType} -> ${extension3}". Pass \`force=true\` to override this definition.`);
|
|
3635
|
+
}
|
|
3636
|
+
__classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension3, type5);
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3639
|
+
return this;
|
|
3640
|
+
}
|
|
3641
|
+
getType(path3) {
|
|
3642
|
+
if (typeof path3 !== "string")
|
|
3643
|
+
return null;
|
|
3644
|
+
const last3 = path3.replace(/^.*[/\\]/s, "").toLowerCase();
|
|
3645
|
+
const ext = last3.replace(/^.*\./s, "").toLowerCase();
|
|
3646
|
+
const hasPath = last3.length < path3.length;
|
|
3647
|
+
const hasDot = ext.length < last3.length - 1;
|
|
3648
|
+
if (!hasDot && hasPath)
|
|
3649
|
+
return null;
|
|
3650
|
+
return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
|
|
3651
|
+
}
|
|
3652
|
+
getExtension(type5) {
|
|
3653
|
+
if (typeof type5 !== "string")
|
|
3654
|
+
return null;
|
|
3655
|
+
type5 = type5?.split?.(";")[0];
|
|
3656
|
+
return (type5 && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type5.trim().toLowerCase())) ?? null;
|
|
3657
|
+
}
|
|
3658
|
+
getAllExtensions(type5) {
|
|
3659
|
+
if (typeof type5 !== "string")
|
|
3660
|
+
return null;
|
|
3661
|
+
return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type5.toLowerCase()) ?? null;
|
|
3662
|
+
}
|
|
3663
|
+
_freeze() {
|
|
3664
|
+
this.define = () => {
|
|
3665
|
+
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
3666
|
+
};
|
|
3667
|
+
Object.freeze(this);
|
|
3668
|
+
for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) {
|
|
3669
|
+
Object.freeze(extensions);
|
|
3670
|
+
}
|
|
3671
|
+
return this;
|
|
3672
|
+
}
|
|
3673
|
+
_getTestState() {
|
|
3674
|
+
return {
|
|
3675
|
+
types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
|
|
3676
|
+
extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
|
|
3677
|
+
};
|
|
3678
|
+
}
|
|
3679
|
+
};
|
|
3680
|
+
_Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
|
|
3681
|
+
var Mime_default = Mime;
|
|
3682
|
+
|
|
3683
|
+
// ../node_modules/mime/dist/src/index_lite.js
|
|
3684
|
+
var index_lite_default = new Mime_default(standard_default)._freeze();
|
|
3685
|
+
|
|
3227
3686
|
// src/files/FileFetcher.ts
|
|
3228
3687
|
var FileFetcher = class {
|
|
3229
3688
|
constructor(session4) {
|
|
@@ -3264,12 +3723,12 @@ var FileFetcher = class {
|
|
|
3264
3723
|
createNewFile(container2, name9) {
|
|
3265
3724
|
const encodedName = encodeURIComponent(name9);
|
|
3266
3725
|
const url7 = container2.uri + encodedName;
|
|
3267
|
-
const
|
|
3726
|
+
const contentTypeHeader = index_lite_default.getType(encodedName) ?? "text/turtle";
|
|
3268
3727
|
return ResultAsync.fromPromise(
|
|
3269
3728
|
this.session.authenticatedFetch(url7, {
|
|
3270
3729
|
method: "PUT",
|
|
3271
3730
|
headers: {
|
|
3272
|
-
"Content-Type":
|
|
3731
|
+
"Content-Type": contentTypeHeader,
|
|
3273
3732
|
"If-None-Match": "*"
|
|
3274
3733
|
}
|
|
3275
3734
|
}),
|
|
@@ -3278,7 +3737,7 @@ var FileFetcher = class {
|
|
|
3278
3737
|
(response6) => response6.ok ? ok({
|
|
3279
3738
|
url: url7,
|
|
3280
3739
|
name: name9,
|
|
3281
|
-
contentType:
|
|
3740
|
+
contentType: contentTypeHeader
|
|
3282
3741
|
}) : err(httpProblem("The file could not be created", response6))
|
|
3283
3742
|
);
|
|
3284
3743
|
}
|