From ecdd70189829879ab5a636705834394d32c1abb7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:17:35 -0400 Subject: [PATCH] Bump https-proxy-agent from 5.0.1 to 7.0.2 (#241) * Bump https-proxy-agent from 5.0.1 to 7.0.2 Bumps [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) from 5.0.1 to 7.0.2. - [Release notes](https://github.com/TooTallNate/proxy-agents/releases) - [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md) - [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@7.0.2/packages/https-proxy-agent) --- updated-dependencies: - dependency-name: https-proxy-agent dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Fix for breaking changes in https-proxy-agent major version update. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Filip Maj --- package-lock.json | 38 +++++++++++++++++++------------------- package.json | 2 +- src/slack-send.js | 4 ++-- src/web-client.js | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8348410..a30aab1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@slack/web-api": "^6.8.1", "axios": "^1.5.1", "flat": "^5.0.2", - "https-proxy-agent": "^5.0.1", + "https-proxy-agent": "^7.0.2", "markup-js": "^1.5.21", "whatwg-url": "^13.0.0" }, @@ -1054,14 +1054,14 @@ } }, "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "dependencies": { - "debug": "4" + "debug": "^4.3.4" }, "engines": { - "node": ">= 6.0.0" + "node": ">= 14" } }, "node_modules/aggregate-error": { @@ -3314,15 +3314,15 @@ "dev": true }, "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", + "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", "dependencies": { - "agent-base": "6", + "agent-base": "^7.0.2", "debug": "4" }, "engines": { - "node": ">= 6" + "node": ">= 14" } }, "node_modules/ieee754": { @@ -7118,11 +7118,11 @@ "requires": {} }, "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", "requires": { - "debug": "4" + "debug": "^4.3.4" } }, "aggregate-error": { @@ -8855,11 +8855,11 @@ "dev": true }, "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", + "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", "requires": { - "agent-base": "6", + "agent-base": "^7.0.2", "debug": "4" } }, diff --git a/package.json b/package.json index ddfe6cd..53a53bc 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@slack/web-api": "^6.8.1", "axios": "^1.5.1", "flat": "^5.0.2", - "https-proxy-agent": "^5.0.1", + "https-proxy-agent": "^7.0.2", "markup-js": "^1.5.21", "whatwg-url": "^13.0.0" }, diff --git a/src/slack-send.js b/src/slack-send.js index d74f4a1..759bd9d 100644 --- a/src/slack-send.js +++ b/src/slack-send.js @@ -4,7 +4,7 @@ const github = require('@actions/github'); const flatten = require('flat'); const axios = require('axios'); const markup = require('markup-js'); -const HttpsProxyAgent = require('https-proxy-agent'); +const { HttpsProxyAgent } = require('https-proxy-agent'); const { parseURL } = require('whatwg-url'); const { createWebClient } = require('./web-client'); @@ -123,7 +123,7 @@ module.exports = async function slackSend(core) { } } } catch (err) { - console.log('failed to configure https proxy agent for http proxy. Using default axios configuration'); + console.log('failed to configure https proxy agent for http proxy. Using default axios configuration', err); } try { diff --git a/src/web-client.js b/src/web-client.js index 6945e6a..7e34589 100644 --- a/src/web-client.js +++ b/src/web-client.js @@ -1,5 +1,5 @@ const { WebClient } = require('@slack/web-api'); -const HttpsProxyAgent = require('https-proxy-agent'); +const { HttpsProxyAgent } = require('https-proxy-agent'); /** *