From 5a47bbc1937ba34be5e5fd23cf23115ba71ba629 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 04:10:30 +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..f919cca --- /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: + - asyncawait > lodash: + patched: '2019-07-04T04:10:29.369Z' + - grunt > grunt-legacy-log > lodash: + patched: '2019-07-04T04:10:29.369Z' + - grunt > grunt-legacy-util > lodash: + patched: '2019-07-04T04:10:29.369Z' + - grunt > grunt-legacy-log > grunt-legacy-log-utils > lodash: + patched: '2019-07-04T04:10:29.369Z' diff --git a/package.json b/package.json index d6a719c..1b41d3a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "main": "index.js", "scripts": { "start": "node index.js", - "test": "make test-coveralls" + "test": "make test-coveralls", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -36,7 +38,8 @@ "passport-google-oauth2": "^0.1.6", "passport-openidconnect": "git+https://github.com/fiddur/passport-openidconnect.git", "q": "^1.4.1", - "request-promise": "^0.4.3" + "request-promise": "^0.4.3", + "snyk": "^1.189.0" }, "optionalDependencies": { "sqlite3": "3" @@ -50,5 +53,6 @@ "supertest": "^0.15.0" }, "author": "Fredrik Liljegren", - "license": "AGPL-3.0" + "license": "AGPL-3.0", + "snyk": true }