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

redux-state-sync

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-state-sync - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "redux-state-sync",
"version": "1.0.1",
"version": "1.0.2",
"description": "A middleware for redux to sync localstorage state in different tabs",

@@ -5,0 +5,0 @@ "main": "syncStorage.js",

@@ -34,3 +34,6 @@ import indexOf from 'lodash/indexOf';

const { stampedAction } = JSON.parse(event.newValue);
if (stampedAction && stampedAction.$time !== lastTimeStamp && indexOf(ignore, stampedAction.type) < 0) {
if (stampedAction
&& stampedAction.$time
!== lastTimeStamp
&& indexOf(ignore, stampedAction.type) < 0) {
lastTimeStamp = stampedAction.$time;

@@ -37,0 +40,0 @@ store.dispatch(stampedAction);

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