diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..de839a4 --- /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: + - inquirer > lodash: + patched: '2019-07-04T05:57:27.615Z' diff --git a/package.json b/package.json index 8aa2c7d..13b4d87 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "start": "cross-env NODE_ENV=production node lib/index.js", "dev": "cross-env NODE_ENV=development node lib/index.js", "build": "rimraf lib && ./node_modules/.bin/babel src --out-dir lib", - "test": "jest" + "test": "jest", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@babel/polyfill": "7.0.0", @@ -26,7 +28,8 @@ "inquirer": "6.2.0", "ora": "3.0.0", "rimraf": "2.6.2", - "update-notifier": "2.5.0" + "update-notifier": "2.5.0", + "snyk": "^1.189.0" }, "devDependencies": { "@babel/cli": "7.2.0", @@ -74,5 +77,6 @@ "transform": { "^.+\\.jsx?$": "babel-jest" } - } + }, + "snyk": true }