Comparing version 2.23.0 to 2.24.0
12
index.js
@@ -566,3 +566,3 @@ // Copyright 2010-2012 Mikeal Rogers | ||
if (!poolKey && Object.keys(options).length === 0 && this.httpModule.globalAgent) { | ||
if (this.pool === globalPool && !poolKey && Object.keys(options).length === 0 && this.httpModule.globalAgent) { | ||
// not doing anything special. Use the globalAgent | ||
@@ -895,2 +895,12 @@ return this.httpModule.globalAgent | ||
} | ||
//if no callback | ||
else{ | ||
self.on("end", function () { | ||
if (self._aborted) { | ||
debug('aborted', self.uri.href) | ||
return | ||
} | ||
self.emit('complete', response); | ||
}); | ||
} | ||
} | ||
@@ -897,0 +907,0 @@ debug('finish init function', self.uri.href) |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.23.0", | ||
"version": "2.24.0", | ||
"author": "Mikeal Rogers <mikeal.rogers@gmail.com>", | ||
@@ -26,7 +26,7 @@ "repository": { | ||
"qs": "~0.6.0", | ||
"json-stringify-safe": "~4.0.0", | ||
"json-stringify-safe": "~5.0.0", | ||
"forever-agent": "~0.5.0", | ||
"tunnel-agent": "~0.3.0", | ||
"http-signature": "~0.10.0", | ||
"hawk": "~0.13.0", | ||
"hawk": "~1.0.0", | ||
"aws-sign": "~0.3.0", | ||
@@ -37,3 +37,3 @@ "oauth-sign": "~0.3.0", | ||
"mime": "~1.2.9", | ||
"form-data": "0.0.8" | ||
"form-data": "~0.1.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "scripts": { |
@@ -218,3 +218,3 @@ # Request -- Simplified HTTP request method | ||
The callback argument gets 3 arguments. The first is an error when applicable (usually from the http.Client option not the http.ClientRequest object). The second in an http.ClientResponse object. The third is the response body String or Buffer. | ||
The callback argument gets 3 arguments. The first is an error when applicable (usually from the http.Client option not the http.ClientRequest object). The second is an http.ClientResponse object. The third is the response body String or Buffer. | ||
@@ -221,0 +221,0 @@ ## Convenience methods |
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
199996
3267
+ Addedasync@0.9.2(transitive)
+ Addedform-data@0.1.4(transitive)
+ Addedhawk@1.0.0(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
- Removedasync@0.2.10(transitive)
- Removedform-data@0.0.8(transitive)
- Removedhawk@0.13.1(transitive)
- Removedhoek@0.8.5(transitive)
- Removedjson-stringify-safe@4.0.0(transitive)
Updatedform-data@~0.1.0
Updatedhawk@~1.0.0
Updatedjson-stringify-safe@~5.0.0