mastercheck
Advanced tools
Comparing version 0.2.12 to 0.2.13
@@ -52,3 +52,3 @@ /** | ||
this.check = function(data, parents) { | ||
var _option = (typeof this.option === 'function' ? this.option(parents) : this.option) || {}; | ||
var _option = (typeof this.option === 'function' ? this.option(parents, data) : this.option) || {}; | ||
if (!_option.required && data === undefined) { | ||
@@ -94,3 +94,3 @@ return; | ||
this.check = function(data, parents) { | ||
var _option = (typeof this.option === 'function' ? this.option(parents) : this.option) || {}; | ||
var _option = (typeof this.option === 'function' ? this.option(parents, data) : this.option) || {}; | ||
if (!_option.required && data === undefined) { | ||
@@ -149,3 +149,3 @@ return; | ||
this.check = function(data, parents) { | ||
var _option = (typeof this.option === 'function' ? this.option(parents) : this.option) || {}; | ||
var _option = (typeof this.option === 'function' ? this.option(parents, data) : this.option) || {}; | ||
if (!_option.required && data === undefined) { | ||
@@ -175,3 +175,3 @@ return; | ||
this.check = function(data, parents) { | ||
var _option = (typeof this.option === 'function' ? this.option(parents) : this.option) || {}; | ||
var _option = (typeof this.option === 'function' ? this.option(parents, data) : this.option) || {}; | ||
if (!_option.required && data === undefined) { | ||
@@ -204,3 +204,3 @@ return; | ||
this.check = function(data, parents) { | ||
var _option = (typeof this.option === 'function' ? this.option(parents) : this.option) || {}; | ||
var _option = (typeof this.option === 'function' ? this.option(parents, data) : this.option) || {}; | ||
if (!_option.required && data === undefined) { | ||
@@ -238,3 +238,3 @@ return; | ||
this.check = function(data, parents) { | ||
var _option = (typeof this.option === 'function' ? this.option(parents) : this.option) || {}; | ||
var _option = (typeof this.option === 'function' ? this.option(parents, data) : this.option) || {}; | ||
if (_option.hasOwnProperty('maxLength') && _option.maxLength < data.length) { | ||
@@ -241,0 +241,0 @@ return data + ' length should be above ' + _option.maxLength; |
{ | ||
"name": "mastercheck", | ||
"version": "0.2.12", | ||
"version": "0.2.13", | ||
"description": "mastercheck", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
36349