exception-formatter
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -78,3 +78,3 @@ // Generated by CoffeeScript 1.8.0 | ||
basepath = (_ref = options.basepath) != null ? _ref : process.cwd(); | ||
if (!endsWith(basepath, path.sep)) { | ||
if (isString(basepath) && !endsWith(basepath, path.sep)) { | ||
basepath += path.sep; | ||
@@ -99,3 +99,3 @@ } | ||
type = SOURCE; | ||
if (filename.indexOf('node_modules') === -1 && filename.indexOf(basepath) !== -1) { | ||
if (filename.indexOf('node_modules') === -1 && filename.search(basepath) !== -1) { | ||
type = OUR_SOURCE; | ||
@@ -102,0 +102,0 @@ } |
{ | ||
"name": "exception-formatter", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"author": "Jason Walton <dev@lucid.thedreaming.org> (https://github.com/jwalton)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
10575