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.
focal-redux
Advanced tools
Focal-Redux
allows you to use all the power of Focal in a Redux application.
It helps you to implement Focal's Atom
in the Redux application by simplifying the code refactoring when you want to switch from Redux to Focal.
Futhermore, you can use all the advantages of both state-management in your application.
For example, Focal can help you with large collections of data or form management, and so on.
$ yarn add focal-redux
or
$ npm install --save focal-redux
You should wrap your Reducer
or ReducersMapObject
with subscribeAtom
function.
This function will automaticaly add action @@UPDATE_STORE@@
which will be dispatched when your atom updates.
import {subscribeStore} from 'focal-redux'
// Reducer:
subscribeAtom(reducer)
// ReducersMapObject
combineReducer(subscribeAtom({ //reducers }))
You should subscribe your atom to store using subscribeStore
function:
subscribeStore(atom, store)
npm start
: Runs npm run build
in watch modenpm run test
: Run test suitenpm run test:watch
: Run test suite in interactive watch modenpm run build
: Generage bundles and typingsnpm run lint
: Lints codeIf you think that we are missing any key features, please open a GitHub issue, or even better, a pull request. Any feedback you have about using focal-redux
would be greatly appreciated.
FAQs
Unknown package
We found that focal-redux 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.