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.
- package/SteamClient.js +10 -1
- 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
|
-
|
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)
|