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 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: false,
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,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.3.66",
3
+ "version": "1.3.67",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",
@@ -1,14 +1,9 @@
1
1
  import SteamClient from "./SteamClient.js";
2
2
 
3
- (async function () {
4
- const steamClient = new SteamClient({
5
- cookie: "xxx",
6
- isAutoPlay: true,
7
- isAutoRequestFreeLicense: true,
8
- });
9
- steamClient.onEvent("csgoOnline", async function (data) {
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();