@hmcts/cmc-validators
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -21,3 +21,3 @@ "use strict"; | ||
} | ||
if (value === undefined) { | ||
if (value === undefined || typeof value !== 'number') { | ||
return true; | ||
@@ -24,0 +24,0 @@ } |
@@ -17,2 +17,5 @@ "use strict"; | ||
const relatedValue = args.object[relatedPropertyName]; | ||
if (relatedValue === undefined || isNaN(relatedValue)) { | ||
return true; | ||
} | ||
return typeof value === 'number' && typeof relatedValue === 'number' && value <= relatedValue; | ||
@@ -19,0 +22,0 @@ } |
{ | ||
"name": "@hmcts/cmc-validators", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"author": "HMCTS", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
42803
856
0