Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

better-https-proxy-agent

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-https-proxy-agent - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

17

index.js

@@ -61,2 +61,3 @@ 'use strict';

stream.emit('error', err);
stream.emit('close');

@@ -74,6 +75,2 @@ return;

tlsSocket.once('error', (err) => {
if (!stream.surrogateConnectedStream) stream.emit('error', err);
});
tlsSocket.once('close', (hadError) => {

@@ -207,3 +204,3 @@ if (hadError) this._evictSession(options._agentKey);

const toOptions = Object.assign({}, this[OPTIONS]);
toOptions.path = (throughOptions.hostname || throughOptions.host) + ':' + throughOptions.port
toOptions.path = (throughOptions.hostname || throughOptions.host) + ':' + throughOptions.port;

@@ -279,2 +276,7 @@ debug('_createProxyConnection', toOptions);

function surrogateDestroy() {
// Only destroy once.
this.destroy = () => {};
this.writable = false;
this.surrogateDestroy();

@@ -326,2 +328,7 @@

function connectedDestroy() {
// Only destroy once.
this.destroy = () => {};
this.writable = false;
this.surrogateConnectedStream.destroy();

@@ -328,0 +335,0 @@

{
"name": "better-https-proxy-agent",
"version": "1.0.8",
"version": "1.0.9",
"description": "An agent for HTTPS through an HTTP(S) proxy server using the CONNECT method",

@@ -5,0 +5,0 @@ "main": "index.js",

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