From 49a71650524c3c26e99566e39adc18d6e98ae9ff Mon Sep 17 00:00:00 2001 From: makss Date: Mon, 29 Apr 2024 16:40:01 +0300 Subject: [PATCH 1/5] Reduce Steam redirects --- classes/CSteamUser.js | 2 +- components/groups.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/CSteamUser.js b/classes/CSteamUser.js index 8b26516..af0a5d3 100644 --- a/classes/CSteamUser.js +++ b/classes/CSteamUser.js @@ -13,7 +13,7 @@ SteamCommunity.prototype.getSteamUser = function(id, callback) { } var self = this; - this.httpRequest("http://steamcommunity.com/" + (typeof id === 'string' ? "id/" + id : "profiles/" + id.toString()) + "/?xml=1", function(err, response, body) { + this.httpRequest("https://steamcommunity.com/" + (typeof id === 'string' ? "id/" + id : "profiles/" + id.toString()) + "/?xml=1", function(err, response, body) { if (err) { callback(err); return; diff --git a/components/groups.js b/components/groups.js index 1897767..4afecbb 100644 --- a/components/groups.js +++ b/components/groups.js @@ -11,17 +11,17 @@ SteamCommunity.prototype.getGroupMembers = function(gid, callback, members, link if (!link) { if (typeof gid !== 'string') { // It's a SteamID object - link = "http://steamcommunity.com/gid/" + gid.toString() + "/memberslistxml/?xml=1"; + link = "https://steamcommunity.com/gid/" + gid.toString() + "/memberslistxml/?xml=1"; } else { try { var sid = new SteamID(gid); if (sid.type == SteamID.Type.CLAN && sid.isValid()) { - link = "http://steamcommunity.com/gid/" + sid.getSteamID64() + "/memberslistxml/?xml=1"; + link = "https://steamcommunity.com/gid/" + sid.getSteamID64() + "/memberslistxml/?xml=1"; } else { throw new Error("Doesn't particularly matter what this message is"); } } catch (e) { - link = "http://steamcommunity.com/groups/" + gid + "/memberslistxml/?xml=1"; + link = "https://steamcommunity.com/groups/" + gid + "/memberslistxml/?xml=1"; } } } From c97351543a8fd93e25060b64ba8597142f4a8b9c Mon Sep 17 00:00:00 2001 From: Benjamin Tyler Date: Fri, 4 Oct 2024 16:04:47 +0100 Subject: [PATCH 2/5] Fixes cache_expiration restore for CS2 Items As of Oct 2024, CS2 Item owner_description has changed from "Tradable After" to "Tradable/Marketable After". --- classes/CEconItem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/CEconItem.js b/classes/CEconItem.js index 4ccfc9b..ef9af41 100644 --- a/classes/CEconItem.js +++ b/classes/CEconItem.js @@ -68,9 +68,9 @@ function CEconItem(item, description, contextID) { // Restore cache_expiration, if we can (for CS:GO items) if (this.appid == 730 && this.contextid == 2 && this.owner_descriptions) { - let description = this.owner_descriptions.find(d => d.value && d.value.indexOf('Tradable After ') == 0); + let description = this.owner_descriptions.find(d => d.value && d.value.indexOf('Tradable/Marketable After ') == 0); if (description) { - let date = new Date(description.value.substring(15).replace(/[,()]/g, '')); + let date = new Date(description.value.substring(26).replace(/[,()]/g, '')); if (date) { this.cache_expiration = date.toISOString(); } From ad67805ad926f7c80c4b1f995e2d5c1c2bbacf75 Mon Sep 17 00:00:00 2001 From: Alex Corn Date: Sat, 5 Oct 2024 18:45:26 -0400 Subject: [PATCH 3/5] Prevent committing twofactor files to git --- examples/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 examples/.gitignore diff --git a/examples/.gitignore b/examples/.gitignore new file mode 100644 index 0000000..39ab291 --- /dev/null +++ b/examples/.gitignore @@ -0,0 +1 @@ +twofactor_*.json From 63015259af23c554c8132feea600131b267e9b24 Mon Sep 17 00:00:00 2001 From: Alex Corn Date: Sat, 5 Oct 2024 18:47:05 -0400 Subject: [PATCH 4/5] Updated readme --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 499aac3..b28d929 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,8 @@ [![license](https://img.shields.io/npm/l/steamcommunity.svg)](https://github.com/DoctorMcKay/node-steamcommunity/blob/master/LICENSE) [![paypal](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=N36YVAT42CZ4G&item_name=node%2dsteamcommunity¤cy_code=USD) -This module provides an easy interface for the Steam Community website. This module can be used to simply login to steamcommunity.com for use with other libraries, or to interact with steamcommunity.com. - -It supports Steam Guard and CAPTCHAs. +This module provides an easy interface for the Steam Community website. This module can be used to simply login to +steamcommunity.com for use with other libraries, or to interact with steamcommunity.com. **Have a question about the module or coding in general? *Do not create a GitHub issue.* GitHub issues are for feature requests and bug reports. Instead, post in the [dedicated forum](https://dev.doctormckay.com/forum/8-node-steamcommunity/). From 1c1ff825434d3b4ac9cfaa4bcff09f9968834b6f Mon Sep 17 00:00:00 2001 From: Alex Corn Date: Sat, 5 Oct 2024 18:50:47 -0400 Subject: [PATCH 5/5] 3.48.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 178d650..eb6d680 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "steamcommunity", - "version": "3.48.2", + "version": "3.48.4", "description": "Provides an interface for logging into and interacting with the Steam Community website", "files": [ "/classes",