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.5.0 to 2.5.1

10

dist/Field.d.ts

@@ -42,2 +42,8 @@ import React from 'react';

state: State<Value>;
props: {
ref: (node: HTMLInputElement) => void;
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
onFocus: (event: FocusEvent | React.FocusEvent<HTMLInputElement>) => void;
onBlur: (event: FocusEvent | React.FocusEvent<HTMLInputElement>) => void;
};
private _events;

@@ -48,6 +54,2 @@ private _initialValue;

constructor(opts?: FieldOpts<Value>, form?: Form<any>);
ref: (node: HTMLInputElement) => void;
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
onFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
onBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
setState(values: Partial<State<Value>>): void;

@@ -54,0 +56,0 @@ setRef(node: HTMLInputElement): void;

19

dist/index.es.js

@@ -302,15 +302,2 @@ import equal from 'fast-deep-equal';

if (opts === void 0) { opts = {}; }
// React methods
this.ref = function (node) {
_this.node = node;
};
this.onChange = function (event) {
_this.set(event.currentTarget.value);
};
this.onFocus = function (event) {
_this.handleFocus(event);
};
this.onBlur = function (event) {
_this.handleBlur(event);
};
this.handleFocus = function (event) {

@@ -391,2 +378,8 @@ _this._events.dispatch(eventNames.focus, event);

};
this.props = {
ref: function (node) { return _this.node = node; },
onChange: function (event) { return _this.set(event.currentTarget.value); },
onFocus: this.handleFocus,
onBlur: this.handleBlur,
};
this._events = new EventAggregator();

@@ -393,0 +386,0 @@ this._initialValue = this.state.value;

@@ -42,2 +42,8 @@ import React from 'react';

state: State<Value>;
props: {
ref: (node: HTMLInputElement) => void;
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
onFocus: (event: FocusEvent | React.FocusEvent<HTMLInputElement>) => void;
onBlur: (event: FocusEvent | React.FocusEvent<HTMLInputElement>) => void;
};
private _events;

@@ -48,6 +54,2 @@ private _initialValue;

constructor(opts?: FieldOpts<Value>, form?: Form<any>);
ref: (node: HTMLInputElement) => void;
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
onFocus: (event: React.FocusEvent<HTMLInputElement>) => void;
onBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
setState(values: Partial<State<Value>>): void;

@@ -54,0 +56,0 @@ setRef(node: HTMLInputElement): void;

@@ -308,15 +308,2 @@ 'use strict';

if (opts === void 0) { opts = {}; }
// React methods
this.ref = function (node) {
_this.node = node;
};
this.onChange = function (event) {
_this.set(event.currentTarget.value);
};
this.onFocus = function (event) {
_this.handleFocus(event);
};
this.onBlur = function (event) {
_this.handleBlur(event);
};
this.handleFocus = function (event) {

@@ -397,2 +384,8 @@ _this._events.dispatch(eventNames.focus, event);

};
this.props = {
ref: function (node) { return _this.node = node; },
onChange: function (event) { return _this.set(event.currentTarget.value); },
onFocus: this.handleFocus,
onBlur: this.handleBlur,
};
this._events = new EventAggregator();

@@ -399,0 +392,0 @@ this._initialValue = this.state.value;

{
"name": "formular",
"version": "2.5.0",
"version": "2.5.1",
"author": {

@@ -5,0 +5,0 @@ "name": "Pavel Ivanov",

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