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

formact

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formact - npm Package Compare versions

Comparing version 0.10.7 to 0.10.8

4

lib/Form.js

@@ -106,6 +106,6 @@ 'use strict';

var errorKeys = (0, _lodash.keys)(_this.errors);
var errors = findIndex(errorKeys, function (field) {
var errors = (0, _lodash.findIndex)(errorKeys, function (field) {
return _this.errors[field];
});
return !errors;
return errors < 0;
}, _this.onSubmit = function (e) {

@@ -112,0 +112,0 @@ var valid = _this.isValid();

{
"name": "formact",
"version": "0.10.7",
"version": "0.10.8",
"description": "A React Set of Form Components with Context",

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

@@ -5,3 +5,3 @@ // @flow

import PropTypes from 'prop-types'
import { keys, find } from 'lodash'
import { keys, findIndex } from 'lodash'

@@ -121,3 +121,3 @@ import type {

const errors = findIndex(errorKeys, field => this.errors[field])
return !errors
return errors < 0
}

@@ -124,0 +124,0 @@

Sorry, the diff of this file is not supported yet

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