@azrico/webobject 1.4.144 → 1.4.146
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,6 +53,12 @@ export declare class SimpleObject extends MapableObject {
|
|
|
53
53
|
* @return true if changed , false otherwise
|
|
54
54
|
*/
|
|
55
55
|
setValue(key: WriteablePropOf<this>, value: any, sendChanges?: sendChangesType): Promise<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* set value
|
|
58
|
+
* @param key
|
|
59
|
+
* @param value
|
|
60
|
+
* @return true if changed , false otherwise
|
|
61
|
+
*/
|
|
56
62
|
set: (key: WriteablePropOf<this>, value: any, sendChanges?: sendChangesType) => Promise<boolean>;
|
|
57
63
|
setTemp(key: string, value: any, sendChanges?: sendChangesType): Promise<boolean>;
|
|
58
64
|
clearRefreshFunction(): Promise<void>;
|
|
@@ -92,6 +92,12 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
92
92
|
_defineProperty(_assertThisInitialized(_this), "_index_value", -1);
|
|
93
93
|
_defineProperty(_assertThisInitialized(_this), "getValue", _classPrivateMethodGet(_assertThisInitialized(_this), _getProperty, _getProperty2));
|
|
94
94
|
_defineProperty(_assertThisInitialized(_this), "get", _classPrivateMethodGet(_assertThisInitialized(_this), _getProperty, _getProperty2));
|
|
95
|
+
/**
|
|
96
|
+
* set value
|
|
97
|
+
* @param key
|
|
98
|
+
* @param value
|
|
99
|
+
* @return true if changed , false otherwise
|
|
100
|
+
*/
|
|
95
101
|
_defineProperty(_assertThisInitialized(_this), "set", _this.setValue);
|
|
96
102
|
/**
|
|
97
103
|
* set value of a key to now date time
|
|
@@ -1138,9 +1144,6 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
1138
1144
|
}
|
|
1139
1145
|
}
|
|
1140
1146
|
}
|
|
1141
|
-
/* ---------------------- try to parse id from objectId --------------------- */
|
|
1142
|
-
if (obj["_id"] != null && _typeof(obj["_id"]) === "object" && obj["_id"]["$oid"]) obj["_id"] = obj["_id"]["$oid"];
|
|
1143
|
-
/* -------------------------------------------------------------------------- */
|
|
1144
1147
|
return true;
|
|
1145
1148
|
}
|
|
1146
1149
|
/* -------------------------------------------------------------------------- */
|