Comparing version 0.10.0-rc2 to 0.10.1
@@ -48,3 +48,3 @@ /** | ||
}, | ||
'mediumtext' : _.isString, | ||
'text' : _.isString, | ||
@@ -93,4 +93,4 @@ 'string' : _.isString, | ||
'lowercase': validator.lowercase, | ||
'uppercase': validator.uppercase, | ||
'lowercase': validator.isLowercase, | ||
'uppercase': validator.isUppercase, | ||
@@ -116,9 +116,9 @@ // Miscellaneous rules | ||
'greaterThan' : function (x, val) { | ||
var number = parseFloat(x); | ||
return isNaN(number) || number > val; | ||
}, | ||
'lessThan' : function (x, val) { | ||
var number = parseFloat(x); | ||
return isNaN(number) || number < val; | ||
}, | ||
var number = parseFloat(x); | ||
return isNaN(number) || number > val; | ||
}, | ||
'lessThan' : function (x, val) { | ||
var number = parseFloat(x); | ||
return isNaN(number) || number < val; | ||
}, | ||
'minLength' : function (x, min) { return validator.isLength(x, min); }, | ||
@@ -125,0 +125,0 @@ 'maxLength' : function (x, max) { return validator.isLength(x, 0, max); }, |
{ | ||
"name": "anchor", | ||
"version": "0.10.0-rc2", | ||
"version": "0.10.1", | ||
"description": "Recursive validation library with support for objects and lists", | ||
@@ -34,3 +34,3 @@ "homepage": "http://sailsjs.org", | ||
"dependencies": { | ||
"validator": "~3.3.0", | ||
"validator": "~3.16.0", | ||
"lodash": "~2.4.1" | ||
@@ -37,0 +37,0 @@ }, |
@@ -17,3 +17,3 @@ anchor | ||
(Built on top of the great work with https://github.com/chriso/node-validator) | ||
(Built on top of the great work with https://github.com/chriso/validator.js) | ||
@@ -20,0 +20,0 @@ ## Installation |
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
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
548
0
30450
+ Addedvalidator@3.16.1(transitive)
- Removedvalidator@3.3.0(transitive)
Updatedvalidator@~3.16.0