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

formstate

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formstate - npm Package Compare versions

Comparing version 0.23.0 to 0.24.0

10

lib/core/formState.js

@@ -250,6 +250,8 @@ "use strict";

/**
* If no field has error
* and all subfields are validated
* then re-validate the form */
if (!_this.hasFieldError
* Compose triggers an automatic self validation of the form based on this criteria
*/
if (
/** If no field has error */
!_this.hasFieldError
&& !_this.validating
&& !_this.getValues().some(function (value) { return _this.validatedSubFields.indexOf(value) === -1; })) {

@@ -256,0 +258,0 @@ _this.validate();

2

package.json
{
"name": "formstate",
"version": "0.23.0",
"version": "0.24.0",
"description": "Painless and simple MobX form management",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -183,6 +183,10 @@ import { observable, action, computed, runInAction, isObservable, isArrayLike } from 'mobx';

/**
* If no field has error
* and all subfields are validated
* then re-validate the form */
if (!this.hasFieldError
* Compose triggers an automatic self validation of the form based on this criteria
*/
if (
/** If no field has error */
!this.hasFieldError
/** And there isn't an active validation taking place */
&& !this.validating
/** And all subfields are validated */
&& !this.getValues().some(value => this.validatedSubFields.indexOf(value) === -1)

@@ -194,3 +198,3 @@ ) {

}
))
));
return this;

@@ -197,0 +201,0 @@ }

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