@nodeart/event_emitter
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -1,2 +0,2 @@ | ||
declare class EventEmitter { | ||
export declare class EventEmitter { | ||
readonly _events: Map<string, {fn: Function, times?: number, count?: number}> | ||
@@ -6,3 +6,3 @@ once(eventName: string, ...fns: Function[]): this | ||
on(eventName: string, ...fns: Function[]): this | ||
emit(eventName: string, ctx?: any = null, ...args: any[]): this | ||
emit(eventName: string, ctx?: any, ...args: any[]): this | ||
off(eventName: string, ...fns: Function[]): this | ||
@@ -12,3 +12,2 @@ offAll(): this | ||
static extend(successor: any): any | ||
} | ||
export = EventEmitter; | ||
} |
@@ -156,2 +156,4 @@ /** | ||
EventEmitter.EventEmitter = EventEmitter; | ||
if (typeof module !== 'undefined' && module.exports) { | ||
@@ -158,0 +160,0 @@ module.exports = EventEmitter; |
{ | ||
"name": "@nodeart/event_emitter", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Simple EventEmitter pattern", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
8192
6
203
1