https-proxy-agent
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -121,9 +121,6 @@ "use strict"; | ||
if (opts.secureEndpoint) { | ||
const servername = opts.servername || opts.host; | ||
if (!servername) { | ||
throw new Error('Could not determine "servername"'); | ||
} | ||
// The proxy is connecting to a TLS server, so upgrade | ||
// this socket connection to a TLS connection. | ||
debug('Upgrading socket connection to TLS'); | ||
const servername = opts.servername || opts.host; | ||
return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket, | ||
@@ -145,3 +142,3 @@ servername })); | ||
socket.destroy(); | ||
const fakeSocket = new net_1.default.Socket(); | ||
const fakeSocket = new net_1.default.Socket({ writable: false }); | ||
fakeSocket.readable = true; | ||
@@ -148,0 +145,0 @@ // Need to wait for the "socket" event to re-play the "data" events. |
{ | ||
"name": "https-proxy-agent", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
26008
314