@punks/backend-entity-manager 0.0.423 → 0.0.425

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,6 +279,7 @@ class EntitySerializer {
279
279
  keysTransform: backendCore.ExcelKeyTransform.Lower,
280
280
  dateColumns: dateColumns.map((x) => x.name),
281
281
  });
282
+ console.log("records", records);
282
283
  return Array.isArray(records)
283
284
  ? records.map((x, i) => this.convertSheetRecord(x, definition, i))
284
285
  : Object.values(records).flatMap((x, i) => this.convertSheetRecord(x, definition, i));
@@ -41017,7 +41018,9 @@ const fieldRequiredValidator = (item, selector) => {
41017
41018
  };
41018
41019
  const fieldTextValidator = (item, selector, params) => {
41019
41020
  const value = selector(item);
41020
- const values = Array.isArray(value) ? value : [value];
41021
+ const values = Array.isArray(value)
41022
+ ? value.filter(Boolean)
41023
+ : [value].filter(Boolean);
41021
41024
  const isRequiredValid = params.required
41022
41025
  ? values.length > 0 &&
41023
41026
  values.every((v) => typeof v === "string" && v.length > 0)