@azrico/webobject 1.3.10 → 1.3.12

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.
@@ -21,7 +21,8 @@ export declare class SimpleObject extends MapableObject {
21
21
  __lastChanged: string;
22
22
  __is_readonly: boolean;
23
23
  __throw_errors: boolean;
24
- __deleted: boolean;
24
+ _deleted: boolean;
25
+ _deletedBy?: string;
25
26
  __errors?: any[];
26
27
  __showErrors?: boolean;
27
28
  __saveResultObject?: any;
@@ -68,13 +68,15 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
68
68
  _classPrivateMethodInitSpec(_assertThisInitialized(_this), _setSubProperty);
69
69
  _defineProperty(_assertThisInitialized(_this), "__originalobject", void 0);
70
70
  //changes
71
- _defineProperty(_assertThisInitialized(_this), "__delta", void 0);
72
- _defineProperty(_assertThisInitialized(_this), "__temp", void 0);
71
+ _defineProperty(_assertThisInitialized(_this), "__delta", {});
72
+ _defineProperty(_assertThisInitialized(_this), "__temp", undefined);
73
73
  _defineProperty(_assertThisInitialized(_this), "__changed", false);
74
74
  _defineProperty(_assertThisInitialized(_this), "__lastChanged", "");
75
75
  _defineProperty(_assertThisInitialized(_this), "__is_readonly", void 0);
76
76
  _defineProperty(_assertThisInitialized(_this), "__throw_errors", void 0);
77
- _defineProperty(_assertThisInitialized(_this), "__deleted", void 0);
77
+ //is this object marked as deleted?
78
+ _defineProperty(_assertThisInitialized(_this), "_deleted", false);
79
+ _defineProperty(_assertThisInitialized(_this), "_deletedBy", void 0);
78
80
  //errors
79
81
  _defineProperty(_assertThisInitialized(_this), "__errors", void 0);
80
82
  _defineProperty(_assertThisInitialized(_this), "__showErrors", void 0);
@@ -95,9 +97,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
95
97
  _defineProperty(_assertThisInitialized(_this), "get_managerClass", function () {
96
98
  return null;
97
99
  });
98
- _this.__deleted = false;
99
- _this.__delta = {};
100
- _this.__temp = {};
100
+ if (_this._deleted == null) _this._deleted = false;
101
101
  _this.__is_readonly = is_readonly;
102
102
  _this.__throw_errors = true;
103
103
  _this.clear_changes();
@@ -398,7 +398,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
398
398
  }, {
399
399
  key: "clear_cache",
400
400
  value: function clear_cache() {
401
- this.__temp = {};
401
+ this.__temp = undefined;
402
402
  return true;
403
403
  }
404
404
  /**
@@ -442,10 +442,10 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
442
442
  }, {
443
443
  key: "isDeleted",
444
444
  get: function get() {
445
- return this.__deleted || false;
445
+ return this._deleted || false;
446
446
  },
447
447
  set: function set(v) {
448
- this.__deleted = v;
448
+ this._deleted = v;
449
449
  }
450
450
  }, {
451
451
  key: "d",
@@ -865,11 +865,11 @@ function _getProperty2(key) {
865
865
  return this[key];
866
866
  }
867
867
  function _getTempProperty2(key) {
868
- if (!this.__temp) return undefined;
868
+ if (this.__temp == null) return undefined;
869
869
  return this.__temp[key];
870
870
  }
871
871
  function _setTempProperty2(key, value) {
872
- if (!this.__temp) this.__temp = {};
872
+ if (this.__temp == null) this.__temp = {};
873
873
  this.__temp[key] = value;
874
874
  }
875
875
  function _setSaveResultObject2(toObj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",