dataflux 1.17.1 → 1.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Model.js CHANGED
@@ -263,7 +263,8 @@ var Model = exports["default"] = /*#__PURE__*/_createClass(function Model(name)
263
263
  _classPrivateFieldGet(_includes, _this)[includedType] = filterFunction;
264
264
  });
265
265
  _classPrivateFieldInitSpec(this, _removeHiddenFields, function (json) {
266
- var _iterator = _createForOfIteratorHelper(_classPrivateFieldGet(_hiddenFields, _this)),
266
+ var _classPrivateFieldGet3;
267
+ var _iterator = _createForOfIteratorHelper((_classPrivateFieldGet3 = _classPrivateFieldGet(_hiddenFields, _this)) !== null && _classPrivateFieldGet3 !== void 0 ? _classPrivateFieldGet3 : []),
267
268
  _step;
268
269
  try {
269
270
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -275,10 +276,12 @@ var Model = exports["default"] = /*#__PURE__*/_createClass(function Model(name)
275
276
  } finally {
276
277
  _iterator.f();
277
278
  }
278
- for (var _i = 0, _Object$values = Object.values(json); _i < _Object$values.length; _i++) {
279
- var obj = _Object$values[_i];
280
- if (_typeof(obj) === "object") {
281
- _classPrivateFieldGet(_removeHiddenFields, _this).call(_this, obj);
279
+ if (json && _typeof(json) === "object") {
280
+ for (var _i = 0, _Object$values = Object.values(json); _i < _Object$values.length; _i++) {
281
+ var obj = _Object$values[_i];
282
+ if (_typeof(obj) === "object") {
283
+ _classPrivateFieldGet(_removeHiddenFields, _this).call(_this, obj);
284
+ }
282
285
  }
283
286
  }
284
287
  return json;
@@ -63,7 +63,8 @@ var ReactStore = exports["default"] = /*#__PURE__*/function (_ObserverStore) {
63
63
  _defineProperty(_this, "didUpdate", function (context) {
64
64
  var _context$props;
65
65
  var objects = Object.values((_context$props = context === null || context === void 0 ? void 0 : context.props) !== null && _context$props !== void 0 ? _context$props : {}).filter(function (i) {
66
- return i.isDataflux();
66
+ var _i$isDataflux;
67
+ return i === null || i === void 0 || (_i$isDataflux = i.isDataflux) === null || _i$isDataflux === void 0 ? void 0 : _i$isDataflux.call(i);
67
68
  });
68
69
  var _f = objects.map(function (i) {
69
70
  return i.getFingerprint();