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

remote-redux-devtools

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote-redux-devtools - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

8

lib/devTools.js

@@ -87,3 +87,2 @@ 'use strict';

function relay(type, state, action, nextActionId) {
if ((0, _filters.isFiltered)(action, filters)) return;
var message = {

@@ -158,3 +157,7 @@ type: type,

instanceName = options.name;
if (options.filters) {
if (options.actionsBlacklist) {
filters = { blacklist: options.actionsBlacklist };
} else if (options.actionsWhitelist) {
filters = { whitelist: options.actionsWhitelist };
} else if (options.filters) {
filters = options.filters;

@@ -255,2 +258,3 @@ }

var liftedAction = liftedState.actionsById[nextActionId - 1];
if ((0, _filters.isFiltered)(liftedAction.action, filters)) return;
relay('ACTION', state, liftedAction, nextActionId);

@@ -257,0 +261,0 @@ if (!isExcess && maxAge) isExcess = liftedState.stagedActionIds.length >= maxAge;

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

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

@@ -111,3 +111,4 @@ Remote Redux DevTools

`maxAge` | *Number* of maximum allowed actions to be stored on the history tree, the oldest actions are removed once maxAge is reached. Default is `30`.
`filters` | *Map of arrays* named `whitelist` or `blacklist` to filter action types. See the example bellow.
`actionsBlacklist` | *array* of actions to be hidden in DevTools. Overwrites corresponding global setting in the options page. See the example bellow.
`actionsWhitelist` | *array* of actions to be shown. All other actions will be hidden in DevTools.
`actionSanitizer` | *Function* which takes action object and id number as arguments, and should return action object back. See the example bellow.

@@ -137,3 +138,3 @@ `stateSanitizer` | *Function* which takes state object and index as arguments, and should return state object back. See the example bellow.

hostname: 'localhost', port: 8000,
maxAge: 30, filters: { blacklist: ['EFFECT_RESOLVED'] },
maxAge: 30, actionsBlacklist: ['EFFECT_RESOLVED'],
actionSanitizer: (action) => (

@@ -140,0 +141,0 @@ action.type === 'FILE_DOWNLOAD_SUCCESS' && action.data ?

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