From 7271bf56ad57ee0a9a83f98b2f2c2697c612aadb Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 03:41:51 +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 | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk mode change 100755 => 100644 package.json diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..23b2adc --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - hbs > handlebars > async > lodash: + patched: '2019-07-04T03:41:49.144Z' diff --git a/package.json b/package.json old mode 100755 new mode 100644 index 2292899..fb99a54 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "0.0.0", "private": true, "scripts": { - "start": "node ./bin/www" + "start": "node ./bin/www", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "body-parser": "~1.17.1", @@ -12,6 +14,8 @@ "express": "~4.15.2", "hbs": "~4.0.1", "morgan": "~1.8.1", - "serve-favicon": "~2.4.2" - } + "serve-favicon": "~2.4.2", + "snyk": "^1.189.0" + }, + "snyk": true }