steamutils 1.3.66 → 1.3.67
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.
- package/SteamClient.js +3 -2
- package/package.json +1 -1
- package/test_steamclient.js +7 -12
package/SteamClient.js
CHANGED
|
@@ -2332,7 +2332,7 @@ export function increaseCSGO_VER() {
|
|
|
2332
2332
|
return ++CSGO_VER;
|
|
2333
2333
|
}
|
|
2334
2334
|
|
|
2335
|
-
SteamClient.isAccountPlayable = async function isAccountPlayable({ cookie, clientJsToken, timeoutMs, onPlayable, onNotPlayable }) {
|
|
2335
|
+
SteamClient.isAccountPlayable = async function isAccountPlayable({ cookie, clientJsToken, timeoutMs, onPlayable, onNotPlayable, ...rest }) {
|
|
2336
2336
|
if (!clientJsToken && cookie) {
|
|
2337
2337
|
clientJsToken = await new SteamUser(typeof cookie === "function" ? await cookie() : cookie).getClientJsToken();
|
|
2338
2338
|
}
|
|
@@ -2353,10 +2353,11 @@ SteamClient.isAccountPlayable = async function isAccountPlayable({ cookie, clien
|
|
|
2353
2353
|
isFakeGameScore: false,
|
|
2354
2354
|
isAutoPlay: true,
|
|
2355
2355
|
isPartyRegister: false,
|
|
2356
|
-
isInvisible:
|
|
2356
|
+
isInvisible: true,
|
|
2357
2357
|
MAX_GAME_PLAY: 10,
|
|
2358
2358
|
games: 730,
|
|
2359
2359
|
clientJsToken,
|
|
2360
|
+
...rest,
|
|
2360
2361
|
});
|
|
2361
2362
|
|
|
2362
2363
|
steamClient.onEvent("error", ({ eresult, msg, error }) => {
|
package/package.json
CHANGED
package/test_steamclient.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import SteamClient from "./SteamClient.js";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const profile = await steamClient.getPlayersProfile("76561199186152897");
|
|
11
|
-
console.log(profile); //rank_type_id 11 rank_id
|
|
12
|
-
});
|
|
13
|
-
steamClient.init();
|
|
14
|
-
})();
|
|
3
|
+
async function fetchPlayerProfile() {}
|
|
4
|
+
|
|
5
|
+
async function main() {
|
|
6
|
+
await fetchPlayerProfile();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
main();
|