From 709294b9d798b7d768e9aa577af6eaf17fcc06b2 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 22 May 2017 00:11:06 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for sebs/etherscan-api: https://snyk.io/test/github/sebs/etherscan-api --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..46350d1f --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ms:20170412': + - mocha > debug > ms: + patched: '2017-05-22T00:11:05.815Z' diff --git a/package.json b/package.json index 75091f6d..8dbd739d 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,9 @@ "pages": "node ./scripts/publish-gh.js", "postversion": "git push && git push --tags && npm run pages", "changelog": "rm ./docs/CHANGELOG.md && changelog https://github.com/sebs/etherscan-api all > ./docs/CHANGELOG.md && git add . && git commit . -m changelog", - "build": "npm run test && npm run docs" + "build": "npm run test && npm run docs", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "ethereum", @@ -49,6 +51,8 @@ "jsdoc": "^3.4.3", "jshint": "^2.9.4", "mocha": "^3.2.0", - "restify": "^4.3.0" - } + "restify": "^4.3.0", + "snyk": "^1.30.1" + }, + "snyk": true }