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 }