globby
Advanced tools
Comparing version 12.1.0 to 12.2.0
@@ -59,3 +59,3 @@ import process from 'node:process'; | ||
const getIsIgnoredPredicate = (ignores, cwd) => p => ignores.ignores(slash(path.relative(cwd, ensureAbsolutePathForCwd(cwd, p.path || p)))); | ||
const getIsIgnoredPredicate = (ignores, cwd) => p => ignores.ignores(slash(path.relative(cwd, ensureAbsolutePathForCwd(cwd, toPath(p.path || p))))); | ||
@@ -62,0 +62,0 @@ const getFile = async (file, cwd) => { |
@@ -0,1 +1,2 @@ | ||
import {URL} from 'node:url'; // TODO: Remove this when https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960 is fixed. | ||
import {Options as FastGlobOptions, Entry} from 'fast-glob'; | ||
@@ -62,3 +63,3 @@ | ||
export type GlobbyFilterFunction = (path: string) => boolean; | ||
export type GlobbyFilterFunction = (path: URL | string) => boolean; | ||
@@ -65,0 +66,0 @@ /** |
{ | ||
"name": "globby", | ||
"version": "12.1.0", | ||
"version": "12.2.0", | ||
"description": "User-friendly glob matching", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -127,3 +127,3 @@ # globby | ||
Returns a `Promise<(path: string) => boolean>` indicating whether a given path is ignored via a `.gitignore` file. | ||
Returns a `Promise<(path: URL | string) => boolean>` indicating whether a given path is ignored via a `.gitignore` file. | ||
@@ -142,3 +142,3 @@ Takes `cwd?: URL | string` and `ignore?: string[]` as options. `.gitignore` files matched by the ignore config are not used for the resulting filter function. | ||
Returns a `(path: string) => boolean` indicating whether a given path is ignored via a `.gitignore` file. | ||
Returns a `(path: URL | string) => boolean` indicating whether a given path is ignored via a `.gitignore` file. | ||
@@ -145,0 +145,0 @@ Takes the same options as `isGitIgnored`. |
22608
427