From 9e8c30262ffb2c80fa245457e27c2e2c3b787ce4 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Sun, 7 Jul 2019 08:54: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 diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c32f83c --- /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-07T08:54:49.394Z' diff --git a/package.json b/package.json index fe988d4..a2e472a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Use Swagger Doc to create Mongoose Schema", "main": "index.js", "scripts": { - "test": "mocha" + "test": "mocha", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -21,10 +23,12 @@ "license": "MIT", "dependencies": { "change-case": "^2.3.0", - "mongoose": "^4.1.0" + "mongoose": "^4.1.0", + "snyk": "^1.192.3" }, "devDependencies": { "chai": "^3.2.0", "mocha": "^2.2.5" - } + }, + "snyk": true }