steamutils 1.1.88 → 1.1.89

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 +7 -3
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -925,11 +925,14 @@ function SteamClient({
925
925
  });
926
926
 
927
927
  steamClient.on('friendsList', async function () {
928
- const friends = Object.keys(steamClient.myFriends).filter(steamId => steamClient.myFriends[steamId] === SteamUser.EFriendRelationship.Friend)
929
- callEvent(events.friendsList, friends)
928
+ callEvent(events.friendsList, getFriendList())
930
929
  });
931
930
  }
932
931
 
932
+ function getFriendList() {
933
+ return Object.keys(steamClient.myFriends).filter(steamId => steamClient.myFriends[steamId] === SteamUser.EFriendRelationship.Friend)
934
+ }
935
+
933
936
  function sendFriendTyping(steamId, callback) {
934
937
  steamClient.chat.sendFriendTyping(steamId, callback)
935
938
  }
@@ -1282,7 +1285,8 @@ function SteamClient({
1282
1285
  log,
1283
1286
  isPrime(){
1284
1287
  return prime === true
1285
- }
1288
+ },
1289
+ getFriendList
1286
1290
  }
1287
1291
  }
1288
1292
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.88",
3
+ "version": "1.1.89",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",