steamutils 1.3.60 → 1.3.61

Sign up to get free protection for your applications and to get access to all the features.
package/SteamClient.js CHANGED
@@ -849,7 +849,7 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
849
849
  const result = protoDecode(Protos.csgo.CSOPersonaDataPublic, object_data);
850
850
  obj.PersonaDataPublic = result;
851
851
  const example = {
852
- player_level: 4,
852
+ player_level: 4, //CSGO_Profile_Rank
853
853
  commendation: {
854
854
  cmd_friendly: 149,
855
855
  cmd_teaching: 108,
@@ -2318,6 +2318,9 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
2318
2318
  getCurrentLobby() {
2319
2319
  return currentLobby;
2320
2320
  },
2321
+ setGame(_games) {
2322
+ games = _games;
2323
+ },
2321
2324
  };
2322
2325
  }
2323
2326
 
@@ -31,14 +31,23 @@ import _ from "lodash";
31
31
  const __params = [${params}];
32
32
  if(__params.length === 1 && __params[0] === undefined){
33
33
  __params.length = 0
34
- }
34
+ }
35
+ let __cookies = this._cookies;
36
+ if (__cookies) {
37
+ if (!Array.isArray(__cookies)) {
38
+ __cookies = [__cookies];
39
+ }
40
+ __cookies = __cookies.map(function (cookie) {
41
+ return cookie.toString();
42
+ });
43
+ }
35
44
 
36
45
  try {
37
46
  const result = (
38
47
  await axios.post(getAppURL(), {
39
48
  method: "${methodName}",
40
49
  params: __params,
41
- cookies: this._cookies,
50
+ cookies: __cookies,
42
51
  is_static: ${!!is_static}
43
52
  })
44
53
  ).data?.result;
package/index.js CHANGED
@@ -2097,8 +2097,8 @@ export default class SteamUser {
2097
2097
  if (result instanceof ResponseError) {
2098
2098
  return result;
2099
2099
  }
2100
- const sentInvites = SteamUser._parsePendingFriendList(result.data, "#search_results_sentinvites > div");
2101
- const receiveInvites = SteamUser._parsePendingFriendList(result.data, "#search_results > div");
2100
+ const sentInvites = SteamUser._parsePendingFriendList(result?.data, "#search_results_sentinvites > div");
2101
+ const receiveInvites = SteamUser._parsePendingFriendList(result?.data, "#search_results > div");
2102
2102
  return {
2103
2103
  sentInvites,
2104
2104
  receiveInvites,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.3.60",
3
+ "version": "1.3.61",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",