Socket
Socket
Sign inDemoInstall

emittery

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emittery - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

4

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc