From f4d5466bd6ac61b604326e2abd394cdef556f3a4 Mon Sep 17 00:00:00 2001 From: Snyk bot Date: Sat, 6 Jul 2019 00:54:42 +0300 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities (#180) The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 12 ++++++++++++ package.json | 10 +++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..5c89b3d5 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - webpack-external-import > babel-traverse > lodash: + patched: '2019-07-04T06:20:01.150Z' + - webpack-external-import > @babel/helper-module-imports > @babel/types > lodash: + patched: '2019-07-04T06:20:01.150Z' + - webpack-external-import > babel-traverse > babel-types > lodash: + patched: '2019-07-04T06:20:01.150Z' diff --git a/package.json b/package.json index 9c358979..e6c8bb3a 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,9 @@ "ci:coverage": "npm run test:coverage -- --runInBand", "defaults": "webpack-defaults", "semantic-release": "npx semantic-release", - "travis": "npm run ci:coverage" + "travis": "npm run ci:coverage", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "files": [ "dist" @@ -70,7 +72,8 @@ "normalize-url": "1.9.1", "schema-utils": "^1.0.0", "webpack-external-import": "^0.0.1-beta.16", - "webpack-sources": "^1.1.0" + "webpack-sources": "^1.1.0", + "snyk": "^1.189.0" }, "devDependencies": { "@babel/cli": "^7.4.4", @@ -110,5 +113,6 @@ "eslint --fix", "git add" ] - } + }, + "snyk": true }