Socket
Socket
Sign inDemoInstall

pino-sentry

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-sentry - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

32

dist/transport.js

@@ -110,3 +110,3 @@ "use strict";

const stack = chunk[this.stackAttributeKey] || '';
Sentry.configureScope(scope => {
Sentry.withScope(scope => {
if (this.isObject(tags)) {

@@ -118,18 +118,18 @@ Object.keys(tags).forEach(tag => scope.setTag(tag, tags[tag]));

}
// Capturing Errors / Exceptions
if (this.isSentryException(severity)) {
const error = message instanceof Error ? message : new ExtendedError({ message, stack });
setImmediate(() => {
Sentry.captureException(error);
cb();
});
}
else {
// Capturing Messages
setImmediate(() => {
Sentry.captureMessage(message, severity);
cb();
});
}
});
// Capturing Errors / Exceptions
if (this.isSentryException(severity)) {
const error = message instanceof Error ? message : new ExtendedError({ message, stack });
setImmediate(() => {
Sentry.captureException(error);
cb();
});
}
else {
// Capturing Messages
setImmediate(() => {
Sentry.captureMessage(message, severity);
cb();
});
}
}

@@ -136,0 +136,0 @@ validateOptions(options) {

{
"name": "pino-sentry",
"description": "@sentry/node transport for pino logger",
"version": "0.7.0",
"version": "0.8.0",
"author": "Andrew Avdeev <andrewww.avdeev@gmail.com>",

@@ -6,0 +6,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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