Socket
Socket
Sign inDemoInstall

redux-devtools

Package Overview
Dependencies
16
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.4 to 2.1.5

16

lib/devTools.js

@@ -104,2 +104,4 @@ 'use strict';

if (liftedState === undefined) liftedState = initialLiftedState;
var shouldRecomputeStates = true;
var committedState = liftedState.committedState;

@@ -139,2 +141,4 @@ var stagedActions = liftedState.stagedActions;

currentStateIndex = liftedAction.index;
// Optimization: we know the history has not changed.
shouldRecomputeStates = false;
break;

@@ -155,4 +159,12 @@ case ActionTypes.SWEEP:

}
stagedActions = [].concat(stagedActions, [liftedAction.action]);
timestamps = [].concat(timestamps, [liftedAction.timestamp]);
// Optimization: we know that the past has not changed.
shouldRecomputeStates = false;
// Instead of recomputing the states, append the next one.
var previousEntry = computedStates[computedStates.length - 1];
var nextEntry = computeNextEntry(reducer, liftedAction.action, previousEntry.state, previousEntry.error);
computedStates = [].concat(computedStates, [nextEntry]);
break;

@@ -173,3 +185,5 @@ case ActionTypes.SET_MONITOR_STATE:

computedStates = recomputeStates(reducer, committedState, stagedActions, skippedActions);
if (shouldRecomputeStates) {
computedStates = recomputeStates(reducer, committedState, stagedActions, skippedActions);
}

@@ -176,0 +190,0 @@ return {

2

package.json
{
"name": "redux-devtools",
"version": "2.1.4",
"version": "2.1.5",
"description": "Redux DevTools with hot reloading and time travel",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc