@punks/backend-core 0.0.67 → 0.0.68

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/esm/index.js CHANGED
@@ -30888,11 +30888,10 @@ const excelSerialToDate = (serial) => {
30888
30888
  };
30889
30889
  const aggregateRow = (header, row, options) => {
30890
30890
  const record = {};
30891
+ const dateColumns = options?.dateColumns?.map((x, i) => normalizeKey(x, i, options?.keysTransform));
30891
30892
  row.forEach((value, index) => {
30892
30893
  const key = normalizeKey(header[index], index, options?.keysTransform);
30893
- if (options?.dateColumns?.includes(key) &&
30894
- typeof value === "number" &&
30895
- value > 59) {
30894
+ if (dateColumns?.includes(key) && typeof value === "number" && value > 59) {
30896
30895
  record[key] = excelSerialToDate(value);
30897
30896
  }
30898
30897
  else {