From b02a7f5a2c3caa702d00af3b9f75ad5697f021cb Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 16 Nov 2022 12:13:00 -0500 Subject: [PATCH] Revert "*Update dist" This reverts commit 129141bd8f043158fe9649f2cdcd1495e490111f. --- dist/index.d.ts | 3 +-- dist/index.d.ts.map | 2 +- dist/index.js | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index b49c9f6..2952fdf 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -2,10 +2,9 @@ import DHTOnlineBase from "./dhtOnlineBase.js"; export default class DHTOnline extends DHTOnlineBase { private flood; private swarm; - constructor(swarm: any, { id, data, protocol, ...opts }?: { + constructor(swarm: any, { id, data, ...opts }?: { id?: any; data?: {} | undefined; - protocol?: undefined; }); handlePeerAdd(peer: any): void; handlePeerRemove(peer: any): void; diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index 4cfb056..7c6a216 100644 --- a/dist/index.d.ts.map +++ b/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAK/C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,aAAa;IAClD,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,KAAK,CAAM;gBAGjB,KAAK,EAAE,GAAG,EACV,EACE,EAA4B,EAC5B,IAAS,EACT,QAAoB,EACpB,GAAG,IAAI,EACR;;;;KAAK;IAmBR,aAAa,CAAC,IAAI,EAAE,GAAG;IAKvB,gBAAgB,CAAC,IAAI,EAAE,GAAG;IAW1B,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM;CAGrC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAK/C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,aAAa;IAClD,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,KAAK,CAAM;gBAGjB,KAAK,EAAE,GAAG,EACV,EAAE,EAA4B,EAAE,IAAS,EAAE,GAAG,IAAI,EAAE;;;KAAK;IAmB3D,aAAa,CAAC,IAAI,EAAE,GAAG;IAKvB,gBAAgB,CAAC,IAAI,EAAE,GAAG;IAW1B,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM;CAGrC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index f47f12d..af12c65 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9,9 +9,9 @@ const DISCONNECT_SMOOTH = 500; class DHTOnline extends dhtOnlineBase_js_1.default { flood; swarm; - constructor(swarm, { id = swarm.keyPair.publicKey, data = {}, protocol = undefined, ...opts } = {}) { + constructor(swarm, { id = swarm.keyPair.publicKey, data = {}, ...opts } = {}) { super(id, opts); - this.flood = new dht_flood_1.default({ id, swarm, protocol, ...opts }); + this.flood = new dht_flood_1.default({ id, swarm, ...opts }); this.swarm = swarm; this.flood.on("peer-open", (peer) => this.handlePeerAdd(peer)); this.flood.on("peer-remove", (peer) => this.handlePeerRemove(peer));