From f8b84be2adb8c19dc734ad399d881011954acfe4 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 03:27:06 +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 | 14 ++++++++++++++ package.json | 10 +++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a6f17b9 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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: + - json-server > lodash: + patched: '2019-07-04T03:27:04.056Z' + - json-server > lowdb > lodash: + patched: '2019-07-04T03:27:04.056Z' + - json-server-extension > json-server > lodash: + patched: '2019-07-04T03:27:04.056Z' + - json-server-extension > json-server > lowdb > lodash: + patched: '2019-07-04T03:27:04.056Z' diff --git a/package.json b/package.json index e9fd736..b5a0ccf 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "json-server is great for stub server usage\r but in my opinion there where some caveat that i tried to solve in this package", "main": "jsonExtender.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": [], "author": "maty zisserman", @@ -16,7 +18,8 @@ "json-concat": "0.0.1", "json-server": "^0.9.0", "json-server-extension": "^1.0.0", - "require-dir": "^0.3.1" + "require-dir": "^0.3.1", + "snyk": "^1.189.0" }, "devDependencies": {}, "repository": { @@ -26,5 +29,6 @@ "bugs": { "url": "https://github.com/maty21/json-server-extension-example/issues" }, - "homepage": "https://github.com/maty21/json-server-extension-example#readme" + "homepage": "https://github.com/maty21/json-server-extension-example#readme", + "snyk": true }