@punks/backend-entity-manager 0.0.354 → 0.0.355

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
@@ -40339,8 +40339,9 @@ const newUuid = backendCore.newUuid;
40339
40339
 
40340
40340
  const fieldRequiredValidator = (item, selector) => {
40341
40341
  const value = selector(item);
40342
+ const isValid = typeof value === "string" ? value.trim().length > 0 : !!value;
40342
40343
  return {
40343
- isValid: !!value,
40344
+ isValid,
40344
40345
  validationErrors: value ? [] : [{ errorCode: "required" }],
40345
40346
  };
40346
40347
  };