@punks/backend-entity-manager 0.0.433 → 0.0.434
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 +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -275,12 +275,10 @@ class EntitySerializer {
|
|
|
275
275
|
const entity = (definition.autoColumns ? { ...record } : {});
|
|
276
276
|
for (const column of definition.columns) {
|
|
277
277
|
const columnName = normalizeSheetColumn(column.name);
|
|
278
|
-
console.log(columnName, column.name, record);
|
|
279
278
|
if (!(column.name in record))
|
|
280
279
|
continue;
|
|
281
280
|
if (column.parseAction) {
|
|
282
281
|
column.parseAction(record[columnName], entity);
|
|
283
|
-
delete record[column.name];
|
|
284
282
|
continue;
|
|
285
283
|
}
|
|
286
284
|
if (typeof column.selector === "function") {
|
|
@@ -292,7 +290,9 @@ class EntitySerializer {
|
|
|
292
290
|
.map((x) => applyModifiers(x, column.modifiers))
|
|
293
291
|
.filter((x) => isValidValue(x))
|
|
294
292
|
: applyModifiers(parsedColumn, column.modifiers);
|
|
295
|
-
|
|
293
|
+
console.log("name", column.name);
|
|
294
|
+
console.log("entity", entity);
|
|
295
|
+
// delete entity[column.name]
|
|
296
296
|
}
|
|
297
297
|
const validationErrors = [];
|
|
298
298
|
for (const column of definition.columns) {
|