@quenty/playerthumbnailutils 10.10.0 → 10.10.1-canary.542.7609692.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 +8 -0
- package/package.json +4 -4
- package/src/Shared/PlayerThumbnailUtils.lua +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [10.10.1-canary.542.7609692.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerthumbnailutils@10.10.0...@quenty/playerthumbnailutils@10.10.1-canary.542.7609692.0) (2025-03-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/playerthumbnailutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [10.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerthumbnailutils@10.9.0...@quenty/playerthumbnailutils@10.10.0) (2025-02-18)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/playerthumbnailutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/playerthumbnailutils",
|
|
3
|
-
"version": "10.10.0",
|
|
3
|
+
"version": "10.10.1-canary.542.7609692.0",
|
|
4
4
|
"description": "Reimplementation of Player:GetUserThumbnailAsync but as a promise with retry logic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/loader": "
|
|
29
|
-
"@quenty/promise": "
|
|
28
|
+
"@quenty/loader": "10.8.0",
|
|
29
|
+
"@quenty/promise": "10.10.1-canary.542.7609692.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "76096921c6c965e5c4f9c796f97642d16d628c6b"
|
|
35
35
|
}
|
|
@@ -28,7 +28,11 @@ local PlayerThumbnailUtils = {}
|
|
|
28
28
|
@param thumbnailSize ThumbnailSize?
|
|
29
29
|
@return Promise<string>
|
|
30
30
|
]=]
|
|
31
|
-
function PlayerThumbnailUtils.promiseUserThumbnail(
|
|
31
|
+
function PlayerThumbnailUtils.promiseUserThumbnail(
|
|
32
|
+
userId: number,
|
|
33
|
+
thumbnailType: Enum.ThumbnailType?,
|
|
34
|
+
thumbnailSize: Enum.ThumbnailSize?
|
|
35
|
+
)
|
|
32
36
|
assert(type(userId) == "number", "Bad userId")
|
|
33
37
|
thumbnailType = thumbnailType or Enum.ThumbnailType.HeadShot
|
|
34
38
|
thumbnailSize = thumbnailSize or Enum.ThumbnailSize.Size100x100
|
|
@@ -54,7 +58,8 @@ function PlayerThumbnailUtils.promiseUserThumbnail(userId, thumbnailType, thumbn
|
|
|
54
58
|
task.wait(0.05)
|
|
55
59
|
end
|
|
56
60
|
until tries >= MAX_TRIES or (not promise:IsPending())
|
|
57
|
-
|
|
61
|
+
|
|
62
|
+
return reject()
|
|
58
63
|
end)
|
|
59
64
|
|
|
60
65
|
return promise
|
|
@@ -68,7 +73,7 @@ end
|
|
|
68
73
|
@param userId number
|
|
69
74
|
@return Promise<string>
|
|
70
75
|
]=]
|
|
71
|
-
function PlayerThumbnailUtils.promiseUserName(userId)
|
|
76
|
+
function PlayerThumbnailUtils.promiseUserName(userId: number)
|
|
72
77
|
assert(type(userId) == "number", "Bad userId")
|
|
73
78
|
|
|
74
79
|
local promise
|
|
@@ -92,10 +97,11 @@ function PlayerThumbnailUtils.promiseUserName(userId)
|
|
|
92
97
|
task.wait(0.05)
|
|
93
98
|
end
|
|
94
99
|
until tries >= MAX_TRIES or (not promise:IsPending())
|
|
95
|
-
|
|
100
|
+
|
|
101
|
+
return reject()
|
|
96
102
|
end)
|
|
97
103
|
|
|
98
104
|
return promise
|
|
99
105
|
end
|
|
100
106
|
|
|
101
|
-
return PlayerThumbnailUtils
|
|
107
|
+
return PlayerThumbnailUtils
|