steamutils 1.4.38 → 1.4.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/SteamClient.js +12 -3
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -939,7 +939,9 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
939
939
  }
940
940
  }
941
941
  }
942
- _clientWelcome = obj;
942
+ _clientWelcome = { ...obj };
943
+ _clientWelcome.items = {};
944
+
943
945
  callEvent(events.csgoOnline, obj);
944
946
 
945
947
  if (isPartyRegister) {
@@ -1422,6 +1424,11 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
1422
1424
  },
1423
1425
  async friendsList() {
1424
1426
  callEvent(events.friendsList, getFriendList());
1427
+
1428
+ steamClient.myFriends = {};
1429
+ setTimeout(function () {
1430
+ steamClient.myFriends = {};
1431
+ }, 10000);
1425
1432
  },
1426
1433
  async gifts(gid, packageid, TimeCreated, TimeExpiration, TimeSent, TimeAcked, TimeRedeemed, RecipientAddress, SenderAddress, SenderName) {
1427
1434
  callEvent(events.gifts, {
@@ -1466,14 +1473,16 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
1466
1473
  });
1467
1474
  },
1468
1475
  async licenses() {
1476
+ steamClient.licenses = [];
1469
1477
  setTimeout(function () {
1470
1478
  steamClient.licenses = [];
1471
- }, 1000);
1479
+ }, 10000);
1472
1480
  },
1473
1481
  async users() {
1482
+ steamClient.users = {};
1474
1483
  setTimeout(function () {
1475
1484
  steamClient.users = {};
1476
- }, 1000);
1485
+ }, 10000);
1477
1486
  },
1478
1487
  };
1479
1488
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.38",
3
+ "version": "1.4.40",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",