@microsoft/ads-extension-telemetry
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -248,3 +248,9 @@ "use strict"; | ||
props.message = includeMessage === true ? error.message : ''; | ||
props.stack = error.stack || ''; | ||
let stack = error.stack || ''; | ||
// Stack trace contains the message, so remove it if we aren't set to include it | ||
if (includeMessage !== true && error.message) { | ||
const regex = new RegExp(error.message, 'g'); | ||
stack = stack.replace(regex, '<REDACTED: error-message>'); | ||
} | ||
props.stack = stack; | ||
} | ||
@@ -251,0 +257,0 @@ else { |
{ | ||
"name": "@microsoft/ads-extension-telemetry", | ||
"description": "A module for first party Microsoft extensions to report consistent telemetry.", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Microsoft Corporation" |
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
39045
567