From 434af3933fcc0b76100a257788b8373f5b66219a Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 22:05:03 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 16 ++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..0d952c60 --- /dev/null +++ b/.snyk @@ -0,0 +1,16 @@ +# 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: + - eslint > lodash: + patched: '2019-07-04T22:04:58.099Z' + - eslint-plugin-import > lodash: + patched: '2019-07-04T22:04:58.099Z' + - eslint > inquirer > lodash: + patched: '2019-07-04T22:04:58.099Z' + - eslint > table > lodash: + patched: '2019-07-04T22:04:58.099Z' + - eslint-plugin-ava > enhance-visitors > lodash: + patched: '2019-07-04T22:04:58.099Z' diff --git a/package.json b/package.json index e1bf27f2..eb50cc6d 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,9 @@ }, "scripts": { "test": "xo && nyc ava", - "coveralls": "nyc report --reporter=text-lcov | coveralls" + "coveralls": "nyc report --reporter=text-lcov | coveralls", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "files": [ "index.js", @@ -89,7 +91,8 @@ "resolve-cwd": "^1.0.0", "resolve-from": "^2.0.0", "update-notifier": "^1.0.0", - "xo-init": "^0.4.0" + "xo-init": "^0.4.0", + "snyk": "^1.192.0" }, "devDependencies": { "ava": "*", @@ -105,5 +108,6 @@ }, "xo": { "esnext": true - } + }, + "snyk": true }