From e34c53468653ac2f84556fe38bbb5cbe08a6e1d5 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 21:41:56 +0000 Subject: [PATCH] fix: api/.snyk & api/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- api/.snyk | 8 ++++++++ api/package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 api/.snyk diff --git a/api/.snyk b/api/.snyk new file mode 100644 index 0000000..a99154e --- /dev/null +++ b/api/.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: + - async > lodash: + patched: '2019-07-03T21:41:54.843Z' diff --git a/api/package.json b/api/package.json index 8631663..1be6742 100644 --- a/api/package.json +++ b/api/package.json @@ -5,7 +5,9 @@ "main": "server.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "nodemon server.js" + "start": "nodemon server.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "nicole becher", "license": "ISC", @@ -36,6 +38,8 @@ "request-json": "^0.6.2", "sentencer": "^0.1.5", "serve-static": "^1.11.1", - "swagger-jsdoc": "^1.3.0" - } + "swagger-jsdoc": "^1.3.0", + "snyk": "^1.189.0" + }, + "snyk": true }