From 00ec560ddc130755f1d81f7c89bba2979680d3f8 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 4 Jul 2018 02:36:50 +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..95199a2 --- /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': + - browser-sync > easy-extender > lodash: + patched: '2018-07-04T02:36:48.205Z' diff --git a/package.json b/package.json index 0fe407a..f6bdb8b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ }, "scripts": { "lint": "gulp eslint stylelint", - "prepush-msg": "echo 'Running lint task...' && exit 0" + "prepush-msg": "echo 'Running lint task...' && exit 0", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "pre-push": [ "prepush-msg", @@ -90,6 +92,8 @@ "vinyl-buffer": "^1.0.0", "vinyl-source-stream": "^1.1.0", "watchify": "^3.9.0", - "yargs": "^8.0.2" - } + "yargs": "^8.0.2", + "snyk": "^1.88.1" + }, + "snyk": true }