Comparing version
@@ -200,3 +200,3 @@ 'use strict'; | ||
); | ||
if (this.count(eventName) > 0 || this.count(ANY_EVENT) > 0) { | ||
if (eventName === ANY_EVENT ? this.count() > 0 : this.count(eventName) > 0 || this.count(ANY_EVENT) > 0) { | ||
startRelay(relayListener, this); | ||
@@ -203,0 +203,0 @@ } |
{ | ||
"name": "remitter", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "A TypeScript friendly event emitter with easy re-emitting events.", |
@@ -216,3 +216,7 @@ import type { | ||
); | ||
if (this.count(eventName) > 0 || this.count(ANY_EVENT) > 0) { | ||
if ( | ||
eventName === ANY_EVENT | ||
? this.count() > 0 | ||
: this.count(eventName) > 0 || this.count(ANY_EVENT) > 0 | ||
) { | ||
startRelay(relayListener, this as unknown as Remitter<TConfig>); | ||
@@ -219,0 +223,0 @@ } |
Sorry, the diff of this file is not supported yet
32287
0.51%884
0.45%