Socket
Socket
Sign inDemoInstall

request

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request - npm Package Compare versions

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)

8

package.json

@@ -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

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