Skip to content

Commit

Permalink
Fix for breaking changes in https-proxy-agent major version update.
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj committed Oct 3, 2023
1 parent d1b7ecd commit 7cc31da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/slack-send.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/web-client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { WebClient } = require('@slack/web-api');
const HttpsProxyAgent = require('https-proxy-agent');
const { HttpsProxyAgent } = require('https-proxy-agent');

/**
*
Expand Down

0 comments on commit 7cc31da

Please sign in to comment.