diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..9e36df5 --- /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-06T21:02:52.354Z' + - inquirer > lodash: + patched: '2020-05-06T21:02:52.354Z' diff --git a/package.json b/package.json index 5f53e99..eb7d3f1 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,8 @@ "progress": "^1.1.8", "prompt": "^1.0.0", "request": "^2.72.0", - "shelljs": "^0.7.0" + "shelljs": "^0.7.0", + "snyk": "^1.319.1" }, "devDependencies": { "jshint": "^2.5.10", @@ -66,11 +67,14 @@ "scripts": { "test": "node node_modules/.bin/mocha test/**/*.js -R spec", "lint": "jshint .", - "validate": "npm ls" + "validate": "npm ls", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "pre-commit": [ "lint", "validate", "test" - ] + ], + "snyk": true }