steamutils 1.1.77 → 1.1.78
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5631,7 +5631,12 @@ class SteamUser {
|
|
5631
5631
|
const response = await this._httpRequestAjax({
|
5632
5632
|
url: `miniprofile/${SteamUser.steamID642Miniprofile(steamId)}/json/?origin=https://steamcommunity.com/`
|
5633
5633
|
})
|
5634
|
-
|
5634
|
+
const miniProfile = response.data;
|
5635
|
+
const avatar_hash = SteamUser.GetAvatarHashFromURL(miniProfile?.avatar_url) || ''
|
5636
|
+
return {
|
5637
|
+
...miniProfile,
|
5638
|
+
avatar_hash,
|
5639
|
+
}
|
5635
5640
|
const example = {
|
5636
5641
|
"level": 0,
|
5637
5642
|
"level_class": "friendPlayerLevel lvl_0",
|