diff --git a/web/.snyk b/web/.snyk new file mode 100644 index 0000000..ce22397 --- /dev/null +++ b/web/.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: + - lodash: + patched: '2019-07-04T07:48:40.492Z' + - redux > lodash: + patched: '2019-07-04T07:48:40.492Z' diff --git a/web/package.json b/web/package.json index 7f0d312..765c601 100644 --- a/web/package.json +++ b/web/package.json @@ -19,7 +19,8 @@ "react-redux": "^5.0.6", "react-router-dom": "^4.2.2", "redux": "^3.7.2", - "redux-saga": "^0.16.0" + "redux-saga": "^0.16.0", + "snyk": "^1.189.0" }, "scripts": { "build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/", @@ -30,7 +31,9 @@ "start": "npm-run-all -p watch-css start-js", "build": "npm run build-css && react-scripts build", "test": "react-scripts test --env=jsdom", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "lint-staged": { "src/**/*.{js,jsx,json,css}": [ @@ -48,5 +51,6 @@ "/signup": { "target": "http://backend:8080" } - } + }, + "snyk": true }