Revert "*Update dist"

This reverts commit 898fad7002.
This commit is contained in:
Derrick Hammer 2022-11-16 12:12:52 -05:00
parent 898fad7002
commit e18055e606
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 3 additions and 5 deletions

2
dist/index.d.ts vendored
View File

@ -3,9 +3,9 @@ export default class DHTOnline extends DHTOnlineBase {
private flood; private flood;
private swarm; private swarm;
constructor(swarm: any, { id, data, protocol, ...opts }?: { constructor(swarm: any, { id, data, protocol, ...opts }?: {
protocol: undefined;
id?: any; id?: any;
data?: {} | undefined; data?: {} | undefined;
protocol?: undefined;
}); });
handlePeerAdd(peer: any): void; handlePeerAdd(peer: any): void;
handlePeerRemove(peer: any): void; handlePeerRemove(peer: any): void;

2
dist/index.d.ts.map vendored
View File

@ -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"} {"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"}

4
dist/index.js vendored
View File

@ -9,9 +9,7 @@ const DISCONNECT_SMOOTH = 500;
class DHTOnline extends dhtOnlineBase_js_1.default { class DHTOnline extends dhtOnlineBase_js_1.default {
flood; flood;
swarm; swarm;
constructor(swarm, { id = swarm.keyPair.publicKey, data = {}, protocol, ...opts } = { constructor(swarm, { id = swarm.keyPair.publicKey, data = {}, protocol = undefined, ...opts } = {}) {
protocol: undefined,
}) {
super(id, opts); super(id, opts);
this.flood = new dht_flood_1.default({ id, swarm, protocol, ...opts }); this.flood = new dht_flood_1.default({ id, swarm, protocol, ...opts });
this.swarm = swarm; this.swarm = swarm;