steamutils 1.4.45 → 1.4.46

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/SteamClient.js CHANGED
@@ -1295,10 +1295,9 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
1295
1295
  async user(steamId, data) {
1296
1296
  callEvent(events.user, { steamId: steamId.getSteamID64(), data });
1297
1297
 
1298
- steamClient.users = {};
1299
- setTimeout(function () {
1300
- steamClient.users = {};
1301
- }, 10000);
1298
+ for (const friendSteamId in steamClient.users) {
1299
+ steamClient.users[friendSteamId] = {};
1300
+ }
1302
1301
 
1303
1302
  const dataExample = {
1304
1303
  rich_presence: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.45",
3
+ "version": "1.4.46",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",
@@ -15,7 +15,6 @@
15
15
  "moment": "^2.30.1",
16
16
  "moment-timezone": "^0.5.45",
17
17
  "node-bignumber": "^1.2.2",
18
- "patch-package": "^8.0.0",
19
18
  "protobufjs": "^7.4.0",
20
19
  "qs": "^6.13.0",
21
20
  "steam-session": "^1.7.2",
@@ -32,8 +31,5 @@
32
31
  "devDependencies": {
33
32
  "eslint-config-prettier": "^9.1.0",
34
33
  "eslint-plugin-prettier": "^5.2.1"
35
- },
36
- "scripts": {
37
- "postinstall": "patch-package"
38
34
  }
39
35
  }
@@ -1,16 +0,0 @@
1
- diff --git a/node_modules/steam-user/components/friends.js b/node_modules/steam-user/components/friends.js
2
- index 384338a..6a0d60e 100644
3
- --- a/node_modules/steam-user/components/friends.js
4
- +++ b/node_modules/steam-user/components/friends.js
5
- @@ -1096,7 +1096,10 @@ SteamUserBase.prototype._handlerManager.add(EMsg.ClientPersonaState, function(bo
6
-
7
- for (let i in processedUser) {
8
- if (Object.hasOwnProperty.call(processedUser, i) && processedUser[i] !== null) {
9
- - this.users[sid64][i] = processedUser[i];
10
- + try {
11
- + this.users[sid64][i] = processedUser[i];
12
- + } catch (e) {
13
- + }
14
- }
15
- }
16
- });