diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..95c65f3 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - lodash: + patched: '2019-07-07T02:05:37.664Z' + - setlist > lodash: + patched: '2019-07-07T02:05:37.664Z' diff --git a/package.json b/package.json index 72441d9..8fac522 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "The ultimate promise based general-purpose Read-Eval-Wait-Print Loop (REPL) console for Node.js", "main": "index.js", "scripts": { - "test": "istanbul cover _mocha -- -u exports -R spec" + "test": "istanbul cover _mocha -- -u exports -R spec", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -27,7 +29,8 @@ "dependencies": { "esprima": "^3.1.1", "lodash": "^4.17.2", - "setlist": "^0.2.0" + "setlist": "^0.2.0", + "snyk": "^1.192.3" }, "devDependencies": { "@types/esprima": "^2.1.33", @@ -40,5 +43,6 @@ "mocha-lcov-reporter": "^1.2.0", "should": "^11.1.1", "stream-buffers": "^3.0.1" - } + }, + "snyk": true }