New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3 to 0.0.4

2

dist/index.d.ts

@@ -6,3 +6,3 @@ /// <reference types="node" />

*/
export declare type EventIteratorFilter<V> = (value: V, collected: V[]) => boolean;
export declare type EventIteratorFilter<V> = (value: V) => boolean;
/**

@@ -9,0 +9,0 @@ * Options to be passed to an EventIterator.

@@ -127,3 +127,3 @@ "use strict";

push(value) {
if (this.filter(value, __classPrivateFieldGet(this, _queue).slice())) {
if (this.filter(value)) {
__classPrivateFieldGet(this, _queue).push(value);

@@ -130,0 +130,0 @@ if (__classPrivateFieldSet(this, _collected, +__classPrivateFieldGet(this, _collected) + 1) >= __classPrivateFieldGet(this, _limit))

{
"name": "@klasa/event-iterator",
"version": "0.0.3",
"version": "0.0.4",
"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