@punks/backend-entity-manager 0.0.429 → 0.0.431

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
@@ -274,9 +274,9 @@ class EntitySerializer {
274
274
  }
275
275
  const entity = (definition.autoColumns ? { ...record } : {});
276
276
  for (const column of definition.columns) {
277
- const columnName = normalizeSheetColumn(column.name);
278
- if (!(columnName in record))
277
+ if (!(column.name in record))
279
278
  continue;
279
+ const columnName = normalizeSheetColumn(column.name);
280
280
  if (column.parseAction) {
281
281
  column.parseAction(record[columnName], entity);
282
282
  continue;
@@ -290,10 +290,11 @@ class EntitySerializer {
290
290
  .map((x) => applyModifiers(x, column.modifiers))
291
291
  .filter((x) => isValidValue(x))
292
292
  : applyModifiers(parsedColumn, column.modifiers);
293
+ delete record[column.name];
293
294
  }
294
295
  const validationErrors = [];
295
296
  for (const column of definition.columns) {
296
- if (!(normalizeSheetColumn(column.name) in record))
297
+ if (!(column.name in record))
297
298
  continue;
298
299
  for (const validator of column.validators ?? []) {
299
300
  const result = validator.fn(entity);