diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a08e1ab --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-AXIOS-174505: + - axios: + patched: '2019-05-07T02:41:36.279Z' diff --git a/package.json b/package.json index a989ce0..6659d68 100644 --- a/package.json +++ b/package.json @@ -44,12 +44,15 @@ "webpack": "3.8.1", "webpack-dev-server": "2.9.4", "webpack-manifest-plugin": "1.3.2", - "whatwg-fetch": "2.0.3" + "whatwg-fetch": "2.0.3", + "snyk": "^1.161.1" }, "scripts": { "start": "node scripts/start.js", "build": "node scripts/build.js", - "test": "node scripts/test.js --env=jsdom --coverage --verbose --forceExit" + "test": "node scripts/test.js --env=jsdom --coverage --verbose --forceExit", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "jest": { "collectCoverageFrom": [ @@ -116,5 +119,6 @@ "bugs": { "url": "https://github.com/Blocktron-Project/blocktron-explorer/issues" }, - "homepage": "https://github.com/Blocktron-Project/blocktron-explorer#readme" + "homepage": "https://github.com/Blocktron-Project/blocktron-explorer#readme", + "snyk": true }