Comparing version 2.6.1 to 2.6.2
@@ -136,3 +136,3 @@ const { EventEmitter } = require('events') | ||
end (data) { | ||
if (typeof data === 'function') this.once('finish', data) | ||
if (typeof data === 'function') this.stream.once('finish', data) | ||
else if (data !== undefined && data !== null) this.push(data) | ||
@@ -139,0 +139,0 @@ this.stream._duplexState = (this.stream._duplexState | WRITE_FINISHING) & WRITE_NON_PRIMARY |
{ | ||
"name": "streamx", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "An iteration of the Node.js core streams with a series of improvements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
50742