occamsrazor-validator
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -5,4 +5,5 @@ var match = require('occamsrazor-match'); | ||
var ValidationResult = require('./lib/validation-result'); | ||
var setName = require('./lib/setName'); | ||
var setName = require('occamsrazor-match/lib/setName'); | ||
function buildValidator(baseScore, funcs) { | ||
@@ -33,5 +34,3 @@ baseScore = baseScore || 0; | ||
setName(validator, innerValidator.name + ' (score: ' + validator.score() + ')'); | ||
return validator; | ||
return setName(validator, innerValidator.name + ' (score: ' + validator.score() + ')'); | ||
} | ||
@@ -38,0 +37,0 @@ |
var ValidationResult = require('./validation-result'); | ||
var setName = require('./setName'); | ||
var setName = require('occamsrazor-match/lib/setName'); | ||
@@ -35,4 +35,3 @@ function addValidatorName(validatorName, callback) { | ||
validatorWrapper.validators = validators; | ||
setName(validatorWrapper, validatorName); | ||
return validatorWrapper; | ||
return setName(validatorWrapper, validatorName); | ||
}; |
{ | ||
"name": "occamsrazor-validator", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "A duck-typing library", | ||
@@ -34,4 +34,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"occamsrazor-match": "^2.1.1" | ||
"occamsrazor-match": "^2.2.1" | ||
} | ||
} |
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
27903
16
498
Updatedoccamsrazor-match@^2.2.1