From 3f0431412711613f0ee2f5a336061bbe1ae6bc98 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Fri, 5 Jul 2019 08:56: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 | 10 ++++++++++ package.json | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..588454b --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - lodash: + patched: '2019-07-05T08:56:53.133Z' + - mongoose > async > lodash: + patched: '2019-07-05T08:56:53.133Z' diff --git a/package.json b/package.json index 5291fd2..ec8a0d5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "A Query language for mongoosejs", "main": "index.js", "scripts": { - "test": "node ./test.js" + "test": "node ./test.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "tunght91", "license": "ISC", @@ -12,7 +14,8 @@ "deep-obj": "^1.2.3", "es6-promise": "^4.0.5", "lodash": "^4.17.4", - "mongoose": "^4.8.5" + "mongoose": "^4.8.5", + "snyk": "^1.192.0" }, "bugs": { "url": "https://github.com/tunght91/relax-ql/issues" @@ -33,5 +36,6 @@ "sql", "populate" ], - "homepage": "https://github.com/tunght91/relax-ql#readme" + "homepage": "https://github.com/tunght91/relax-ql#readme", + "snyk": true }