@punks/backend-entity-manager 0.0.427 → 0.0.428

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
@@ -278,12 +278,9 @@ class EntitySerializer {
278
278
  const records = backendCore.excelParse(data, {
279
279
  keysTransform: backendCore.ExcelKeyTransform.Lower,
280
280
  dateColumns: dateColumns.map((x) => x.name),
281
+ ...(definition?.options ? definition.options : {}),
281
282
  });
282
- return Array.isArray(records)
283
- ? records.map((x, i) => this.convertSheetRecord(x, definition, i))
284
- : Object.values(records)
285
- .flat()
286
- .map((x, i) => this.convertSheetRecord(x, definition, i));
283
+ return records.map((x, i) => this.convertSheetRecord(x, definition, i));
287
284
  }
288
285
  convertSheetRecord(record, definition, rowIndex) {
289
286
  console.log("record", record);