
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-dumb-image
Advanced tools
When dealing with third-party API, more than often I have to deal with external images. react-dumb-image provides an easy solution to show a fallback image if given image is invalid. This is achieved by creating an image new Image() on the fly and verify whether or not the src is valid by attaching onerror event. I didn't use react onerror (e.g. <img onError={this.handleError} src={src} />) because users will see a 'flip' from broken image to fallback image.
import React from 'react';
import DumbImage from 'react-dumb-image';
React.render((
<DumbImage
src="invalid.jpg"
default="valid.jpg"
</DumbImage>
), document.body);
FAQs
A React component for providing a fallback img solution
We found that react-dumb-image 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

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.