From 10d3c1fde8f206b24e0f6adfc720e9b1b9375a67 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 24 Feb 2023 20:04:45 -0500 Subject: [PATCH] *Update dist --- dist/socket.d.ts | 4 +++- dist/socket.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/socket.d.ts b/dist/socket.d.ts index 9f6bac5..d691d2b 100644 --- a/dist/socket.d.ts +++ b/dist/socket.d.ts @@ -4,6 +4,7 @@ interface SocketOptions { allowHalfOpen?: boolean; remoteAddress?: string; remotePort?: number; + remotePublicKey?: Uint8Array; write?: (this: Duplex>, data: any, cb: Callback) => void; } export default class Socket extends Duplex { @@ -14,7 +15,8 @@ export default class Socket extends Duplex { bufferSize: any; readable: true; writable: true; - constructor({ allowHalfOpen, remoteAddress, remotePort, write, }?: SocketOptions); + remotePublicKey: Uint8Array; + constructor({ allowHalfOpen, remoteAddress, remotePort, remotePublicKey, write, }?: SocketOptions); private _connecting; get connecting(): boolean; get readyState(): string; diff --git a/dist/socket.js b/dist/socket.js index 55e1d54..545ac4d 100644 --- a/dist/socket.js +++ b/dist/socket.js @@ -9,11 +9,13 @@ class Socket extends streamx_1.Duplex { remotePort; remoteFamily; bufferSize; - constructor({ allowHalfOpen = false, remoteAddress, remotePort, write, } = {}) { + remotePublicKey; + constructor({ allowHalfOpen = false, remoteAddress, remotePort, remotePublicKey, write, } = {}) { super({ write }); this._allowHalfOpen = allowHalfOpen; this.remoteAddress = remoteAddress; this.remotePort = remotePort; + this.remotePublicKey = remotePublicKey; if (remoteAddress) { const type = Socket.isIP(remoteAddress); if (!type) {