concat-stream
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -56,2 +56,3 @@ var Writable = require('readable-stream').Writable | ||
ConcatStream.prototype.getBody = function () { | ||
if (this.body.length === 0) return [] | ||
if (this.shouldInferEncoding) this.encoding = this.inferEncoding() | ||
@@ -58,0 +59,0 @@ if (this.encoding === 'array') return arrayConcat(this.body) |
{ | ||
"name": "concat-stream", | ||
"version": "1.4.3", | ||
"description": "writable stream that concatenates strings or binary data and calls a callback with the result", | ||
@@ -10,3 +11,2 @@ "tags": [ | ||
], | ||
"version": "1.4.2", | ||
"author": "Max Ogden <max@maxogden.com>", | ||
@@ -13,0 +13,0 @@ "repository": { |
@@ -10,1 +10,9 @@ var concat = require('../') | ||
}) | ||
test('no encoding set, no data', function (t) { | ||
var stream = concat(function(data) { | ||
t.deepEqual(data, []) | ||
t.end() | ||
}) | ||
stream.end() | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13737
313