Socket
Socket
Sign inDemoInstall

anchor

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anchor - npm Package Compare versions

Comparing version 0.10.0-rc2 to 0.10.1

20

lib/match/rules.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc