@ztimson/utils 0.26.14 → 0.26.15

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
@@ -2028,8 +2028,8 @@ ${opts.message || this.desc}`;
2028
2028
  function search(rows, search2, regex, transform = (r) => r) {
2029
2029
  if (!rows) return [];
2030
2030
  return rows.filter((r) => {
2031
- const value = transform(r);
2032
2031
  if (!search2) return true;
2032
+ const value = transform(r);
2033
2033
  if (regex) {
2034
2034
  return !!Object.values(value).filter((v) => {
2035
2035
  try {
@@ -2039,7 +2039,7 @@ ${opts.message || this.desc}`;
2039
2039
  }
2040
2040
  }).length;
2041
2041
  } else {
2042
- return logicTest(r, search2);
2042
+ return logicTest(value, search2);
2043
2043
  }
2044
2044
  });
2045
2045
  }