@ztimson/utils 0.23.8 → 0.23.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -529,7 +529,7 @@ class Cache {
|
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function blackOrWhite(background) {
|
|
532
|
-
const exploded = background.match(background.length >= 6 ? /\w\w/g : /\w/g);
|
|
532
|
+
const exploded = background == null ? void 0 : background.match(background.length >= 6 ? /\w\w/g : /\w/g);
|
|
533
533
|
if (!exploded) return "black";
|
|
534
534
|
const [r2, g, b2] = exploded.map((hex) => parseInt(hex, 16));
|
|
535
535
|
const luminance = (0.299 * r2 + 0.587 * g + 0.114 * b2) / 255;
|
|
@@ -1372,7 +1372,7 @@ class PathEvent {
|
|
|
1372
1372
|
const parsedFind = makeArray(filter).map((pe) => new PathEvent(pe));
|
|
1373
1373
|
return parsedTarget.filter((t) => {
|
|
1374
1374
|
if (!t.fullPath && t.all) return true;
|
|
1375
|
-
return !!parsedFind.find((f) =>
|
|
1375
|
+
return !!parsedFind.find((f) => t.fullPath.startsWith(f.fullPath) && (f.all || t.all || t.methods.intersection(f.methods).length));
|
|
1376
1376
|
});
|
|
1377
1377
|
}
|
|
1378
1378
|
/**
|