steamcommunity 3.48.3 → 3.48.5

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.
@@ -629,6 +629,13 @@ SteamCommunity.prototype.getUserInventoryContents = function(userID, appID, cont
629
629
  return;
630
630
  }
631
631
 
632
+ if (appID == 730 && body && body.success && !body.assets) {
633
+ // CS inventory has no visible items. We need a special case for this because Valve is incapable of
634
+ // doing anything not dumb.
635
+ callback(null, [], [], body.total_inventory_count);
636
+ return;
637
+ }
638
+
632
639
  if (!body || !body.success || !body.assets || !body.descriptions) {
633
640
  if (body) {
634
641
  // Dunno if the error/Error property even exists on this new endpoint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamcommunity",
3
- "version": "3.48.3",
3
+ "version": "3.48.5",
4
4
  "description": "Provides an interface for logging into and interacting with the Steam Community website",
5
5
  "files": [
6
6
  "/classes",