Comparing version
{ | ||
"name": "checkit", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "checkit.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
@@ -267,2 +267,7 @@ // CheckIt.js 0.1.0 | ||
// Check if one items is greater than or equal to another | ||
greaterThanEqualTo: function(val, param) { | ||
return checkNumber(val) || checkNumber(param) || parseFloat(val) >= parseFloat(param); | ||
}, | ||
// Check if one item is less than another | ||
@@ -273,2 +278,7 @@ lessThan: function(val, param) { | ||
// Check if one item is less than or equal to another | ||
lessThanEqualTo: function(val, param) { | ||
return checkNumber(val) || checkNumber(param) || parseFloat(val) <= parseFloat(param); | ||
}, | ||
// Check if this item is an object literal. | ||
@@ -411,4 +421,5 @@ isLiteral: function(val) { | ||
exactLength: 'The {{label}} must be exactly {{var_1}} characters long', | ||
greaterThan: 'The {{label}} must contain a number greater than {{var_1}}', | ||
lessThan: 'The {{label}} must contain a number less than {{var_1}}', | ||
lessThanEqualTo: 'The {{label}} must contain a number less than or equal to {{var_1}}', | ||
greaterThanEqualTo: 'The {{label}} must contain a number greater than or equal to {{var_1}}', | ||
validEmail: 'The {{label}} must contain a valid email address', | ||
@@ -415,0 +426,0 @@ |
{ | ||
"name": "checkit", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Simple validations for node and the browser.", | ||
@@ -5,0 +5,0 @@ "main": "checkit.js", |
62104
0.86%1517
0.6%