dataflux 1.14.5 → 1.14.6

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/Store.js CHANGED
@@ -8,6 +8,8 @@ exports["default"] = void 0;
8
8
  var _Obj = _interopRequireDefault(require("./Obj"));
9
9
  var _PubSub = _interopRequireDefault(require("./PubSub"));
10
10
  var _batchPromises = _interopRequireDefault(require("batch-promises"));
11
+ var _SubObj = _interopRequireDefault(require("./SubObj"));
12
+ var _BasicObj = require("./BasicObj");
11
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
14
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
13
15
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -145,9 +147,7 @@ var Store = exports["default"] = /*#__PURE__*/function () {
145
147
  });
146
148
  });
147
149
  _classPrivateFieldInitSpec(this, _merge, function (originalObject, newObject) {
148
- for (var key in newObject) {
149
- originalObject[key] = newObject[key];
150
- }
150
+ (0, _BasicObj.setValues)(newObject, originalObject.getModel(), _SubObj["default"], originalObject, originalObject);
151
151
  });
152
152
  _classPrivateFieldInitSpec(this, _wipe, function (originalObject) {
153
153
  for (var key in originalObject) {