Comparing version 0.0.10 to 0.0.11
@@ -45,3 +45,3 @@ 'use strict'; | ||
var validations = { | ||
var validation = { | ||
required: required.validator, | ||
@@ -99,3 +99,3 @@ numeric: numeric.validator, | ||
this.validation = { | ||
rules: _.cloneDeep(validations), | ||
rules: _.cloneDeep(validation), | ||
messages: _.cloneDeep(validationMessages) | ||
@@ -234,5 +234,5 @@ }; | ||
}, | ||
validations: validations, | ||
validation: validation, | ||
addCustomValidation: function (ruleName, fn) { | ||
validations[ruleName] = fn; | ||
validation[ruleName] = fn; | ||
}, | ||
@@ -239,0 +239,0 @@ setValidationMessage: function (ruleName, message) { |
{ | ||
"name": "satpam", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Simple and Effective Object Validator", | ||
@@ -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
58707