Comparing version 2.3.6 to 2.3.7
@@ -43,3 +43,3 @@ var Stream = require('stream') | ||
if(_ended) return stream | ||
if(data == null) _ended = true | ||
if(data === null) _ended = true | ||
buffer.push(data) | ||
@@ -46,0 +46,0 @@ drain() |
{ | ||
"name": "through", | ||
"version": "2.3.6", | ||
"version": "2.3.7", | ||
"description": "simplified stream construction", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -118,1 +118,17 @@ | ||
}) | ||
test('does not soft-end on `undefined`', function(assert) { | ||
var stream = through() | ||
, count = 0 | ||
stream.on('data', function (data) { | ||
count++ | ||
}) | ||
stream.write(undefined) | ||
stream.write(undefined) | ||
assert.equal(count, 2) | ||
assert.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
12532
333