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

use-broadcast-ts

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-broadcast-ts - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

8

dist/index.js

@@ -149,2 +149,10 @@ 'use strict';

/**
* If BroadcastChannel is not supported, return the basic store
*/
if (typeof BroadcastChannel === 'undefined') {
console.warn('BroadcastChannel is not supported in this browser. The store will not be shared.');
return f(set, get, store);
}
/**
* Types

@@ -151,0 +159,0 @@ */

8

package.json
{
"name": "use-broadcast-ts",
"version": "1.4.0",
"version": "1.4.1",
"description": "Use the Broadcast Channel API in React easily with hooks or Zustand, and Typescript!",

@@ -89,8 +89,6 @@ "type": "module",

"homepage": "https://github.com/Romainlg29/use-broadcast",
"peerDependencies": {
"optionalDependencies": {
"zustand": "^4.0.0",
"react": ">=18.0"
},
"optionalDependencies": {
"zustand": "^4.0.0"
}
}

@@ -48,2 +48,10 @@ import { StateCreator, StoreMutatorIdentifier } from 'zustand';

/**
* If BroadcastChannel is not supported, return the basic store
*/
if (typeof BroadcastChannel === 'undefined') {
console.warn('BroadcastChannel is not supported in this browser. The store will not be shared.');
return f(set, get, store);
}
/**
* Types

@@ -50,0 +58,0 @@ */

Sorry, the diff of this file is not supported yet

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