Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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
The npm package delicate-error-reporter receives a total of 5 weekly downloads. As such, delicate-error-reporter popularity was classified as not popular.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.