Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yup

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yup - npm Package Compare versions

Comparing version 0.26.9 to 0.26.10

7

lib/object.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc