diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..86092c6 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - async > lodash: + patched: '2020-05-01T01:39:18.943Z' diff --git a/package.json b/package.json index eadc607..32d36de 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,9 @@ "node": ">=0.12.0" }, "scripts": { - "test": "NODE_ENV=test mocha -R spec --recursive" + "test": "NODE_ENV=test mocha -R spec --recursive", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "main": "lib", "bitcoreNode": "lib", @@ -71,7 +73,8 @@ "lru-cache": "^4.0.1", "morgan": "^1.7.0", "request": "^2.81.0", - "bignumber.js": "8.1.1" + "bignumber.js": "8.1.1", + "snyk": "^1.316.1" }, "devDependencies": { "chai": "^3.5.0", @@ -79,5 +82,6 @@ "proxyquire": "^1.7.2", "should": "^8.3.1", "sinon": "^1.10.3" - } + }, + "snyk": true }