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

react-formr

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-formr - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

2

dist/Types.d.ts

@@ -34,3 +34,3 @@ export interface FormMessages {

/** Object of validation with respect to formFields */
validation?: FormrValidation<T>;
validation?: Partial<FormrValidation<T>>;
/** Control to disable autofocuse on return of input */

@@ -37,0 +37,0 @@ disbaleAutoFocus?: boolean;

@@ -73,7 +73,6 @@ "use strict";

const submissionAllowed = !Object.keys(formFields).some((key) => {
var _a, _b;
// reurn true if any nonvalid formfields
if (validation &&
validation[key] &&
validation[key].hasOwnProperty('required') &&
validation[key].required) {
if (((_a = validation === null || validation === void 0 ? void 0 : validation[key]) === null || _a === void 0 ? void 0 : _a.hasOwnProperty('required')) &&
((_b = validation === null || validation === void 0 ? void 0 : validation[key]) === null || _b === void 0 ? void 0 : _b.required)) {
return valid.current[key] === false;

@@ -80,0 +79,0 @@ }

{
"name": "react-formr",
"version": "1.4.1",
"version": "1.4.2",
"description": "Form managing component for React & React Native",

@@ -5,0 +5,0 @@ "main": "./dist/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