steamutils 1.4.38 → 1.4.40
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 +12 -3
- 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
|
-
},
|
|
1479
|
+
}, 10000);
|
|
1472
1480
|
},
|
|
1473
1481
|
async users() {
|
|
1482
|
+
steamClient.users = {};
|
|
1474
1483
|
setTimeout(function () {
|
|
1475
1484
|
steamClient.users = {};
|
|
1476
|
-
},
|
|
1485
|
+
}, 10000);
|
|
1477
1486
|
},
|
|
1478
1487
|
};
|
|
1479
1488
|
|