Switch media-typer to content-type module

Fixes #2122 #2123
This commit is contained in:
Nick O'Leary 2019-04-02 16:45:30 +01:00
parent fbec803129
commit f11d4ccd45
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
3 changed files with 3 additions and 3 deletions

View File

@ -30,6 +30,7 @@
"body-parser": "1.18.3", "body-parser": "1.18.3",
"cheerio": "0.22.0", "cheerio": "0.22.0",
"clone": "2.1.2", "clone": "2.1.2",
"content-type": "1.0.4",
"cookie": "0.3.1", "cookie": "0.3.1",
"cookie-parser": "1.4.4", "cookie-parser": "1.4.4",
"cors": "2.8.5", "cors": "2.8.5",
@ -47,7 +48,6 @@
"js-yaml": "3.13.0", "js-yaml": "3.13.0",
"json-stringify-safe": "5.0.1", "json-stringify-safe": "5.0.1",
"jsonata": "1.6.4", "jsonata": "1.6.4",
"media-typer": "1.0.1",
"memorystore": "1.6.1", "memorystore": "1.6.1",
"mime": "2.4.0", "mime": "2.4.0",
"mqtt": "2.18.8", "mqtt": "2.18.8",

View File

@ -22,7 +22,7 @@ module.exports = function(RED) {
var getBody = require('raw-body'); var getBody = require('raw-body');
var cors = require('cors'); var cors = require('cors');
var onHeaders = require('on-headers'); var onHeaders = require('on-headers');
var typer = require('media-typer'); var typer = require('content-type');
var isUtf8 = require('is-utf8'); var isUtf8 = require('is-utf8');
var hashSum = require("hash-sum"); var hashSum = require("hash-sum");

View File

@ -18,6 +18,7 @@
"ajv": "6.10.0", "ajv": "6.10.0",
"body-parser": "1.18.3", "body-parser": "1.18.3",
"cheerio": "0.22.0", "cheerio": "0.22.0",
"content-type": "1.0.4",
"cookie-parser": "1.4.4", "cookie-parser": "1.4.4",
"cookie": "0.3.1", "cookie": "0.3.1",
"cors": "2.8.5", "cors": "2.8.5",
@ -29,7 +30,6 @@
"https-proxy-agent": "2.2.1", "https-proxy-agent": "2.2.1",
"is-utf8": "0.2.1", "is-utf8": "0.2.1",
"js-yaml": "3.13.0", "js-yaml": "3.13.0",
"media-typer": "1.0.1",
"mqtt": "2.18.8", "mqtt": "2.18.8",
"multer": "1.4.1", "multer": "1.4.1",
"mustache": "3.0.1", "mustache": "3.0.1",