From 2a9e96ae6a20951b22d287a9f565fc1417df7623 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 31 Mar 2021 10:29:27 +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 a853e3c..5b67d76 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1675,7 +1675,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 }