@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 CHANGED
@@ -533,7 +533,7 @@ ${opts.message || this.desc}`;
533
533
  }
534
534
  }
535
535
  function blackOrWhite(background) {
536
- const exploded = background.match(background.length >= 6 ? /\w\w/g : /\w/g);
536
+ const exploded = background == null ? void 0 : background.match(background.length >= 6 ? /\w\w/g : /\w/g);
537
537
  if (!exploded) return "black";
538
538
  const [r2, g, b2] = exploded.map((hex) => parseInt(hex, 16));
539
539
  const luminance = (0.299 * r2 + 0.587 * g + 0.114 * b2) / 255;
@@ -1376,7 +1376,7 @@ ${opts.message || this.desc}`;
1376
1376
  const parsedFind = makeArray(filter).map((pe) => new PathEvent(pe));
1377
1377
  return parsedTarget.filter((t) => {
1378
1378
  if (!t.fullPath && t.all) return true;
1379
- return !!parsedFind.find((f) => f.fullPath.startsWith(t.fullPath) && (f.all || t.all || t.methods.intersection(f.methods).length));
1379
+ return !!parsedFind.find((f) => t.fullPath.startsWith(f.fullPath) && (f.all || t.all || t.methods.intersection(f.methods).length));
1380
1380
  });
1381
1381
  }
1382
1382
  /**