@travetto/base
Advanced tools
Comparing version 0.0.46 to 0.0.47
@@ -22,3 +22,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.46" | ||
"version": "0.0.47" | ||
} |
@@ -10,2 +10,3 @@ // Pulled from http://stackoverflow.com/questions/31089801/extending-error-in-javascript-with-es6-syntax#answer-32749533 | ||
Error.captureStackTrace(this, this.constructor); | ||
this.stack = this.stack; // Force stack analysis | ||
} else { | ||
@@ -12,0 +13,0 @@ this.stack = (new Error(message)).stack; |
@@ -36,7 +36,7 @@ import { AppEnv } from './env'; | ||
chain.filter.attach(function (error: Error, frames: any[]) { | ||
chain.filter.attach(function (error: Error, frames: NodeJS.CallSite[]) { | ||
// Filter out traces related to this file | ||
const rewrite = frames.filter(function (callSite) { | ||
return callSite.getFileName() && | ||
callSite.getFileName().indexOf(BASE) >= 0 && | ||
return (callSite.getFileName() && | ||
callSite.getFileName()!.indexOf(BASE) >= 0) && | ||
!callSite.isNative() && | ||
@@ -43,0 +43,0 @@ !callSite.isToplevel() && |
@@ -15,2 +15,2 @@ function test() { | ||
console.log(e); | ||
} | ||
} |
13043
401