@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/esm/index.js CHANGED
@@ -264,6 +264,7 @@ class EntitySerializer {
264
264
  keysTransform: ExcelKeyTransform.Lower,
265
265
  dateColumns: dateColumns.map((x) => x.name),
266
266
  });
267
+ console.log("records", records);
267
268
  return Array.isArray(records)
268
269
  ? records.map((x, i) => this.convertSheetRecord(x, definition, i))
269
270
  : Object.values(records).flatMap((x, i) => this.convertSheetRecord(x, definition, i));
@@ -41002,7 +41003,9 @@ const fieldRequiredValidator = (item, selector) => {
41002
41003
  };
41003
41004
  const fieldTextValidator = (item, selector, params) => {
41004
41005
  const value = selector(item);
41005
- const values = Array.isArray(value) ? value : [value];
41006
+ const values = Array.isArray(value)
41007
+ ? value.filter(Boolean)
41008
+ : [value].filter(Boolean);
41006
41009
  const isRequiredValid = params.required
41007
41010
  ? values.length > 0 &&
41008
41011
  values.every((v) => typeof v === "string" && v.length > 0)