eventemitter2
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34547