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

writable-consumable-stream

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

writable-consumable-stream - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

11

consumer.js

@@ -11,2 +11,13 @@ class Consumer {

getStats() {
let stats = {
id: this.id,
backpressure: this.backpressure
};
if (this.timeout != null) {
stats.timeout = this.timeout;
}
return stats;
}
async next() {

@@ -13,0 +24,0 @@ this.stream.setConsumer(this.id, this);

5

index.js

@@ -128,6 +128,3 @@ const ConsumableStream = require('consumable-stream');

let consumer = consumerList[i];
consumerStats.push({
id: consumer.id,
backpressure: consumer.backpressure
});
consumerStats.push(consumer.getStats());
}

@@ -134,0 +131,0 @@ return consumerStats;

2

package.json
{
"name": "writable-consumable-stream",
"version": "1.0.0",
"version": "1.0.1",
"description": "An async stream which can be iterated over using a for-await-of loop.",

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

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