New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

winston-transport-rollbar-3

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-transport-rollbar-3 - npm Package Compare versions

Comparing version 3.2.4 to 3.2.5

35

lib/rollbar_transport.js

@@ -31,20 +31,23 @@

log(info, callback) {
const { level, message } = info;
setImmediate(() => {
this.emit('logged', info);
});
process.nextTick(() => {
const message = util.format(info.message, ...(info.splat || []));
const rollbarLevel = level === 'warn' ? 'warning' : level;
const level = info[Symbol.for('level')];
const message = info.message;
const meta = Object.assign({}, info);
delete meta.level;
delete meta.message;
delete meta.splat;
delete meta[Symbol.for('level')];
const cb = err => {
if (err) {
this.emit('error', err);
return callback(err);
}
this.emit('logged');
return callback(null, true);
};
const logMethod = this.rollbar[rollbarLevel] || this.rollbar.log;
return logMethod.apply(this.rollbar, [message, info, new Error(info.stack), cb]);
});
if (level === 'error') {
this.rollbar.error(message, meta, callback);
} else if (level === 'warn') {
this.rollbar.warning(message, meta, callback);
} else if (level === 'info') {
this.rollbar.info(message, meta, callback);
} else if (level === 'debug') {
this.rollbar.debug(message, meta, callback);
}
}

@@ -51,0 +54,0 @@ }

{
"name": "winston-transport-rollbar-3",
"description": "An updated rollbar transport for winston",
"version": "3.2.4",
"version": "3.2.5",
"author": "Andreas Zoellner",

@@ -6,0 +6,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc