
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
redux-fetch
Advanced tools
Declarative data fetching for redux
I am developing this still as we speak, I would not expect anything in here to work at the moment, or the documentation to be up to date. I'll remove this if/when it's more stable. It's just up here for my own use and so that people can get the gist of the concept and play around with it if they want.
Add redux-fetch to your redux middleware stack (preferably at the beginning). Then, instead of imperatively calling fetch in your action creators, you can produce descriptions of the fetch you want to perform, and the middleware will execute it for you.
function createUser (user) {
return {
type: 'FETCH',
payload: {
method: 'POST',
url: '/user',
body: user
},
meta: {
then: logUserIn
}
}
}
function logUserIn () {
return {
type: 'USER_DID_LOGIN'
}
}
Less-verbose ways of doing this. Going to try to create some creators for these things, so that the API can be just like fetch. Something like:
var fetch = require('declarative-fetch')
function createUser (user) {
return fetch('/user/', {
method: 'post',
body: user
})
.then(logUserIn)
}
FAQs
Declarative data-fetching for redux
We found that redux-fetch 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.