From f5b1bfb8eab2c1e025ef938d975eaebbb6366d62 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Fri, 5 Jul 2019 04:48:54 +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 diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..059ee6d --- /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: + - mongoose > async > lodash: + patched: '2019-07-05T04:48:52.224Z' diff --git a/package.json b/package.json index e13c91f..303c3b4 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,17 @@ "description": "Mean Stack Template", "main": "index.js", "scripts": { - "start": "index.js" + "start": "index.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Daniel K", "license": "ISC", "dependencies": { "body-parser": "^1.18.2", "express": "^4.16.2", - "mongoose": "^4.13.11" - } + "mongoose": "^4.13.11", + "snyk": "^1.192.0" + }, + "snyk": true }