diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..f756fec0 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - node-sass > sass-graph > lodash: + patched: '2020-05-04T22:09:25.508Z' + - sass-loader > async > lodash: + patched: '2020-05-04T22:09:25.508Z' + - node-sass > gaze > globule > lodash: + patched: '2020-05-04T22:09:25.508Z' diff --git a/package.json b/package.json index f018d523..7bba75dd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "build": "webpack --config webpack.production.config.js --progress --profile --colors", "start": "webpack-dev-server --progress --profile --colors", - "lint": "eslint --ext js --ext jsx src || exit 0" + "lint": "eslint --ext js --ext jsx src || exit 0", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -20,7 +22,8 @@ "node-sass": "^3.9.2", "react": "15.3.0", "react-dom": "15.3.0", - "sass-loader": "^4.0.1" + "sass-loader": "^4.0.1", + "snyk": "^1.317.0" }, "devDependencies": { "babel-core": "6.14.0", @@ -41,5 +44,6 @@ "webpack": "1.13.2", "webpack-cleanup-plugin": "^0.3.0", "webpack-dev-server": "1.15.1" - } + }, + "snyk": true }