request
Advanced tools
Comparing version 2.85.0 to 2.86.0
@@ -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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
21
203776
2464
5
- Removedstringstream@~0.0.5
- Removedstringstream@0.0.6(transitive)