follow-redirects
Advanced tools
Comparing version 1.8.1 to 1.9.0
@@ -15,5 +15,5 @@ var url = require("url"); | ||
var eventHandlers = Object.create(null); | ||
["abort", "aborted", "error", "socket", "timeout"].forEach(function (event) { | ||
eventHandlers[event] = function (arg) { | ||
this._redirectable.emit(event, arg); | ||
["abort", "aborted", "connect", "error", "socket", "timeout"].forEach(function (event) { | ||
eventHandlers[event] = function (arg1, arg2, arg3) { | ||
this._redirectable.emit(event, arg1, arg2, arg3); | ||
}; | ||
@@ -20,0 +20,0 @@ }); |
{ | ||
"name": "follow-redirects", | ||
"version": "1.8.1", | ||
"version": "1.9.0", | ||
"description": "HTTP and HTTPS modules that follow redirects.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
22100