@punks/backend-entity-manager 0.0.422 → 0.0.423

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
@@ -264,8 +264,9 @@ class EntitySerializer {
264
264
  keysTransform: ExcelKeyTransform.Lower,
265
265
  dateColumns: dateColumns.map((x) => x.name),
266
266
  });
267
- console.log(records, "parsed");
268
- return records.map((x, i) => this.convertSheetRecord(x, definition, i));
267
+ return Array.isArray(records)
268
+ ? records.map((x, i) => this.convertSheetRecord(x, definition, i))
269
+ : Object.values(records).flatMap((x, i) => this.convertSheetRecord(x, definition, i));
269
270
  }
270
271
  convertSheetRecord(record, definition, rowIndex) {
271
272
  if (definition.sheet?.useTypeColumn &&