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

@klasa/event-iterator

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@klasa/event-iterator - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

8

dist/index.d.ts

@@ -51,2 +51,10 @@ /// <reference types="node" />

/**
* Handles what happens when you break or return from a loop.
*/
return(): Promise<IteratorResult<V>>;
/**
* Handles what happens when you encounter an error in a loop.
*/
throw(): Promise<IteratorResult<V>>;
/**
* The symbol allowing EventIterators to be used in for-await-of loops.

@@ -53,0 +61,0 @@ */

@@ -104,2 +104,16 @@ "use strict";

/**
* Handles what happens when you break or return from a loop.
*/
async return() {
this.end();
return { done: true, value: undefined };
}
/**
* Handles what happens when you encounter an error in a loop.
*/
async throw() {
this.end();
return { done: true, value: undefined };
}
/**
* The symbol allowing EventIterators to be used in for-await-of loops.

@@ -106,0 +120,0 @@ */

2

package.json
{
"name": "@klasa/event-iterator",
"version": "0.0.2",
"version": "0.0.3",
"description": "Turns event emitter events into async iterators.",

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

Sorry, the diff of this file is not supported yet

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