Comparing version 1.1.1 to 1.1.2
@@ -21,2 +21,2 @@ import { Crawler, RecrawlOptions } from './types'; | ||
*/ | ||
export declare function createMatcher(globs: string[] | undefined, mapGlob?: (glob: string) => string): ((file: string, name?: string | undefined) => boolean | null) | null; | ||
export declare function createMatcher(globs: string[] | undefined, mapGlob?: (glob: string) => string): GlobMatcher | null; |
@@ -104,4 +104,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
}); | ||
const fileRE = fileGlobs.length ? matchAny(fileGlobs) : null; | ||
const nameRE = nameGlobs.length ? matchAny(nameGlobs) : null; | ||
const fileRE = fileGlobs.length ? matchAny(fileGlobs) : false; | ||
const nameRE = nameGlobs.length ? matchAny(nameGlobs) : false; | ||
return (file, name) => (nameRE && nameRE.test(name || path.basename(file))) || | ||
@@ -108,0 +108,0 @@ (fileRE && fileRE.test(file)); |
{ | ||
"name": "recrawl", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "lib/recrawl.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,2 +0,2 @@ | ||
# recrawl v1.1.1 | ||
# recrawl v1.1.2 | ||
@@ -3,0 +3,0 @@ Collect the descendants of a directory. |
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
13279