From e18055e6064790a0aeffd324a7b32895f8b19a98 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 16 Nov 2022 12:12:52 -0500 Subject: [PATCH] Revert "*Update dist" This reverts commit 898fad7002fbfc27b0e52e8e96324edd0f44cc8d. --- dist/index.d.ts | 2 +- dist/index.d.ts.map | 2 +- dist/index.js | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 6c92ba1..b49c9f6 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -3,9 +3,9 @@ export default class DHTOnline extends DHTOnlineBase { private flood; private swarm; constructor(swarm: any, { id, data, protocol, ...opts }?: { - protocol: undefined; 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 cf0ae6b..4cfb056 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;AAM/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,QAAQ,EAAE,GAAG,IAAI,EAAE;;;;KAE7D;IAmBH,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,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 diff --git a/dist/index.js b/dist/index.js index 5ccebcf..f47f12d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9,9 +9,7 @@ const DISCONNECT_SMOOTH = 500; class DHTOnline extends dhtOnlineBase_js_1.default { flood; swarm; - constructor(swarm, { id = swarm.keyPair.publicKey, data = {}, protocol, ...opts } = { - protocol: undefined, - }) { + constructor(swarm, { id = swarm.keyPair.publicKey, data = {}, protocol = undefined, ...opts } = {}) { super(id, opts); this.flood = new dht_flood_1.default({ id, swarm, protocol, ...opts }); this.swarm = swarm;