From e903bfe964ae3aa45436013c44e5f302ffa14f83 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Tue, 9 Jul 2019 06:35:20 +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..e2c0937 --- /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-09T06:35:17.939Z' + - elasticsearch > lodash: + patched: '2019-07-09T06:35:17.939Z' diff --git a/package.json b/package.json index 477d642..62017c6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "Like Mongoose but for Elasticsearch. Define models, preform CRUD operations, and build advanced search queries.", "main": "index.js", "scripts": { - "test": "./node_modules/.bin/mocha --check-leaks ./tests/**.js" + "test": "./node_modules/.bin/mocha --check-leaks ./tests/**.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -42,12 +44,14 @@ "kareem": "^1.0.1", "lodash": "^4.13.1", "pluralize": "^3.0.0", - "winston": "^2.2.0" + "winston": "^2.2.0", + "snyk": "^1.192.4" }, "devDependencies": { "benchmark": "^2.1.0", "mocha": "^2.3.0", "require-new": "^1.1.0", "should": "^9.0.2" - } + }, + "snyk": true }