steamutils 1.4.13 → 1.4.14

Sign up to get free protection for your applications and to get access to all the features.
package/SteamClient.js CHANGED
@@ -1951,7 +1951,7 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
1951
1951
  if (richPresence.map === undefined) {
1952
1952
  richPresence.map = maps[Math.floor(Math.random() * maps.length)];
1953
1953
  }
1954
- if (richPresence.myScore === maxRound || richPresence.theirScore === maxRound) {
1954
+ if (richPresence.myScore >= maxRound || richPresence.theirScore >= maxRound) {
1955
1955
  richPresence.myScore = 0;
1956
1956
  richPresence.theirScore = 0;
1957
1957
  richPresence.map = maps[Math.floor(Math.random() * maps.length)];
package/index.js CHANGED
@@ -77,7 +77,10 @@ export default class SteamUser {
77
77
  return;
78
78
  }
79
79
  this.Steam_Language = language;
80
- this._cookies.forEach((cookie) => cookie.setCookie("Steam_Language", language));
80
+ this._cookies.forEach(function (cookie) {
81
+ cookie.setCookie("Steam_Language", language);
82
+ cookie.setCookie("strInventoryLastContext", "730_2");
83
+ });
81
84
  }
82
85
 
83
86
  static parseCookie(cookies) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",