
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.
cycle-image-loading-driver
Advanced tools
This driver takes in a sink stream of images to load and returns a source stream that emits whenever an image is loaded.
npm install --save cycle-image-loading-driver
yarn add cycle-image-loading-driver
Like any other driver, the (default) function makeImageLoadingDriver should be called in the run function.
run(main, {
imagesToLoad: makeImageLoadingDriver(),
})
The function makeImageLoadingDriver takes no options.
The sink imagesToLoad should be a stream emiting an array of image urls.
function main() {
// ...
return {
imagesToLoad: xs.of([url1, url2, url3]),
}
}
The source stream produced emits an object in which the keys is the image URL and the value an object with properties loaded and possibly error.
function main(sources) {
sources.imagesToLoad.map((images) => {
const isImg1Loaded = images[img1Url].loaded
//...
})
//...
}
To loop through all images use Object.keys
function main(sources) {
sources.imagesToLoad.map((images) => {
const allImages = Object.keys(images).map((key) => {
const imgObj = images[key]
return { ...imgObj, id: key }
})
//...
})
//...
}
FAQs
A cycle.js driver for preloading images
We found that cycle-image-loading-driver 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.