steamutils 1.0.46 → 1.0.47

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.
Files changed (2) hide show
  1. package/SteamClient.js +4 -4
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -183,8 +183,8 @@ function SteamClient({
183
183
  return [steamClient?.accountInfo?.name, steamClient?._logOnDetails?.account_name].filter(Boolean).join(" - ")
184
184
  }
185
185
 
186
- function log(msg) {
187
- console.log(`[${getAccountInfoName()}] ${msg}`)
186
+ function log(...msg) {
187
+ console.log(`[${getAccountInfoName()}]`, ...msg)
188
188
  }
189
189
 
190
190
  async function getPersonas(steamIDs) {
@@ -331,7 +331,7 @@ function SteamClient({
331
331
  if (player_name === undefined) {
332
332
  log(sid64, personas);
333
333
  }
334
- log(getAccountInfoName(), player_name, `https://steamcommunity.com/profiles/${sid64}`);
334
+ log(player_name, `https://steamcommunity.com/profiles/${sid64}`);
335
335
  // joinLobby(msg.lobbyid, msg.accountid)
336
336
  break
337
337
  }
@@ -829,7 +829,7 @@ function SteamClient({
829
829
  await sleep(20000)
830
830
  const ownedAppsCount2 = (await steamUtils.getDynamicStoreUserData())?.rgOwnedApps?.length || 0
831
831
  const increaseNumber = ownedAppsCount2 - ownedAppsCount;
832
- log(getAccountInfoName(), `OwnedApps length ${ownedAppsCount2}, increase ${increaseNumber}`)
832
+ log(`OwnedApps length ${ownedAppsCount2}, increase ${increaseNumber}`)
833
833
  }
834
834
  }
835
835
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",