*Update dist

This commit is contained in:
Derrick Hammer 2023-02-01 04:51:05 -05:00
parent 5472397958
commit 9ae03e12e2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

8
dist/index.js vendored
View File

@ -95,22 +95,22 @@ export default class HyperswarmWeb extends EventEmitter {
this._relays.clear(); this._relays.clear();
} }
on(eventName, listener) { on(eventName, listener) {
return this._processOrQueueAction("on", arguments); return this._processOrQueueAction("on", ...arguments);
} }
addListener(eventName, listener) { addListener(eventName, listener) {
return this.on(eventName, listener); return this.on(eventName, listener);
} }
off(eventName, listener) { off(eventName, listener) {
return this._processOrQueueAction("off", arguments); return this._processOrQueueAction("off", ...arguments);
} }
removeListener(eventName, listener) { removeListener(eventName, listener) {
return this.off(eventName, listener); return this.off(eventName, listener);
} }
emit(eventName, ...args) { emit(eventName, ...args) {
return this._processOrQueueAction("emit", arguments); return this._processOrQueueAction("emit", ...arguments);
} }
once(eventName, listener) { once(eventName, listener) {
return this._processOrQueueAction("once", arguments); return this._processOrQueueAction("once", ...arguments);
} }
_processOrQueueAction(method, ...args) { _processOrQueueAction(method, ...args) {
if (this._activeRelay) { if (this._activeRelay) {