Comparing version 0.7.0 to 0.7.1
@@ -34,3 +34,3 @@ 'use strict'; | ||
function getEventProducers(instance, eventName) { | ||
const key = typeof eventName === 'string' ? eventName : anyProducer; | ||
const key = typeof eventName === 'string' || typeof eventName === 'symbol' ? eventName : anyProducer; | ||
const producers = producersMap.get(instance); | ||
@@ -317,3 +317,3 @@ if (!producers.has(key)) { | ||
for (const eventName of eventNames) { | ||
if (typeof eventName === 'string') { | ||
if (typeof eventName === 'string' || typeof eventName === 'symbol') { | ||
getListeners(this, eventName).clear(); | ||
@@ -320,0 +320,0 @@ |
{ | ||
"name": "emittery", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Simple and modern async event emitter", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34777