Comparing version 2.2.4 to 2.2.5
@@ -292,5 +292,4 @@ (function() { | ||
traverse = function(directoryPath, onFile, onDirectory) { | ||
var childPath, file, linkStats, stats, _i, _len, _ref, _results; | ||
var childPath, file, linkStats, stats, _i, _len, _ref; | ||
_ref = fs.readdirSync(directoryPath); | ||
_results = []; | ||
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ||
@@ -307,13 +306,9 @@ file = _ref[_i]; | ||
if (onDirectory(childPath)) { | ||
_results.push(traverse(childPath, onFile, onDirectory)); | ||
} else { | ||
_results.push(void 0); | ||
traverse(childPath, onFile, onDirectory); | ||
} | ||
} else if (stats.isFile()) { | ||
_results.push(onFile(childPath)); | ||
} else { | ||
_results.push(void 0); | ||
onFile(childPath); | ||
} | ||
} | ||
return _results; | ||
return void 0; | ||
}; | ||
@@ -448,3 +443,3 @@ return traverse(rootPath, onFile, onDirectory); | ||
isMarkdownExtension: function(ext) { | ||
return _.indexOf(['.markdown', '.md', '.mdown', '.mkd', '.mkdown', '.ron'], ext, true) >= 0; | ||
return _.indexOf(['.markdown', '.md', '.mdown', '.mkd', '.mkdown', '.rmd', '.ron'], ext, true) >= 0; | ||
}, | ||
@@ -451,0 +446,0 @@ isCaseInsensitive: function() { |
{ | ||
"name": "fs-plus", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "node's fs with more helpers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/fs-plus.js", |
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
18532
478