steamutils 1.1.58 → 1.1.61
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 +4 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
|
@@ -102,6 +102,7 @@ function SteamClient({
|
|
|
102
102
|
error: [],
|
|
103
103
|
playersProfile: [],
|
|
104
104
|
partyInvite: [],
|
|
105
|
+
friendRelationship: [],
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
const gcCallback = {}
|
|
@@ -884,6 +885,7 @@ function SteamClient({
|
|
|
884
885
|
});
|
|
885
886
|
|
|
886
887
|
steamClient.on('friendRelationship', async function (sid, relationship, previousRelationship) {
|
|
888
|
+
callEvent(events.friendRelationship, {steamId: sid, relationship, previousRelationship})
|
|
887
889
|
switch (relationship) {
|
|
888
890
|
case EFriendRelationship.None: {
|
|
889
891
|
//we got unfriended.
|
|
@@ -1249,7 +1251,8 @@ function SteamClient({
|
|
|
1249
1251
|
},
|
|
1250
1252
|
getState(){
|
|
1251
1253
|
return state
|
|
1252
|
-
}
|
|
1254
|
+
},
|
|
1255
|
+
log,
|
|
1253
1256
|
}
|
|
1254
1257
|
}
|
|
1255
1258
|
|