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

@foundit/broadcasterjs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foundit/broadcasterjs - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

3

dist/esm/index.js

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

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