steamutils 1.3.48 → 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 +6 -10
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -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.48",
3
+ "version": "1.3.49",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.5",