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

formik

Package Overview
Dependencies
Maintainers
1
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formik - npm Package Compare versions

Comparing version 0.9.0-alpha.3 to 0.9.0-alpha.4

14

dist/next.es6.js

@@ -328,7 +328,11 @@ import { object } from 'prop-types';

var Field = function (_a, context) {
var component = _a.component, name = _a.name, props = __rest(_a, ["component", "name"]);
if (component) {
return createElement(component, __assign({}, props, { name: name }, context.formik));
}
return createElement('input', __assign({}, props, { name: name, value: context.formik.values[name], onChange: context.formik.handleChange, onBlur: context.formik.handleBlur }));
var _b = _a.component, component = _b === void 0 ? 'input' : _b, name = _a.name, props = __rest(_a, ["component", "name"]);
var bag = typeof component === 'string'
? {
value: context.formik.values[name],
onChange: context.formik.handleChange,
onBlur: context.formik.handleBlur,
}
: context.formik;
return createElement(component, __assign({}, props, { name: name }, bag));
};

@@ -335,0 +339,0 @@ Field.contextTypes = {

@@ -330,7 +330,11 @@ 'use strict';

var Field = function (_a, context) {
var component = _a.component, name = _a.name, props = __rest(_a, ["component", "name"]);
if (component) {
return React.createElement(component, __assign({}, props, { name: name }, context.formik));
}
return React.createElement('input', __assign({}, props, { name: name, value: context.formik.values[name], onChange: context.formik.handleChange, onBlur: context.formik.handleBlur }));
var _b = _a.component, component = _b === void 0 ? 'input' : _b, name = _a.name, props = __rest(_a, ["component", "name"]);
var bag = typeof component === 'string'
? {
value: context.formik.values[name],
onChange: context.formik.handleChange,
onBlur: context.formik.handleBlur,
}
: context.formik;
return React.createElement(component, __assign({}, props, { name: name }, bag));
};

@@ -337,0 +341,0 @@ Field.contextTypes = {

{
"name": "formik",
"description": "Forms in React, without tears",
"version": "0.9.0-alpha.3",
"version": "0.9.0-alpha.4",
"license": "MIT",

@@ -6,0 +6,0 @@ "author": "Jared Palmer <jared@palmer.net>",

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