Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@compas/stdlib

Package Overview
Dependencies
Maintainers
1
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compas/stdlib - npm Package Compare versions

Comparing version 0.10.5 to 0.10.6

2

package.json
{
"name": "@compas/stdlib",
"version": "0.10.5",
"version": "0.10.6",
"description": "All kinds of utility functions",

@@ -5,0 +5,0 @@ "exports": {

@@ -132,4 +132,10 @@ import { pino } from "pino";

info: (message) => {
childLogger.info({ message });
if (!_compasSentryExport?.getActiveSpan?.()) {
// Don't add breadcrumbs if we don't have a span. This prevents unmatched logs from showing up in a random span.
return;
}
if (!addedContextAsBreadcrumb) {
// @ts-expect-error
_compasSentryExport.addBreadcrumb({

@@ -146,3 +152,2 @@ category: context.type,

// @ts-expect-error
_compasSentryExport.addBreadcrumb({

@@ -155,8 +160,12 @@ category: context.type,

});
childLogger.info({ message });
},
error: (message) => {
childLogger.error({ message });
if (!_compasSentryExport?.getActiveSpan?.()) {
// Don't add breadcrumbs if we don't have a span. This prevents unmatched logs from showing up in a random span.
return;
}
if (!addedContextAsBreadcrumb) {
// @ts-expect-error
_compasSentryExport.addBreadcrumb({

@@ -173,3 +182,2 @@ category: "log",

// @ts-expect-error
_compasSentryExport.addBreadcrumb({

@@ -182,4 +190,2 @@ category: "log",

});
childLogger.error({ message });
},

@@ -186,0 +192,0 @@ };

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