markdown-link-reporter
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -10,3 +10,3 @@ "use strict"; | ||
if (cache[fileDir]) { | ||
return cache[fileDir].indexOf(fileBase) ? true : false; | ||
return cache[fileDir].indexOf(fileBase) > -1; | ||
} | ||
@@ -27,7 +27,7 @@ try { | ||
if (fileDir === "/" || fileDir === ".") { | ||
return result = true; | ||
return (result = true); | ||
} | ||
var fileNames = (cache[fileDir] = fs.readdirSync(fileDir)); | ||
if (fileNames.indexOf(path.basename(prevFilePath)) === -1) { | ||
return result = false; | ||
return (result = false); | ||
} | ||
@@ -34,0 +34,0 @@ prevFilePath = fileDir; |
{ | ||
"name": "markdown-link-reporter", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "A module for finding broken local markdown links.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
9914