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.12 to 1.13.13

8

lib/FieldHelpers.js

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

var _values2 = require('lodash/values');
var _values3 = _interopRequireDefault(_values2);
var _isArray2 = require('lodash/isArray');

@@ -293,3 +289,3 @@

var data = $this.deepMap(prop, $this.fields);
return $this.incremental ? (0, _values3.default)(data) : data;
return $this.incremental ? _utils2.default.parse(data, prop) : data;
}

@@ -411,3 +407,3 @@

return Object.assign(obj, _defineProperty({}, field.key, field.incremental ? (0, _values3.default)(data) : data));
return Object.assign(obj, _defineProperty({}, field.key, field.incremental ? _utils2.default.parse(data, prop) : data));
}, {});

@@ -414,0 +410,0 @@ },

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

var _isNil2 = require('lodash/isNil');
var _isNil3 = _interopRequireDefault(_isNil2);
var _intersection2 = require('lodash/intersection');

@@ -36,2 +32,14 @@

var _some2 = require('lodash/some');
var _some3 = _interopRequireDefault(_some2);
var _isNil2 = require('lodash/isNil');
var _isNil3 = _interopRequireDefault(_isNil2);
var _isEmpty2 = require('lodash/isEmpty');
var _isEmpty3 = _interopRequireDefault(_isEmpty2);
var _every2 = require('lodash/every');

@@ -41,5 +49,5 @@

var _some2 = require('lodash/some');
var _values2 = require('lodash/values');
var _some3 = _interopRequireDefault(_some2);
var _values3 = _interopRequireDefault(_values2);

@@ -59,2 +67,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

var parse = function parse($val, $prop) {
var $values = (0, _values3.default)($val);
if ($prop === 'value') {
if ((0, _every3.default)($values, _isEmpty3.default || _isNil3.default)) {
return [];
}
}
return $values;
};
var check = function check(_ref) {

@@ -144,2 +162,3 @@ var type = _ref.type;

vprops: vprops,
parse: parse,
check: check,

@@ -146,0 +165,0 @@ has: has,

{
"name": "mobx-react-form",
"license": "MIT",
"version": "1.13.12",
"version": "1.13.13",
"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