http2-wrapper
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -17,2 +17,5 @@ // See https://github.com/facebook/jest/issues/2549 | ||
agent?: Agent | false; | ||
// Required because @types/node is missing types | ||
ALPNProtocols?: string[]; | ||
} | ||
@@ -19,0 +22,0 @@ |
{ | ||
"name": "http2-wrapper", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "HTTP2 client, just with the familiar `https` API", | ||
@@ -5,0 +5,0 @@ "main": "source", |
'use strict'; | ||
const net = require('net'); | ||
/* istanbul ignore file: https://github.com/nodejs/node/blob/v13.0.1/lib/_http_agent.js */ | ||
@@ -18,7 +17,6 @@ | ||
if (net.isIP(servername)) { | ||
return ''; | ||
} | ||
// Removed empty string return for IP, | ||
// otherwise https://1.1.1.1/ would fail. | ||
return servername; | ||
}; |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
74029
12