request-promise
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -37,2 +37,3 @@ 'use strict'; | ||
'promise' | ||
// Would you like to expose more Bluebird methods? Try e.g. `rp(...).promise().tap(...)` first. `.promise()` returns the full-fledged Bluebird promise. | ||
], | ||
@@ -39,0 +40,0 @@ constructorMixin: function (resolve, reject, onCancel) { |
{ | ||
"name": "request-promise", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "The simplified HTTP request client 'request' with Promise support. Powered by Bluebird.", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
"stealthy-require": "^1.1.0", | ||
"tough-cookie": ">=2.3.0" | ||
"tough-cookie": ">=2.3.3" | ||
}, | ||
@@ -42,0 +42,0 @@ "peerDependencies": { |
@@ -139,3 +139,3 @@ <a href="http://promisesaplus.com/"> | ||
Set `option.form` to your data to encode the body the same way as HTML forms do. | ||
Set `options.formData` to your data to encode the body the same way as HTML forms do. | ||
@@ -146,4 +146,13 @@ ``` js | ||
uri: 'http://posttestserver.com/post.php', | ||
form: { | ||
some: 'payload' // Will be urlencoded | ||
formData: { | ||
// Like <input type="text" name="name"> | ||
name: 'test.jpg', | ||
// Like <input type="file" name="file"> | ||
file: { | ||
value: fs.createReadStream('test/test.jpg'), | ||
options: { | ||
filename: 'test.jpg', | ||
contentType: 'image/jpg' | ||
} | ||
} | ||
}, | ||
@@ -616,2 +625,5 @@ headers: { | ||
- v4.2.2 (2017-09-22) | ||
- Upgraded `tough-cookie` to a version without regex DoS vulnerability | ||
*(Thanks to @rouanw for [pull request #226](https://github.com/request/request-promise/pull/226))* | ||
- v4.2.1 (2017-05-07) | ||
@@ -707,2 +719,2 @@ - Fix that allows to use `tough-cookie` for cookie creation | ||
See the [LICENSE file](LICENSE) for details. | ||
See the [LICENSE file](LICENSE) for details. |
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
35212
45
717
Updatedtough-cookie@>=2.3.3