From 6199c68a0f6d4390243e0cb4883a225c9d3c2e34 Mon Sep 17 00:00:00 2001 From: Yahav Itzhak Date: Thu, 5 Oct 2023 11:03:21 +0300 Subject: [PATCH] Fix npm installer with proxy (#2243) --- build/npm/v2-jf/init.js | 4 ++-- build/npm/v2/init.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/npm/v2-jf/init.js b/build/npm/v2-jf/init.js index 36b3239ef..fcfa5405f 100644 --- a/build/npm/v2-jf/init.js +++ b/build/npm/v2-jf/init.js @@ -25,8 +25,8 @@ function downloadWithProxy(myUrl) { const myUrlParts = new URL(myUrl); request({ - host: proxyparts.hostname, - port: proxyparts.port, + host: proxyParts.hostname, + port: proxyParts.port, method: "CONNECT", path: myUrlParts.hostname + ":443", }) diff --git a/build/npm/v2/init.js b/build/npm/v2/init.js index d67da8a2c..cf676168a 100644 --- a/build/npm/v2/init.js +++ b/build/npm/v2/init.js @@ -25,8 +25,8 @@ function downloadWithProxy(myUrl) { const myUrlParts = new URL(myUrl); request({ - host: proxyparts.hostname, - port: proxyparts.port, + host: proxyParts.hostname, + port: proxyParts.port, method: "CONNECT", path: myUrlParts.hostname + ":443", })