steamutils 1.0.28 → 1.0.29
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 +3 -0
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -698,6 +698,9 @@ function SteamClient({
|
|
698
698
|
|
699
699
|
const ownedAppsCount = log ? (await steamUtils.getDynamicStoreUserData()).rgOwnedApps.length : 0
|
700
700
|
const recommendedApps = _.shuffle((await steamUtils.getDynamicStoreUserData())?.rgRecommendedApps)
|
701
|
+
if (!recommendedApps.length) {
|
702
|
+
recommendedApps = (await axios.request({url: 'https://raw.githubusercontent.com/5x/easy-steam-free-packages/master/src/script/packages_db.json'}))?.data?.packages
|
703
|
+
}
|
701
704
|
if (max) {
|
702
705
|
recommendedApps.length = Math.min(recommendedApps.length, max)
|
703
706
|
}
|