Compare commits

..

No commits in common. "8bae1c11ddb470e5bc4212db18fbc19e6527b7d3" and "8734d8180c69befd79d8ce8e501ec97eab7ca7e5" have entirely different histories.

3 changed files with 0 additions and 8 deletions

2
dist/socket.d.ts vendored
View File

@ -30,8 +30,6 @@ export default class Socket extends Duplex {
port: any; port: any;
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;
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 isIP(input: string): number;
static isIPv4(input: string): boolean; static isIPv4(input: string): boolean;
static isIPv6(input: string): boolean; static isIPv6(input: string): boolean;

2
dist/socket.js vendored
View File

@ -64,8 +64,6 @@ class Socket extends streamx_1.Duplex {
family: this.remoteFamily, family: this.remoteFamily,
}; };
} }
addEventListener = this.addListener;
removeEventListener = this.removeListener;
static isIP(input) { static isIP(input) {
if (Socket.isIPv4(input)) { if (Socket.isIPv4(input)) {
return 4; return 4;

View File

@ -96,10 +96,6 @@ export default class Socket extends Duplex {
family: this.remoteFamily, family: this.remoteFamily,
}; };
} }
addEventListener = this.addListener;
removeEventListener = this.removeListener;
static isIP(input: string): number { static isIP(input: string): number {
if (Socket.isIPv4(input)) { if (Socket.isIPv4(input)) {
return 4; return 4;