steamutils 1.1.13 → 1.1.14

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 +4 -1
  2. 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
- recommendedApps = (await axios.request({url: 'https://raw.githubusercontent.com/5x/easy-steam-free-packages/master/src/script/packages_db.json'}))?.data?.packages || []
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",