steamutils 1.1.17 → 1.1.19
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +44 -10
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5071,9 +5071,36 @@ 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
|
}
|
5080
|
+
case "Listed on the Steam Community Market": {
|
5081
|
+
break
|
5082
|
+
}
|
5083
|
+
case "Turned into Gems": {
|
5084
|
+
break
|
5085
|
+
}
|
5086
|
+
case "Unpacked a booster pack": {
|
5087
|
+
break
|
5088
|
+
}
|
5089
|
+
case "Purchased with Gems": {
|
5090
|
+
break
|
5091
|
+
}
|
5092
|
+
case "Earned by crafting": {
|
5093
|
+
break
|
5094
|
+
}
|
5095
|
+
case "Used": {
|
5096
|
+
break
|
5097
|
+
}
|
5098
|
+
case "Unsealed": {
|
5099
|
+
break
|
5100
|
+
}
|
5101
|
+
case "Earned by sale purchases": {
|
5102
|
+
break
|
5103
|
+
}
|
5077
5104
|
default: {
|
5078
5105
|
if (description.startsWith("You traded with ")) {
|
5079
5106
|
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
@@ -5099,6 +5126,9 @@ class SteamUser {
|
|
5099
5126
|
} else if (description.startsWith("You listed an item on the Community Market. The listing was placed on hold until")) {
|
5100
5127
|
//You listed an item on the Community Market. The listing was placed on hold until 24 Jan @ 3:06am.
|
5101
5128
|
description = "You listed an item on the Community Market. The listing was placed on hold until"
|
5129
|
+
} else if (description.startsWith("Earned in ")) {
|
5130
|
+
//Earned in PUBG: BATTLEGROUNDS
|
5131
|
+
description = "Earned in game"
|
5102
5132
|
} else {
|
5103
5133
|
console.log(description);
|
5104
5134
|
}
|
@@ -5119,17 +5149,21 @@ class SteamUser {
|
|
5119
5149
|
const contextid = itemEl.attr('data-contextid')
|
5120
5150
|
|
5121
5151
|
if (text !== `You did not receive any items in this trade.`) {
|
5122
|
-
|
5123
|
-
|
5124
|
-
|
5152
|
+
if (descriptions[appID]) {
|
5153
|
+
const item = descriptions[appID][classid + '_' + instanceid]
|
5154
|
+
if (item) {
|
5155
|
+
tradehistory_items.push({...item, plusminus: items_plusminus})
|
5156
|
+
} else {
|
5157
|
+
tradehistory_items.push({
|
5158
|
+
appID,
|
5159
|
+
classid,
|
5160
|
+
instanceid,
|
5161
|
+
contextid,
|
5162
|
+
plusminus: items_plusminus
|
5163
|
+
})
|
5164
|
+
}
|
5125
5165
|
} else {
|
5126
|
-
|
5127
|
-
appID,
|
5128
|
-
classid,
|
5129
|
-
instanceid,
|
5130
|
-
contextid,
|
5131
|
-
plusminus: items_plusminus
|
5132
|
-
})
|
5166
|
+
console.log("No app descriptions", appID);
|
5133
5167
|
}
|
5134
5168
|
}
|
5135
5169
|
})
|