diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..b20d025 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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-04T01:15:48.676Z' diff --git a/package.json b/package.json index b39f94c..d9fd642 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "test": "./node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --recursive --reporter mochawesome ./tests/*-test.js && istanbul check-coverage --lines 95" + "test": "./node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --recursive --reporter mochawesome ./tests/*-test.js && istanbul check-coverage --lines 95", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -33,6 +35,8 @@ }, "dependencies": { "http-shutdown": "^1.2.0", - "lodash": "^4.17.4" - } + "lodash": "^4.17.4", + "snyk": "^1.189.0" + }, + "snyk": true }