diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..73cd522 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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-01T04:53:57.387Z' + - restify-errors > lodash: + patched: '2020-05-01T04:53:57.387Z' + - restify-errors > @netflix/nerror > lodash: + patched: '2020-05-01T04:53:57.387Z' diff --git a/package.json b/package.json index 102ade0..5931a5e 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,9 @@ "superagent" ], "scripts": { - "test": "make test" + "test": "make test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "devDependencies": { "chai": "^4.2.0", @@ -74,9 +76,11 @@ "restify-errors": "^8.0.2", "semver": "^5.6.0", "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" + "uuid": "^3.3.2", + "snyk": "^1.316.1" }, "optionalDependencies": { "dtrace-provider": "^0.8.7" - } + }, + "snyk": true }