steamutils 1.0.36 → 1.0.38

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.
Files changed (2) hide show
  1. package/SteamClient.js +6 -2
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -194,7 +194,7 @@ function SteamClient({
194
194
  steamClient.sendToGC(appid, Protos.csgo.ECsgoGCMsg.k_EMsgGCCStrike15_v2_Party_Search, {}, protoEncode(Protos.csgo.CMsgGCCStrike15_v2_Party_Search, {
195
195
  ver: CSGO_VER,
196
196
  apr: prime ? 1 : 0,
197
- ark: Object.keys(RANKS).find(k => RANKS[k] === rank) * 10,
197
+ ark: parseInt(Object.keys(RANKS).find(k => RANKS[k] === rank)) * 10,
198
198
  grps: [],
199
199
  launcher: 0,
200
200
  game_type: game_type === 'Competitive' ? 8 : 10
@@ -461,7 +461,11 @@ function SteamClient({
461
461
  }
462
462
  }
463
463
 
464
- partySearchCallback.shift()?.(players)
464
+
465
+ let _partySearchCallback = null
466
+ while ((_partySearchCallback = partySearchCallback.shift())) {
467
+ _partySearchCallback?.(players)
468
+ }
465
469
  break
466
470
  }
467
471
  case Protos.csgo.ECsgoGCMsg.k_EMsgGCCStrike15_v2_PlayersProfile: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",