proxy-chain
Advanced tools
Comparing version 0.1.35 to 0.2.1
@@ -50,4 +50,7 @@ 'use strict'; | ||
server.on('requestFailed', function (err) { | ||
console.error('Request failed: ' + (err.stack || err)); | ||
server.on('requestFailed', function (_ref) { | ||
var err = _ref.err, | ||
request = _ref.request; | ||
console.error('Request failed (' + (request ? request.url : 'N/A') + '): ' + (err.stack || err)); | ||
}); | ||
@@ -54,0 +57,0 @@ |
@@ -104,4 +104,4 @@ 'use strict'; | ||
* Represents the proxy server. | ||
* It emits 'requestFailed' event on unexpected request errors. | ||
* It emits 'connectionClosed' event when connection to proxy server is closed. | ||
* It emits the 'requestFailed' event on unexpected request errors, with the following parameter `{ error, request }`. | ||
* It emits the 'connectionClosed' event when connection to proxy server is closed, with parameter `{ connectionId, stats }`. | ||
*/ | ||
@@ -432,3 +432,3 @@ | ||
this.sendResponse(request.socket, 500, null, 'Internal error in proxy server'); | ||
this.emit('requestFailed', err); | ||
this.emit('requestFailed', { err: err, request: request }); | ||
} | ||
@@ -435,0 +435,0 @@ |
@@ -0,1 +1,5 @@ | ||
0.2.1 / 2018-06-19 | ||
=================== | ||
- BREAKING: The 'requestFailed' event now emits object `{ request, error }` instead of just `error` | ||
0.1.35 / 2018-06-12 | ||
@@ -2,0 +6,0 @@ =================== |
{ | ||
"name": "proxy-chain", | ||
"version": "0.1.35", | ||
"version": "0.2.1", | ||
"description": "Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116196
1798