steamutils 1.0.21 → 1.0.22

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 +3 -1
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -595,11 +595,13 @@ function SteamClient({
595
595
  cookie,
596
596
  }
597
597
  }))?.data
598
- if (result) {
598
+ if (result?.logged_in) {
599
599
  Object.assign(result, {
600
600
  steamID: new SteamID(result.steamid), accountName: result.account_name, webLogonToken: result.token
601
601
  })
602
602
  steamClient.logOn(result)
603
+ } else {
604
+ console.log('You are not logged in', cookie)
603
605
  }
604
606
  } else if (username && password) {
605
607
  console.log(`login with username ${username}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",