Socket
Socket
Sign inDemoInstall

http2-proxy

Package Overview
Dependencies
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http2-proxy - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

36

index.js

@@ -165,17 +165,2 @@ const http2 = require('http2')

if (res[kProxyReq]) {
res[kProxyReq].abort()
res[kProxyReq] = null
}
if (res[kProxySocket]) {
res[kProxySocket].end()
res[kProxySocket] = null
}
if (res[kProxyRes]) {
res[kProxyRes].destroy()
res[kProxyRes] = null
}
if (err) {

@@ -201,4 +186,21 @@ err.statusCode = statusCode || err.statusCode || 500

res[kProxyCallback].call(null, err, res[kReq], res)
res[kProxyCallback] = null
if (res[kProxyCallback]) {
res[kProxyCallback].call(res[kProxyReq], err, res[kReq], res)
res[kProxyCallback] = null
}
if (res[kProxyReq]) {
res[kProxyReq].abort()
res[kProxyReq] = null
}
if (res[kProxySocket]) {
res[kProxySocket].end()
res[kProxySocket] = null
}
if (res[kProxyRes]) {
res[kProxyRes].destroy()
res[kProxyRes] = null
}
}

@@ -205,0 +207,0 @@

{
"name": "http2-proxy",
"version": "1.0.1",
"version": "1.0.2",
"scripts": {

@@ -5,0 +5,0 @@ "dev": "nodemon --inspect=9308 --expose-http2 src",

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