Comparing version 2.30.0 to 2.31.0
@@ -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') |
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
Network access
Supply chain riskThis module accesses the network.
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
68391
12
1287
367
2