From 5483e5bac1b2e6d9dd1d18267eeeebad923b8266 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 3 Jul 2018 23:07:06 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e9ac7d9 --- /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-07-03T23:07:04.593Z' diff --git a/package.json b/package.json index e1a5fc2..8b68368 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.88.1" }, "devDependencies": { "chai": "^4.1.2", @@ -54,5 +57,6 @@ "nyc": "^11.4.1", "sinon": "^4.1.5", "sinon-chai": "^2.14.0" - } + }, + "snyk": true }