@darkwolf/validator
Advanced tools
Comparing version 6.7.0 to 6.7.1
{ | ||
"name": "@darkwolf/validator", | ||
"version": "6.7.0", | ||
"version": "6.7.1", | ||
"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.optional || this.optional && !this._isUndefined(this.value)) { | ||
if (this._isUndefined(this.isValid) || this.isValid || this.complete) { | ||
@@ -403,0 +403,0 @@ const isValid = !!callback(this.value, ...args) |
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
30252