Closed rcode-app closed 2 months ago
The key names are incorrect.
"games_count" => "app_count" "games" => "apps"
steam-user: ^5.0.8
response: { app_count: 26, apps: [ { content_descriptorids: [Array], appid: 10, name: 'Counter-Strike', playtime_2weeks: null, playtime_forever: 74464, img_icon_url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/10/6b0312cda02f5f777efa2f3318c307ff9acafbb5.jpg', has_community_visible_stats: null, playtime_windows_forever: 0, playtime_mac_forever: 0, playtime_linux_forever: 0, rtime_last_played: 1456867622, capsule_filename: null, sort_as: null, has_workshop: null, has_market: null, has_dlc: null, has_leaderboards: null }, ... ] }
{ app_count: 26, apps: [ { content_descriptorids: [Array], appid: 10, name: 'Counter-Strike', playtime_2weeks: null, playtime_forever: 74464, img_icon_url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/10/6b0312cda02f5f777efa2f3318c307ff9acafbb5.jpg', has_community_visible_stats: null, playtime_windows_forever: 0, playtime_mac_forever: 0, playtime_linux_forever: 0, rtime_last_played: 1456867622, capsule_filename: null, sort_as: null, has_workshop: null, has_market: null, has_dlc: null, has_leaderboards: null }, ... ] }
https://github.com/DoctorMcKay/node-steam-user/pull/484
And also the fix for the definitly types here: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/70209
Fixed in 5.1.0
Describe the bug
The key names are incorrect.
"games_count" => "app_count" "games" => "apps"
Versions
steam-user: ^5.0.8
response:
{ app_count: 26, apps: [ { content_descriptorids: [Array], appid: 10, name: 'Counter-Strike', playtime_2weeks: null, playtime_forever: 74464, img_icon_url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/10/6b0312cda02f5f777efa2f3318c307ff9acafbb5.jpg', has_community_visible_stats: null, playtime_windows_forever: 0, playtime_mac_forever: 0, playtime_linux_forever: 0, rtime_last_played: 1456867622, capsule_filename: null, sort_as: null, has_workshop: null, has_market: null, has_dlc: null, has_leaderboards: null }, ... ] }