stacktracey
Advanced tools
Comparing version 1.2.87 to 1.2.88
{ | ||
"name": "stacktracey", | ||
"version": "1.2.87", | ||
"version": "1.2.88", | ||
"description": "Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers.", | ||
@@ -79,11 +79,11 @@ "main": "stacktracey", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^4.10.0", | ||
"eslint": "^4.14.0", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^4.0.1", | ||
"nyc": "^11.3.0" | ||
"mocha": "^4.1.0", | ||
"nyc": "^11.4.1" | ||
}, | ||
"dependencies": { | ||
"as-table": "^1.0.31", | ||
"get-source": "^1.0.23" | ||
"get-source": "^1.0.24" | ||
} | ||
} |
@@ -126,2 +126,12 @@ "use strict"; | ||
/* Detect things like Array.reduce | ||
TODO: detect more built-in types */ | ||
if (callee && !fileLineColumn[0]) { | ||
const type = callee.split ('.')[0] | ||
if (type === 'Array') { | ||
native = true | ||
} | ||
} | ||
return { | ||
@@ -128,0 +138,0 @@ beforeParse: line, |
@@ -234,2 +234,10 @@ "use strict"; | ||
}) | ||
it ('detects Array methods as native', () => { | ||
const arr = [1,2,3] | ||
const stack = arr.reduce (() => new StackTracey ()) | ||
stack[1].native.should.equal (true) | ||
}) | ||
}) | ||
@@ -236,0 +244,0 @@ |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
206561
5896
0
Updatedget-source@^1.0.24