centrifuge
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -0,1 +1,6 @@ | ||
2.2.1 | ||
===== | ||
* Fix error on resolving `EventEmitter` import while building TypeScript project with definitions added in 2.2.0. | ||
2.2.0 | ||
@@ -2,0 +7,0 @@ ===== |
@@ -6,6 +6,24 @@ // Type definitions for centrifuge 2.*.* | ||
import EventEmitter from 'events'; | ||
export = Centrifuge; | ||
// From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/globals.d.ts | ||
declare class EventEmitter { | ||
addListener(event: string | symbol, listener: (...args: any[]) => void): this; | ||
on(event: string | symbol, listener: (...args: any[]) => void): this; | ||
once(event: string | symbol, listener: (...args: any[]) => void): this; | ||
removeListener(event: string | symbol, listener: (...args: any[]) => void): this; | ||
off(event: string | symbol, listener: (...args: any[]) => void): this; | ||
removeAllListeners(event?: string | symbol): this; | ||
setMaxListeners(n: number): this; | ||
getMaxListeners(): number; | ||
listeners(event: string | symbol): Function[]; | ||
rawListeners(event: string | symbol): Function[]; | ||
emit(event: string | symbol, ...args: any[]): boolean; | ||
listenerCount(type: string | symbol): number; | ||
// Added in Node 6... | ||
prependListener(event: string | symbol, listener: (...args: any[]) => void): this; | ||
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; | ||
eventNames(): Array<string | symbol>; | ||
} | ||
declare class Centrifuge extends EventEmitter { | ||
@@ -12,0 +30,0 @@ constructor(url: string, options?: Centrifuge.Options); |
{ | ||
"name": "centrifuge", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Centrifuge and Centrifugo client for NodeJS and browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/centrifuge.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
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
14509
2190105
31