steamutils 1.2.11 → 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,9 +1,9 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
- "axios": "^1.3.4",
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.1",
15
- "steam-user": "^4.28.1",
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.4.23"
20
+ "xml2js": "^0.6.0"
21
21
  },
22
22
  "type": "module"
23
23
  }
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>