@distributed-systems/callsite
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "@distributed-systems/callsite", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "get structured callsite information", | ||
@@ -5,0 +5,0 @@ "main": "src/Callsite.js", |
@@ -49,5 +49,6 @@ 'use strict'; | ||
err, | ||
dontCapture, | ||
fn = this.getStack, | ||
} = {}) { | ||
const frames = this.getRawStack({slice, limit, err, fn}); | ||
const frames = this.getRawStack({slice, limit, err, fn, dontCapture}); | ||
return frames.map(frame => this.convertStackFrame(frame)) | ||
@@ -72,2 +73,3 @@ } | ||
err = new Error(), | ||
dontCapture = false, | ||
} = {}) { | ||
@@ -81,3 +83,3 @@ const originalFunction = Error.prepareStackTrace; | ||
// caputre from a cerrtain offset | ||
Error.captureStackTrace(err, fn); | ||
if (!dontCapture) Error.captureStackTrace(err, fn); | ||
@@ -84,0 +86,0 @@ // revert |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4718
122