*Update dist

This commit is contained in:
Derrick Hammer 2023-02-05 14:03:09 -05:00
parent 701a3190ae
commit 343fda1172
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 9 additions and 9 deletions

8
dist/index.d.ts vendored
View File

@ -26,10 +26,10 @@ export default class HyperswarmWeb extends EventEmitter {
once(eventName: string | symbol, listener: (...args: any[]) => void): this; once(eventName: string | symbol, listener: (...args: any[]) => void): this;
private _processOrQueueAction; private _processOrQueueAction;
private _processQueuedActions; private _processQueuedActions;
join(topic: Uint8Array, opts?: {}): any; join(topic: Uint8Array, opts?: {}): void;
joinPeer(publicKey: Uint8Array): any; joinPeer(publicKey: Uint8Array): void;
leave(topic: Uint8Array): any; leave(topic: Uint8Array): void;
leavePeer(publicKey: Uint8Array): any; leavePeer(publicKey: Uint8Array): void;
status(publicKey: Uint8Array): any; status(publicKey: Uint8Array): any;
topics(): string[]; topics(): string[];
flush(): Promise<any>; flush(): Promise<any>;

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

@ -1 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAW5C,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,YAAY,MAAM,eAAe,CAAC;AAGzC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,OAAO,CAAC,QAAQ,CAAM;IACtB,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,gBAAgB,CAAuB;IAE/C,OAAO,CAAC,gBAAgB,CAAsB;gBAClC,IAAI,GAAE,GAAQ;IAO1B,IAAI,WAAW,IAAI,UAAU,CAE5B;IAED,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;YAIP,gBAAgB;YAmEhB,iBAAiB;IAYzB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAA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,GAAG,MAAM,EAC1B,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACjC,UAAU;IAIb,cAAc,CACZ,SAAS,EAAE,MAAM,GAAG,MAAM,EAC1B,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACjC,IAAI;IAGP,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO;IAIzD,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GAAG,IAAI;IAI1E,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,qBAAqB;IAQtB,IAAI,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,KAAK,GAAG,IAAI;IAGxC,QAAQ,CAAC,SAAS,EAAE,UAAU,GAAG,IAAI;IAGrC,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAG9B,SAAS,CAAC,SAAS,EAAE,UAAU,GAAG,IAAI;IAGtC,MAAM,CAAC,SAAS,EAAE,UAAU;IAG5B,MAAM,IAAI,MAAM,EAAE;IAGZ,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC;IAGrB,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC;CAGnC"}

8
dist/index.js vendored
View File

@ -143,16 +143,16 @@ export default class HyperswarmWeb extends EventEmitter {
this._queuedEmActions = []; this._queuedEmActions = [];
} }
join(topic, opts = {}) { join(topic, opts = {}) {
return this._activeRelay?.join(topic, opts); return this._processOrQueueAction("join", ...arguments);
} }
joinPeer(publicKey) { joinPeer(publicKey) {
return this._activeRelay?.joinPeer(publicKey); return this._processOrQueueAction("joinPeer", ...arguments);
} }
leave(topic) { leave(topic) {
return this._activeRelay?.leave(topic); return this._processOrQueueAction("leave", ...arguments);
} }
leavePeer(publicKey) { leavePeer(publicKey) {
return this._activeRelay?.leavePeer(publicKey); return this._processOrQueueAction("leavePeer", ...arguments);
} }
status(publicKey) { status(publicKey) {
return this._activeRelay?.status(publicKey); return this._activeRelay?.status(publicKey);