Socket
Socket
Sign inDemoInstall

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.6 to 0.10.7

4

lib/Form.js

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

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

@@ -110,0 +110,0 @@ return !errors;

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

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

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

const errorKeys = keys(this.errors)
const errors = find(errorKeys, field => {
this.errors[field]
})
const errors = findIndex(errorKeys, field => this.errors[field])
return !errors

@@ -124,0 +122,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