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

async-iterable-stream

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-iterable-stream - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

index.js

@@ -5,3 +5,3 @@ const MUST_OVERRIDE_METHOD_MESSAGE = 'Method must be overriden by subclass';

next() {
throw new TypeError(MUST_OVERRIDE_METHOD_MESSAGE);
return this.createAsyncIterator().next();
}

@@ -8,0 +8,0 @@

{
"name": "async-iterable-stream",
"version": "2.0.1",
"version": "2.0.2",
"description": "A readable async stream which can be iterated over using a for-await-of loop.",

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

@@ -54,14 +54,2 @@ const AsyncIterableStream = require('../index');

it('should throw error if next() is invoked directly on the abstract class', async () => {
let result;
let error;
try {
result = abstractStream.next();
} catch (err) {
error = err;
}
assert.equal(error.name, 'TypeError');
assert.equal(error.message, 'Method must be overriden by subclass');
});
it('should throw error if createAsyncIterator() is invoked directly on the abstract class', async () => {

@@ -68,0 +56,0 @@ let result;

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