diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ee362c2 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - caporal > cli-table2 > lodash: + patched: '2018-09-14T15:57:55.624Z' diff --git a/package.json b/package.json index 2487b53..f6a9a02 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "integration": "nyc --reporter=lcov --reporter=text-lcov -s --all mocha 'test/integration/**/*.js'", "post-integration": "nyc report --reporter=lcov > coverage.lcov && codecov -F integration && rm -rf ~/.autolabjs", "feature": "nyc --reporter=lcov --reporter=text-lcov -s --all cucumber-js 'test/feature/features' -r 'test/feature/steps'", - "post-feature": "nyc report --reporter=lcov > coverage.lcov && codecov -F feature" + "post-feature": "nyc report --reporter=lcov > coverage.lcov && codecov -F feature", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "bin": { "autolabjs": "./index.js" @@ -36,7 +38,8 @@ "request": "^2.83.0", "request-promise": "^4.2.2", "socket.io-client": "^2.1.0", - "validator": "^9.4.1" + "validator": "^9.4.1", + "snyk": "^1.95.3" }, "devDependencies": { "chai": "^4.1.2", @@ -54,5 +57,6 @@ "nyc": "^11.4.1", "sinon": "^4.1.5", "sinon-chai": "^2.14.0" - } + }, + "snyk": true }