New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

consumable-stream

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consumable-stream - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

14

index.js

@@ -12,4 +12,13 @@ class ConsumableStream {

if (result.done) {
// If stream was ended, this function should never resolve.
await new Promise(() => {});
// If stream was ended, this function should never resolve unless
// there is a timeout; in that case, it should reject early.
if (timeout == null) {
await new Promise(() => {});
} else {
let error = new Error(
'Stream consumer operation timed out early because stream ended'
);
error.name = 'TimeoutError';
throw error;
}
}

@@ -29,1 +38,2 @@ return result.value;

module.exports = ConsumableStream;

2

package.json
{
"name": "consumable-stream",
"version": "2.0.0",
"version": "3.0.0",
"description": "A readable 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