steamutils 1.2.18 → 1.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/deployment.xml +21 -0
- package/.idea/steamutils.iml +1 -1
- package/.idea/vcs.xml +1 -1
- package/SteamClient.js +4 -4
- package/package.json +1 -1
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
|
4
|
+
<serverData>
|
5
|
+
<paths name="steamsupport">
|
6
|
+
<serverdata>
|
7
|
+
<mappings>
|
8
|
+
<mapping local="$PROJECT_DIR$" web="/" />
|
9
|
+
</mappings>
|
10
|
+
</serverdata>
|
11
|
+
</paths>
|
12
|
+
<paths name="steamsupportui">
|
13
|
+
<serverdata>
|
14
|
+
<mappings>
|
15
|
+
<mapping local="$PROJECT_DIR$" web="/" />
|
16
|
+
</mappings>
|
17
|
+
</serverdata>
|
18
|
+
</paths>
|
19
|
+
</serverData>
|
20
|
+
</component>
|
21
|
+
</project>
|
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
@@ -139,8 +139,8 @@ function SteamClient({
|
|
139
139
|
|
140
140
|
function callGCCallback(name, ...arg) {
|
141
141
|
if (gcCallback[name]) {
|
142
|
-
for (
|
143
|
-
gcCallback[name][id]?.
|
142
|
+
for (const id in gcCallback[name]) {
|
143
|
+
gcCallback[name][id]?.(...arg)
|
144
144
|
}
|
145
145
|
}
|
146
146
|
}
|
@@ -385,7 +385,7 @@ function SteamClient({
|
|
385
385
|
|
386
386
|
callEvent(events.disconnected, {eresult, msg})
|
387
387
|
|
388
|
-
if (
|
388
|
+
if (['ServiceUnavailable', 'NoConnection'].includes(msg) && autoReconnect && !isLogOff) {
|
389
389
|
async function relogin(retry) {
|
390
390
|
if (retry <= 0) {
|
391
391
|
console.error("Cannot relogin")
|
@@ -411,7 +411,7 @@ function SteamClient({
|
|
411
411
|
}
|
412
412
|
|
413
413
|
await sleep(60000)
|
414
|
-
const isSuccess = await relogin(
|
414
|
+
const isSuccess = await relogin(50)
|
415
415
|
if (!isSuccess) {
|
416
416
|
doClearIntervals()
|
417
417
|
}
|
package/package.json
CHANGED