backtracker
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -19,6 +19,6 @@ "use strict"; | ||
const s = new Stack_1.default(); | ||
let isFirst = true; | ||
let index = 0; | ||
for (const c of es) { | ||
if (isFirst) { // Ignore BackTracker's stack frame | ||
isFirst = false; | ||
if (index < 2) { // Ignore BackTracker's stack frame and the "current frame" aka where BackTracker.stack was called | ||
index++; | ||
continue; | ||
@@ -39,2 +39,3 @@ } | ||
s.push(frame); | ||
index++; | ||
} | ||
@@ -41,0 +42,0 @@ for (const f of s) { |
{ | ||
"name": "backtracker", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Back track in JS code execution and find where a function was called", | ||
@@ -22,4 +22,4 @@ "main": "dist/index", | ||
"devDependencies": { | ||
"@types/node": "18.7.4", | ||
"typescript": "^4.7.4" | ||
"@types/node": "18.7.14", | ||
"typescript": "^4.8.2" | ||
}, | ||
@@ -26,0 +26,0 @@ "files": [ |
@@ -39,9 +39,9 @@ # BackTracker | ||
Frame { | ||
path: 'A:\\Windows\\Documents\\GitHub\\BackTracker\\example\\test.js', | ||
path: 'A:\\Windows\\Documents\\GitHub\\BackTracker\\example\\index.js', | ||
dir: 'A:\\Windows\\Documents\\GitHub\\BackTracker\\example', | ||
filename: 'test.js', | ||
filename: 'index.js', | ||
async: false, | ||
scope: 'epic', | ||
scope: 'notEpic', | ||
line: 5, | ||
column: 50, | ||
column: 2, | ||
anonymous: false, | ||
@@ -53,15 +53,15 @@ parent: Frame { | ||
async: false, | ||
scope: 'notEpic', | ||
line: 5, | ||
column: 2, | ||
anonymous: false, | ||
scope: '<anonymous>', | ||
line: 8, | ||
column: 1, | ||
anonymous: true, | ||
parent: Frame { | ||
path: 'A:\\Windows\\Documents\\GitHub\\BackTracker\\example\\index.js', | ||
dir: 'A:\\Windows\\Documents\\GitHub\\BackTracker\\example', | ||
filename: 'index.js', | ||
path: 'node:internal/modules/cjs/loader', | ||
dir: 'node:internal/modules/cjs', | ||
filename: 'loader', | ||
async: false, | ||
scope: '<anonymous>', | ||
line: 8, | ||
column: 1, | ||
anonymous: true, | ||
scope: 'Module._compile', | ||
line: 1120, | ||
column: 14, | ||
anonymous: false, | ||
parent: Frame { | ||
@@ -72,5 +72,5 @@ path: 'node:internal/modules/cjs/loader', | ||
async: false, | ||
scope: 'Module._compile', | ||
line: 1120, | ||
column: 14, | ||
scope: 'Module._extensions..js', | ||
line: 1174, | ||
column: 10, | ||
anonymous: false, | ||
@@ -82,5 +82,5 @@ parent: Frame { | ||
async: false, | ||
scope: 'Module._extensions..js', | ||
line: 1174, | ||
column: 10, | ||
scope: 'Module.load', | ||
line: 998, | ||
column: 32, | ||
anonymous: false, | ||
@@ -92,35 +92,25 @@ parent: Frame { | ||
async: false, | ||
scope: 'Module.load', | ||
line: 998, | ||
column: 32, | ||
scope: 'Module._load', | ||
line: 839, | ||
column: 12, | ||
anonymous: false, | ||
parent: Frame { | ||
path: 'node:internal/modules/cjs/loader', | ||
dir: 'node:internal/modules/cjs', | ||
filename: 'loader', | ||
path: 'node:internal/modules/run_main', | ||
dir: 'node:internal/modules', | ||
filename: 'run_main', | ||
async: false, | ||
scope: 'Module._load', | ||
line: 839, | ||
scope: 'executeUserEntryPoint', | ||
line: 81, | ||
column: 12, | ||
anonymous: false, | ||
parent: Frame { | ||
path: 'node:internal/modules/run_main', | ||
dir: 'node:internal/modules', | ||
filename: 'run_main', | ||
path: 'node:internal/main/run_main_module', | ||
dir: 'node:internal/main', | ||
filename: 'run_main_module', | ||
async: false, | ||
scope: 'executeUserEntryPoint', | ||
line: 81, | ||
column: 12, | ||
anonymous: false, | ||
parent: Frame { | ||
path: 'node:internal/main/run_main_module', | ||
dir: 'node:internal/main', | ||
filename: 'run_main_module', | ||
async: false, | ||
scope: '<anonymous>', | ||
line: 17, | ||
column: 47, | ||
anonymous: true, | ||
parent: null | ||
} | ||
scope: '<anonymous>', | ||
line: 17, | ||
column: 47, | ||
anonymous: true, | ||
parent: null | ||
} | ||
@@ -127,0 +117,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
197
34247
120