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

redux-persist

Package Overview
Dependencies
Maintainers
2
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-persist - npm Package Compare versions

Comparing version 5.6.4 to 5.6.5

3

es/persistReducer.js

@@ -96,3 +96,4 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var inboundState = action.payload;
var reconciledRest = stateReconciler !== false ? stateReconciler(inboundState, state, reducedState, config) : reducedState;
// only reconcile state if stateReconciler and inboundState are both defined
var reconciledRest = stateReconciler !== false && inboundState !== undefined ? stateReconciler(inboundState, state, reducedState, config) : reducedState;

@@ -99,0 +100,0 @@ var _newState = _extends({}, reconciledRest, {

@@ -115,3 +115,4 @@ 'use strict';

var inboundState = action.payload;
var reconciledRest = stateReconciler !== false ? stateReconciler(inboundState, state, reducedState, config) : reducedState;
// only reconcile state if stateReconciler and inboundState are both defined
var reconciledRest = stateReconciler !== false && inboundState !== undefined ? stateReconciler(inboundState, state, reducedState, config) : reducedState;

@@ -118,0 +119,0 @@ var _newState = _extends({}, reconciledRest, {

{
"name": "redux-persist",
"version": "5.6.4",
"version": "5.6.5",
"description": "persist and rehydrate redux stores",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -135,4 +135,5 @@ // @flow

let inboundState = action.payload
// only reconcile state if stateReconciler and inboundState are both defined
let reconciledRest: State =
stateReconciler !== false
stateReconciler !== false && inboundState !== undefined
? stateReconciler(inboundState, state, reducedState, config)

@@ -139,0 +140,0 @@ : reducedState

Sorry, the diff of this file is not supported yet

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