Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
redux-persist-transform-filter-immutable
Advanced tools
Filter transformator for redux-persist supporting immutable.js
Filter transformator for redux-persist supporting immutable.js
npm install redux-persist-transform-filter-immutable
import createFilter from 'redux-persist-transform-filter-immutable';
// you want to store only a subset of your state of reducer one
const saveSubsetFilter = createFilter(
'myReducerOne',
['keyYouWantToSave1', 'keyYouWantToSave2']
);
// you want to load only a subset of your state of reducer two
const loadSubsetFilter = createFilter(
'myReducerTwo',
null,
['keyYouWantToLoad1', 'keyYouWantToLoad2']
);
// saving a subset and loading a different subset is possible
// but doesn't make much sense because you'd load an empty state
const saveAndloadSubsetFilter = createFilter(
'myReducerThree',
['one', 'two']
['three', 'four']
);
// deeply nested values can be used via arrays as path
const nestedSubsetFilter = createFilter(
'myReducerThree',
[['my', 'path'], ['my', 'other', 'path']],
[['my', 'path'], ['my', 'other', 'path']]
);
persistStore(store, {
transforms: [
saveSubsetFilter,
loadSubsetFilter,
saveAndloadSubsetFilter,
]
});
Thanks to Eduard Baun for redux-persist-transform-filter - on which this implementation is based.
FAQs
Filter transformator for redux-persist supporting immutable.js
The npm package redux-persist-transform-filter-immutable receives a total of 7,666 weekly downloads. As such, redux-persist-transform-filter-immutable popularity was classified as popular.
We found that redux-persist-transform-filter-immutable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.