steamutils 1.1.13 → 1.1.14
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 +4 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
|
@@ -1052,7 +1052,10 @@ function SteamClient({
|
|
|
1052
1052
|
const ownedAppsCount = shouldLog ? (ownedApps?.length || 0) : 0
|
|
1053
1053
|
let recommendedApps = Math.random() > 0.5 ? _.shuffle(userData.rgRecommendedApps || []) : []
|
|
1054
1054
|
if (!recommendedApps?.length) {
|
|
1055
|
-
|
|
1055
|
+
try {
|
|
1056
|
+
recommendedApps = (await axios.request({url: 'https://raw.githubusercontent.com/5x/easy-steam-free-packages/master/src/script/packages_db.json'}))?.data?.packages || []
|
|
1057
|
+
} catch (e) {
|
|
1058
|
+
}
|
|
1056
1059
|
}
|
|
1057
1060
|
_.remove(recommendedApps, app => ownedApps.includes(app))
|
|
1058
1061
|
recommendedApps = _.shuffle(recommendedApps)
|