Socket
Socket
Sign inDemoInstall

remote-redux-devtools

Package Overview
Dependencies
4
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

23

lib/devTools.js

@@ -23,2 +23,5 @@ 'use strict';

var monitorActions = [// To be skipped for relaying actions
'TOGGLE_ACTION', 'SWEEP', 'IMPORT_STATE', 'SET_ACTIONS_ACTIVE'];
var instanceName = void 0;

@@ -72,14 +75,12 @@ var socket = void 0;

function handleMessages(message) {
if (message.type === 'ACTION') {
if (message.type === 'IMPORT' || message.type === 'SYNC' && socket.id && message.id !== socket.id) {
store.liftedStore.dispatch({
type: 'IMPORT_STATE', nextLiftedState: (0, _jsan.parse)(message.state)
});
}if (message.type === 'UPDATE' || message.type === 'IMPORT') {
relay('STATE', filterStagedActions(store.liftedStore.getState()));
} else if (message.type === 'ACTION') {
store.dispatch(message.action);
}if (message.type === 'DISPATCH') {
} else if (message.type === 'DISPATCH') {
store.liftedStore.dispatch(message.action);
} else if (message.type === 'UPDATE') {
relay('STATE', filterStagedActions(store.liftedStore.getState()));
} else if (message.type === 'SYNC') {
if (socket.id && message.id !== socket.id) {
store.liftedStore.dispatch({
type: 'IMPORT_STATE', nextLiftedState: (0, _jsan.parse)(message.state)
});
}
} else if (message.type === 'START') {

@@ -134,3 +135,3 @@ isMonitored = true;

relay('INIT', state, { timestamp: Date.now() });
} else if (lastAction !== 'TOGGLE_ACTION' && lastAction !== 'SWEEP') {
} else if (monitorActions.indexOf(lastAction) === -1) {
if (lastAction === 'JUMP_TO_STATE') return;

@@ -137,0 +138,0 @@ relay('ACTION', state, liftedAction, nextActionId);

{
"name": "remote-redux-devtools",
"version": "0.2.0",
"version": "0.2.1",
"description": "Relay Redux actions to remote Redux DevTools.",

@@ -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