@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 +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -40324,8 +40324,9 @@ const newUuid = newUuid$1;
|
|
|
40324
40324
|
|
|
40325
40325
|
const fieldRequiredValidator = (item, selector) => {
|
|
40326
40326
|
const value = selector(item);
|
|
40327
|
+
const isValid = typeof value === "string" ? value.trim().length > 0 : !!value;
|
|
40327
40328
|
return {
|
|
40328
|
-
isValid
|
|
40329
|
+
isValid,
|
|
40329
40330
|
validationErrors: value ? [] : [{ errorCode: "required" }],
|
|
40330
40331
|
};
|
|
40331
40332
|
};
|