fenextjs-validator
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -686,4 +686,5 @@ "use strict"; | ||
} | ||
const parent = this.parent ?? this; | ||
// Si la validación "parent" no existe, no se hace nada. | ||
if (!this.parent) { | ||
if (!parent) { | ||
return; | ||
@@ -698,5 +699,4 @@ } | ||
// Si whenIs es corrento ejecuta la validacion | ||
if (validator.is.onValidate(this.parent.data[validator.key]) === | ||
true) { | ||
validator.then.setParent(this.parent); | ||
if (validator.is.onValidate(parent.data[validator.key]) === true) { | ||
validator.then.setParent(parent); | ||
validator.then.setName(this.name ?? ""); | ||
@@ -710,3 +710,3 @@ const result = validator.then.onValidate(this.data); | ||
if (validator.otherwise) { | ||
validator.otherwise.setParent(this.parent); | ||
validator.otherwise.setParent(parent); | ||
validator.otherwise.setName(this.name ?? ""); | ||
@@ -713,0 +713,0 @@ const result = validator.otherwise.onValidate(this.data); |
{ | ||
"name": "fenextjs-validator", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "", | ||
@@ -23,3 +23,3 @@ "main": "./cjs/index.js", | ||
"remove":"npm run remove-node-module && npm run remove-bun-lockb", | ||
"update-package": "ncu -u '/fenextjs.*$/'", | ||
"update-package": "ncu -u '/^fenextjs.*$/'", | ||
"update":"npm run update-package && npm run remove && npm run bun-i && npm run flb", | ||
@@ -26,0 +26,0 @@ "u":"npm run update" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94497