Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
airbrake-mini-client
Advanced tools
This is a lightweight client for airbrake (airbrake.io). The goal of this implementation is to provide a simpler and less invasive logging feature.
var AirbrakeMini = require('airbrake-mini-client')
var airbrakeMini = AirbrakeMini({ projectId: 12345, projectKey: 'ABCDEFGHILMNO' }) // projectId and projectKey are provided by airbrake
try {
// critical code
} catch (e) {
airbrakeMini.notify(e)
}
or
Promise.resolve()
.then(() => {
// something might go wrong here
})
.catch(e => {
airbrakeMini.notify(e)
})
airbrakeMini.notify({
error: new Error('BOOM'),
context: { severity: 'warning' }
params: {}, // put here any field you want
environment: {}, // put here any field you want
session: {} // put here any field you want
})
AirbrakeMini constructor takes the following mandatory parameter:
I strongly suggest to provide this optional parameter:
These other paramenters are mostly for testing:
{
"id": "",
"errors": [
{
"type": "ReferenceError",
"message": "testing airbrake, please ignore! Special edition",
"backtrace": [...]
}
],
"context": {
"severity": "error",
"windowError": true,
"history": [],
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"url": "https://www.tes.com/jobs/apply/test/airbrake",
"rootDirectory": "https://www.tes.com",
"environment": "production",
"language": "JavaScript",
"notifier": {
"name": "airbrake-js",
"version": "1.4.3",
"url": "https://github.com/airbrake/airbrake-js"
}
},
"params": {},
"environment": {},
"session": {}
}
FAQs
A lightweight alternative to airbrake-js.
The npm package airbrake-mini-client receives a total of 0 weekly downloads. As such, airbrake-mini-client popularity was classified as not popular.
We found that airbrake-mini-client 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.