postman-request
Advanced tools
Comparing version 2.85.1-postman.1 to 2.86.1-postman.1
@@ -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", |
@@ -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
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
23
3
208756
2634
- Removedstringstream@~0.0.5
- Removedstringstream@0.0.6(transitive)