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