*Update dist
This commit is contained in:
parent
39471ad9c2
commit
c90e022795
|
@ -31,7 +31,9 @@ export default class Socket extends Duplex {
|
||||||
family: AddressFamily;
|
family: AddressFamily;
|
||||||
};
|
};
|
||||||
addEventListener: <TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping">(event: TEvent, listener: TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping" ? DuplexEvents<any, any>[TEvent] : (...args: any[]) => void) => this;
|
addEventListener: <TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping">(event: TEvent, listener: TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping" ? DuplexEvents<any, any>[TEvent] : (...args: any[]) => void) => this;
|
||||||
|
on: <TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping">(event: TEvent, listener: TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping" ? DuplexEvents<any, any>[TEvent] : (...args: any[]) => void) => this;
|
||||||
removeEventListener: <TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping">(event: TEvent, listener: TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping" ? DuplexEvents<any, any>[TEvent] : (...args: any[]) => void) => this;
|
removeEventListener: <TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping">(event: TEvent, listener: TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping" ? DuplexEvents<any, any>[TEvent] : (...args: any[]) => void) => this;
|
||||||
|
off: <TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping">(event: TEvent, listener: TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping" ? DuplexEvents<any, any>[TEvent] : (...args: any[]) => void) => this;
|
||||||
static isIP(input: string): number;
|
static isIP(input: string): number;
|
||||||
static isIPv4(input: string): boolean;
|
static isIPv4(input: string): boolean;
|
||||||
static isIPv6(input: string): boolean;
|
static isIPv6(input: string): boolean;
|
||||||
|
|
|
@ -65,7 +65,9 @@ class Socket extends streamx_1.Duplex {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
addEventListener = this.addListener;
|
addEventListener = this.addListener;
|
||||||
|
on = this.addListener;
|
||||||
removeEventListener = this.removeListener;
|
removeEventListener = this.removeListener;
|
||||||
|
off = this.removeListener;
|
||||||
static isIP(input) {
|
static isIP(input) {
|
||||||
if (Socket.isIPv4(input)) {
|
if (Socket.isIPv4(input)) {
|
||||||
return 4;
|
return 4;
|
||||||
|
|
Loading…
Reference in New Issue