From d9fc439170f2200589a2000e99ec81d14f60b0e8 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 06:46:24 +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 | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..57998ca --- /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: + - lodash: + patched: '2019-07-04T06:46:22.225Z' diff --git a/package.json b/package.json index ec9c031..6968231 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,9 @@ "description": "A fluent SQL query builder for node.js applications", "main": "index.js", "scripts": { - "prepublish": "tsc", - "test": "tsc && mocha" + "prepublish": "npm run snyk-protect; tsc", + "test": "tsc && mocha", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -28,12 +29,14 @@ }, "homepage": "https://github.com/vitaminjs/query-builder#readme", "dependencies": { - "lodash": "^4.16.6" + "lodash": "^4.16.6", + "snyk": "^1.189.0" }, "devDependencies": { "@types/lodash": "^4.14.70", "assert": "*", "mocha": "^3.2.0", "typescript": "^2.4.2" - } + }, + "snyk": true } \ No newline at end of file