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.2.4 to 1.3.0

8

dist/index.js

@@ -183,2 +183,9 @@ 'use strict';

/**
* If the stores should not be synced, return.
*/
if (options.unsync) {
return;
}
/**
* Get the fresh states

@@ -218,2 +225,3 @@ */

}
/**

@@ -220,0 +228,0 @@ * Remove all the functions and symbols from the store

@@ -14,2 +14,7 @@ import { StateCreator, StoreMutatorIdentifier } from 'zustand';

mainTimeout?: number;
/**
* If the stores should be synced after the first sync or not.
* @default undefined
*/
unsync?: boolean;
};

@@ -16,0 +21,0 @@ /**

2

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

@@ -5,0 +5,0 @@ "type": "module",

@@ -16,2 +16,8 @@ import { StateCreator, StoreMutatorIdentifier } from 'zustand';

mainTimeout?: number;
/**
* If the stores should be synced after the first sync or not.
* @default undefined
*/
unsync?: boolean;
};

@@ -79,2 +85,9 @@

/**
* If the stores should not be synced, return.
*/
if (options.unsync) {
return;
}
/**
* Get the fresh states

@@ -112,4 +125,2 @@ */

type s = { [key: string]: unknown };
/**

@@ -116,0 +127,0 @@ * Remove all the functions and symbols from the store

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