steamutils 1.2.65 → 1.2.67
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +1 -1
- package/index.js +4 -7
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -74,7 +74,7 @@ export const LOCS = {
|
|
74
74
|
|
75
75
|
|
76
76
|
const appid = 730
|
77
|
-
let CSGO_VER =
|
77
|
+
let CSGO_VER = 13954
|
78
78
|
const FreeAppList = JSON.parse(fs.readFileSync(path.join(__dirname, 'free_packages.json'))).packages
|
79
79
|
|
80
80
|
// SteamUtils.GetCurrentVersion(appid).then(function (ver) {
|
package/index.js
CHANGED
@@ -5548,12 +5548,14 @@ class SteamUser {
|
|
5548
5548
|
"Exchanged one or more items for something different",
|
5549
5549
|
"Earned an item due to ownership of another game",
|
5550
5550
|
"Sticker applied",
|
5551
|
-
"
|
5551
|
+
"Sticker removed",
|
5552
|
+
"Subscription/Seasonal Item Grant",
|
5553
|
+
"Earned from unlocking an achievement"
|
5552
5554
|
];
|
5553
5555
|
|
5554
5556
|
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5555
5557
|
const profileURL = peopleEl.attr('href');
|
5556
|
-
if (profileURL.startsWith("https://steamcommunity.com/profiles/") || profileURL.startsWith("https://steamcommunity.com/id/")) {
|
5558
|
+
if (profileURL && (profileURL.startsWith("https://steamcommunity.com/profiles/") || profileURL.startsWith("https://steamcommunity.com/id/"))) {
|
5557
5559
|
tradePeople = {
|
5558
5560
|
name: peopleEl.text().trim(),
|
5559
5561
|
url: profileURL
|
@@ -5562,13 +5564,10 @@ class SteamUser {
|
|
5562
5564
|
|
5563
5565
|
if (!descriptions.includes(description)) {
|
5564
5566
|
if (description.startsWith("You traded with ")) {
|
5565
|
-
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5566
5567
|
description = "You traded with"
|
5567
5568
|
} else if (description.startsWith("Gift sent to and redeemed by ")) {
|
5568
|
-
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5569
5569
|
description = "Gift sent to and redeemed by"
|
5570
5570
|
} else if (description.startsWith("Your trade with ") && description.endsWith(" was on hold, and the trade has now completed.")) {
|
5571
|
-
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5572
5571
|
description = "Your trade with friend was on hold, and the trade has now completed."
|
5573
5572
|
} else if (description.startsWith("You listed an item on the Community Market. The listing was placed on hold until")) {
|
5574
5573
|
//You listed an item on the Community Market. The listing was placed on hold until 24 Jan @ 3:06am.
|
@@ -5578,11 +5577,9 @@ class SteamUser {
|
|
5578
5577
|
description = "Earned in game"
|
5579
5578
|
} else if (description.startsWith("Refunded a gift because the recipient,") && description.endsWith("declined")) {
|
5580
5579
|
//Refunded a gift because the recipient, Ava, declined
|
5581
|
-
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5582
5580
|
description = "Refunded a gift because the recipient declined"
|
5583
5581
|
} else if (description.startsWith("Your held trade with") && description.endsWith("was canceled. The items have been returned to you.")) {
|
5584
5582
|
//Your held trade with TrQuBach96 was canceled. The items have been returned to you.
|
5585
|
-
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5586
5583
|
description = "Your held trade with person was canceled. The items have been returned to you."
|
5587
5584
|
} else {
|
5588
5585
|
console.log("== Description ==");
|