diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..fa1fe04 --- /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: + - lodash: + patched: '2020-05-02T04:57:21.896Z' diff --git a/package.json b/package.json index e1f3a13..7caf98a 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,14 @@ }, "scripts": { "lint": "eslint index.js", - "test": "npm run lint && mocha tests" + "test": "npm run lint && mocha tests", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "lodash": "^4.17.4", - "request": "^2.81.0" + "request": "^2.81.0", + "snyk": "^1.316.2" }, "devDependencies": { "chai": "^3.5.0", @@ -27,5 +30,6 @@ "injectr": "^0.5.1", "mocha": "^6.1.4", "sinon": "^1.17.7" - } + }, + "snyk": true }