From ef8a5d2a65c9ebff642779ec02887b8d291824c8 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 4 Oct 2019 05:37:59 +0000 Subject: [PATCH] fix: packages/gatsby-plugin-guess-js/package.json & packages/gatsby-plugin-guess-js/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-HTTPSPROXYAGENT-469131 --- packages/gatsby-plugin-guess-js/.snyk | 10 ++++++++++ packages/gatsby-plugin-guess-js/package.json | 9 ++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 packages/gatsby-plugin-guess-js/.snyk diff --git a/packages/gatsby-plugin-guess-js/.snyk b/packages/gatsby-plugin-guess-js/.snyk new file mode 100644 index 0000000000000..4ab606f9dd86f --- /dev/null +++ b/packages/gatsby-plugin-guess-js/.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: + - guess-webpack > googleapis > google-auth-library > gtoken > gaxios > https-proxy-agent: + patched: '2019-10-04T05:37:57.052Z' + - guess-webpack > guess-ga > googleapis > google-auth-library > gtoken > gaxios > https-proxy-agent: + patched: '2019-10-04T05:37:57.052Z' diff --git a/packages/gatsby-plugin-guess-js/package.json b/packages/gatsby-plugin-guess-js/package.json index 4ef2241bd73a3..0b5c05c8ce3a0 100644 --- a/packages/gatsby-plugin-guess-js/package.json +++ b/packages/gatsby-plugin-guess-js/package.json @@ -6,7 +6,8 @@ "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", "watch": "babel -w src --out-dir . --ignore **/__tests__", - "prepare": "cross-env NODE_ENV=production npm run build" + "prepare": "npm run snyk-protect && cross-env NODE_ENV=production npm run build", + "snyk-protect": "snyk protect" }, "keywords": [ "gatsby", @@ -28,7 +29,8 @@ "license": "MIT", "dependencies": { "@babel/runtime": "^7.0.0", - "guess-webpack": "~0.1.3" + "guess-webpack": "~0.1.3", + "snyk": "^1.230.5" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -37,5 +39,6 @@ }, "peerDependencies": { "gatsby": ">2.0.0-alpha" - } + }, + "snyk": true }