@logbrew/sdk 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/issue-stack.cjs +2 -6
- package/package.json +1 -1
package/issue-stack.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const MAX_ISSUE_STACK_FRAMES = 32;
|
|
|
4
4
|
const MAX_ISSUE_STACK_FUNCTION_LENGTH = 256;
|
|
5
5
|
const MAX_ISSUE_STACK_MODULE_LENGTH = 512;
|
|
6
6
|
const SAFE_DEBUG_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/iu;
|
|
7
|
-
const LOCAL_ABSOLUTE_PATH_PATTERN =
|
|
7
|
+
const LOCAL_ABSOLUTE_PATH_PATTERN = /(?:^|\s)(?:\/(?:Users|home|private|tmp|var|Volumes)\/|[A-Za-z]:[\\/])/u;
|
|
8
8
|
|
|
9
9
|
function buildIssueStackHelpers({ SdkError }) {
|
|
10
10
|
function javascriptStackEvidence(stack, debugIdMap) {
|
|
@@ -27,10 +27,6 @@ function buildIssueStackHelpers({ SdkError }) {
|
|
|
27
27
|
return { frames, truncated };
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
function javascriptStackFrames(stack, debugIdMap) {
|
|
31
|
-
return javascriptStackEvidence(stack, debugIdMap).frames;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
30
|
function validateIssueStackFrames(stackFrames) {
|
|
35
31
|
if (stackFrames === undefined) {
|
|
36
32
|
return undefined;
|
|
@@ -90,7 +86,7 @@ function buildIssueStackHelpers({ SdkError }) {
|
|
|
90
86
|
});
|
|
91
87
|
}
|
|
92
88
|
|
|
93
|
-
return { javascriptStackEvidence,
|
|
89
|
+
return { javascriptStackEvidence, validateIssueStackFrames };
|
|
94
90
|
}
|
|
95
91
|
|
|
96
92
|
function parseJavaScriptStackFrame(rawLine) {
|