steamutils 1.2.64 → 1.2.66
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +11 -22
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5551,27 +5551,21 @@ class SteamUser {
|
|
5551
5551
|
"Subscription/Seasonal Item Grant"
|
5552
5552
|
];
|
5553
5553
|
|
5554
|
+
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5555
|
+
const profileURL = peopleEl.attr('href');
|
5556
|
+
if (profileURL && (profileURL.startsWith("https://steamcommunity.com/profiles/") || profileURL.startsWith("https://steamcommunity.com/id/"))) {
|
5557
|
+
tradePeople = {
|
5558
|
+
name: peopleEl.text().trim(),
|
5559
|
+
url: profileURL
|
5560
|
+
}
|
5561
|
+
}
|
5562
|
+
|
5554
5563
|
if (!descriptions.includes(description)) {
|
5555
5564
|
if (description.startsWith("You traded with ")) {
|
5556
|
-
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5557
|
-
tradePeople = {
|
5558
|
-
name: peopleEl.text().trim(),
|
5559
|
-
url: peopleEl.attr('href')
|
5560
|
-
}
|
5561
5565
|
description = "You traded with"
|
5562
5566
|
} else if (description.startsWith("Gift sent to and redeemed by ")) {
|
5563
|
-
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5564
|
-
tradePeople = {
|
5565
|
-
name: peopleEl.text().trim(),
|
5566
|
-
url: peopleEl.attr('href')
|
5567
|
-
}
|
5568
5567
|
description = "Gift sent to and redeemed by"
|
5569
5568
|
} else if (description.startsWith("Your trade with ") && description.endsWith(" was on hold, and the trade has now completed.")) {
|
5570
|
-
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5571
|
-
tradePeople = {
|
5572
|
-
name: peopleEl.text().trim(),
|
5573
|
-
url: peopleEl.attr('href')
|
5574
|
-
}
|
5575
5569
|
description = "Your trade with friend was on hold, and the trade has now completed."
|
5576
5570
|
} else if (description.startsWith("You listed an item on the Community Market. The listing was placed on hold until")) {
|
5577
5571
|
//You listed an item on the Community Market. The listing was placed on hold until 24 Jan @ 3:06am.
|
@@ -5579,16 +5573,11 @@ class SteamUser {
|
|
5579
5573
|
} else if (description.startsWith("Earned in ")) {
|
5580
5574
|
//Earned in PUBG: BATTLEGROUNDS
|
5581
5575
|
description = "Earned in game"
|
5582
|
-
} else if (description.startsWith("Refunded a gift because the recipient,") && description.
|
5576
|
+
} else if (description.startsWith("Refunded a gift because the recipient,") && description.endsWith("declined")) {
|
5583
5577
|
//Refunded a gift because the recipient, Ava, declined
|
5584
5578
|
description = "Refunded a gift because the recipient declined"
|
5585
|
-
} else if (description.startsWith("Your held trade with") && description.
|
5579
|
+
} else if (description.startsWith("Your held trade with") && description.endsWith("was canceled. The items have been returned to you.")) {
|
5586
5580
|
//Your held trade with TrQuBach96 was canceled. The items have been returned to you.
|
5587
|
-
const peopleEl = tradehistory_event_description_el.find('a[href]')
|
5588
|
-
tradePeople = {
|
5589
|
-
name: peopleEl.text().trim(),
|
5590
|
-
url: peopleEl.attr('href')
|
5591
|
-
}
|
5592
5581
|
description = "Your held trade with person was canceled. The items have been returned to you."
|
5593
5582
|
} else {
|
5594
5583
|
console.log("== Description ==");
|