@logtail/node
Advanced tools
@@ -41,3 +41,3 @@ "use strict"; | ||
| const stack = stack_trace_1.default.get(fn); | ||
| if (stack.length > 0) | ||
| if ((stack === null || stack === void 0 ? void 0 : stack.length) > 0) | ||
| return getRelevantStackFrame(stack, stackContextHint); | ||
@@ -44,0 +44,0 @@ } |
@@ -34,3 +34,3 @@ import { dirname, relative } from "path"; | ||
| const stack = stackTrace.get(fn); | ||
| if (stack.length > 0) | ||
| if ((stack === null || stack === void 0 ? void 0 : stack.length) > 0) | ||
| return getRelevantStackFrame(stack, stackContextHint); | ||
@@ -37,0 +37,0 @@ } |
+3
-3
| { | ||
| "name": "@logtail/node", | ||
| "version": "0.4.20", | ||
| "version": "0.4.21", | ||
| "description": "Better Stack Node.js logger (formerly Logtail)", | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@logtail/core": "^0.4.20", | ||
| "@logtail/core": "^0.4.21", | ||
| "@logtail/types": "^0.4.20", | ||
@@ -59,3 +59,3 @@ "@msgpack/msgpack": "^2.5.1", | ||
| }, | ||
| "gitHead": "c8aebe6acdebe52df65bfbfc1a27f919b82ac201" | ||
| "gitHead": "8631392d3c7a619a45911ba33ca7ca6b3038e878" | ||
| } |
+1
-1
@@ -38,3 +38,3 @@ import { Context, StackContextHint } from "@logtail/types"; | ||
| const stack = stackTrace.get(fn as any); | ||
| if (stack.length > 0) return getRelevantStackFrame(stack, stackContextHint); | ||
| if (stack?.length > 0) return getRelevantStackFrame(stack, stackContextHint); | ||
| } | ||
@@ -41,0 +41,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
55362
0.27%Updated