Comparing version 2.3.0 to 2.3.1
@@ -66,3 +66,3 @@ // Load modules | ||
for (var n = 0, nl = configs.length; n < nl; ++n) { | ||
var config = (configs[n] instanceof Any ? configs[n] : new internals.Object(configs[n])); | ||
var config = (typeof configs[n].describe === 'function' ? configs[n] : new internals.Object(configs[n])); | ||
if (nl > 1) { | ||
@@ -163,3 +163,3 @@ description.children[key] = description.children[key] || []; | ||
for (var c = 0, cl = configs.length; c < cl; ++c) { | ||
var config = (configs[c] instanceof Any ? configs[c] : new internals.Object(configs[c])); | ||
var config = (typeof configs[c]._validate === 'function' ? configs[c] : new internals.Object(configs[c])); | ||
var err = config._validate(item, { parent: value, key: key, path: (state.path ? state.path + '.' : '') + key, renamed: state.renamed }, options); | ||
@@ -166,0 +166,0 @@ if (!err) { // Found a valid match |
{ | ||
"name": "joi", | ||
"description": "Object schema validation", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"repository": "git://github.com/spumko/joi", | ||
@@ -6,0 +6,0 @@ "main": "index", |
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
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
333532
1