steamutils 1.1.76 → 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 +7 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5629,9 +5629,14 @@ class SteamUser {
5629
5629
 
5630
5630
  async getMiniprofile(steamId = this._steamid_user){
5631
5631
  const response = await this._httpRequestAjax({
5632
- url: `${SteamUser.steamID642Miniprofile(steamId)}/json/?origin=https://steamcommunity.com/`
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.76",
3
+ "version": "1.1.78",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",