From 42d5155b2a43264a7ea3fc3d660f2088ddc9a3de Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 04:07:54 +0000 Subject: [PATCH] fix: backend/.snyk & backend/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- backend/.snyk | 8 ++++++++ backend/package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 backend/.snyk diff --git a/backend/.snyk b/backend/.snyk new file mode 100644 index 0000000..107a023 --- /dev/null +++ b/backend/.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-04T04:07:52.291Z' diff --git a/backend/package.json b/backend/package.json index 1d4219d..69bdcc4 100644 --- a/backend/package.json +++ b/backend/package.json @@ -4,7 +4,9 @@ "description": "Zule - ZeroNet full-text search engine", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "zule", @@ -20,6 +22,8 @@ "python-shell": "^0.4.0", "request": "^2.81.0", "utf-8-validate": "^3.0.1", - "ws": "^2.2.3" - } + "ws": "^2.2.3", + "snyk": "^1.189.0" + }, + "snyk": true }