steamutils 1.1.40 → 1.1.41

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/index.js +4 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2483,7 +2483,8 @@ class SteamUser {
2483
2483
  if (!Started_playing_CS_GO || !(Started_playing_CS_GO = moment(Started_playing_CS_GO.replace('GMT', '+00'), `YYYY-MM-DD HH:mm:ss Z`)).isValid()) {
2484
2484
  Started_playing_CS_GO = null
2485
2485
  }
2486
- for (const matchHistoryType of matchHistoryTypes) {
2486
+
2487
+ await Promise.all(matchHistoryTypes.map(async (matchHistoryType) => {
2487
2488
  results[matchHistoryType] = await this._getFullHistoryMatches({
2488
2489
  matchHistoryType,
2489
2490
  cbOnMatch,
@@ -2492,7 +2493,8 @@ class SteamUser {
2492
2493
  Started_playing_CS_GO,
2493
2494
  shouldStop,
2494
2495
  })
2495
- }
2496
+ }))
2497
+
2496
2498
  return results
2497
2499
  }
2498
2500
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.40",
3
+ "version": "1.1.41",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",