Socket
Socket
Sign inDemoInstall

eventemitter2

Package Overview
Dependencies
0
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.4.6 to 6.4.7

14

eventemitter2.d.ts

@@ -48,3 +48,3 @@ export type event = (symbol|string);

interface WaitForFilter { (...values: any[]): boolean }
export interface WaitForFilter { (...values: any[]): boolean }

@@ -94,4 +94,4 @@ export interface WaitForOptions {

export interface ListenToOptions {
on?: { (event: event | eventNS, handler: Function): void },
off?: { (event: event | eventNS, handler: Function): void },
on?: { (event: event | eventNS, handler: ListenerFn): void },
off?: { (event: event | eventNS, handler: ListenerFn): void },
reducers: Function | Object

@@ -101,4 +101,8 @@ }

export interface GeneralEventEmitter{
addEventListener: Function,
removeEventListener: Function
addEventListener(event: event, handler: ListenerFn): this,
removeEventListener(event: event, handler: ListenerFn): this,
addListener?(event: event, handler: ListenerFn): this,
removeListener?(event: event, handler: ListenerFn): this,
on?(event: event, handler: ListenerFn): this,
off?(event: event, handler: ListenerFn): this
}

@@ -105,0 +109,0 @@

{
"name": "eventemitter2",
"version": "6.4.6",
"version": "6.4.7",
"description": "A feature-rich Node.js event emitter implementation with namespaces, wildcards, TTL, async listeners and browser/worker support.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc