From 8bae1c11ddb470e5bc4212db18fbc19e6527b7d3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 25 Feb 2023 01:51:50 -0500 Subject: [PATCH] *Update dist --- dist/socket.d.ts | 2 ++ dist/socket.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/socket.d.ts b/dist/socket.d.ts index d691d2b..f2f7720 100644 --- a/dist/socket.d.ts +++ b/dist/socket.d.ts @@ -30,6 +30,8 @@ export default class Socket extends Duplex { port: any; family: AddressFamily; }; + addEventListener: (event: TEvent, listener: TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping" ? DuplexEvents[TEvent] : (...args: any[]) => void) => this; + removeEventListener: (event: TEvent, listener: TEvent extends "data" | "end" | "finish" | "pipe" | "readable" | "drain" | keyof import("streamx").StreamEvents | "piping" ? DuplexEvents[TEvent] : (...args: any[]) => void) => this; static isIP(input: string): number; static isIPv4(input: string): boolean; static isIPv6(input: string): boolean; diff --git a/dist/socket.js b/dist/socket.js index 5bde809..3ce1a0d 100644 --- a/dist/socket.js +++ b/dist/socket.js @@ -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;