steamutils 1.4.47 → 1.4.48
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +10 -13
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -1298,7 +1298,16 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
|
|
1298
1298
|
async user(steamId, data) {
|
1299
1299
|
callEvent(events.user, { steamId: steamId.getSteamID64(), data });
|
1300
1300
|
|
1301
|
-
|
1301
|
+
// cleanNodeSteamUserData
|
1302
|
+
for (const friendSteamId in steamClient.users) {
|
1303
|
+
steamClient.users[friendSteamId] = {};
|
1304
|
+
}
|
1305
|
+
if (_cleanNodeSteamUserTimeout) {
|
1306
|
+
clearTimeout(_cleanNodeSteamUserTimeout);
|
1307
|
+
}
|
1308
|
+
_cleanNodeSteamUserTimeout = setTimeout(function () {
|
1309
|
+
steamClient.users = {};
|
1310
|
+
}, 60000);
|
1302
1311
|
|
1303
1312
|
const dataExample = {
|
1304
1313
|
rich_presence: [
|
@@ -2301,18 +2310,6 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
|
|
2301
2310
|
);
|
2302
2311
|
}
|
2303
2312
|
|
2304
|
-
function _cleanNodeSteamUserData() {
|
2305
|
-
for (const friendSteamId in steamClient.users) {
|
2306
|
-
steamClient.users[friendSteamId] = {};
|
2307
|
-
}
|
2308
|
-
if (_cleanNodeSteamUserTimeout) {
|
2309
|
-
clearTimeout(_cleanNodeSteamUserTimeout);
|
2310
|
-
}
|
2311
|
-
setTimeout(function () {
|
2312
|
-
steamClient.users = {};
|
2313
|
-
}, 60000);
|
2314
|
-
}
|
2315
|
-
|
2316
2313
|
return {
|
2317
2314
|
init,
|
2318
2315
|
partySearch,
|