chore: bump mime-types with support for TriG

This commit is contained in:
Ruben Taelman
2021-07-30 20:00:51 +02:00
committed by Joachim Van Herwegen
parent fdd1a3732e
commit 3cb200328a
3 changed files with 16 additions and 19 deletions

30
package-lock.json generated
View File

@@ -51,7 +51,7 @@
"jose": "^3.11.6",
"lodash.orderby": "^4.6.0",
"marked": "^2.1.3",
"mime-types": "^2.1.31",
"mime-types": "^2.1.32",
"n3": "^1.10.0",
"nodemailer": "^6.6.2",
"oidc-provider": "^6.31.1",
@@ -13438,19 +13438,19 @@
}
},
"node_modules/mime-db": {
"version": "1.48.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz",
"integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==",
"version": "1.49.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz",
"integrity": "sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mime-types": {
"version": "2.1.31",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz",
"integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==",
"version": "2.1.32",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz",
"integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==",
"dependencies": {
"mime-db": "1.48.0"
"mime-db": "1.49.0"
},
"engines": {
"node": ">= 0.6"
@@ -28356,16 +28356,16 @@
"dev": true
},
"mime-db": {
"version": "1.48.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz",
"integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ=="
"version": "1.49.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz",
"integrity": "sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA=="
},
"mime-types": {
"version": "2.1.31",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz",
"integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==",
"version": "2.1.32",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz",
"integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==",
"requires": {
"mime-db": "1.48.0"
"mime-db": "1.49.0"
}
},
"mimic-fn": {

View File

@@ -117,7 +117,7 @@
"jose": "^3.11.6",
"lodash.orderby": "^4.6.0",
"marked": "^2.1.3",
"mime-types": "^2.1.31",
"mime-types": "^2.1.32",
"n3": "^1.10.0",
"nodemailer": "^6.6.2",
"oidc-provider": "^6.31.1",

View File

@@ -2,7 +2,6 @@
export const APPLICATION_JSON = 'application/json';
export const APPLICATION_OCTET_STREAM = 'application/octet-stream';
export const APPLICATION_SPARQL_UPDATE = 'application/sparql-update';
export const APPLICATION_TRIG = 'application/trig';
export const APPLICATION_X_WWW_FORM_URLENCODED = 'application/x-www-form-urlencoded';
export const TEXT_HTML = 'text/html';
export const TEXT_MARKDOWN = 'text/markdown';
@@ -13,9 +12,7 @@ export const INTERNAL_ALL = 'internal/*';
export const INTERNAL_QUADS = 'internal/quads';
export const INTERNAL_ERROR = 'internal/error';
// Trig can be removed once the mime-types library is updated with the latest mime-db version
export const DEFAULT_CUSTOM_TYPES = {
acl: TEXT_TURTLE,
meta: TEXT_TURTLE,
trig: APPLICATION_TRIG,
};