steamcommunity 3.48.3 → 3.48.4

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.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Alex Corn
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Alex Corn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md CHANGED
@@ -1,22 +1,21 @@
1
- # Steam Community for Node.js
2
- [![npm version](https://img.shields.io/npm/v/steamcommunity.svg)](https://npmjs.com/package/steamcommunity)
3
- [![npm downloads](https://img.shields.io/npm/dm/steamcommunity.svg)](https://npmjs.com/package/steamcommunity)
4
- [![license](https://img.shields.io/npm/l/steamcommunity.svg)](https://github.com/DoctorMcKay/node-steamcommunity/blob/master/LICENSE)
5
- [![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&currency_code=USD)
6
-
7
- 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.
8
-
9
- It supports Steam Guard and CAPTCHAs.
10
-
11
- **Have a question about the module or coding in general? *Do not create a GitHub issue.* GitHub issues are for feature
12
- requests and bug reports. Instead, post in the [dedicated forum](https://dev.doctormckay.com/forum/8-node-steamcommunity/).
13
- Such issues may be ignored!**
14
-
15
- # Documentation
16
-
17
- Documentation is available on the [GitHub wiki](https://github.com/DoctorMcKay/node-steamcommunity/wiki).
18
-
19
- # Support
20
-
21
- Report bugs on the [issue tracker](https://github.com/DoctorMcKay/node-steamcommunity/issues) or ask questions
22
- on the [dedicated forum](https://dev.doctormckay.com/forum/8-node-steamcommunity/).
1
+ # Steam Community for Node.js
2
+ [![npm version](https://img.shields.io/npm/v/steamcommunity.svg)](https://npmjs.com/package/steamcommunity)
3
+ [![npm downloads](https://img.shields.io/npm/dm/steamcommunity.svg)](https://npmjs.com/package/steamcommunity)
4
+ [![license](https://img.shields.io/npm/l/steamcommunity.svg)](https://github.com/DoctorMcKay/node-steamcommunity/blob/master/LICENSE)
5
+ [![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&currency_code=USD)
6
+
7
+ This module provides an easy interface for the Steam Community website. This module can be used to simply login to
8
+ steamcommunity.com for use with other libraries, or to interact with steamcommunity.com.
9
+
10
+ **Have a question about the module or coding in general? *Do not create a GitHub issue.* GitHub issues are for feature
11
+ requests and bug reports. Instead, post in the [dedicated forum](https://dev.doctormckay.com/forum/8-node-steamcommunity/).
12
+ Such issues may be ignored!**
13
+
14
+ # Documentation
15
+
16
+ Documentation is available on the [GitHub wiki](https://github.com/DoctorMcKay/node-steamcommunity/wiki).
17
+
18
+ # Support
19
+
20
+ Report bugs on the [issue tracker](https://github.com/DoctorMcKay/node-steamcommunity/issues) or ask questions
21
+ on the [dedicated forum](https://dev.doctormckay.com/forum/8-node-steamcommunity/).
@@ -68,9 +68,9 @@ function CEconItem(item, description, contextID) {
68
68
 
69
69
  // Restore cache_expiration, if we can (for CS:GO items)
70
70
  if (this.appid == 730 && this.contextid == 2 && this.owner_descriptions) {
71
- let description = this.owner_descriptions.find(d => d.value && d.value.indexOf('Tradable After ') == 0);
71
+ let description = this.owner_descriptions.find(d => d.value && d.value.indexOf('Tradable/Marketable After ') == 0);
72
72
  if (description) {
73
- let date = new Date(description.value.substring(15).replace(/[,()]/g, ''));
73
+ let date = new Date(description.value.substring(26).replace(/[,()]/g, ''));
74
74
  if (date) {
75
75
  this.cache_expiration = date.toISOString();
76
76
  }
@@ -13,7 +13,7 @@ SteamCommunity.prototype.getSteamUser = function(id, callback) {
13
13
  }
14
14
 
15
15
  var self = this;
16
- this.httpRequest("http://steamcommunity.com/" + (typeof id === 'string' ? "id/" + id : "profiles/" + id.toString()) + "/?xml=1", function(err, response, body) {
16
+ this.httpRequest("https://steamcommunity.com/" + (typeof id === 'string' ? "id/" + id : "profiles/" + id.toString()) + "/?xml=1", function(err, response, body) {
17
17
  if (err) {
18
18
  callback(err);
19
19
  return;
@@ -11,17 +11,17 @@ SteamCommunity.prototype.getGroupMembers = function(gid, callback, members, link
11
11
  if (!link) {
12
12
  if (typeof gid !== 'string') {
13
13
  // It's a SteamID object
14
- link = "http://steamcommunity.com/gid/" + gid.toString() + "/memberslistxml/?xml=1";
14
+ link = "https://steamcommunity.com/gid/" + gid.toString() + "/memberslistxml/?xml=1";
15
15
  } else {
16
16
  try {
17
17
  var sid = new SteamID(gid);
18
18
  if (sid.type == SteamID.Type.CLAN && sid.isValid()) {
19
- link = "http://steamcommunity.com/gid/" + sid.getSteamID64() + "/memberslistxml/?xml=1";
19
+ link = "https://steamcommunity.com/gid/" + sid.getSteamID64() + "/memberslistxml/?xml=1";
20
20
  } else {
21
21
  throw new Error("Doesn't particularly matter what this message is");
22
22
  }
23
23
  } catch (e) {
24
- link = "http://steamcommunity.com/groups/" + gid + "/memberslistxml/?xml=1";
24
+ link = "https://steamcommunity.com/groups/" + gid + "/memberslistxml/?xml=1";
25
25
  }
26
26
  }
27
27
  }