@azrico/webobject 1.4.116 → 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.
@@ -25,12 +25,14 @@ export declare class WebObject extends SimpleObject {
25
25
  /**
26
26
  * get a list of all user ids that work on the given object
27
27
  * _creator + _users + attentions(old)
28
+ * removes duplicates
28
29
  * @returns array of ids
29
30
  */
30
31
  getAllUsers(): string[];
31
32
  /**
32
33
  * get a list of all user ids that work on the given object
33
34
  * _creator + _users + attentions(old)
35
+ * removes duplicates
34
36
  * @returns array of ids
35
37
  */
36
38
  static getAllUsers(obj: any): string[];
@@ -55,6 +55,7 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
55
55
  /**
56
56
  * get a list of all user ids that work on the given object
57
57
  * _creator + _users + attentions(old)
58
+ * removes duplicates
58
59
  * @returns array of ids
59
60
  */
60
61
  _createClass(WebObject, [{
@@ -65,6 +66,7 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
65
66
  /**
66
67
  * get a list of all user ids that work on the given object
67
68
  * _creator + _users + attentions(old)
69
+ * removes duplicates
68
70
  * @returns array of ids
69
71
  */
70
72
  }, {
@@ -751,6 +753,8 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
751
753
  value: function getAllUsers(obj) {
752
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) {
753
755
  return String(_typeof(r) === "object" ? WebObject.getID(r) : r);
756
+ }).filter(function (s) {
757
+ return s;
754
758
  }));
755
759
  }
756
760
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.116",
3
+ "version": "1.4.117",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",