@humanwhocodes/config-array
Advanced tools
Comparing version 0.10.6 to 0.10.7
11
api.js
@@ -108,2 +108,3 @@ 'use strict'; | ||
const minimatchCache = new Map(); | ||
const negatedMinimatchCache = new Map(); | ||
const debug = createDebug('@hwc/config-array'); | ||
@@ -137,7 +138,13 @@ | ||
let matcher = minimatchCache.get(pattern); | ||
let cache = minimatchCache; | ||
if (options.flipNegate) { | ||
cache = negatedMinimatchCache; | ||
} | ||
let matcher = cache.get(pattern); | ||
if (!matcher) { | ||
matcher = new Minimatch(pattern, options); | ||
minimatchCache.set(pattern, matcher); | ||
cache.set(pattern, matcher); | ||
} | ||
@@ -144,0 +151,0 @@ |
# Changelog | ||
## [0.10.7](https://github.com/humanwhocodes/config-array/compare/v0.10.6...v0.10.7) (2022-09-29) | ||
### Bug Fixes | ||
* Cache negated patterns separately ([fef617b](https://github.com/humanwhocodes/config-array/commit/fef617b6999f9a4b5871d4525c82c4181bc96fb7)) | ||
## [0.10.6](https://github.com/humanwhocodes/config-array/compare/v0.10.5...v0.10.6) (2022-09-28) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@humanwhocodes/config-array", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"description": "Glob-based configuration matching.", | ||
@@ -5,0 +5,0 @@ "author": "Nicholas C. Zakas", |
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
52098
656