steamutils 1.1.17 → 1.1.18

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 +17 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5071,6 +5071,9 @@ class SteamUser {
5071
5071
  case "Earned": {
5072
5072
  break
5073
5073
  }
5074
+ case "Traded": {
5075
+ break
5076
+ }
5074
5077
  case "Earned due to game play time": {
5075
5078
  break
5076
5079
  }
@@ -5119,17 +5122,21 @@ class SteamUser {
5119
5122
  const contextid = itemEl.attr('data-contextid')
5120
5123
 
5121
5124
  if (text !== `You did not receive any items in this trade.`) {
5122
- const item = descriptions[appID][classid + '_' + instanceid]
5123
- if (item) {
5124
- tradehistory_items.push({...item, plusminus: items_plusminus})
5125
+ if (descriptions[appID]) {
5126
+ const item = descriptions[appID][classid + '_' + instanceid]
5127
+ if (item) {
5128
+ tradehistory_items.push({...item, plusminus: items_plusminus})
5129
+ } else {
5130
+ tradehistory_items.push({
5131
+ appID,
5132
+ classid,
5133
+ instanceid,
5134
+ contextid,
5135
+ plusminus: items_plusminus
5136
+ })
5137
+ }
5125
5138
  } else {
5126
- tradehistory_items.push({
5127
- appID,
5128
- classid,
5129
- instanceid,
5130
- contextid,
5131
- plusminus: items_plusminus
5132
- })
5139
+ console.log("No app descriptions", appID);
5133
5140
  }
5134
5141
  }
5135
5142
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",