Comparing version 2.6.0 to 2.6.1
@@ -136,3 +136,4 @@ const { EventEmitter } = require('events') | ||
end (data) { | ||
if (data !== undefined && data !== null) this.push(data) | ||
if (typeof data === 'function') this.once('finish', data) | ||
else if (data !== undefined && data !== null) this.push(data) | ||
this.stream._duplexState = (this.stream._duplexState | WRITE_FINISHING) & WRITE_NON_PRIMARY | ||
@@ -139,0 +140,0 @@ } |
{ | ||
"name": "streamx", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "An iteration of the Node.js core streams with a series of improvements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -213,3 +213,3 @@ # streamx | ||
### `stream = Readable.from(arrayOrBufferOrStringOrAsyncIterator) | ||
#### `stream = Readable.from(arrayOrBufferOrStringOrAsyncIterator)` | ||
@@ -216,0 +216,0 @@ Static method to turn an array or buffer or string or AsyncIterator into a readable stream. |
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
50735
1294