@azrico/webobject 1.4.115 → 1.4.117

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,17 @@ 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
+ * removes duplicates
29
+ * @returns array of ids
29
30
  */
30
31
  getAllUsers(): string[];
31
32
  /**
32
- * get a list of all users that work on the given object
33
+ * get a list of all user ids that work on the given object
33
34
  * _creator + _users + attentions(old)
34
- * @returns
35
+ * removes duplicates
36
+ * @returns array of ids
35
37
  */
36
38
  static getAllUsers(obj: any): string[];
37
39
  /**
@@ -53,9 +53,10 @@ 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
+ * removes duplicates
59
+ * @returns array of ids
59
60
  */
60
61
  _createClass(WebObject, [{
61
62
  key: "getAllUsers",
@@ -63,9 +64,10 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
63
64
  return WebObject.getAllUsers(this);
64
65
  }
65
66
  /**
66
- * get a list of all users that work on the given object
67
+ * get a list of all user ids that work on the given object
67
68
  * _creator + _users + attentions(old)
68
- * @returns
69
+ * removes duplicates
70
+ * @returns array of ids
69
71
  */
70
72
  }, {
71
73
  key: "setMetaValue",
@@ -749,7 +751,11 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
749
751
  }], [{
750
752
  key: "getAllUsers",
751
753
  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)));
754
+ 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) {
755
+ return String(_typeof(r) === "object" ? WebObject.getID(r) : r);
756
+ }).filter(function (s) {
757
+ return s;
758
+ }));
753
759
  }
754
760
  }, {
755
761
  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.117",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",