Comparing version 10.0.2 to 10.0.3
@@ -33,7 +33,6 @@ import {readdir, stat, lstat} from "fs/promises"; | ||
function makeMatcher(filters) { | ||
const res = filters.map(f => new RegExp(`${f.replace(/\*+/g, ".*").replace(/\/\.\*/, ".*")}$`)); | ||
return str => { | ||
for (const filter of filters) { | ||
const re = new RegExp(`${filter.replace(/\*+/g, ".*").replace(/\/\.\*/, ".*")}$`); | ||
const matches = re.test(str); | ||
if (matches) return true; | ||
for (const re of res) { | ||
if (re.test(str)) return true; | ||
} | ||
@@ -40,0 +39,0 @@ return false; |
{ | ||
"name": "rrdir", | ||
"version": "10.0.2", | ||
"version": "10.0.3", | ||
"description": "Recursive directory reader with a delightful API", | ||
@@ -23,4 +23,4 @@ "author": "silverwind <me@silverwind.io>", | ||
"tempy": "3.0.0", | ||
"updates": "13.1.5", | ||
"versions": "9.3.0" | ||
"updates": "13.1.7", | ||
"versions": "9.3.2" | ||
}, | ||
@@ -27,0 +27,0 @@ "keywords": [ |
@@ -6,3 +6,3 @@ # rrdir | ||
`rrdir` recursively reads a directory and returns entries within via an async iterator or async/sync as Array. It has minimal dependencies and can typically iterate millions of files in a matter of seconds. Memory usage is `O(1)` for the async iterator and `O(n)` for the Array variants. | ||
`rrdir` recursively reads a directory and returns entries within via an async iterator or async/sync as Array. It has no dependencies and can typically iterate millions of files in a matter of seconds. Memory usage is `O(1)` for the async iterator and `O(n)` for the Array variants. | ||
@@ -9,0 +9,0 @@ ## Usage |
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
10855
171