From d7745aff40104c8b7104f6a56ff8d7a9186dc10d Mon Sep 17 00:00:00 2001 From: Pitu Date: Fri, 15 Mar 2019 07:34:19 +0000 Subject: [PATCH] Turns out we were using the wrong cookieparser --- package.json | 2 +- src/site/store/index.js | 2 +- yarn.lock | 13 +++++-------- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index c70d5e5..fb1ad6a 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "busboy": "^0.2.14", "chalk": "^2.4.1", "compression": "^1.7.2", - "cookie-parser": "^1.4.4", + "cookieparser": "^0.1.0", "cors": "^2.8.5", "dotenv": "^6.2.0", "dumper.js": "^1.3.1", diff --git a/src/site/store/index.js b/src/site/store/index.js index 19ab0ae..6a05622 100644 --- a/src/site/store/index.js +++ b/src/site/store/index.js @@ -1,7 +1,7 @@ import Vue from 'vue'; import axios from 'axios'; -const cookieparser = process.server ? require('cookie-parser') : null; +const cookieparser = process.server ? require('cookieparser') : null; export const state = () => ({ loggedIn: false, diff --git a/yarn.lock b/yarn.lock index dfdbdd9..52068eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2247,14 +2247,6 @@ convert-source-map@^1.1.0: dependencies: safe-buffer "~5.1.1" -cookie-parser@^1.4.4: - version "1.4.4" - resolved "https://registry.yarnpkg.com/cookie-parser/-/cookie-parser-1.4.4.tgz#e6363de4ea98c3def9697b93421c09f30cf5d188" - integrity sha512-lo13tqF3JEtFO7FyA49CqbhaFkskRJ0u/UAiINgrIXeRCY41c88/zxtrECl8AKH3B0hj9q10+h3Kt8I7KlW4tw== - dependencies: - cookie "0.3.1" - cookie-signature "1.0.6" - cookie-signature@1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" @@ -2265,6 +2257,11 @@ cookie@0.3.1, cookie@^0.3.1: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb" integrity sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s= +cookieparser@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/cookieparser/-/cookieparser-0.1.0.tgz#ea12cb1085c174f3167faeaf7985f79abe671d0e" + integrity sha1-6hLLEIXBdPMWf66veYX3mr5nHQ4= + copy-concurrently@^1.0.0: version "1.0.5" resolved "https://registry.yarnpkg.com/copy-concurrently/-/copy-concurrently-1.0.5.tgz#92297398cae34937fcafd6ec8139c18051f0b5e0"