steamutils 1.2.11 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- package/.idea/steamutils.iml +1 -1
- package/.idea/vcs.xml +1 -1
- package/SteamClient.js +4 -5
- package/package.json +5 -5
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
package/.idea/steamutils.iml
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
<module type="WEB_MODULE" version="4">
|
3
3
|
<component name="NewModuleRootManager">
|
4
4
|
<content url="file://$MODULE_DIR$">
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
6
5
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
7
7
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
8
8
|
</content>
|
9
9
|
<orderEntry type="inheritedJdk" />
|
package/.idea/vcs.xml
CHANGED
package/SteamClient.js
CHANGED
@@ -392,25 +392,24 @@ function SteamClient({
|
|
392
392
|
const isSuccess = await login(true)
|
393
393
|
if (isSuccess) {
|
394
394
|
const loggedOnResponse = await new Promise(resolve => {
|
395
|
-
onEvent('loggedOn',
|
396
|
-
resolve(loggedOnResponse)
|
397
|
-
}, true, 120000)
|
395
|
+
onEvent('loggedOn', resolve, true, 180000)
|
398
396
|
})
|
399
397
|
if (loggedOnResponse) {
|
400
398
|
console.log("Relogin success")
|
401
399
|
return true
|
402
400
|
} else {
|
401
|
+
await sleep(120000)
|
403
402
|
return await relogin(retry - 1)
|
404
403
|
}
|
405
404
|
} else {
|
406
|
-
await sleep(
|
405
|
+
await sleep(120000)
|
407
406
|
return await relogin(retry - 1)
|
408
407
|
}
|
409
408
|
}
|
410
409
|
}
|
411
410
|
|
412
411
|
await sleep(60000)
|
413
|
-
const isSuccess = await relogin(
|
412
|
+
const isSuccess = await relogin(20)
|
414
413
|
if (!isSuccess) {
|
415
414
|
doClearIntervals()
|
416
415
|
}
|
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "steamutils",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.13",
|
4
4
|
"main": "index.js",
|
5
5
|
"dependencies": {
|
6
|
-
"axios": "^1.
|
6
|
+
"axios": "^1.4.0",
|
7
7
|
"cheerio": "^1.0.0-rc.12",
|
8
8
|
"crypto-js": "^4.1.1",
|
9
9
|
"csgo-friendcode": "^3.0.3",
|
@@ -11,13 +11,13 @@
|
|
11
11
|
"lodash": "^4.17.21",
|
12
12
|
"moment": "^2.29.4",
|
13
13
|
"node-bignumber": "^1.2.2",
|
14
|
-
"steam-session": "^1.2.
|
15
|
-
"steam-user": "^4.28.
|
14
|
+
"steam-session": "^1.2.3",
|
15
|
+
"steam-user": "^4.28.6",
|
16
16
|
"steamid": "^2.0.0",
|
17
17
|
"url-parse": "^1.5.10",
|
18
18
|
"uuid": "^9.0.0",
|
19
19
|
"xml-js": "^1.6.11",
|
20
|
-
"xml2js": "^0.
|
20
|
+
"xml2js": "^0.6.0"
|
21
21
|
},
|
22
22
|
"type": "module"
|
23
23
|
}
|