
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
bitbucket-logging
Advanced tools
A logging handler for NodeJS that opens BitBucket issues on provided exception. Forked on https://github.com/valeriansaliou/node-gitlab-logging
Node BitBucket Logging is a custom log issue handler that has been written with the purpose of auto-opening (and assigning) issues on BitBucket everytime something goes south with NodeJS code.
Useful for production deployments, where you want to track the issues directly from BitBucket, not from a dark server log file.
Node BitBucket Logging is smart enough to recognize similar errors, thus not opening blindly a new issue everytime.
Add bitbucket-logging
to your package.json dependencies.
Then, require and configure the module using the code below:
bitbucket_logging = require('bitbucket-logging');
/* GitLab options */
bitbucket_logging.configure({
//Required
slug:"PROJECT_NAME",
owner:"OWNER",
username:"USERNAME",
password:"PASSWORD",
// Optional
environment: 'production' // The NodeJS environment in use, useful when you pre-process the NODE_ENV value
});
// Boom, the error variable value will be redirected to your Bitbucket issues tracker!
bitbucket_logging.handle(error, callback);
process.on('uncaughtException', function(error) {
var error_message = error.stack || error;
// Log to console
console.error('uncaughtException', error_message);
// Pipe error to Bitbucket
bitbucket_logging.handle(error_message, function{
// Recommended: kill the NodeJS process (restart a clean one via forever)
process.exit(1);
});
});
FAQs
A logging handler for NodeJS that opens BitBucket issues on provided exception. Forked on https://github.com/valeriansaliou/node-gitlab-logging
We found that bitbucket-logging 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.