recursive-readdir-async
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -247,3 +247,11 @@ /** | ||
function onlyInclude () { | ||
for (let j = 0; j < settings.include.length; j++) { | ||
function exists (fullname) { | ||
for (let j = 0; j < settings.include.length; j++) { | ||
if (fullname.indexOf(settings.include[j]) > -1) { | ||
return true | ||
} | ||
} | ||
return false | ||
} | ||
if (settings.include.length > 0) { | ||
for (let i = list.length - 1; i > -1; i--) { | ||
@@ -254,3 +262,3 @@ let item = list[i] | ||
if (item.fullname.indexOf(settings.include[j]) === -1) { | ||
if (!exists(item.fullname)) { | ||
list.splice(i, 1) | ||
@@ -257,0 +265,0 @@ } |
{ | ||
"name": "recursive-readdir-async", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Module to recursive read directory async (non blocking). Must be used with Promises. Configurable, extended filtering. etc.", | ||
@@ -42,11 +42,11 @@ "main": "module.js", | ||
"devDependencies": { | ||
"coveralls": "^3.0.3", | ||
"eslint": "^5.15.1", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-standard": "^12.0.0", | ||
"eslint-plugin-import": "^2.16.0", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-node": "^8.0.1", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"fs-extra": "^7.0.0", | ||
"jsdoc": "^3.6.2", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"fs-extra": "^7.0.1", | ||
"jsdoc": "^3.6.4", | ||
"mocha": "^5.2.0", | ||
@@ -53,0 +53,0 @@ "nyc": "^14.1.1", |
Sorry, the diff of this file is not supported yet
28380
405