fenextjs-validator
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -148,3 +148,3 @@ import { ErrorFenextjs } from "fenextjs-error/cjs/Fenextjs"; | ||
*/ | ||
onRequered(): void; | ||
onRequired(): void; | ||
/** | ||
@@ -151,0 +151,0 @@ * Método para habilitar la validación "isBoolean". |
@@ -161,3 +161,3 @@ "use strict"; | ||
// Si no son iguales, lanza un ErrorInputInvalid para indicar que la validación falló. | ||
if (!this.data || !this.equalValue.includes(this.data)) { | ||
if (!this.equalValue.includes(this.data)) { | ||
this.onError(fenextjs_interface_1.ErrorCode.INPUT_NOT_EQUAL, this.messageError?.isEqual); | ||
@@ -183,3 +183,3 @@ } | ||
*/ | ||
onRequered() { | ||
onRequired() { | ||
// Si la validación "isRequired" no está habilitada, no se hace nada. | ||
@@ -848,3 +848,3 @@ if (!this.required) { | ||
this.onEqual(); | ||
this.onRequered(); | ||
this.onRequired(); | ||
this.onBoolean(); | ||
@@ -851,0 +851,0 @@ this.onNumber(); |
{ | ||
"name": "fenextjs-validator", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
Sorry, the diff of this file is not supported yet
95107