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 5.0.46 to 5.0.47

index.d.ts

28

compat.js
const http = require('http')
const https = require('https')
const tlsOptions = [
'ca',
'cert',
'ciphers',
'clientCertEngine',
'crl',
'dhparam',
'ecdhCurve',
'honorCipherOrder',
'key',
'passphrase',
'pfx',
'rejectUnauthorized',
'secureOptions',
'secureProtocol',
'servername',
'sessionIdContext',
'highWaterMark',
'checkServerIdentity',
];
module.exports = function (proxy) {

@@ -51,2 +72,9 @@ proxy.ws = function ws (req, socket, head, options, callback) {

async ureq => {
for (const key of tlsOptions) {
if (Reflect.has(options, key)) {
const value = Reflect.get(options, key);
Reflect.set(ureq, key, value);
}
}
if (hostname !== undefined) {

@@ -53,0 +81,0 @@ ureq.hostname = hostname

3

package.json
{
"name": "http2-proxy",
"version": "5.0.46",
"version": "5.0.47",
"types": "index.d.ts",
"scripts": {

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

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