steamutils 1.3.66 → 1.3.68
Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,8 +1,13 @@
|
|
1
|
-
import "steammessages_base.proto";
|
2
|
-
|
3
1
|
option optimize_for = SPEED;
|
4
2
|
option cc_generic_services = false;
|
5
3
|
|
4
|
+
message CMsgIPAddress {
|
5
|
+
oneof ip {
|
6
|
+
fixed32 v4 = 1;
|
7
|
+
bytes v6 = 2;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
6
11
|
enum EMMSLobbyStatus {
|
7
12
|
k_EMMSLobbyStatusInvalid = 0;
|
8
13
|
k_EMMSLobbyStatusExists = 1;
|
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();
|