@azrico/webobject 1.5.41 → 1.5.42
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/src/WebObjects/WebObject.js +23 -18
- package/package.json +1 -1
|
@@ -589,8 +589,8 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
589
589
|
while (1) switch (_context13.prev = _context13.next) {
|
|
590
590
|
case 0:
|
|
591
591
|
_parseObj = function _parseObj3() {
|
|
592
|
-
_parseObj = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(obj) {
|
|
593
|
-
var newobj_dlt;
|
|
592
|
+
_parseObj = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(key, obj) {
|
|
593
|
+
var _p, child_changableKeys, newobj_dlt;
|
|
594
594
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
595
595
|
while (1) switch (_context12.prev = _context12.next) {
|
|
596
596
|
case 0:
|
|
@@ -606,12 +606,12 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
606
606
|
}
|
|
607
607
|
_context12.next = 5;
|
|
608
608
|
return Promise.all(obj.map( /*#__PURE__*/function () {
|
|
609
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(r) {
|
|
609
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(r, i) {
|
|
610
610
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
611
611
|
while (1) switch (_context11.prev = _context11.next) {
|
|
612
612
|
case 0:
|
|
613
613
|
_context11.next = 2;
|
|
614
|
-
return parseObj(r);
|
|
614
|
+
return parseObj(i, r);
|
|
615
615
|
case 2:
|
|
616
616
|
return _context11.abrupt("return", _context11.sent);
|
|
617
617
|
case 3:
|
|
@@ -620,7 +620,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
620
620
|
}
|
|
621
621
|
}, _callee11);
|
|
622
622
|
}));
|
|
623
|
-
return function (
|
|
623
|
+
return function (_x8, _x9) {
|
|
624
624
|
return _ref.apply(this, arguments);
|
|
625
625
|
};
|
|
626
626
|
}()));
|
|
@@ -628,25 +628,30 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
628
628
|
return _context12.abrupt("return", _context12.sent);
|
|
629
629
|
case 6:
|
|
630
630
|
if (!(obj instanceof WebObject && typeof obj.get_deltaObject === "function")) {
|
|
631
|
-
_context12.next =
|
|
631
|
+
_context12.next = 16;
|
|
632
632
|
break;
|
|
633
633
|
}
|
|
634
|
-
|
|
634
|
+
//child elements have different kind of delta
|
|
635
|
+
child_changableKeys = (_p = p) === null || _p === void 0 || (_p = _p.changableKeys) === null || _p === void 0 ? void 0 : _p.filter(function (s) {
|
|
636
|
+
return s.startsWith("".concat(key, "."));
|
|
637
|
+
});
|
|
638
|
+
_context12.next = 10;
|
|
635
639
|
return obj.get_deltaObject(_objectSpread(_objectSpread({}, p), {}, {
|
|
636
|
-
isChild: true
|
|
640
|
+
isChild: true,
|
|
641
|
+
changableKeys: child_changableKeys
|
|
637
642
|
}));
|
|
638
|
-
case
|
|
643
|
+
case 10:
|
|
639
644
|
newobj_dlt = _context12.sent;
|
|
640
645
|
if ((0, _object.object_isEmpty)(newobj_dlt)) {
|
|
641
|
-
_context12.next =
|
|
646
|
+
_context12.next = 15;
|
|
642
647
|
break;
|
|
643
648
|
}
|
|
644
649
|
return _context12.abrupt("return", newobj_dlt);
|
|
645
|
-
case 14:
|
|
646
|
-
return _context12.abrupt("return", obj);
|
|
647
650
|
case 15:
|
|
648
651
|
return _context12.abrupt("return", obj);
|
|
649
652
|
case 16:
|
|
653
|
+
return _context12.abrupt("return", obj);
|
|
654
|
+
case 17:
|
|
650
655
|
case "end":
|
|
651
656
|
return _context12.stop();
|
|
652
657
|
}
|
|
@@ -654,7 +659,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
654
659
|
}));
|
|
655
660
|
return _parseObj.apply(this, arguments);
|
|
656
661
|
};
|
|
657
|
-
parseObj = function _parseObj2(_x6) {
|
|
662
|
+
parseObj = function _parseObj2(_x6, _x7) {
|
|
658
663
|
return _parseObj.apply(this, arguments);
|
|
659
664
|
};
|
|
660
665
|
if (!p) p = {};
|
|
@@ -727,7 +732,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
727
732
|
}
|
|
728
733
|
_key = _step.value;
|
|
729
734
|
_context13.next = 26;
|
|
730
|
-
return parseObj(changedFields[_key]);
|
|
735
|
+
return parseObj(_key, changedFields[_key]);
|
|
731
736
|
case 26:
|
|
732
737
|
final_object[_key] = _context13.sent;
|
|
733
738
|
case 27:
|
|
@@ -1275,7 +1280,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1275
1280
|
}
|
|
1276
1281
|
}, _callee23, this);
|
|
1277
1282
|
}));
|
|
1278
|
-
function saveList(
|
|
1283
|
+
function saveList(_x10) {
|
|
1279
1284
|
return _saveList.apply(this, arguments);
|
|
1280
1285
|
}
|
|
1281
1286
|
return saveList;
|
|
@@ -1503,7 +1508,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1503
1508
|
}
|
|
1504
1509
|
}, _callee27, this);
|
|
1505
1510
|
}));
|
|
1506
|
-
function get_list_cache(
|
|
1511
|
+
function get_list_cache(_x11) {
|
|
1507
1512
|
return _get_list_cache.apply(this, arguments);
|
|
1508
1513
|
}
|
|
1509
1514
|
return get_list_cache;
|
|
@@ -1534,7 +1539,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1534
1539
|
}
|
|
1535
1540
|
}, _callee28, this);
|
|
1536
1541
|
}));
|
|
1537
|
-
function get_single_cache(
|
|
1542
|
+
function get_single_cache(_x12) {
|
|
1538
1543
|
return _get_single_cache.apply(this, arguments);
|
|
1539
1544
|
}
|
|
1540
1545
|
return get_single_cache;
|
|
@@ -1574,7 +1579,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
1574
1579
|
}
|
|
1575
1580
|
}, _callee29);
|
|
1576
1581
|
}));
|
|
1577
|
-
return function (
|
|
1582
|
+
return function (_x13) {
|
|
1578
1583
|
return _ref3.apply(this, arguments);
|
|
1579
1584
|
};
|
|
1580
1585
|
}()));
|