remote-redux-devtools
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -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 ? |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24467
338
159