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

@cdxoo/formik-utils

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cdxoo/formik-utils - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

18

cjs/index.js

@@ -382,3 +382,5 @@ 'use strict';

_options$isThemed = options.isThemed,
isThemed = _options$isThemed === void 0 ? true : _options$isThemed;
isThemed = _options$isThemed === void 0 ? true : _options$isThemed,
_options$onChangeRece = options.onChangeReceivesEvents,
onChangeReceivesEvents = _options$onChangeRece === void 0 ? true : _options$onChangeRece;
var componentTags = {

@@ -414,2 +416,13 @@ DefaultWrapper: DefaultWrapper,

field = fakeControlledInput(field, fakeDefault);
var _field = field,
value = _field.value,
onChange = _field.onChange;
var setFieldValue = form.setFieldValue;
var saneOnChange = onChangeReceivesEvents ? onChange : function (next) {
setFieldValue(dataXPath, next);
};
var saneFormikField = {
value: value,
onChange: saneOnChange
};
var wrapperBag = _objectSpread2(_objectSpread2({}, rest), {}, {

@@ -424,3 +437,4 @@ label: label,

formikMeta: meta,
formikForm: form
formikForm: form,
saneFormikField: saneFormikField
});

@@ -427,0 +441,0 @@ if (isThemed) {

@@ -380,3 +380,5 @@ import React, { useContext, useCallback } from 'react';

_options$isThemed = options.isThemed,
isThemed = _options$isThemed === void 0 ? true : _options$isThemed;
isThemed = _options$isThemed === void 0 ? true : _options$isThemed,
_options$onChangeRece = options.onChangeReceivesEvents,
onChangeReceivesEvents = _options$onChangeRece === void 0 ? true : _options$onChangeRece;
var componentTags = {

@@ -412,2 +414,13 @@ DefaultWrapper: DefaultWrapper,

field = fakeControlledInput(field, fakeDefault);
var _field = field,
value = _field.value,
onChange = _field.onChange;
var setFieldValue = form.setFieldValue;
var saneOnChange = onChangeReceivesEvents ? onChange : function (next) {
setFieldValue(dataXPath, next);
};
var saneFormikField = {
value: value,
onChange: saneOnChange
};
var wrapperBag = _objectSpread2(_objectSpread2({}, rest), {}, {

@@ -422,3 +435,4 @@ label: label,

formikMeta: meta,
formikForm: form
formikForm: form,
saneFormikField: saneFormikField
});

@@ -425,0 +439,0 @@ if (isThemed) {

2

package.json
{
"name": "@cdxoo/formik-utils",
"description": "",
"version": "0.9.0",
"version": "0.10.0",
"main": "cjs/index.js",

@@ -6,0 +6,0 @@ "module": "esm/index.js",

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