Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stream-demux

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-demux - npm Package Compare versions

Comparing version 4.0.4 to 5.0.0

6

package.json
{
"name": "stream-demux",
"version": "4.0.4",
"version": "5.0.0",
"description": "An iterable asynchronous stream demultiplexer.",

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

"dependencies": {
"async-iterable-stream": "^3.0.1",
"writable-async-iterable-stream": "^4.0.1"
"async-iterable-stream": "^4.0.0",
"writable-async-iterable-stream": "^5.0.0"
}
}

@@ -8,2 +8,9 @@ # stream-demux

This library is currently less than 70 lines of code in total (including whitespace) and has 2 dependencies:
- AsyncIterableStream: < 40 LOC
- WritableAsyncIterableStream: < 90 LOC
This library uses a queue which is implemented as a singly-linked list; this allows each loop to consume at its own pace without missing any events (supports nested await statements). An 'event' in the queue can be garbage-collected as soon as the slowest consumer moves its pointer past it.
## Installation

@@ -10,0 +17,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