
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
delicate-error-reporter
Advanced tools
A polite error reporter which delicately awaits your attention at the corner of the screen
This one displays error unobtrusively. It won't jump on you.
Feed component with fresh errors.
Specifically designed to work with react-transform-webpack-hmr and react-transform-catch-errors. See example.
May even work with react-hot-loader, but I haven't tested it. Sidenote: All hail to the new king, react-transform-webpack-hmr!
The right way to get things done:
Install the Babel plugin:
npm install --save-dev babel-plugin-react-transform
Then, install the transform:
npm install --save-dev react-transform-catch-errors
Finally, install this one package for rendering errors:
npm install --save-dev delicate-error-reporter
Now edit your .babelrc to include extra.babel-plugin-react-transform.
{
"stage": 0,
"plugins": [
"react-transform"
],
"extra": {
"react-transform": [{
"target": "react-transform-catch-errors",
"imports": ["react", "delicate-error-reporter"]
}]
}
}
And that's it.
import DelicateErrorReporter from 'delicate-error-reporter';
const e = new Error('Ergh');
ReactDOM.render(<DelicateErrorReporter error={ e } />, root);
I must say that I borrowed a lot of redbox-react's code. I really feel myself ashamed :(
Many thanks goes to @gaearon for his awesome work and many thanks goes to @KeywordBrain for inspiration.
MIT, see LICENSE for details.
FAQs
A polite error reporter which delicately awaits your attention at the corner of the screen
We found that delicate-error-reporter 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.