New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

formular

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formular - npm Package Compare versions

Comparing version 2.2.1 to 2.2.3

1

dist/Form.d.ts

@@ -40,2 +40,3 @@ import Field, { FieldOpts, Validator } from './Field';

unsetValues(): void;
setErrors(errors: Obj): void;
getErrors(): Obj;

@@ -42,0 +43,0 @@ validate(): Promise<boolean>;

@@ -511,2 +511,11 @@ import { useCallback, useState, useEffect, useMemo } from 'react';

};
Form.prototype.setErrors = function (errors) {
var _this = this;
Object.keys(errors).forEach(function (fieldName) {
var field = _this.fields[fieldName];
if (field) {
field.setError(errors[fieldName]);
}
});
};
Form.prototype.getErrors = function () {

@@ -513,0 +522,0 @@ var _this = this;

@@ -40,2 +40,3 @@ import Field, { FieldOpts, Validator } from './Field';

unsetValues(): void;
setErrors(errors: Obj): void;
getErrors(): Obj;

@@ -42,0 +43,0 @@ validate(): Promise<boolean>;

@@ -515,2 +515,11 @@ 'use strict';

};
Form.prototype.setErrors = function (errors) {
var _this = this;
Object.keys(errors).forEach(function (fieldName) {
var field = _this.fields[fieldName];
if (field) {
field.setError(errors[fieldName]);
}
});
};
Form.prototype.getErrors = function () {

@@ -517,0 +526,0 @@ var _this = this;

2

package.json
{
"name": "formular",
"version": "2.2.1",
"version": "2.2.3",
"author": "Pavel Ivanov",

@@ -5,0 +5,0 @@ "description": "Build forms in React. Easy-Peasy!",

Sorry, the diff of this file is not supported yet

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