light-event-bus
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,1 @@ | ||
(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):(a=a||self,b(a.EVENT_BUS={}))})(this,function(a){"use strict";function c(b){return b?(b^16*Math.random()>>b/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,c)}function b(){var a={};this.subscribe=function(b,d){var e=c();return a[b]||(a[b]={}),a[b][e]=d,{unsubscribe:function(){delete a[b][e],0===Object.keys(a[b]).length&&delete a[b]}}},this.publish=function(b,c){a[b]&&Object.keys(a[b]).forEach(function(d){return a[b][d](c)})}}var d=new b;a.EventBus=b,a.EventBusSingleton=d,Object.defineProperty(a,"__esModule",{value:!0})}); | ||
(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):(a=a||self,b(a.EVENT_BUS={}))})(this,function(a){"use strict";function b(){var a={};this.subscribe=function(b,c){var d=Symbol("id");return a[b]||(a[b]={}),a[b][d]=c,{unsubscribe:function(){delete a[b][d],0===Object.getOwnPropertySymbols(a[b]).length&&delete a[b]}}},this.publish=function(b,c){a[b]&&Object.getOwnPropertySymbols(a[b]).forEach(function(d){return a[b][d](c)})}}var c=new b;a.EventBus=b,a.EventBusSingleton=c,Object.defineProperty(a,"__esModule",{value:!0})}); |
{ | ||
"name": "light-event-bus", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Lightweight event bus for node and the browser.", | ||
@@ -5,0 +5,0 @@ "main": "build/light-event-bus.min.js", |
@@ -28,4 +28,3 @@ # light-event-bus.js | ||
This file is also delivered through a CDN at this address: | ||
- `light-event-bus.min.js`: [https://unpkg.com/light-event-bus@0.0.3-development/build/event-bus.min.js](https://unpkg.com/light-event-bus@0.0.0-development/build/event-bus.min.js) | ||
This file is also delivered through a CDN at [this address](https://unpkg.com/light-event-bus@1.0.0/build/light-event-bus.min.js). | ||
@@ -32,0 +31,0 @@ #### Example - browser |
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
8808
172