diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7e97e28 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.10.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:debug:20170905': + - pouchdb > debug: + patched: '2018-01-08T14:59:23.603Z' diff --git a/package.json b/package.json index 6cabedf..065f276 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "test": "jest", "test:watch": "jest --watch", "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", - "analyze": "webpack --json | webpack-bundle-size-analyzer" + "analyze": "webpack --json | webpack-bundle-size-analyzer", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "jest": { "coverageDirectory": "./coverage/", @@ -40,7 +42,8 @@ "reselect": "^3.0.1", "reselect-map": "^1.0.3", "util": "^0.10.3", - "uuid": "^3.0.0" + "uuid": "^3.0.0", + "snyk": "^1.65.3" }, "peerDependencies": { "react": ">=16.0.0" @@ -60,5 +63,6 @@ "react": "^16.2.0", "redux-testkit": "^1.0.6", "webpack": "^3.6.0" - } + }, + "snyk": true }