@foundit/broadcasterjs
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -170,3 +170,4 @@ var __assign = (this && this.__assign) || function () { | ||
return; | ||
console.log("%cBroadcast: ".concat(string), 'color:#bada55', obj ? obj : '--'); | ||
var style = 'color:#bada55;background:#666;padding:0.3rem 0.5rem;border-radius:3px'; | ||
console.log("%c".concat(string), style, obj ? obj : '--'); | ||
} | ||
@@ -173,0 +174,0 @@ }; |
@@ -173,3 +173,4 @@ "use strict"; | ||
return; | ||
console.log("%cBroadcast: ".concat(string), 'color:#bada55', obj ? obj : '--'); | ||
var style = 'color:#bada55;background:#666;padding:0.3rem 0.5rem;border-radius:3px'; | ||
console.log("%c".concat(string), style, obj ? obj : '--'); | ||
} | ||
@@ -176,0 +177,0 @@ }; |
{ | ||
"name": "@foundit/broadcasterjs", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A simple yet powerful pub/sub javascript event bus", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,5 +7,6 @@ # broadcasterjs | ||
- framework agnostic | ||
- unintrusive as a dependency | ||
- minimal footprint | ||
- optimised for SPA applications | ||
- unintrusive as a dependency | ||
- no own dependencies | ||
@@ -26,5 +27,8 @@ [Demo app available](http://broadcasterjs.hervy.se) | ||
broadcast.on(['MYBROADCAST-ID', flagReceivedFunction]) | ||
return () => broadcast.off(['MYBROADCAST-ID', flagReceivedFunction]) | ||
}, [flagReceivedFunction]) | ||
``` | ||
The return function is optional, BroadcasterJS is managing this anyway but React migth warn about memory leaks never the less. | ||
##### START SUBSCRIPTION VANILLA JS | ||
@@ -31,0 +35,0 @@ |
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
22542
444
92