From 883d6207611a2232f2b3af695b3785ff8f73ca31 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 8 Oct 2019 04:11:06 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-HTTPSPROXYAGENT-469131 --- .snyk | 10 ++++++++++ package.json | 12 ++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c6ec2b2 --- /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-HTTPSPROXYAGENT-469131: + - rest-facade > superagent-proxy > proxy-agent > https-proxy-agent: + patched: '2019-10-08T04:11:04.158Z' + - rest-facade > superagent-proxy > proxy-agent > pac-proxy-agent > https-proxy-agent: + patched: '2019-10-08T04:11:04.158Z' diff --git a/package.json b/package.json index e0b85cd..a741392 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "start": "node app.js", - "test": "grunt" + "test": "grunt", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -28,13 +30,15 @@ "lodash": "^4.17.2", "path": "^0.12.7", "rest-facade": "^1.4.1", - "simple-data-vis": "^0.2.0" + "simple-data-vis": "^0.2.0", + "snyk": "^1.232.0" }, - "devDependencies": { + "devDependencies": { "grunt": "0.4.5", "grunt-cli": "0.1.13", "grunt-contrib-jshint": "0.12.0", "jshint": "2.8.0", "grunt-jscs": "2.8.0" - } + }, + "snyk": true }