steamutils 1.0.58 → 1.0.60
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/SteamClient.js +1 -1
- package/index.js +4 -0
- package/package.json +1 -1
package/SteamClient.js
CHANGED
package/index.js
CHANGED
@@ -3844,6 +3844,10 @@ class SteamUser {
|
|
3844
3844
|
|
3845
3845
|
steamIDs = _.uniq(steamIDs)
|
3846
3846
|
|
3847
|
+
if (steamIDs.length > 200) {
|
3848
|
+
return _.flatten(await Promise.all(_.chunk(steamIDs, 200).map(_steamIDs => SteamUser.resolveUsers(_steamIDs, cookie))))
|
3849
|
+
}
|
3850
|
+
|
3847
3851
|
const { data } = await request({
|
3848
3852
|
url: `https://steamcommunity.com/actions/ajaxresolveusers?steamids=${steamIDs.join(',')}`,
|
3849
3853
|
headers: { ...cookie && { cookie } },
|