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 1.3.1 to 1.4.0

16

index.js

@@ -18,12 +18,12 @@ const AsyncIterableStream = require('async-iterable-stream');

end(name) {
if (name === undefined) {
this.mainStream.end();
} else {
this.mainStream.write({
name,
data: END_SYMBOL
});
}
this.mainStream.write({
name,
data: END_SYMBOL
});
}
endAll() {
this.mainStream.end();
}
async *createDemuxedStream(stream, name) {

@@ -30,0 +30,0 @@ for await (let packet of stream) {

{
"name": "stream-demux",
"version": "1.3.1",
"version": "1.4.0",
"description": "An iterable asynchronous stream demultiplexer.",

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

@@ -110,3 +110,3 @@ const assert = require('assert');

it('should support ending all streams using a single command', async () => {
it('should support ending all streams using a single endAll command', async () => {
(async () => {

@@ -118,3 +118,3 @@ for (let i = 0; i < 10; i++) {

}
demux.end();
demux.endAll();
})();

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