stacktracey
Advanced tools
+1
-1
| language: node_js | ||
| node_js: | ||
| - '8' | ||
| - '9' | ||
| script: | ||
@@ -5,0 +5,0 @@ - set -e |
+1
-1
| environment: | ||
| matrix: | ||
| - nodejs_version: '8' | ||
| - nodejs_version: '12' | ||
| install: | ||
@@ -5,0 +5,0 @@ - ps: Install-Product node $env:nodejs_version |
+1
-1
| { | ||
| "name": "stacktracey", | ||
| "version": "2.1.8", | ||
| "version": "2.2.0", | ||
| "description": "Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers.", | ||
@@ -5,0 +5,0 @@ "main": "stacktracey", |
+1
-0
@@ -133,2 +133,3 @@ "use strict"; | ||
| (planA = line.match (/at (.+) \((.+)\)/)) || | ||
| (planA = line.match (/at (.+) ([^ ]+)/)) || | ||
| ((line.slice (0, 3) !== 'at ') && (planA = line.match (/(.*)@(.*)/)))) { | ||
@@ -135,0 +136,0 @@ |
+23
-6
@@ -235,6 +235,3 @@ "use strict"; | ||
| const spaces = nodeVersion > 8 ? ' ' : ' ' | ||
| const spaces2 = nodeVersion > 8 ? (nodeVersion > 11 ? ' ' : ' ') : ' ' | ||
| stack.asTable ().split ('\n')[0].should.equal ('at (syntax error)' + spaces + 'test_files/syntax_error.js:2' + spaces2 + 'foo->bar () ') | ||
| stack.asTable ().split ('\n')[0].should.match(/at \(syntax error\)\s+test_files\/syntax_error.js:2\s+foo->bar \(\)/) | ||
| } | ||
@@ -338,2 +335,24 @@ }) | ||
| it ('parses async frames', () => { | ||
| const stack = [ | ||
| 'Error: test', | ||
| ' at async /some/index.js:1:1', | ||
| ' at async (/some/index.js:1:1)', | ||
| ' at async foo /some/index.js:1:1', | ||
| ' at async foo (/some/index.js:1:1)', | ||
| ].join ('\n') | ||
| const items = new StackTracey(stack).items | ||
| items[0].file.should.equal('/some/index.js') | ||
| items[1].file.should.equal('/some/index.js') | ||
| items[2].file.should.equal('/some/index.js') | ||
| items[3].file.should.equal('/some/index.js') | ||
| items[0].callee.should.equal('async') | ||
| items[1].callee.should.equal('async') | ||
| items[2].callee.should.equal('async foo') | ||
| items[3].callee.should.equal('async foo') | ||
| }) | ||
| it ('recognizes locations without column', () => { | ||
@@ -357,3 +376,1 @@ const stack = [ | ||
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
45790
1.28%597
2.93%