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

request-promise

Package Overview
Dependencies
Maintainers
6
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-promise - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

1

lib/rp.js

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

4

package.json
{
"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.
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