diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7fd81fc --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - cli-table2 > lodash: + patched: '2022-09-29T20:55:26.027Z' diff --git a/package.json b/package.json index 8fec1f2..7e641d8 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "test:unit": "ava --verbose", "check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100", "report-coverage": "cat ./coverage/lcov.info | node_modules/.bin/codecov", - "semantic-release": "semantic-release pre && npm publish && semantic-release post" + "semantic-release": "semantic-release pre && npm publish && semantic-release post", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "bin": { "wtsc": "app/index.js" @@ -40,9 +42,10 @@ "dependencies": { "cli-table2": "^0.2.0", "colors": "^1.1.2", - "inquirer": "^1.0.3", + "inquirer": "^3.2.0", "inquiry-traverser": "^0.3.0", - "object-assign": "^4.0.1" + "object-assign": "^4.0.1", + "@snyk/protect": "latest" }, "devDependencies": { "ava": "^0.16.0", @@ -72,5 +75,6 @@ "include": [ "app/*" ] - } + }, + "snyk": true }