Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@matteodepalo/event-bus

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matteodepalo/event-bus - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

dist/index.d.ts

@@ -9,4 +9,3 @@ declare global {

declare class EventBus {
private static instance;
private static idCounter;
private idCounter;
private subscriptions;

@@ -13,0 +12,0 @@ private constructor();

@@ -5,2 +5,3 @@ "use strict";

function EventBus() {
this.idCounter = 0;
this.subscriptions = {};

@@ -17,3 +18,3 @@ }

var _this = this;
var id = "event-" + EventBus.idCounter++;
var id = "event-" + this.idCounter++;
if (!this.subscriptions[event]) {

@@ -39,5 +40,4 @@ this.subscriptions[event] = {};

};
EventBus.idCounter = 0;
return EventBus;
}());
exports.default = EventBus.Instance;
{
"name": "@matteodepalo/event-bus",
"version": "1.0.0",
"version": "1.0.1",
"description": "A lightweight event bus for Javascript",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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