Socket
Socket
Sign inDemoInstall

request

Package Overview
Dependencies
50
Maintainers
4
Versions
126
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.85.0 to 2.86.0

3

package.json

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

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

@@ -49,3 +49,2 @@ "repository": {

"safe-buffer": "^5.1.1",
"stringstream": "~0.0.5",
"tough-cookie": "~2.3.3",

@@ -52,0 +51,0 @@ "tunnel-agent": "^0.6.0",

@@ -190,3 +190,3 @@

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

@@ -225,3 +225,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'});

@@ -228,0 +228,0 @@ ```

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

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

@@ -1053,9 +1052,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))
}

@@ -1062,0 +1056,0 @@ }

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc