From 7a87b463ef3b1ad6ba470ef8b6ea93cc8e3ffacc Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 30 Mar 2021 23:53:10 +0200 Subject: [PATCH] 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 }