steamutils 1.2.99 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/SteamClient.js +3 -3
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -344,11 +344,11 @@ function SteamClient({
344
344
  let ownedApps = []
345
345
  for (let i = 0; i < 5; i++) {
346
346
  ownedApps = await getUserOwnedApps()
347
- if (ownedApps.length) {
347
+ if (ownedApps?.length) {
348
348
  break
349
349
  }
350
350
  }
351
- if (!ownedApps.length) {
351
+ if (!ownedApps?.length) {
352
352
  gamesPlayed(730)
353
353
  } else {
354
354
  ownedApps = ownedApps.map(({appid}) => appid)
@@ -1670,7 +1670,7 @@ function SteamClient({
1670
1670
 
1671
1671
  async function getUserOwnedApps(steamId = steamClient.steamID) {
1672
1672
  if (!steamId) {
1673
- return
1673
+ return []
1674
1674
  }
1675
1675
  if (typeof steamId?.getSteamID64 === "function") {
1676
1676
  steamId = steamId.getSteamID64()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.99",
3
+ "version": "1.3.00",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.5.1",