@punks/backend-core 0.0.67 → 0.0.69

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/cjs/index.js CHANGED
@@ -30916,11 +30916,10 @@ const excelSerialToDate = (serial) => {
30916
30916
  };
30917
30917
  const aggregateRow = (header, row, options) => {
30918
30918
  const record = {};
30919
+ const dateColumns = options?.dateColumns?.map((x, i) => normalizeKey(x, i, options?.keysTransform));
30919
30920
  row.forEach((value, index) => {
30920
30921
  const key = normalizeKey(header[index], index, options?.keysTransform);
30921
- if (options?.dateColumns?.includes(key) &&
30922
- typeof value === "number" &&
30923
- value > 59) {
30922
+ if (dateColumns?.includes(key) && typeof value === "number" && value > 59) {
30924
30923
  record[key] = excelSerialToDate(value);
30925
30924
  }
30926
30925
  else {