@azrico/webobject 1.4.115 → 1.4.116

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.
@@ -23,15 +23,15 @@ export declare class WebObject extends SimpleObject {
23
23
  _users?: string[];
24
24
  constructor(is_readonly?: boolean);
25
25
  /**
26
- * get a list of all users that work on this object
26
+ * get a list of all user ids that work on the given object
27
27
  * _creator + _users + attentions(old)
28
- * @returns
28
+ * @returns array of ids
29
29
  */
30
30
  getAllUsers(): string[];
31
31
  /**
32
- * get a list of all users that work on the given object
32
+ * get a list of all user ids that work on the given object
33
33
  * _creator + _users + attentions(old)
34
- * @returns
34
+ * @returns array of ids
35
35
  */
36
36
  static getAllUsers(obj: any): string[];
37
37
  /**
@@ -53,9 +53,9 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
53
53
  return _this;
54
54
  }
55
55
  /**
56
- * get a list of all users that work on this object
56
+ * get a list of all user ids that work on the given object
57
57
  * _creator + _users + attentions(old)
58
- * @returns
58
+ * @returns array of ids
59
59
  */
60
60
  _createClass(WebObject, [{
61
61
  key: "getAllUsers",
@@ -63,9 +63,9 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
63
63
  return WebObject.getAllUsers(this);
64
64
  }
65
65
  /**
66
- * get a list of all users that work on the given object
66
+ * get a list of all user ids that work on the given object
67
67
  * _creator + _users + attentions(old)
68
- * @returns
68
+ * @returns array of ids
69
69
  */
70
70
  }, {
71
71
  key: "setMetaValue",
@@ -749,7 +749,9 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
749
749
  }], [{
750
750
  key: "getAllUsers",
751
751
  value: function getAllUsers(obj) {
752
- return (0, _object.array_remove_duplicates)((0, _object.array_merge)(obj._creator, (0, _object.wrap_array)(obj._users), (0, _object.wrap_array)(obj.attentions)));
752
+ return (0, _object.array_remove_duplicates)((0, _object.array_merge)(obj._creator, (0, _object.wrap_array)(obj._users), (0, _object.wrap_array)(obj.attentions)).map(function (r) {
753
+ return String(_typeof(r) === "object" ? WebObject.getID(r) : r);
754
+ }));
753
755
  }
754
756
  }, {
755
757
  key: "getMetaValue",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.115",
3
+ "version": "1.4.116",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",