diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..6c3f696 --- /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-04T08:30:38.057Z' + - '@netflix/nerror > lodash': + patched: '2019-07-04T08:30:38.057Z' diff --git a/package.json b/package.json index 3b7c0c3..d772c0f 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,9 @@ "rest errors" ], "scripts": { - "test": "make test" + "test": "make test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "devDependencies": { "bunyan": "^1.8.10", @@ -51,6 +53,8 @@ "dependencies": { "@netflix/nerror": "^1.0.0", "assert-plus": "^1.0.0", - "lodash": "^4.17.11" - } + "lodash": "^4.17.11", + "snyk": "^1.190.0" + }, + "snyk": true }