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.
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/steamutils.iml +1 -1
- package/.idea/vcs.xml +1 -1
- package/SteamClient.js +7 -2
- package/package.json +1 -1
package/.idea/steamutils.iml
CHANGED
@@ -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
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
|
655
|
-
|
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:
|