@azrico/webobject 1.5.38 → 1.5.40
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 +22 -23
- package/package.json +5 -5
|
@@ -695,15 +695,14 @@ 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
|
-
|
|
699
|
-
|
|
698
|
+
_convert["default"].format({
|
|
699
|
+
original: this,
|
|
700
700
|
inputobject: changedFields,
|
|
701
701
|
formats: (0, _object.object_getStatic)(this, "__formatList"),
|
|
702
702
|
isNew: this.isNew,
|
|
703
703
|
changableKeys: changableKeys,
|
|
704
704
|
applyDefaults: true
|
|
705
705
|
});
|
|
706
|
-
case 17:
|
|
707
706
|
/* -------------------------------------------------------------------------- */
|
|
708
707
|
/* __functionProperties */
|
|
709
708
|
/* -------------------------------------------------------------------------- */
|
|
@@ -716,33 +715,33 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
716
715
|
/* parse all changableKeys */
|
|
717
716
|
/* -------------------------------------------------------------------------- */
|
|
718
717
|
_iterator = _createForOfIteratorHelper(changableKeys);
|
|
719
|
-
_context13.prev =
|
|
718
|
+
_context13.prev = 19;
|
|
720
719
|
_iterator.s();
|
|
721
|
-
case
|
|
720
|
+
case 21:
|
|
722
721
|
if ((_step = _iterator.n()).done) {
|
|
723
|
-
_context13.next =
|
|
722
|
+
_context13.next = 28;
|
|
724
723
|
break;
|
|
725
724
|
}
|
|
726
725
|
_key = _step.value;
|
|
727
|
-
_context13.next =
|
|
726
|
+
_context13.next = 25;
|
|
728
727
|
return parseObj(changedFields[_key]);
|
|
729
|
-
case
|
|
728
|
+
case 25:
|
|
730
729
|
final_object[_key] = _context13.sent;
|
|
731
|
-
case
|
|
732
|
-
_context13.next =
|
|
730
|
+
case 26:
|
|
731
|
+
_context13.next = 21;
|
|
733
732
|
break;
|
|
734
|
-
case
|
|
735
|
-
_context13.next =
|
|
733
|
+
case 28:
|
|
734
|
+
_context13.next = 33;
|
|
736
735
|
break;
|
|
737
|
-
case
|
|
738
|
-
_context13.prev =
|
|
739
|
-
_context13.t2 = _context13["catch"](
|
|
736
|
+
case 30:
|
|
737
|
+
_context13.prev = 30;
|
|
738
|
+
_context13.t2 = _context13["catch"](19);
|
|
740
739
|
_iterator.e(_context13.t2);
|
|
741
|
-
case
|
|
742
|
-
_context13.prev =
|
|
740
|
+
case 33:
|
|
741
|
+
_context13.prev = 33;
|
|
743
742
|
_iterator.f();
|
|
744
|
-
return _context13.finish(
|
|
745
|
-
case
|
|
743
|
+
return _context13.finish(33);
|
|
744
|
+
case 36:
|
|
746
745
|
/* -------------------- add acrhived and date properties -------------------- */
|
|
747
746
|
if (p.allProperties) {
|
|
748
747
|
final_object["_created_date"] = this["_created_date"];
|
|
@@ -768,17 +767,17 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
768
767
|
final_object["_users"] = (0, _object.wrap_array)(tempusers);
|
|
769
768
|
}
|
|
770
769
|
if (!p.clean) {
|
|
771
|
-
_context13.next =
|
|
770
|
+
_context13.next = 41;
|
|
772
771
|
break;
|
|
773
772
|
}
|
|
774
773
|
return _context13.abrupt("return", (0, _object.object_clean)(final_object, false, true));
|
|
775
|
-
case
|
|
774
|
+
case 41:
|
|
776
775
|
return _context13.abrupt("return", final_object);
|
|
777
|
-
case
|
|
776
|
+
case 42:
|
|
778
777
|
case "end":
|
|
779
778
|
return _context13.stop();
|
|
780
779
|
}
|
|
781
|
-
}, _callee13, this, [[
|
|
780
|
+
}, _callee13, this, [[19, 30, 33, 36]]);
|
|
782
781
|
}));
|
|
783
782
|
function get_deltaObject(_x5) {
|
|
784
783
|
return _get_deltaObject.apply(this, arguments);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azrico/webobject",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.40",
|
|
4
4
|
"description": "Stateful object",
|
|
5
5
|
"author": "Azrideus",
|
|
6
6
|
"license": "MIT",
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"@azrico/uid": "*"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@azrico/convert": "^1.
|
|
73
|
-
"@azrico/event": "^1.2.
|
|
72
|
+
"@azrico/convert": "^1.1.3",
|
|
73
|
+
"@azrico/event": "^1.2.67",
|
|
74
74
|
"@azrico/global": "^1.3.85",
|
|
75
75
|
"@azrico/math": "^1.0.5",
|
|
76
|
-
"@azrico/object": "^1.4.
|
|
77
|
-
"@azrico/string": "^1.3.
|
|
76
|
+
"@azrico/object": "^1.4.135",
|
|
77
|
+
"@azrico/string": "^1.3.7",
|
|
78
78
|
"@azrico/types": "^1.0.11",
|
|
79
79
|
"@azrico/uid": "^1.0.8"
|
|
80
80
|
},
|