@oada/client
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -27,3 +27,3 @@ "use strict"; | ||
function tryDomain(domain) { | ||
const { port, host, hostname, protocol } = new URL(domain); | ||
const { port, hostname, protocol } = new URL(domain); | ||
switch (protocol) { | ||
@@ -33,3 +33,2 @@ case 'http2:': | ||
port: Number(port) || 443, | ||
host, | ||
hostname, | ||
@@ -41,3 +40,2 @@ protocols: ['h2'], | ||
port: Number(port) || 443, | ||
host, | ||
hostname, | ||
@@ -49,3 +47,2 @@ protocols: ['h2', 'http/1.1', 'http/1.0'], | ||
port: Number(port) || 80, | ||
host, | ||
hostname, | ||
@@ -72,5 +69,5 @@ protocols: ['http/1.1', 'http/1.0'], | ||
try { | ||
const { host, hostname, port, protocols } = parseDomain(domain); | ||
const { hostname, port, protocols } = parseDomain(domain); | ||
const { alpnProtocol } = await (0, resolve_alpn_1.default)({ | ||
host, | ||
host: hostname, | ||
servername: hostname, | ||
@@ -77,0 +74,0 @@ port, |
{ | ||
"name": "@oada/client", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "A lightweight client tool to interact with an OADA-compliant server", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/OADA/client", |
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
128390
1985