Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.30.0 to 2.31.0

dns-request.js

2

package.json

@@ -10,3 +10,3 @@ {

],
"version": "2.30.0",
"version": "2.31.0",
"author": "Mikeal Rogers <mikeal.rogers@gmail.com>",

@@ -13,0 +13,0 @@ "repository": {

@@ -161,3 +161,3 @@ # Request -- Simplified HTTP client

}
, url = 'https://api.twitter.com/1/users/show.json?'
, url = 'https://api.twitter.com/1.1/users/show.json?'
, params =

@@ -183,3 +183,3 @@ { screen_name: perm_token.screen_name

```
```javascript
var request = require('request');

@@ -237,5 +237,5 @@

1. An `error` when applicable (usually from the `http.Client` option, not the `http.ClientRequest` object)
2. An `http.ClientResponse` object
3. The third is the `response` body (`String` or `Buffer`)
1. An `error` when applicable (usually from [`http.ClientRequest`](http://nodejs.org/api/http.html#http_class_http_clientrequest) object)
2. An [`http.IncomingMessage`](http://nodejs.org/api/http.html#http_http_incomingmessage) object
3. The third is the `response` body (`String` or `Buffer`, or JSON object if the `json` option is supplied)

@@ -360,6 +360,8 @@ ## Convenience methods

Note that `setCookie` requires at least three parameters, and the last is required to be a callback.
```javascript
var j = request.jar()
var cookie = request.cookie('your_cookie_here')
j.add(cookie)
j.setCookie(cookie, uri, function (err, cookie){})
request({url: 'http://www.google.com', jar: j}, function () {

@@ -366,0 +368,0 @@ request('http://images.google.com')

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