@azrico/webobject 1.5.40 → 1.5.41
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.
|
@@ -695,6 +695,9 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
695
695
|
* intersection of keys in delta and keys that are defined as changeable
|
|
696
696
|
*/
|
|
697
697
|
changableKeys = (0, _object.array_intersection)(Object.keys(changedFields), WebObject.getChangeableKeys(this, p));
|
|
698
|
+
if (p.changableKeys) {
|
|
699
|
+
changableKeys = (0, _object.array_intersection)(changableKeys, p.changableKeys);
|
|
700
|
+
}
|
|
698
701
|
_convert["default"].format({
|
|
699
702
|
original: this,
|
|
700
703
|
inputobject: changedFields,
|
|
@@ -715,33 +718,33 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
715
718
|
/* parse all changableKeys */
|
|
716
719
|
/* -------------------------------------------------------------------------- */
|
|
717
720
|
_iterator = _createForOfIteratorHelper(changableKeys);
|
|
718
|
-
_context13.prev =
|
|
721
|
+
_context13.prev = 20;
|
|
719
722
|
_iterator.s();
|
|
720
|
-
case
|
|
723
|
+
case 22:
|
|
721
724
|
if ((_step = _iterator.n()).done) {
|
|
722
|
-
_context13.next =
|
|
725
|
+
_context13.next = 29;
|
|
723
726
|
break;
|
|
724
727
|
}
|
|
725
728
|
_key = _step.value;
|
|
726
|
-
_context13.next =
|
|
729
|
+
_context13.next = 26;
|
|
727
730
|
return parseObj(changedFields[_key]);
|
|
728
|
-
case 25:
|
|
729
|
-
final_object[_key] = _context13.sent;
|
|
730
731
|
case 26:
|
|
731
|
-
|
|
732
|
+
final_object[_key] = _context13.sent;
|
|
733
|
+
case 27:
|
|
734
|
+
_context13.next = 22;
|
|
732
735
|
break;
|
|
733
|
-
case
|
|
734
|
-
_context13.next =
|
|
736
|
+
case 29:
|
|
737
|
+
_context13.next = 34;
|
|
735
738
|
break;
|
|
736
|
-
case
|
|
737
|
-
_context13.prev =
|
|
738
|
-
_context13.t2 = _context13["catch"](
|
|
739
|
+
case 31:
|
|
740
|
+
_context13.prev = 31;
|
|
741
|
+
_context13.t2 = _context13["catch"](20);
|
|
739
742
|
_iterator.e(_context13.t2);
|
|
740
|
-
case
|
|
741
|
-
_context13.prev =
|
|
743
|
+
case 34:
|
|
744
|
+
_context13.prev = 34;
|
|
742
745
|
_iterator.f();
|
|
743
|
-
return _context13.finish(
|
|
744
|
-
case
|
|
746
|
+
return _context13.finish(34);
|
|
747
|
+
case 37:
|
|
745
748
|
/* -------------------- add acrhived and date properties -------------------- */
|
|
746
749
|
if (p.allProperties) {
|
|
747
750
|
final_object["_created_date"] = this["_created_date"];
|
|
@@ -767,17 +770,17 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
767
770
|
final_object["_users"] = (0, _object.wrap_array)(tempusers);
|
|
768
771
|
}
|
|
769
772
|
if (!p.clean) {
|
|
770
|
-
_context13.next =
|
|
773
|
+
_context13.next = 42;
|
|
771
774
|
break;
|
|
772
775
|
}
|
|
773
776
|
return _context13.abrupt("return", (0, _object.object_clean)(final_object, false, true));
|
|
774
|
-
case 41:
|
|
775
|
-
return _context13.abrupt("return", final_object);
|
|
776
777
|
case 42:
|
|
778
|
+
return _context13.abrupt("return", final_object);
|
|
779
|
+
case 43:
|
|
777
780
|
case "end":
|
|
778
781
|
return _context13.stop();
|
|
779
782
|
}
|
|
780
|
-
}, _callee13, this, [[
|
|
783
|
+
}, _callee13, this, [[20, 31, 34, 37]]);
|
|
781
784
|
}));
|
|
782
785
|
function get_deltaObject(_x5) {
|
|
783
786
|
return _get_deltaObject.apply(this, arguments);
|