mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Remove lodash from utils
This commit is contained in:
parent
5f07399f3b
commit
38af077a64
|
@ -39,7 +39,6 @@
|
||||||
"get-params": "^0.1.2",
|
"get-params": "^0.1.2",
|
||||||
"immutable": "^4.3.7",
|
"immutable": "^4.3.7",
|
||||||
"jsan": "^3.1.14",
|
"jsan": "^3.1.14",
|
||||||
"lodash-es": "^4.17.21",
|
|
||||||
"nanoid": "^5.0.7",
|
"nanoid": "^5.0.7",
|
||||||
"redux": "^5.0.1"
|
"redux": "^5.0.1"
|
||||||
},
|
},
|
||||||
|
@ -51,7 +50,6 @@
|
||||||
"@babel/preset-env": "^7.25.3",
|
"@babel/preset-env": "^7.25.3",
|
||||||
"@babel/preset-typescript": "^7.24.7",
|
"@babel/preset-typescript": "^7.24.7",
|
||||||
"@types/jsan": "^3.1.5",
|
"@types/jsan": "^3.1.5",
|
||||||
"@types/lodash-es": "^4.17.12",
|
|
||||||
"@types/node": "^20.14.14",
|
"@types/node": "^20.14.14",
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
"typescript": "~5.5.4"
|
"typescript": "~5.5.4"
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import { mapValues } from 'lodash-es';
|
|
||||||
import { PerformAction } from '@redux-devtools/core';
|
import { PerformAction } from '@redux-devtools/core';
|
||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
|
|
||||||
|
@ -23,10 +22,15 @@ function filterActions(
|
||||||
actionSanitizer: ((action: Action<string>, id: number) => Action) | undefined,
|
actionSanitizer: ((action: Action<string>, id: number) => Action) | undefined,
|
||||||
) {
|
) {
|
||||||
if (!actionSanitizer) return actionsById;
|
if (!actionSanitizer) return actionsById;
|
||||||
return mapValues(actionsById, (action, id: number) => ({
|
return Object.fromEntries(
|
||||||
...action,
|
Object.entries(actionsById).map(([actionId, action]) => [
|
||||||
action: actionSanitizer(action.action, id),
|
actionId,
|
||||||
}));
|
{
|
||||||
|
...action,
|
||||||
|
action: actionSanitizer(action.action, actionId as unknown as number),
|
||||||
|
},
|
||||||
|
]),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterStates(
|
function filterStates(
|
||||||
|
|
|
@ -2617,9 +2617,6 @@ importers:
|
||||||
jsan:
|
jsan:
|
||||||
specifier: ^3.1.14
|
specifier: ^3.1.14
|
||||||
version: 3.1.14
|
version: 3.1.14
|
||||||
lodash-es:
|
|
||||||
specifier: ^4.17.21
|
|
||||||
version: 4.17.21
|
|
||||||
nanoid:
|
nanoid:
|
||||||
specifier: ^5.0.7
|
specifier: ^5.0.7
|
||||||
version: 5.0.7
|
version: 5.0.7
|
||||||
|
@ -2648,9 +2645,6 @@ importers:
|
||||||
'@types/jsan':
|
'@types/jsan':
|
||||||
specifier: ^3.1.5
|
specifier: ^3.1.5
|
||||||
version: 3.1.5
|
version: 3.1.5
|
||||||
'@types/lodash-es':
|
|
||||||
specifier: ^4.17.12
|
|
||||||
version: 4.17.12
|
|
||||||
'@types/node':
|
'@types/node':
|
||||||
specifier: ^20.14.14
|
specifier: ^20.14.14
|
||||||
version: 20.14.14
|
version: 20.14.14
|
||||||
|
|
Loading…
Reference in New Issue
Block a user