From 35fdcacae37338d5e8afa0a62c381fcaa53eef32 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 26 Feb 2019 01:38:21 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hawk:20160119 - https://snyk.io/vuln/npm:http-signature:20150122 - https://snyk.io/vuln/npm:mime:20170907 - https://snyk.io/vuln/npm:minimatch:20160620 - https://snyk.io/vuln/npm:request:20160119 - https://snyk.io/vuln/npm:tunnel-agent:20170305 - https://snyk.io/vuln/npm:uglify-js:20151024 --- .snyk | 42 ++++++++++++++++++++++++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..b6c42adcc2 --- /dev/null +++ b/.snyk @@ -0,0 +1,42 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hawk:20160119': + - highlight.js > gear-lib > less > request > hawk: + patched: '2019-02-26T01:38:19.049Z' + 'npm:http-signature:20150122': + - highlight.js > gear-lib > less > request > http-signature: + patched: '2019-02-26T01:38:19.049Z' + 'npm:mime:20170907': + - highlight.js > gear-lib > mime: + patched: '2019-02-26T01:38:19.049Z' + - highlight.js > gear-lib > less > mime: + patched: '2019-02-26T01:38:19.049Z' + - highlight.js > gear-lib > less > request > form-data > mime: + patched: '2019-02-26T01:38:19.049Z' + 'npm:minimatch:20160620': + - highlight.js > gear > liftoff > findup-sync > glob > minimatch: + patched: '2019-02-26T01:38:19.049Z' + - highlight.js > gear-lib > gear > liftoff > findup-sync > glob > minimatch: + patched: '2019-02-26T01:38:19.049Z' + - highlight.js > gear-lib > glob > minimatch: + patched: '2019-02-26T01:38:19.049Z' + - highlight.js > gear-lib > jslint > glob > minimatch: + patched: '2019-02-26T01:38:19.049Z' + - highlight.js > gear-lib > jshint > cli > glob > minimatch: + patched: '2019-02-26T01:38:19.049Z' + - highlight.js > gear-lib > jshint > minimatch: + patched: '2019-02-26T01:38:19.049Z' + 'npm:request:20160119': + - highlight.js > gear-lib > less > request: + patched: '2019-02-26T01:38:19.049Z' + 'npm:tunnel-agent:20170305': + - highlight.js > gear-lib > less > request > tunnel-agent: + patched: '2019-02-26T01:38:19.049Z' + 'npm:uglify-js:20151024': + - highlight.js > gear-lib > handlebars > uglify-js: + patched: '2019-02-26T01:38:19.049Z' + - highlight.js > gear-lib > uglify-js: + patched: '2019-02-26T01:38:19.049Z' diff --git a/package.json b/package.json index 46fe91e275..e6dabaa78c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "test": "echo \"Error: no test specified\" && exit 1", "startWeb": "node webServer.js", "startAPI": "node apiServer.js", - "reindex": "node reindex.js" + "reindex": "node reindex.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -40,6 +42,8 @@ "mustache": "^2.2.1", "newline-remove": "^1.0.2", "newrelic": "^1.30.1", - "throng": "^1.0.1" - } + "throng": "^1.0.1", + "snyk": "^1.134.2" + }, + "snyk": true }