steamutils 1.3.47 → 1.3.49
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +8 -12
- 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(
|
1980
|
+
await sleep(2000);
|
1981
1981
|
if (shouldHello) {
|
1982
1982
|
await sendHello();
|
1983
1983
|
}
|
1984
|
-
await sleep(
|
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
|
-
|
2300
|
-
|
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
|
-
|
2353
|
-
});
|
2347
|
+
// steamClient.onEvent("fatalError", () => {
|
2348
|
+
// doResolve();
|
2349
|
+
// });
|
2354
2350
|
|
2355
2351
|
steamClient.init();
|
2356
2352
|
|