From 175b9d318989f5d6eb90102a5e6848be798f73ac Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 18 Jan 2023 03:57:37 -0500 Subject: [PATCH] *Update dist --- dist/index.d.ts | 4 +++- dist/index.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index bbe5d15..304b482 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,4 +1,6 @@ /// import type { Peer } from "@lumeweb/peer-discovery"; -declare const _default: (pubkey: Buffer, options?: {}) => Promise; +declare const _default: (pubkey: Buffer, options?: { + host: string; +}) => Promise; export default _default; diff --git a/dist/index.js b/dist/index.js index f78a763..a2ce183 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6,10 +6,10 @@ import { ripemd160 } from "@noble/hashes/ripemd160"; import { sha256 } from "@noble/hashes/sha256"; import { bytesToHex } from "@noble/hashes/utils"; const hash160 = (data) => ripemd160(sha256(data)); -export default async (pubkey, options = {}) => { +export default async (pubkey, options = { host: "irc.liberta.casa" }) => { let ircPubKey = await ed.getPublicKey(ed.utils.randomPrivateKey()); let client = new IrcClient(undefined, bytesToHex(hash160(ircPubKey)).substring(0, 15), { - host: "irc.liberta.casa", + host: options.host, port: 6697, secure: true, channels: ["#lumeweb"],