stacktracey
Advanced tools
Comparing version 1.0.28 to 1.0.29
{ | ||
"name": "stacktracey", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"description": "Parses call stacks, reads sources and meta-information.", | ||
@@ -32,9 +32,7 @@ "main": "stacktracey", | ||
"chai": "^3.5.0", | ||
"install": "^0.8.1", | ||
"mocha": "^2.4.5", | ||
"npm": "^3.10.6" | ||
"mocha": "^2.4.5" | ||
}, | ||
"dependencies": { | ||
"get-source": "^1.0.5" | ||
"get-source": "*" | ||
} | ||
} |
@@ -121,3 +121,3 @@ # StackTracey | ||
```javascript | ||
s = new StackTracey ().slice (1).filter (x => !x.isThirdParty) // current stack shifted by 1 and cleaned from library class | ||
s = new StackTracey ().slice (1).filter (x => !x.isThirdParty) // current stack shifted by 1 and cleaned from library calls | ||
@@ -124,0 +124,0 @@ s instanceof StackTracey // true |
@@ -174,3 +174,3 @@ "use strict"; | ||
StackTracey.prototype[name] = function (...args) { | ||
return new StackTracey (Array.prototype[name].apply (this, args)) | ||
return new StackTracey ([...this][name] (...args)) | ||
} | ||
@@ -177,0 +177,0 @@ }) |
13
test.js
@@ -110,2 +110,15 @@ "use strict"; | ||
it ('Array.filter works', () => { | ||
const stack = new StackTracey ([ | ||
{ file: 'yo.js', line: 10 }, | ||
{ file: 'lol.js', line: 10 }, | ||
]) | ||
const filtered = stack.filter (x => x.file === 'lol.js') | ||
filtered.length.should.equal (1) | ||
filtered[0].should.deep.equal ({ file: 'lol.js', line: 10 }) | ||
}) | ||
it ('shortens path correctly', () => { | ||
@@ -112,0 +125,0 @@ |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
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
20056
4
261
1
+ Addedget-source@2.0.12(transitive)
- Removedget-source@1.0.42(transitive)
Updatedget-source@*