concat-stream
Advanced tools
Comparing version 1.6.1 to 1.6.2
11
index.js
var Writable = require('readable-stream').Writable | ||
var inherits = require('inherits') | ||
var bufferFrom = require('buffer-from') | ||
@@ -90,5 +91,5 @@ if (typeof Uint8Array === 'undefined') { | ||
} else if (isBufferish(p)) { | ||
strings.push(new Buffer(p)) | ||
strings.push(bufferFrom(p)) | ||
} else { | ||
strings.push(new Buffer(String(p))) | ||
strings.push(bufferFrom(String(p))) | ||
} | ||
@@ -112,5 +113,5 @@ } | ||
} else if (isBufferish(p)) { | ||
bufs.push(new Buffer(p)) | ||
bufs.push(bufferFrom(p)) | ||
} else { | ||
bufs.push(new Buffer(String(p))) | ||
bufs.push(bufferFrom(String(p))) | ||
} | ||
@@ -133,3 +134,3 @@ } | ||
if (typeof parts[i] === 'string') { | ||
parts[i] = new Buffer(parts[i]) | ||
parts[i] = bufferFrom(parts[i]) | ||
} | ||
@@ -136,0 +137,0 @@ len += parts[i].length |
{ | ||
"name": "concat-stream", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "writable stream that concatenates strings or binary data and calls a callback with the result", | ||
@@ -31,5 +31,6 @@ "tags": [ | ||
"dependencies": { | ||
"buffer-from": "^1.0.0", | ||
"inherits": "^2.0.3", | ||
"typedarray": "^0.0.6", | ||
"readable-stream": "^2.2.2" | ||
"readable-stream": "^2.2.2", | ||
"typedarray": "^0.0.6" | ||
}, | ||
@@ -36,0 +37,0 @@ "devDependencies": { |
@@ -65,3 +65,3 @@ # concat-stream | ||
write.write('!') | ||
write.end(Buffer('!!1')) | ||
write.end(Buffer.from('!!1')) | ||
``` | ||
@@ -68,0 +68,0 @@ |
9556
125
4
+ Addedbuffer-from@^1.0.0
+ Addedbuffer-from@1.1.2(transitive)