@punks/backend-entity-manager 0.0.424 → 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
@@ -41003,7 +41003,9 @@ const fieldRequiredValidator = (item, selector) => {
41003
41003
  };
41004
41004
  const fieldTextValidator = (item, selector, params) => {
41005
41005
  const value = selector(item);
41006
- const values = Array.isArray(value) ? value : [value];
41006
+ const values = Array.isArray(value)
41007
+ ? value.filter(Boolean)
41008
+ : [value].filter(Boolean);
41007
41009
  const isRequiredValid = params.required
41008
41010
  ? values.length > 0 &&
41009
41011
  values.every((v) => typeof v === "string" && v.length > 0)