@punks/backend-entity-manager 0.0.425 → 0.0.427

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,12 +264,16 @@ class EntitySerializer {
264
264
  keysTransform: ExcelKeyTransform.Lower,
265
265
  dateColumns: dateColumns.map((x) => x.name),
266
266
  });
267
- console.log("records", records);
268
267
  return Array.isArray(records)
269
268
  ? records.map((x, i) => this.convertSheetRecord(x, definition, i))
270
- : Object.values(records).flatMap((x, i) => this.convertSheetRecord(x, definition, i));
269
+ : Object.values(records)
270
+ .flat()
271
+ .map((x, i) => this.convertSheetRecord(x, definition, i));
271
272
  }
272
273
  convertSheetRecord(record, definition, rowIndex) {
274
+ console.log("record", record);
275
+ console.log("definition", definition);
276
+ console.log("rowIndex", rowIndex);
273
277
  if (definition.sheet?.useTypeColumn &&
274
278
  (!record._type || record._type !== this.entityName)) {
275
279
  throw new Error(`Invalid record type ${record._type} -> record: \n${JSON.stringify(record)}`);