steamutils 1.1.5 → 1.1.7

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.
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -2,8 +2,8 @@
2
2
  <module type="WEB_MODULE" version="4">
3
3
  <component name="NewModuleRootManager">
4
4
  <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/temp" />
6
5
  <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
7
  <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
8
  </content>
9
9
  <orderEntry type="inheritedJdk" />
package/.idea/vcs.xml CHANGED
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
4
+ <mapping directory="" vcs="Git" />
5
5
  </component>
6
6
  </project>
package/SteamClient.js CHANGED
@@ -99,6 +99,7 @@ function SteamClient({
99
99
  friendTyping: [],
100
100
  disconnected: [],
101
101
  error: [],
102
+ playersProfile: [],
102
103
  }
103
104
 
104
105
  const gcCallback = {}
@@ -651,8 +652,12 @@ function SteamClient({
651
652
  player_xp_bonus_flags: 0
652
653
  }]
653
654
 
654
- const accountid = data?.[0]?.account_id
655
- callGCCallback('PlayersProfile' + accountid, data?.[0])
655
+ const player = data?.[0];
656
+ if (player) {
657
+ player.prime = !!(player.ranking?.account_id || player.player_level || player.player_cur_xp)
658
+ }
659
+ callGCCallback('PlayersProfile' + player?.account_id, player)
660
+ callEvent(events.playersProfile, player)
656
661
  break
657
662
  }
658
663
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",