@matteodepalo/event-bus
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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", |
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
8226
120