From 9598e76e01f87fb725dfcb7fcc1592b4652572da Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 7 Oct 2019 02:23:43 +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 | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0f4d756 --- /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: + - meanio > snyk > proxy-agent > https-proxy-agent: + patched: '2019-10-07T02:23:38.951Z' + - meanio > snyk > proxy-agent > pac-proxy-agent > https-proxy-agent: + patched: '2019-10-07T02:23:38.951Z' diff --git a/package.json b/package.json index 3af39d3..9313365 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "karma": "node node_modules/karma/bin/karma start karma.conf.js", "test": "gulp test", "test-e2e": "gulp e2e.test", - "postinstall": "node tools/scripts/postinstall.js" + "postinstall": "node tools/scripts/postinstall.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "assetmanager": "latest", @@ -53,7 +55,8 @@ "serve-favicon": "latest", "shelljs": "latest", "swig": "latest", - "view-helpers": "latest" + "view-helpers": "latest", + "snyk": "^1.231.0" }, "devDependencies": { "connect-modrewrite": "latest", @@ -94,5 +97,6 @@ "requirejs": "latest", "supertest": "latest", "through": "latest" - } + }, + "snyk": true }