From aac5caf6a76a01ae896726db22dc0a1ebacbc0fd Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 21 Oct 2017 15:10:38 -0400 Subject: [PATCH] Remove cookie-parser --- package-lock.json | 9 --------- package.json | 1 - server.js | 2 -- 3 files changed, 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0fb8409..8baf871 100644 --- a/package-lock.json +++ b/package-lock.json @@ -942,15 +942,6 @@ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" }, - "cookie-parser": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.3.tgz", - "integrity": "sha1-D+MfoZ0AC5X0qt8fU/3CuKIDuqU=", - "requires": { - "cookie": "0.3.1", - "cookie-signature": "1.0.6" - } - }, "cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", diff --git a/package.json b/package.json index 8f093a0..a66984b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "body-parser": "^1.18.2", "config": "^1.26.2", "connect-mongo": "^2.0.0", - "cookie-parser": "^1.4.3", "event-stream": "^3.3.4", "express": "^4.16.2", "express-sanitizer": "^1.0.2", diff --git a/server.js b/server.js index b195869..dff6036 100644 --- a/server.js +++ b/server.js @@ -4,7 +4,6 @@ var methodOverride = require('method-override'); var mongoose = require('mongoose'); var morgan = require('morgan'); var passport = require('passport'); -var cookieParser = require('cookie-parser'); var session = require('express-session'); var sanitizer = require('express-sanitizer'); var helmet = require('helmet'); @@ -45,7 +44,6 @@ app.use(session({ })); app.use(passport.initialize()); app.use(passport.session()); -app.use(cookieParser()); app.use(bodyParser.json()); app.use(bodyParser.json({ type: 'application/*+json' })) app.use(bodyParser.urlencoded({ extended: true }));