
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
micro-rollbar
Advanced tools
Rollbar error handler for Zeit's Micro
npm install --save micro-rollbar
Using the global error handler:
const {createError} = require('micro')
const microRollbar = require('micro-rollbar')
const errorHandler = microRollbar({
accessToken: 'ROLLBAR_ACCESS_TOKEN'
})
module.exports = errorHandler(async (req, res) => {
throw createError(500, 'Reported to rollbar')
})
Using the global error handler with additional options:
const {send} = require('micro')
const microRollbar = require('micro-rollbar')
const {debug, info, warning, error, critical} = microRollbar
// See Rollbar documentation for available options.
// https://rollbar.com/docs/notifier/rollbar.js/#standalone
const errorHandler = microRollbar({
accessToken: 'ROLLBAR_ACCESS_TOKEN',
environment: process.env.NODE_ENV || 'development',
host: 'app.domain.com',
enabled: process.env.NODE_ENV !== 'test'
})
module.exports = errorHandler(async (req, res) => {
await info('Reported to rollbar')
send(res, 200, 'Ready!')
})
Thanks goes to these wonderful people (emoji key):
Brent Mealhouse 💻 📖 ⚠️ |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
yarn
yarn link
yarn test -- --watch
and start making your changesyarn link micro-rollbar
to test your changes in an actual projectMIT
FAQs
Rollbar error handler for Zeit's Micro
The npm package micro-rollbar receives a total of 0 weekly downloads. As such, micro-rollbar popularity was classified as not popular.
We found that micro-rollbar 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.