From 44a974c9cd55153ac6cf2b624f16a99345627835 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 30 Mar 2021 23:53:10 +0200 Subject: [PATCH] chore(deps): update generated content --- dist/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 45c8d3c8..bd2f975b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1877,7 +1877,9 @@ class HttpClient { maxSockets: maxSockets, keepAlive: this._keepAlive, proxy: { - proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`, + ...((proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + }), host: proxyUrl.hostname, port: proxyUrl.port }