steamutils 1.2.97 → 1.2.98

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 +10 -1
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -1674,7 +1674,16 @@ function SteamClient({
1674
1674
  if (isMe && ownedApps.length) {
1675
1675
  return ownedApps
1676
1676
  }
1677
- const result = await steamClient.getUserOwnedApps(steamId)
1677
+ let result = {}
1678
+ try {
1679
+ result = await steamClient.getUserOwnedApps(steamId)
1680
+ } catch (e) {
1681
+ try {
1682
+ result = await steamClient.getUserOwnedApps(steamId)
1683
+ } catch (e) {
1684
+ result = {}
1685
+ }
1686
+ }
1678
1687
  if (isMe && Array.isArray(result.apps)) {
1679
1688
  ownedApps.length = 0
1680
1689
  ownedApps.push(...result.apps)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.97",
3
+ "version": "1.2.98",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.5.1",