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

mobx-react-form

Package Overview
Dependencies
Maintainers
1
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-react-form - npm Package Compare versions

Comparing version 6.3.1 to 6.3.2

3

lib/Base.js

@@ -630,3 +630,4 @@ "use strict";

const field = this.initField(key, $path(key), lodash_1.default.merge(tree[0], obj));
if (!lodash_1.default.has(obj, FieldProps_1.FieldPropsEnum.value) && !this.state.options.get(OptionsModel_1.OptionsEnum.preserveDeletedFieldsValues, this)) {
const hasValues = lodash_1.default.has(obj, FieldProps_1.FieldPropsEnum.value) || lodash_1.default.has(obj, FieldProps_1.FieldPropsEnum.fields);
if (!hasValues && !this.state.options.get(OptionsModel_1.OptionsEnum.preserveDeletedFieldsValues, this)) {
const fallbackValueOption = this.state.options.get(OptionsModel_1.OptionsEnum.fallbackValue, this);

@@ -633,0 +634,0 @@ field.$value = (0, parser_1.defaultValue)({ fallbackValueOption, value: field.$value, type: field.type });

@@ -64,3 +64,2 @@ "use strict";

const setupDefaultProp = (instance, data, props, update, { isEmptyArray, fallbackValueOption }) => (0, parser_1.parseInput)((val) => val, {
defaultValue: parser_1.defaultValue,
isEmptyArray,

@@ -67,0 +66,0 @@ type: instance.type,

{
"name": "mobx-react-form",
"license": "MIT",
"version": "6.3.1",
"version": "6.3.2",
"author": "Claudio Savino <claudio.savino@me.com> (https://twitter.com/foxhound87)",

@@ -6,0 +6,0 @@ "description": "Automagically manage React forms state and automatic validation with MobX.",

@@ -670,4 +670,5 @@ import {

const field = this.initField(key, $path(key), _.merge(tree[0], obj));
const hasValues = _.has(obj, FieldPropsEnum.value) || _.has(obj, FieldPropsEnum.fields);
if(!_.has(obj, FieldPropsEnum.value) && !this.state.options.get(OptionsEnum.preserveDeletedFieldsValues, this)) {
if(!hasValues && !this.state.options.get(OptionsEnum.preserveDeletedFieldsValues, this)) {
const fallbackValueOption = this.state.options.get(OptionsEnum.fallbackValue, this);

@@ -674,0 +675,0 @@ field.$value = defaultValue({ fallbackValueOption, value: field.$value, type: field.type });

@@ -93,3 +93,2 @@ import {

parseInput((val) => val, {
defaultValue,
isEmptyArray,

@@ -417,3 +416,3 @@ type: instance.type,

get validatedValue() {
return parseCheckOutput(this, this.validatedWith as string);
return parseCheckOutput(this, this.validatedWith);
}

@@ -420,0 +419,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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