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 1.13.4 to 1.13.5

15

lib/FieldsInit.js

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

var _isEmpty2 = require('lodash/isEmpty');
var _isEmpty3 = _interopRequireDefault(_isEmpty2);
var _isObject2 = require('lodash/isObject');

@@ -44,6 +48,2 @@

var _isEmpty2 = require('lodash/isEmpty');
var _isEmpty3 = _interopRequireDefault(_isEmpty2);
var _trimEnd2 = require('lodash/trimEnd');

@@ -110,4 +110,3 @@

var $try = function $try(prop) {
var struct = _utils2.default.pathToStruct(path);
return (0, _get3.default)(initial[prop], struct);
return (0, _get3.default)(initial[prop], _utils2.default.pathToStruct(path));
};

@@ -142,5 +141,5 @@

var fields = initial.fields || {};
fields = $this.handleFieldsEmpty(fields, initial);
fields = $this.handleFieldsArrayOfStrings(fields);
fields = $this.handleFieldsArrayOfObjects(fields);
fields = $this.handleFieldsEmpty(fields, initial);
fields = $this.handleFieldsNested(fields);

@@ -167,3 +166,3 @@ fields = $this.mergeSchemaDefaults(fields);

handleFieldsEmpty: function handleFieldsEmpty(fields, initial) {
if (!(0, _isEmpty3.default)(fields) || !(0, _has3.default)(initial, 'values')) return fields;
if (!(0, _has3.default)(initial, 'values')) return fields;
// if the 'field' object is not provided into the constructor

@@ -170,0 +169,0 @@ // and the 'values' object is passed, use it to create fields

{
"name": "mobx-react-form",
"license": "MIT",
"version": "1.13.4",
"version": "1.13.5",
"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.",

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