steamutils 1.2.10 → 1.2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/SteamClient.js +9 -2
  2. package/package.json +5 -5
package/SteamClient.js CHANGED
@@ -199,7 +199,9 @@ function SteamClient({
199
199
  }
200
200
  intervalRandoms[key] = setTimeout(function () {
201
201
  doSetInterval(cb, timeout, key)
202
- cb()
202
+ if (state !== 'Offline') {
203
+ cb()
204
+ }
203
205
  }, _.random(timeout[0], timeout[1]))
204
206
  } else {
205
207
  if (intervals[key] !== undefined) {
@@ -208,7 +210,12 @@ function SteamClient({
208
210
  } catch (e) {
209
211
  }
210
212
  }
211
- intervals[key] = setInterval(cb, timeout)
213
+
214
+ intervals[key] = setInterval(function () {
215
+ if (state !== 'Offline') {
216
+ cb()
217
+ }
218
+ }, timeout)
212
219
  }
213
220
 
214
221
  return key
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
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
  }