@grpc/grpc-js
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -77,4 +77,12 @@ "use strict"; | ||
} | ||
const hostname = proxyUrl.hostname; | ||
let port = proxyUrl.port; | ||
/* The proxy URL uses the scheme "http:", which has a default port number of | ||
* 80. We need to set that explicitly here if it is omitted because otherwise | ||
* it will use gRPC's default port 443. */ | ||
if (port === '') { | ||
port = '80'; | ||
} | ||
const result = { | ||
address: proxyUrl.host, | ||
address: `${hostname}:${port}` | ||
}; | ||
@@ -81,0 +89,0 @@ if (userCred) { |
{ | ||
"name": "@grpc/grpc-js", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "gRPC Library for Node - pure JS implementation", | ||
@@ -5,0 +5,0 @@ "homepage": "https://grpc.io/", |
@@ -87,4 +87,12 @@ /* | ||
} | ||
const hostname = proxyUrl.hostname; | ||
let port = proxyUrl.port; | ||
/* The proxy URL uses the scheme "http:", which has a default port number of | ||
* 80. We need to set that explicitly here if it is omitted because otherwise | ||
* it will use gRPC's default port 443. */ | ||
if (port === '') { | ||
port = '80'; | ||
} | ||
const result: ProxyInfo = { | ||
address: proxyUrl.host, | ||
address: `${hostname}:${port}` | ||
}; | ||
@@ -91,0 +99,0 @@ if (userCred) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46099
2112685
434