steamutils 1.1.39 → 1.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2296,7 +2296,7 @@ class SteamUser {
2296
2296
  i = MAX_RETRY
2297
2297
  while (result?.data?.success !== true && i--) {
2298
2298
  result = await _self._httpRequest(
2299
- `${this.getMySteamUserProfileURL()}/gcpd/${AppID_CSGO}?ajax=1&tab=${matchHistoryType}&continue_token=${token}&sessionid=${_self._sessionid}`)
2299
+ `${this.getMySteamUserProfileURL()}/gcpd/${AppID_CSGO}?ajax=1&tab=${matchHistoryType}${token ? `&continue_token=${token}` : ''}&sessionid=${_self._sessionid}`)
2300
2300
  }
2301
2301
  if (!result.data) {
2302
2302
  return null
@@ -2511,7 +2511,7 @@ class SteamUser {
2511
2511
  const matches = []
2512
2512
 
2513
2513
  do {
2514
- result = await (page++ ? this._getHistoryMatches(matchHistoryType, result?.continue_token) : this.getMatchHistory_initial(matchHistoryType))
2514
+ result = await this._getHistoryMatches(matchHistoryType, result?.continue_token)
2515
2515
  stop = shouldStop({
2516
2516
  maxPage,
2517
2517
  currentPage: page,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",