@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/cjs/index.js CHANGED
@@ -41018,7 +41018,9 @@ const fieldRequiredValidator = (item, selector) => {
41018
41018
  };
41019
41019
  const fieldTextValidator = (item, selector, params) => {
41020
41020
  const value = selector(item);
41021
- const values = Array.isArray(value) ? value : [value];
41021
+ const values = Array.isArray(value)
41022
+ ? value.filter(Boolean)
41023
+ : [value].filter(Boolean);
41022
41024
  const isRequiredValid = params.required
41023
41025
  ? values.length > 0 &&
41024
41026
  values.every((v) => typeof v === "string" && v.length > 0)