steamutils 1.3.52 → 1.3.54

Sign up to get free protection for your applications and to get access to all the features.
package/SteamClient.js CHANGED
@@ -1701,8 +1701,6 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
1701
1701
  steamId: new SteamID(clientJsToken.steamid),
1702
1702
  accountName: clientJsToken.account_name,
1703
1703
  webLogonToken: clientJsToken.token,
1704
- password,
1705
- twoFactorCode,
1706
1704
  });
1707
1705
  }
1708
1706
  try {
@@ -1727,7 +1725,7 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
1727
1725
  if (_clientJsToken?.logged_in === true) {
1728
1726
  return logOn(_clientJsToken);
1729
1727
  } else {
1730
- log("Account not logged in");
1728
+ log(`Account not logged in ${clientJsToken?.account_name || ""}`);
1731
1729
  return false;
1732
1730
  }
1733
1731
  } else if (username && password) {
@@ -1739,6 +1737,9 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
1739
1737
  machineName: "Natri",
1740
1738
  });
1741
1739
  return true;
1740
+ } else {
1741
+ log(`Account not logged in ${clientJsToken?.account_name || ""}`);
1742
+ return false;
1742
1743
  }
1743
1744
  }
1744
1745
 
@@ -2014,13 +2015,8 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
2014
2015
  });
2015
2016
 
2016
2017
  steamClient.gamesPlayed(processedApps);
2017
- const shouldHello = processedApps.some((app) => parseInt(app.game_id) === 730);
2018
- await sleep(2000);
2019
- if (shouldHello) {
2020
- await sendHello();
2021
- }
2022
- await sleep(2000);
2023
- if (shouldHello) {
2018
+ if (processedApps.some((app) => parseInt(app.game_id) === 730)) {
2019
+ await sleep(500);
2024
2020
  await sendHello();
2025
2021
  }
2026
2022
  updateFakeGameScore();
package/index.js CHANGED
@@ -20,7 +20,7 @@ import * as https from "https";
20
20
  import Jimp from "jimp";
21
21
  import path from "path";
22
22
  import CookieManager from "./CookieManager.js";
23
- import { AppID_CSGO, E1GameBanOnRecord, E1VACBanOnRecord, EActivityType, ECommentPrivacyState, ECurrentlyTradeBanned, EdaySinceLastBanRegExp, EFriendRelationship, ELanguage, EmptyProfileSummary, EMultipleGameBansOnRecord, EMultipleVACBansOnRecord, EPrivacyState, ErrorProcessingRequest, FRIEND_CODE_REPLACEMENTS, NotYetSetupProfileTextList, PrivateProfileTextList, SteamcommunityURL, SteamErrorTitle, SteamImageCDN } from "./const.js";
23
+ import { AppID_CSGO, E1GameBanOnRecord, E1VACBanOnRecord, EActivityType, ECommentPrivacyState, ECurrentlyTradeBanned, EdaySinceLastBanRegExp, EFriendRelationship, ELanguage, EmptyProfileSummary, EMultipleGameBansOnRecord, EMultipleVACBansOnRecord, EPrivacyState, ErrorProcessingRequest, FRIEND_CODE_REPLACEMENTS, NotYetSetupProfileTextList, PrivacySettings, PrivateProfileTextList, SteamcommunityURL, SteamErrorTitle, SteamImageCDN } from "./const.js";
24
24
 
25
25
  let requestTimestamp = 0;
26
26
  let tooManyRequestTimestamp = 0;
@@ -6311,7 +6311,7 @@ export default class SteamUser {
6311
6311
 
6312
6312
  SteamUser.MAX_RETRY = 10;
6313
6313
 
6314
- class ResponseError {
6314
+ export class ResponseError {
6315
6315
  constructor({ loginFirst, message, steamId, originalURL }) {
6316
6316
  this.loginFirst = loginFirst;
6317
6317
  this.message = message;
@@ -6327,7 +6327,7 @@ class ResponseError {
6327
6327
  return false;
6328
6328
  }
6329
6329
  }
6330
- class ResponseSuccess {
6330
+ export class ResponseSuccess {
6331
6331
  constructor(response) {
6332
6332
  this.response = response;
6333
6333
  }
@@ -6345,3 +6345,5 @@ class ResponseSuccess {
6345
6345
  return cheerio.load(this.response.data.replaceAll(/[\t\n\r]/gi, "").trim());
6346
6346
  }
6347
6347
  }
6348
+
6349
+ export * from "./const.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.3.52",
3
+ "version": "1.3.54",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",