Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http2-wrapper

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http2-wrapper - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

4

package.json
{
"name": "http2-wrapper",
"version": "2.0.2",
"version": "2.0.3",
"description": "HTTP2 client, just with the familiar `https` API",

@@ -35,3 +35,3 @@ "main": "source",

"quick-lru": "^5.1.1",
"resolve-alpn": "^1.0.1"
"resolve-alpn": "^1.1.1"
},

@@ -38,0 +38,0 @@ "devDependencies": {

@@ -136,4 +136,16 @@ 'use strict';

let {socket, alpnProtocol} = await resolveProtocol(options);
let {socket, alpnProtocol, timeout} = await resolveProtocol(options);
if (timeout) {
if (socket) {
socket.destroy();
}
const error = new Error(`Timed out resolving ALPN: ${options.timeout} ms`);
error.code = 'ETIMEDOUT';
error.ms = options.timeout;
throw error;
}
// We can't accept custom `createConnection` because the API is different for HTTP/2

@@ -140,0 +152,0 @@ if (socket && options.createConnection) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc