steamutils 1.3.47 → 1.3.49

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 +8 -12
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -1977,11 +1977,11 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
1977
1977
 
1978
1978
  steamClient.gamesPlayed(apps);
1979
1979
  const shouldHello = apps.some((app) => parseInt(app) === 730);
1980
- await sleep(10000);
1980
+ await sleep(2000);
1981
1981
  if (shouldHello) {
1982
1982
  await sendHello();
1983
1983
  }
1984
- await sleep(1000);
1984
+ await sleep(2000);
1985
1985
  if (shouldHello) {
1986
1986
  await sendHello();
1987
1987
  }
@@ -2296,16 +2296,12 @@ export function increaseCSGO_VER() {
2296
2296
  }
2297
2297
 
2298
2298
  SteamClient.isAccountPlayable = async function isAccountPlayable(params, timeoutMs) {
2299
- let clientJsToken = params.clientJsToken;
2300
- delete params.clientJsToken;
2301
- if (!clientJsToken && params.cookie) {
2302
- clientJsToken = await new SteamUser(typeof params.cookie === "function" ? await params.cookie() : params.cookie).getClientJsToken();
2299
+ if (!params.clientJsToken && params.cookie) {
2300
+ params.clientJsToken = await new SteamUser(typeof params.cookie === "function" ? await params.cookie() : params.cookie).getClientJsToken();
2303
2301
  }
2304
- if (clientJsToken?.logged_in !== true) {
2302
+ if (params.clientJsToken?.logged_in !== true) {
2305
2303
  return false;
2306
2304
  }
2307
- params.clientJsToken = clientJsToken;
2308
-
2309
2305
  return await new Promise((resolve) => {
2310
2306
  const timeouts = [
2311
2307
  setTimeout(() => {
@@ -2348,9 +2344,9 @@ SteamClient.isAccountPlayable = async function isAccountPlayable(params, timeout
2348
2344
  }
2349
2345
  });
2350
2346
 
2351
- steamClient.onEvent("fatalError", () => {
2352
- doResolve();
2353
- });
2347
+ // steamClient.onEvent("fatalError", () => {
2348
+ // doResolve();
2349
+ // });
2354
2350
 
2355
2351
  steamClient.init();
2356
2352
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.3.47",
3
+ "version": "1.3.49",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.5",