@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/cjs/index.js CHANGED
@@ -279,8 +279,9 @@ class EntitySerializer {
279
279
  keysTransform: backendCore.ExcelKeyTransform.Lower,
280
280
  dateColumns: dateColumns.map((x) => x.name),
281
281
  });
282
- console.log(records, "parsed");
283
- return records.map((x, i) => this.convertSheetRecord(x, definition, i));
282
+ return Array.isArray(records)
283
+ ? records.map((x, i) => this.convertSheetRecord(x, definition, i))
284
+ : Object.values(records).flatMap((x, i) => this.convertSheetRecord(x, definition, i));
284
285
  }
285
286
  convertSheetRecord(record, definition, rowIndex) {
286
287
  if (definition.sheet?.useTypeColumn &&