From 8412a276903c2dfd383b127a4531ad519886ccca Mon Sep 17 00:00:00 2001 From: Taly Date: Tue, 12 Mar 2019 16:34:16 +0300 Subject: [PATCH] Move packages to dev section. Remove unused (#65) --- package.json | 9 ++++----- src/routes/auth.js | 3 +-- yarn.lock | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 206e608..8262041 100644 --- a/package.json +++ b/package.json @@ -16,34 +16,30 @@ "editor-upgrade": "yarn add -D @editorjs/{editorjs,header,code,delimiter,list,image,inline-code,marker}@latest" }, "dependencies": { - "@babel/polyfill": "^7.0.0", "bcrypt": "^3.0.3", - "body-parser": "latest", "commander": "^2.19.0", "cookie-parser": "~1.4.3", "csurf": "^1.9.0", "debug": "~4.1.0", "dotenv": "^6.2.0", - "eslint-plugin-standard": "^4.0.0", "express": "~4.16.0", "file-type": "^10.7.1", "http-errors": "~1.7.1", "jsonwebtoken": "^8.4.0", "mime": "^2.4.0", "mkdirp": "^0.5.1", - "module-dispatcher": "^2.0.0", "morgan": "~1.9.0", "multer": "^1.3.1", "nedb": "^1.8.0", "node-fetch": "^2.3.0", "nodemon": "^1.18.3", - "normalize.css": "^8.0.0", "twig": "~1.12.0", "uuid4": "^1.0.0" }, "devDependencies": { "@babel/core": "^7.0.0", "@babel/plugin-syntax-dynamic-import": "^7.0.0", + "@babel/polyfill": "^7.2.5", "@babel/preset-env": "^7.1.0", "@editorjs/code": "^2.4.0", "@editorjs/delimiter": "^1.1.0", @@ -67,11 +63,14 @@ "eslint-plugin-chai-friendly": "^0.4.1", "eslint-plugin-import": "^2.14.0", "eslint-plugin-node": "^8.0.1", + "eslint-plugin-standard": "^4.0.0", "highlight.js": "^9.13.1", "husky": "^1.1.2", "mini-css-extract-plugin": "^0.4.3", "mocha": "^5.2.0", "mocha-sinon": "^2.1.0", + "module-dispatcher": "^2.0.0", + "normalize.css": "^8.0.1", "nyc": "^13.1.0", "postcss": "^7.0.2", "postcss-apply": "^0.11.0", diff --git a/src/routes/auth.js b/src/routes/auth.js index 795cc8c..c62238f 100644 --- a/src/routes/auth.js +++ b/src/routes/auth.js @@ -1,7 +1,6 @@ require('dotenv').config(); const express = require('express'); -const bodyParser = require('body-parser'); const jwt = require('jsonwebtoken'); const router = express.Router(); const Users = require('../controllers/users'); @@ -9,7 +8,7 @@ const config = require('../../config/index'); const bcrypt = require('bcrypt'); const csrf = require('csurf'); const csrfProtection = csrf({ cookie: true }); -const parseForm = bodyParser.urlencoded({ extended: false }); +const parseForm = express.urlencoded({ extended: false }); /** * Authorization page diff --git a/yarn.lock b/yarn.lock index 3b241de..e7fd2b9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -510,7 +510,7 @@ "@babel/helper-regex" "^7.0.0" regexpu-core "^4.1.3" -"@babel/polyfill@^7.0.0": +"@babel/polyfill@^7.2.5": version "7.2.5" resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.2.5.tgz#6c54b964f71ad27edddc567d065e57e87ed7fa7d" integrity sha512-8Y/t3MWThtMLYr0YNC/Q76tqN1w30+b0uQMeFUYauG2UGTR19zyUtFrAzT23zNtBxPp+LbE5E/nwV/q/r3y6ug== @@ -1210,7 +1210,7 @@ bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== -body-parser@1.18.3, body-parser@latest: +body-parser@1.18.3: version "1.18.3" resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.3.tgz#5b292198ffdd553b3a0f20ded0592b956955c8b4" integrity sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ= @@ -4813,7 +4813,7 @@ normalize-url@^3.0.0: resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559" integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg== -normalize.css@^8.0.0: +normalize.css@^8.0.1: version "8.0.1" resolved "https://registry.yarnpkg.com/normalize.css/-/normalize.css-8.0.1.tgz#9b98a208738b9cc2634caacbc42d131c97487bf3" integrity sha512-qizSNPO93t1YUuUhP22btGOo3chcvDFqFaj2TRybP0DMxkHOCTYwp3n34fel4a31ORXy4m1Xq0Gyqpb5m33qIg==