diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..46131a1 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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-01T08:29:04.263Z' + - '@netflix/nerror > lodash': + patched: '2020-05-01T08:29:04.263Z' diff --git a/package.json b/package.json index a00fbc2..ed1a9db 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.12", @@ -54,6 +56,8 @@ "dependencies": { "@netflix/nerror": "^1.1.3", "assert-plus": "^1.0.0", - "lodash": "^4.17.15" - } + "lodash": "^4.17.15", + "snyk": "^1.316.1" + }, + "snyk": true }