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 0.1.14 to 0.1.15

13

index.js

@@ -93,4 +93,2 @@ const createError = require('http-errors')

(req.stream || req).on('error', onError)
if (resOrSocket instanceof net.Socket) {

@@ -134,4 +132,2 @@ if (headOrNil && headOrNil.length) {

const incoming = req.stream || req
const abort = () => {

@@ -143,7 +139,7 @@ if (!proxyReq.aborted) {

incoming.on('error', abort)
incoming.on('aborted', abort)
// NOTE http2.Http2ServerRequest doesn't forward stream errors.
const incoming = req.stream || req
const callback = err => {
incoming.removeListener('error', abort)
incoming.removeListener('error', callback)
incoming.removeListener('aborted', abort)

@@ -154,2 +150,5 @@ abort()

incoming.on('error', callback)
incoming.on('aborted', abort)
req

@@ -156,0 +155,0 @@ .pipe(proxyReq)

{
"name": "http2-proxy",
"version": "0.1.14",
"version": "0.1.15",
"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