steamutils 1.4.44 → 1.4.46

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 +3 -4
  2. package/package.json +1 -1
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.44",
3
+ "version": "1.4.46",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",