Comparing version 2.20.2 to 2.20.3
@@ -156,3 +156,3 @@ /* UNIQORM | ||
try { | ||
this._validate(v); | ||
this._validate(this._parse(v)); | ||
if (this.validator) | ||
@@ -159,0 +159,0 @@ this.validator(v, this, values, context); |
@@ -95,3 +95,3 @@ /* UNIQORM | ||
return; | ||
if (this.minValue) { | ||
if (this.minValue != null) { | ||
const minValue = typeof this.minValue === 'function' ? | ||
@@ -111,3 +111,3 @@ this._parse(this.minValue()) : this.minValue; | ||
if (this.maxValue) { | ||
if (this.maxValue != null) { | ||
const maxValue = typeof this.maxValue === 'function' ? | ||
@@ -114,0 +114,0 @@ this._parse(this.maxValue()) : this.maxValue; |
@@ -138,3 +138,3 @@ /* UNIQORM | ||
return; | ||
if (this.minValue) { | ||
if (this.minValue != null) { | ||
const minValue = typeof this.minValue === 'function' ? | ||
@@ -154,3 +154,3 @@ this._parse(this.minValue()) : this.minValue; | ||
if (this.maxValue) { | ||
if (this.maxValue != null) { | ||
const maxValue = typeof this.maxValue === 'function' ? | ||
@@ -157,0 +157,0 @@ this._parse(this.maxValue()) : this.maxValue; |
{ | ||
"name": "uniqorm", | ||
"description": "Multi dialect and multi schema ORM framework for enterprise level NodeJS applications", | ||
"version": "2.20.2", | ||
"version": "2.20.3", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
102098