From a9bde59e7cdede2e042a8d89d5b673b790509756 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 4 Oct 2019 02:04:05 +0000 Subject: [PATCH] fix: extensions/npm/.snyk & extensions/npm/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-HTTPSPROXYAGENT-469131 --- extensions/npm/.snyk | 8 ++++++++ extensions/npm/package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 extensions/npm/.snyk diff --git a/extensions/npm/.snyk b/extensions/npm/.snyk new file mode 100644 index 0000000000000..4c1600a4be035 --- /dev/null +++ b/extensions/npm/.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-HTTPSPROXYAGENT-469131: + - request-light > https-proxy-agent: + patched: '2019-10-04T02:04:04.206Z' diff --git a/extensions/npm/package.json b/extensions/npm/package.json index 6c8578ad78488..d5d1a6fea354c 100644 --- a/extensions/npm/package.json +++ b/extensions/npm/package.json @@ -14,13 +14,16 @@ ], "scripts": { "compile": "gulp compile-extension:npm", - "watch": "gulp watch-extension:npm" + "watch": "gulp watch-extension:npm", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "jsonc-parser": "^2.0.2", "minimatch": "^3.0.4", "request-light": "^0.2.4", - "vscode-nls": "^4.0.0" + "vscode-nls": "^4.0.0", + "snyk": "^1.230.5" }, "devDependencies": { "@types/minimatch": "^3.0.3", @@ -269,5 +272,6 @@ } } ] - } + }, + "snyk": true }