Comparing version 13.1.4 to 13.2.0
@@ -62,8 +62,9 @@ import process from 'node:process'; | ||
suppressErrors: Boolean(options.suppressErrors), | ||
deep: typeof options.deep === 'number' ? options.deep : Number.POSITIVE_INFINITY, | ||
}); | ||
export const isIgnoredByIgnoreFiles = async (patterns, options) => { | ||
const {cwd, suppressErrors} = normalizeOptions(options); | ||
const {cwd, suppressErrors, deep} = normalizeOptions(options); | ||
const paths = await fastGlob(patterns, {cwd, suppressErrors, ...ignoreFilesGlobOptions}); | ||
const paths = await fastGlob(patterns, {cwd, suppressErrors, deep, ...ignoreFilesGlobOptions}); | ||
@@ -81,5 +82,5 @@ const files = await Promise.all( | ||
export const isIgnoredByIgnoreFilesSync = (patterns, options) => { | ||
const {cwd, suppressErrors} = normalizeOptions(options); | ||
const {cwd, suppressErrors, deep} = normalizeOptions(options); | ||
const paths = fastGlob.sync(patterns, {cwd, suppressErrors, ...ignoreFilesGlobOptions}); | ||
const paths = fastGlob.sync(patterns, {cwd, suppressErrors, deep, ...ignoreFilesGlobOptions}); | ||
@@ -86,0 +87,0 @@ const files = paths.map(filePath => ({ |
{ | ||
"name": "globby", | ||
"version": "13.1.4", | ||
"version": "13.2.0", | ||
"description": "User-friendly glob matching", | ||
@@ -71,3 +71,3 @@ "license": "MIT", | ||
"@types/node": "^17.0.18", | ||
"ava": "^4.0.1", | ||
"ava": "^5.3.1", | ||
"benchmark": "2.1.4", | ||
@@ -78,5 +78,5 @@ "get-stream": "^6.0.1", | ||
"tempy": "^3.0.0", | ||
"tsd": "^0.19.1", | ||
"tsd": "^0.28.1", | ||
"typescript": "^4.5.5", | ||
"xo": "^0.47.0" | ||
"xo": "^0.54.2" | ||
}, | ||
@@ -86,3 +86,8 @@ "xo": { | ||
"fixtures" | ||
] | ||
], | ||
"rules": { | ||
"@typescript-eslint/consistent-type-definitions": "off", | ||
"n/prefer-global/url": "off", | ||
"@typescript-eslint/consistent-type-imports": "off" | ||
} | ||
}, | ||
@@ -89,0 +94,0 @@ "ava": { |
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
25080
425