mobx-react-form
Advanced tools
Comparing version 1.13.4 to 1.13.5
@@ -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
1905944
13830