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 2.0.7 to 2.0.8

6

lib/index.js

@@ -339,4 +339,4 @@ "use strict";

var dirty = isDirty(name);
var error = errors[name];
var showError = !!error && (submitted || dirty);
var errorMessage = errors[name];
var showError = !!errorMessage && (submitted || dirty);

@@ -358,3 +358,3 @@ var onBlur = function onBlur(e) {

showError: showError,
error: error,
errorMessage: errorMessage,
onBlur: onBlur,

@@ -361,0 +361,0 @@ submit: submit,

{
"name": "formact",
"version": "2.0.7",
"version": "2.0.8",
"description": "Context for React form components with validation",

@@ -5,0 +5,0 @@ "scripts": {

@@ -462,4 +462,4 @@ // @flow

const dirty = isDirty(name)
const error = errors[name]
const showError = !!error && (submitted || dirty)
const errorMessage = errors[name]
const showError = !!errorMessage && (submitted || dirty)

@@ -478,3 +478,3 @@ const onBlur = (e: Object) => {

showError,
error,
errorMessage,
onBlur,

@@ -481,0 +481,0 @@ submit,

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