Socket
Socket
Sign inDemoInstall

http2-proxy

Package Overview
Dependencies
0
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.38 to 5.0.39

15

compat.js

@@ -63,8 +63,9 @@ const http = require('http')

let req
if (onReq) {
if (onReq.length <= 2) {
return onReq(req, ureq)
req = await onReq(req, ureq)
} else {
// Legacy compat...
return new Promise((resolve, reject) => {
req = await new Promise((resolve, reject) => {
const promiseOrReq = onReq(req, ureq, (err, val) =>

@@ -83,6 +84,10 @@ err ? reject(err) : resolve(val)

}
} else {
resolve()
}
})
}
} else {
}
if (!req) {
let agent

@@ -96,4 +101,6 @@ if (protocol == null || /^(http|ws):?$/.test(protocol)) {

}
return agent.request(ureq)
req = agent.request(ureq)
}
return req
},

@@ -100,0 +107,0 @@ onRes

{
"name": "http2-proxy",
"version": "5.0.38",
"version": "5.0.39",
"scripts": {

@@ -5,0 +5,0 @@ "test": "jest",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc