steamutils 1.3.85 → 1.3.86

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/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7035,7 +7035,10 @@ export default class SteamUser {
7035
7035
  }
7036
7036
 
7037
7037
  const $ = cheerio.load(result?.data);
7038
- return [...$("#games_list_public .games_list_tabs > .games_list_tab")].map(function (el) {
7038
+ const gamesListPublicEl = $("#games_list_public");
7039
+ if (!gamesListPublicEl.length) return;
7040
+
7041
+ return [...gamesListPublicEl.find(".games_list_tabs > .games_list_tab")].map(function (el) {
7039
7042
  el = $(el);
7040
7043
  const gameIcon = el.find(".item_desc_game_icon img").attr("src");
7041
7044
  const gameName = el.find(".games_list_tab_name").text().trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.3.85",
3
+ "version": "1.3.86",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",