New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

persistent-tunnel

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persistent-tunnel - npm Package Compare versions

Comparing version 1.1.6 to 1.2.0

18

build/persistent-tunnel.js

@@ -21,4 +21,10 @@ // Generated by CoffeeScript 1.10.0

};
onError = function(err, res) {
var cause, error, ref3, ref4;
cause = (ref3 = res != null ? res.statusCode : void 0) != null ? ref3 : err.message;
error = new Error("tunneling socket could not be established: " + cause);
error.core = (ref4 = res != null ? res.statusCode : void 0) != null ? ref4 : 500;
return cb(error);
};
onConnect = function(res, socket, head) {
var error;
socket.removeAllListeners();

@@ -34,13 +40,5 @@ if (res.statusCode === 200) {

} else {
error = new Error("tunneling socket could not be established, statusCode=" + res.statusCode);
error.code = 'ECONNRESET';
return cb(error);
return onError(null, res);
}
};
onError = function(err) {
var error;
error = new Error("tunneling socket could not be established, cause=" + err.message);
error.code = 'ECONNRESET';
return cb(error);
};
req = http.request(connectOptions);

@@ -47,0 +45,0 @@ req.once('connect', onConnect);

{
"name": "persistent-tunnel",
"version": "1.1.6",
"version": "1.2.0",
"description": "HTTP Agent for tunneling proxies with persistent sockets",

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

Sorry, the diff of this file is not supported yet

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