Comparing version 2.19.1 to 2.20.0
10
index.js
@@ -1116,2 +1116,10 @@ const { EventEmitter } = require('events') | ||
function isEnded (stream) { | ||
return !!stream._readableState && stream._readableState.ended | ||
} | ||
function isFinished (stream) { | ||
return !!stream._writableState && stream._writableState.ended | ||
} | ||
function getStreamError (stream, opts = {}) { | ||
@@ -1151,2 +1159,4 @@ const err = (stream._readableState && stream._readableState.error) || (stream._writableState && stream._writableState.error) | ||
isStreamx, | ||
isEnded, | ||
isFinished, | ||
getStreamError, | ||
@@ -1153,0 +1163,0 @@ Stream, |
{ | ||
"name": "streamx", | ||
"version": "2.19.1", | ||
"version": "2.20.0", | ||
"description": "An iteration of the Node.js core streams with a series of improvements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
50734
949