Comparing version 0.26.9 to 0.26.10
@@ -205,3 +205,3 @@ "use strict"; | ||
if (field) { | ||
if (field && field.validate) { | ||
// inner fields are always strict: | ||
@@ -211,7 +211,6 @@ // 1. this isn't strict so the casting will also have cast inner values | ||
innerOptions.strict = true; | ||
if (field.validate) return field.validate(value[key], innerOptions); | ||
return Promise.resolve(true); | ||
return field.validate(value[key], innerOptions); | ||
} | ||
return true; | ||
return Promise.resolve(true); | ||
}); | ||
@@ -218,0 +217,0 @@ |
@@ -58,4 +58,5 @@ "use strict"; | ||
function settled(promises, sync) { | ||
var settle = function settle(promise) { | ||
return promise.then(function (value) { | ||
var Promise = promise(sync); | ||
return Promise.all(promises.map(function (p) { | ||
return Promise.resolve(p).then(function (value) { | ||
return { | ||
@@ -71,5 +72,3 @@ fulfilled: true, | ||
}); | ||
}; | ||
return promise(sync).all(promises.map(settle)); | ||
})); | ||
} | ||
@@ -76,0 +75,0 @@ |
{ | ||
"name": "yup", | ||
"version": "0.26.9", | ||
"version": "0.26.10", | ||
"description": "Dead simple Object schema validation", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
131613
2105