steamutils 1.1.77 → 1.1.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. 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
- return response.data
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.77",
3
+ "version": "1.1.78",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",