From 1fb6798f2d9188cd7d5f77c79efe8c813148b8c1 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 02:51:46 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 10 ++++++++++ package.json | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..efff6a6 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - prerender-spa-plugin > lodash: + patched: '2019-07-04T02:51:44.300Z' + - prerender-spa-plugin > phantomjs-prebuilt > request > form-data > async > lodash: + patched: '2019-07-04T02:51:44.300Z' diff --git a/package.json b/package.json index 18cc1d1..0eca892 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run", "e2e": "node test/e2e/runner.js", "test": "npm run unit && npm run e2e", - "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs" + "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "axios": "^0.16.2", @@ -22,7 +24,8 @@ "vue-config": "^1.0.0", "vue-hot-reload-api": "^2.1.0", "vue-html-loader": "^1.2.4", - "vue-router": "^2.7.0" + "vue-router": "^2.7.0", + "snyk": "^1.189.0" }, "devDependencies": { "autoprefixer": "^7.1.2", @@ -97,5 +100,6 @@ "> 1%", "last 2 versions", "not ie <= 8" - ] + ], + "snyk": true }