steamutils 1.4.70 → 1.4.71
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +7 -4
- package/package.json +6 -6
package/SteamClient.js
CHANGED
@@ -388,8 +388,13 @@ function SteamClient({ username, cookie, clientJsToken, isAutoRequestFreeLicense
|
|
388
388
|
delete intervalRandoms[key];
|
389
389
|
}
|
390
390
|
|
391
|
+
function getSteamIdFromCookie() {
|
392
|
+
const regex = /steamLoginSecure=(\d+)/;
|
393
|
+
return cookie?.match?.(regex)?.[1];
|
394
|
+
}
|
395
|
+
|
391
396
|
function getAccountInfoName() {
|
392
|
-
return [steamClient?.accountInfo?.name, steamClient?._logOnDetails?.account_name].filter(Boolean).join(" - ");
|
397
|
+
return [getSteamIdFromCookie(), steamClient?.accountInfo?.name, steamClient?._logOnDetails?.account_name].filter(Boolean).join(" - ");
|
393
398
|
}
|
394
399
|
|
395
400
|
function getPersonaName() {
|
@@ -2128,9 +2133,7 @@ function SteamClient({ username, cookie, clientJsToken, isAutoRequestFreeLicense
|
|
2128
2133
|
|
2129
2134
|
if (steamClient) {
|
2130
2135
|
steamClient.logOff();
|
2131
|
-
await sleep(
|
2132
|
-
|
2133
|
-
steamClient._connection?.end(true);
|
2136
|
+
await sleep(30000);
|
2134
2137
|
|
2135
2138
|
function cleanSteamClient(obj, key) {
|
2136
2139
|
const value = obj[key];
|
package/package.json
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
{
|
2
2
|
"name": "steamutils",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.71",
|
4
4
|
"main": "index.js",
|
5
5
|
"dependencies": {
|
6
6
|
"alpha-common-utils": "^1.0.6",
|
7
|
-
"axios": "^1.7.
|
7
|
+
"axios": "^1.7.7",
|
8
8
|
"bytebuffer": "^5.0.1",
|
9
9
|
"cheerio": "^1.0.0",
|
10
10
|
"crypto-js": "^4.2.0",
|
11
11
|
"csgo-friendcode": "^3.0.3",
|
12
12
|
"form-data": "^4.0.0",
|
13
|
-
"jimp": "^
|
13
|
+
"jimp": "^1.6.0",
|
14
14
|
"lodash": "^4.17.21",
|
15
15
|
"moment": "^2.30.1",
|
16
16
|
"moment-timezone": "^0.5.45",
|
17
17
|
"node-bignumber": "^1.2.2",
|
18
18
|
"protobufjs": "^7.4.0",
|
19
19
|
"qs": "^6.13.0",
|
20
|
-
"steam-session": "^1.
|
20
|
+
"steam-session": "^1.9.0",
|
21
21
|
"steam-totp": "^2.1.2",
|
22
|
-
"steam-user": "^5.0
|
22
|
+
"steam-user": "^5.2.0",
|
23
23
|
"steamcommunity": "^3.48.3",
|
24
|
-
"steamid": "^2.
|
24
|
+
"steamid": "^2.1.0",
|
25
25
|
"url-parse": "^1.5.10",
|
26
26
|
"uuid": "^10.0.0",
|
27
27
|
"xml-js": "^1.6.11",
|