@darkwolf/validator
Advanced tools
Comparing version 6.6.8 to 6.6.9
{ | ||
"name": "@darkwolf/validator", | ||
"version": "6.6.8", | ||
"version": "6.6.9", | ||
"description": "Validator", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -400,3 +400,3 @@ const CodeError = require('@darkwolf/code-error') | ||
if (this.hasOwnProperty('value')) { | ||
if (!this.hasOwnProperty('optional') || this.hasOwnProperty('optional') && this._isUndefined(this.value)) { | ||
if (!this.hasOwnProperty('optional') || this.hasOwnProperty('optional') && !this._isUndefined(this.value)) { | ||
if (this._isUndefined(this.isValid) || this.isValid || this.complete) { | ||
@@ -403,0 +403,0 @@ const isValid = !!callback(this.value, ...args) |
30031