Socket
Socket
Sign inDemoInstall

react-hook-form

Package Overview
Dependencies
Maintainers
1
Versions
1030
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hook-form - npm Package Compare versions

Comparing version 2.0.1-beta.5 to 2.0.1

6

dist/index.es.js

@@ -374,6 +374,4 @@ import { useRef, useState, useEffect } from 'react';

function register(data) {
if (!data) {
console.error('Looks like ref is missing.');
if (!data)
return;
}
if (data instanceof HTMLElement) {

@@ -425,4 +423,2 @@ registerIntoAllFields(data);

localErrors = await validateWithSchema(validationSchema, values);
console.log('wtf', localErrorMessages.current);
console.log('localErrors', localErrors);
if (localErrors === undefined) {

@@ -429,0 +425,0 @@ callback(values, e);

@@ -376,6 +376,4 @@ 'use strict';

function register(data) {
if (!data) {
console.error('Looks like ref is missing.');
if (!data)
return;
}
if (data instanceof HTMLElement) {

@@ -427,4 +425,2 @@ registerIntoAllFields(data);

localErrors = await validateWithSchema(validationSchema, values);
console.log('wtf', localErrorMessages.current);
console.log('localErrors', localErrors);
if (localErrors === undefined) {

@@ -431,0 +427,0 @@ callback(values, e);

2

package.json
{
"name": "react-hook-form",
"version": "2.0.1-beta.5",
"version": "2.0.1",
"main": "dist/index.js",

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