Socket
Socket
Sign inDemoInstall

postman-request

Package Overview
Dependencies
23
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.85.1-postman.1 to 2.86.1-postman.1

5

package.json

@@ -10,6 +10,6 @@ {

],
"version": "2.85.1-postman.1",
"version": "2.86.1-postman.1",
"repository": {
"type": "git",
"url": "https://github.com/request/request.git"
"url": "https://github.com/postmanlabs/postman-request.git"
},

@@ -47,3 +47,2 @@ "license": "Apache-2.0",

"stream-length": "^1.0.2",
"stringstream": "~0.0.5",
"tough-cookie": "~2.3.3",

@@ -50,0 +49,0 @@ "tunnel-agent": "^0.6.0",

4

README.md

@@ -187,3 +187,3 @@

// Pass data via Buffers
my_buffer: new Buffer([1, 2, 3]),
my_buffer: Buffer.from([1, 2, 3]),
// Pass data via Streams

@@ -222,3 +222,3 @@ my_file: fs.createReadStream(__dirname + '/unicycle.jpg'),

form.append('my_field', 'my_value');
form.append('my_buffer', new Buffer([1, 2, 3]));
form.append('my_buffer', Buffer.from([1, 2, 3]));
form.append('custom_file', fs.createReadStream(__dirname + '/unicycle.jpg'), {filename: 'unicycle.jpg'});

@@ -225,0 +225,0 @@ ```

@@ -14,3 +14,2 @@ 'use strict'

var mime = require('mime-types')
var stringstream = require('stringstream')
var caseless = require('caseless')

@@ -1075,9 +1074,4 @@ var ForeverAgent = require('forever-agent')

console.error('Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.')
} else if (responseContent.setEncoding) {
} else {
responseContent.setEncoding(self.encoding)
} else {
// Should only occur on node pre-v0.9.4 (joyent/node@9b5abe5) with
// zlib streams.
// If/When support for 0.9.4 is dropped, this should be unnecessary.
responseContent = responseContent.pipe(stringstream(self.encoding))
}

@@ -1084,0 +1078,0 @@ }

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc