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.
combine-reducers
Advanced tools
A stand-alone, Redux compatible implementation of combine reducers
This is a standalone implementation of the combine reducers method from redux. You might ask, why would you not just use Redux? Redux comes with a bunch of other opinions that I personally do not fully subscribe to. Also, I hope to make some changes to improve on the existing pattern.
This module also removes most of the opinionated type checking stuff that Redux does. I would rather document the module and trust users to use it properly than add a bunch of code to force them into my opinions. Why shouldn't a reducer return undefined? Also it makes it much smaller (13 lines compared to 139).
$ npm install --save combine-reducers
var combineReducers = require('combine-reducers');
var reducer = combineReducers({
foo: function (store, action) {
return action.type === 'incr-foo' ? store + 1 : store;
},
bar: function (store, action) {
return action.type === 'incr-bar' ? store + 1 : store;
}
});
reducer({
foo: 1,
bar: 2
}, {
type: 'incr-foo'
}); // {foo: 2, bar: 1}
FAQs
A stand-alone, Redux compatible implementation of combine reducers
The npm package combine-reducers receives a total of 462 weekly downloads. As such, combine-reducers popularity was classified as not popular.
We found that combine-reducers 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.