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

eventemitter2

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventemitter2 - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

27

eventemitter2.d.ts

@@ -37,15 +37,15 @@ declare let eventemitter2: eventemitter2.Static

interface emitter {
emit(event: string| string[],...values: any[]);
emitAsync(event: string| string[],...values: any[]): Promise<any[]>;
addListener(event: string, listener: Listener);
on(event: string, listener: Listener);
once(event: string, listener: Listener);
many(event: string, timesToListen: number, listener: Listener);
many(events: string[], listener: Listener);
onAny(listener: EventAndListener);
offAny(listener: Listener);
removeListener(event: string, listener: Listener);
off(event: string, listener: Listener);
removeAllListeners(evetns?: string[]);
setMaxListeners(n: number);
emit(event: string| string[],...values: any[]): boolean;
emitAsync(event: string): Promise<any[]>;
addListener(event: string, listener: Listener): emitter;
on(event: string, listener: Listener): emitter;
once(event: string, listener: Listener): emitter;
many(event: string, timesToListen: number, listener: Listener): emitter;
many(events: string[], listener: Listener): emitter;
onAny(listener: EventAndListener): emitter;
offAny(listener: Listener): emitter;
removeListener(event: string, listener: Listener): emitter;
off(event: string, listener: Listener): emitter;
removeAllListeners(evetns?: string[]): emitter;
setMaxListeners(n: number): void;
listeners(event: string): ()=>{}[] // TODO: not in documentation by Willian

@@ -60,3 +60,2 @@ listenersAny(): ()=>{}[] // TODO: not in documentation by Willian

export {eventemitter2 as EventEmitter2 };
{
"name": "eventemitter2",
"version": "2.0.1",
"version": "2.0.2",
"description": "A Node.js event emitter implementation with namespaces, wildcards, TTL and browser support.",

@@ -5,0 +5,0 @@ "keywords": ["event", "events", "emitter", "eventemitter"],

@@ -1,6 +0,6 @@

[![build-status](https://www.codeship.io/projects/3ad58940-4c7d-0131-15d5-5a8cd3f550f8/status)](https://www.codeship.io/projects/11259)
[![Codeship](https://img.shields.io/codeship/3ad58940-4c7d-0131-15d5-5a8cd3f550f8.svg?maxAge=2592000)]()
[![NPM version](https://badge.fury.io/js/eventemitter2.svg)](http://badge.fury.io/js/eventemitter2)
[![Dependency Status](https://img.shields.io/david/asynclyeventemitter2.svg)](https://david-dm.org/asynclyeventemitter2)
[![npm](https://img.shields.io/npm/dm/eventemitter2.svg?maxAge=2592000)]()
[![NPM version](https://badge.fury.io/js/eventemitter2.png)](http://badge.fury.io/js/eventemitter2)
[![Bower version](https://badge.fury.io/bo/eventemitter2.png)](http://badge.fury.io/bo/eventemitter2)
# SYNOPSIS

@@ -7,0 +7,0 @@

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