steamutils 1.2.12 → 1.2.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
5
  </component>
6
6
  </project>
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', function (loggedOnResponse) {
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(60000)
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(10)
412
+ const isSuccess = await relogin(20)
414
413
  if (!isSuccess) {
415
414
  doClearIntervals()
416
415
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.4.0",
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>