diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a5aa7a7 --- /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: + - async > lodash: + patched: '2020-05-04T02:40:53.734Z' + - ip-address > lodash: + patched: '2020-05-04T02:40:53.734Z' diff --git a/package.json b/package.json index 94a74b5..9981875 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,9 @@ }, "scripts": { "start": "node index.js", - "test": "./node_modules/.bin/mocha -R spec" + "test": "./node_modules/.bin/mocha -R spec", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "async": "^2.6.3", @@ -40,11 +42,13 @@ "ip-address": "^5.9.4", "netmask": "^1.0.6", "stack-trace": "0.0.10", - "xml2js": "^0.4.22" + "xml2js": "^0.4.22", + "snyk": "^1.317.0" }, "devDependencies": { "mocha": "latest", "chai": "latest" }, - "license": "MIT" + "license": "MIT", + "snyk": true }