Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@balena/event-log
Advanced tools
Balena event logging facility.
$ npm install @balena/event-log
var EventLog = require('@balena/event-log')
var eventLogger = EventLog({
debug: true,
prefix: 'UI, CLI, etc.',
// Hooks:
beforeCreate: function (type, jsonData, applicationId, deviceId, callback) {
this.start('User ID', callback)
}
afterCreate: function (error, type, jsonData, applicationId, deviceId) {
if (type === 'User Logout') {
this.end()
}
if (error) {
console.error(error)
}
}
})
// Example logged event:
eventLoger.user.login(
{ json: 'data' }, // Or null
'Application ID', // Optional
'Device ID' // Optional
)
// Example logged event without params:
eventLoger.user.login()
prefix
- subsystem name like UI or CLI, acts as events names prefix[debug = false]
— will print some warningsbeforeCreate = function (type, jsonData, applicationId, deviceId, callback) { return callback() }
afterCreate = function (error, type, jsonData, applicationId, deviceId) {}
v6.8.0
FAQs
Balena events logging util
The npm package @balena/event-log receives a total of 422 weekly downloads. As such, @balena/event-log popularity was classified as not popular.
We found that @balena/event-log demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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 researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.