*Update dist
This commit is contained in:
parent
ab98103503
commit
8bae1c11dd
|
@ -30,6 +30,8 @@ export default class Socket extends Duplex {
|
|||
port: any;
|
||||
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;
|
||||
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;
|
||||
static isIP(input: string): number;
|
||||
static isIPv4(input: string): boolean;
|
||||
static isIPv6(input: string): boolean;
|
||||
|
|
|
@ -64,6 +64,8 @@ class Socket extends streamx_1.Duplex {
|
|||
family: this.remoteFamily,
|
||||
};
|
||||
}
|
||||
addEventListener = this.addListener;
|
||||
removeEventListener = this.removeListener;
|
||||
static isIP(input) {
|
||||
if (Socket.isIPv4(input)) {
|
||||
return 4;
|
||||
|
|
Loading…
Reference in New Issue