@quenty/userserviceutils 9.14.1-canary.522.b5d379b.0 → 9.15.0
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.
- package/CHANGELOG.md +5 -2
- package/package.json +10 -10
- package/src/Shared/UserInfoAggregator.lua +19 -3
- package/src/Shared/UserInfoService.lua +13 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [9.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/userserviceutils@9.14.0...@quenty/userserviceutils@9.15.0) (2024-12-03)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix username query ([a605933](https://github.com/Quenty/NevermoreEngine/commit/a605933b1375e0f0fc4e55f9d1c8dbf9e5893c4b))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/userserviceutils",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.15.0",
|
|
4
4
|
"description": "Utilities involving UserService in Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/aggregator": "1.
|
|
29
|
-
"@quenty/baseobject": "10.7.1",
|
|
30
|
-
"@quenty/loader": "10.7.1",
|
|
31
|
-
"@quenty/maid": "3.4.0",
|
|
32
|
-
"@quenty/math": "2.7.0",
|
|
33
|
-
"@quenty/promise": "10.8.0",
|
|
34
|
-
"@quenty/rx": "13.
|
|
35
|
-
"@quenty/servicebag": "11.10.0"
|
|
28
|
+
"@quenty/aggregator": "^1.1.0",
|
|
29
|
+
"@quenty/baseobject": "^10.7.1",
|
|
30
|
+
"@quenty/loader": "^10.7.1",
|
|
31
|
+
"@quenty/maid": "^3.4.0",
|
|
32
|
+
"@quenty/math": "^2.7.0",
|
|
33
|
+
"@quenty/promise": "^10.8.0",
|
|
34
|
+
"@quenty/rx": "^13.14.0",
|
|
35
|
+
"@quenty/servicebag": "^11.10.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "66190e48c1ca93b07040326e9cfcf97e8eb4b0e1"
|
|
41
41
|
}
|
|
@@ -54,17 +54,17 @@ function UserInfoAggregator:PromiseDisplayName(userId)
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
--[=[
|
|
57
|
-
Promises the
|
|
57
|
+
Promises the Username for the userId
|
|
58
58
|
|
|
59
59
|
@param userId number
|
|
60
60
|
@return Promise<string>
|
|
61
61
|
]=]
|
|
62
|
-
function UserInfoAggregator:
|
|
62
|
+
function UserInfoAggregator:PromiseUsername(userId)
|
|
63
63
|
assert(type(userId) == "number", "Bad userId")
|
|
64
64
|
|
|
65
65
|
return self._aggregator:Promise(userId)
|
|
66
66
|
:Then(function(userInfo)
|
|
67
|
-
return userInfo.
|
|
67
|
+
return userInfo.Username
|
|
68
68
|
end)
|
|
69
69
|
end
|
|
70
70
|
|
|
@@ -111,6 +111,22 @@ function UserInfoAggregator:ObserveDisplayName(userId)
|
|
|
111
111
|
})
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
+
--[=[
|
|
115
|
+
Observes the Username for the userId
|
|
116
|
+
|
|
117
|
+
@param userId number
|
|
118
|
+
@return Observable<string>
|
|
119
|
+
]=]
|
|
120
|
+
function UserInfoAggregator:ObserveUsername(userId)
|
|
121
|
+
assert(type(userId) == "number", "Bad userId")
|
|
122
|
+
|
|
123
|
+
return self._aggregator:Observe(userId):Pipe({
|
|
124
|
+
Rx.map(function(userInfo)
|
|
125
|
+
return userInfo.Username
|
|
126
|
+
end)
|
|
127
|
+
})
|
|
128
|
+
end
|
|
129
|
+
|
|
114
130
|
--[=[
|
|
115
131
|
Observes the user display name for the userId
|
|
116
132
|
|
|
@@ -42,7 +42,7 @@ end
|
|
|
42
42
|
function UserInfoService:ObserveUserInfo(userId)
|
|
43
43
|
assert(type(userId) == "number", "Bad userId")
|
|
44
44
|
|
|
45
|
-
return self._aggregator:
|
|
45
|
+
return self._aggregator:ObserveUserInfo(userId)
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
--[=[
|
|
@@ -57,6 +57,18 @@ function UserInfoService:PromiseDisplayName(userId)
|
|
|
57
57
|
return self._aggregator:PromiseDisplayName(userId)
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
--[=[
|
|
61
|
+
Promises the Username for the userId
|
|
62
|
+
|
|
63
|
+
@param userId number
|
|
64
|
+
@return Promise<string>
|
|
65
|
+
]=]
|
|
66
|
+
function UserInfoService:PromiseUsername(userId)
|
|
67
|
+
assert(type(userId) == "number", "Bad userId")
|
|
68
|
+
|
|
69
|
+
return self._aggregator:PromiseUsername(userId)
|
|
70
|
+
end
|
|
71
|
+
|
|
60
72
|
--[=[
|
|
61
73
|
Observes the user display name for the userId
|
|
62
74
|
|