From f11d4ccd458c4619c8ba0bd4e5069ae15fef9549 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 2 Apr 2019 16:45:30 +0100 Subject: [PATCH] Switch media-typer to content-type module Fixes #2122 #2123 --- package.json | 2 +- packages/node_modules/@node-red/nodes/core/io/21-httpin.js | 2 +- packages/node_modules/@node-red/nodes/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7d6775651..6c8b86bca 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "body-parser": "1.18.3", "cheerio": "0.22.0", "clone": "2.1.2", + "content-type": "1.0.4", "cookie": "0.3.1", "cookie-parser": "1.4.4", "cors": "2.8.5", @@ -47,7 +48,6 @@ "js-yaml": "3.13.0", "json-stringify-safe": "5.0.1", "jsonata": "1.6.4", - "media-typer": "1.0.1", "memorystore": "1.6.1", "mime": "2.4.0", "mqtt": "2.18.8", diff --git a/packages/node_modules/@node-red/nodes/core/io/21-httpin.js b/packages/node_modules/@node-red/nodes/core/io/21-httpin.js index 43e25b56f..7e90478f7 100644 --- a/packages/node_modules/@node-red/nodes/core/io/21-httpin.js +++ b/packages/node_modules/@node-red/nodes/core/io/21-httpin.js @@ -22,7 +22,7 @@ module.exports = function(RED) { var getBody = require('raw-body'); var cors = require('cors'); var onHeaders = require('on-headers'); - var typer = require('media-typer'); + var typer = require('content-type'); var isUtf8 = require('is-utf8'); var hashSum = require("hash-sum"); diff --git a/packages/node_modules/@node-red/nodes/package.json b/packages/node_modules/@node-red/nodes/package.json index 47f81d724..7ae62500c 100644 --- a/packages/node_modules/@node-red/nodes/package.json +++ b/packages/node_modules/@node-red/nodes/package.json @@ -18,6 +18,7 @@ "ajv": "6.10.0", "body-parser": "1.18.3", "cheerio": "0.22.0", + "content-type": "1.0.4", "cookie-parser": "1.4.4", "cookie": "0.3.1", "cors": "2.8.5", @@ -29,7 +30,6 @@ "https-proxy-agent": "2.2.1", "is-utf8": "0.2.1", "js-yaml": "3.13.0", - "media-typer": "1.0.1", "mqtt": "2.18.8", "multer": "1.4.1", "mustache": "3.0.1",