Comparing version 1.7.0 to 1.7.1
{ | ||
"name": "unenv", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "", | ||
"repository": "unjs/unenv", | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"exports": { | ||
@@ -8,0 +9,0 @@ ".": { |
@@ -1,7 +0,31 @@ | ||
export declare function EventEmitter(): void; | ||
export declare namespace EventEmitter { | ||
var EventEmitter: typeof import("./_events").EventEmitter; | ||
var init: () => void; | ||
var listenerCount: (emitter: any, type: any) => any; | ||
import type nodeEvents from "node:events"; | ||
interface Listener { | ||
(...args: any[]): void; | ||
listener?: (...args: any[]) => void; | ||
} | ||
export declare function once(emitter: any, name: any): Promise<unknown>; | ||
export declare class EventEmitter implements nodeEvents.EventEmitter { | ||
readonly __unenv__ = true; | ||
_events: Record<string, Listener[] & { | ||
warned?: boolean; | ||
}>; | ||
_maxListeners: undefined | number; | ||
static get defaultMaxListeners(): number; | ||
static set defaultMaxListeners(arg: number); | ||
setMaxListeners(n: number): this; | ||
getMaxListeners(): number; | ||
emit(type: string, ...args: any[]): boolean; | ||
addListener(type: string, listener: Listener): this; | ||
on(type: string, listener: Listener): this; | ||
prependListener(type: string, listener: Listener): this; | ||
once(type: string, listener: Listener): this; | ||
prependOnceListener(type: string, listener: Listener): this; | ||
removeListener(type: string, listener: Listener): this; | ||
off(type: string, listener: Listener): this; | ||
removeAllListeners(type: string): this; | ||
listeners(type: string): ((...args: any[]) => void)[]; | ||
rawListeners(type: string): ((...args: any[]) => void)[]; | ||
listenerCount(type: string): number; | ||
eventNames(): string[]; | ||
} | ||
export declare function once(emitter: EventEmitter, name: string): Promise<unknown>; | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
203
372970
11022