1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-10 01:16:39 +02:00

refactor: use body-parser bundled with express (#304)

This commit is contained in:
Simen Bekkhus 2018-02-14 15:46:42 +01:00 committed by Ivar Conradi Østhus
parent c4bddf49ca
commit 027e2814a8
3 changed files with 2 additions and 4 deletions

View File

@ -2,7 +2,6 @@
const express = require('express');
const favicon = require('serve-favicon');
const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
const routes = require('./routes');
const path = require('path');
@ -28,7 +27,7 @@ module.exports = function(config) {
}
app.use(cookieParser());
app.use(bodyParser.json({ strict: false }));
app.use(express.json({ strict: false }));
app.use(unleashSession(config));
app.use(responseTime(config));
app.use(requestLogger(config));

View File

@ -58,7 +58,6 @@
},
"dependencies": {
"async": "^2.1.5",
"body-parser": "^1.18.2",
"commander": "^2.9.0",
"cookie-parser": "^1.4.3",
"cookie-session": "^2.0.0-beta.3",

View File

@ -767,7 +767,7 @@ blueimp-md5@^2.3.0:
version "2.10.0"
resolved "https://registry.yarnpkg.com/blueimp-md5/-/blueimp-md5-2.10.0.tgz#02f0843921f90dca14f5b8920a38593201d6964d"
body-parser@1.18.2, body-parser@^1.18.2:
body-parser@1.18.2:
version "1.18.2"
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454"
dependencies: