Comparing version 0.0.1-alpha to 0.0.2-alpha
@@ -46,2 +46,9 @@ 'use strict' | ||
break | ||
case 'isEqual': | ||
case 'isGreater': | ||
case 'isLess': | ||
case 'isGreaterOrEqual': | ||
case 'isLessOrEqual': | ||
_match = validate.number[rule](value, _compare) | ||
break | ||
// object cases | ||
@@ -48,0 +55,0 @@ case 'isObject': |
@@ -12,2 +12,17 @@ 'use strict' | ||
return number.isNumber(value) && value >= 0 | ||
}, | ||
isEqual: function (value, than) { | ||
return number.isNumber(value) && value === than | ||
}, | ||
isGreater: function (value, than) { | ||
return number.isNumber(value) && value > than | ||
}, | ||
isLess: function (value, than) { | ||
return number.isNumber(value) && value < than | ||
}, | ||
isGreaterOrEqual: function (value, than) { | ||
return number.isNumber(value) && value >= than | ||
}, | ||
isLessOrEqual: function (value, than) { | ||
return number.isNumber(value) && value <= than | ||
} | ||
@@ -14,0 +29,0 @@ } |
{ | ||
"name": "checkv", | ||
"version": "0.0.1-alpha", | ||
"version": "0.0.2-alpha", | ||
"description": "validator checker", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -0,1 +1,2 @@ | ||
# checkv | ||
@@ -2,0 +3,0 @@ --- |
5798
163
28