@azrico/webobject 1.5.52 → 1.5.54

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.
@@ -53,10 +53,12 @@ export declare class SimpleObject extends MapableObject {
53
53
  protected __saveResultObject?: any;
54
54
  protected __saveResultIsSuccess: boolean;
55
55
  protected __saveResultType?: saveResultType;
56
+ readonly __initialized?: boolean;
56
57
  _id: string;
57
58
  _index_key: string;
58
59
  _index_value: number;
59
60
  constructor(is_readonly?: boolean);
61
+ init(): void;
60
62
  get<MKey extends PropOf<this>>(key: MKey, original?: boolean): PropType<this, MKey>;
61
63
  get<MKey extends PropOnlyPrefixedOf<this>>(key: MKey, original?: boolean): any;
62
64
  /**
@@ -76,6 +76,8 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
76
76
  _defineProperty(_this, "__saveResultObject", void 0);
77
77
  _defineProperty(_this, "__saveResultIsSuccess", true);
78
78
  _defineProperty(_this, "__saveResultType", void 0);
79
+ //init function
80
+ _defineProperty(_this, "__initialized", void 0);
79
81
  //id in the database
80
82
  _defineProperty(_this, "_id", "");
81
83
  //sequence key (usually managed by the database)
@@ -117,6 +119,11 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
117
119
  value: function _static() {
118
120
  return this.constructor;
119
121
  }
122
+ }, {
123
+ key: "init",
124
+ value: function init() {
125
+ this.__initialized = true;
126
+ }
120
127
  }, {
121
128
  key: "get",
122
129
  value: function get(key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.5.52",
3
+ "version": "1.5.54",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",
@@ -70,11 +70,11 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@azrico/convert": "^1.1.7",
73
- "@azrico/event": "^1.2.67",
73
+ "@azrico/event": "^1.2.91",
74
74
  "@azrico/global": "^1.3.85",
75
75
  "@azrico/math": "^1.0.5",
76
- "@azrico/object": "^1.4.135",
77
- "@azrico/string": "^1.3.7",
76
+ "@azrico/object": "^1.4.137",
77
+ "@azrico/string": "^1.3.15",
78
78
  "@azrico/types": "^1.0.11",
79
79
  "@azrico/uid": "^1.0.8"
80
80
  },