Socket
Socket
Sign inDemoInstall

streamx

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamx - npm Package Compare versions

Comparing version 2.18.0 to 2.19.0

6

index.js

@@ -1113,5 +1113,7 @@ const { EventEmitter } = require('events')

function getStreamError (stream) {
function getStreamError (stream, opts = {}) {
const err = (stream._readableState && stream._readableState.error) || (stream._writableState && stream._writableState.error)
return err === STREAM_DESTROYED ? null : err // only explicit errors
// avoid implicit errors by default
return (!opts.all && err === STREAM_DESTROYED) ? null : err
}

@@ -1118,0 +1120,0 @@

{
"name": "streamx",
"version": "2.18.0",
"version": "2.19.0",
"description": "An iteration of the Node.js core streams with a series of improvements",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -462,2 +462,12 @@ # streamx

## Helpers
#### `bool = isStream(stream)`
#### `bool = isStreamx(stream)`
#### `err = getStreamError(stream, [options])`
Returns `null` if the stream has no errors.
## Utilities

@@ -464,0 +474,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc