diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..aa369b5 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - react-redux > lodash: + patched: '2020-05-01T21:07:21.196Z' + - redux > lodash: + patched: '2020-05-01T21:07:21.196Z' diff --git a/package.json b/package.json index 0d277a7..c3b3938 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "analyze": "webpack --json | webpack-bundle-size-analyzer", "prettier": "prettier --write \"src/**/*.js\"", - "precommit": "lint-staged" + "precommit": "lint-staged", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "lint-staged": { "src/**/*.js": [ @@ -48,7 +50,8 @@ "reselect": "^3.0.1", "reselect-map": "^1.0.3", "util": "^0.10.3", - "uuid": "^3.0.0" + "uuid": "^3.0.0", + "snyk": "^1.316.2" }, "peerDependencies": { "react": ">=16.0.0" @@ -68,5 +71,6 @@ "redux-testkit": "^1.0.6", "webpack": "^4.17.1", "webpack-cli": "^3.1.0" - } + }, + "snyk": true }