New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

stacktracey

Package Overview
Dependencies
Maintainers
2
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stacktracey - npm Package Compare versions

Comparing version
2.1.8
to
2.2.0
+1
-1
.travis.yml
language: node_js
node_js:
- '8'
- '9'
script:

@@ -5,0 +5,0 @@ - set -e

environment:
matrix:
- nodejs_version: '8'
- nodejs_version: '12'
install:

@@ -5,0 +5,0 @@ - ps: Install-Product node $env:nodejs_version

{
"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",

@@ -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 = [