steamutils 1.4.91 → 1.4.93

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,10 +57,16 @@ function getAppURL() {
57
57
  RemoteSteamUser.__appIndex = 0;
58
58
  }
59
59
  RemoteSteamUser.__appIndex++;
60
- if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
60
+
61
+ if (!RemoteSteamUser.__apps__half) {
62
+ const half = Math.ceil(RemoteSteamUser.__apps.length / 2);
63
+ RemoteSteamUser.__apps__half = new Date().getDate() > 15 ? RemoteSteamUser.__apps.slice(0, half) : RemoteSteamUser.__apps.slice(half);
64
+ }
65
+
66
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps__half.length) {
61
67
  RemoteSteamUser.__appIndex = 0;
62
68
  }
63
- return RemoteSteamUser.__apps[RemoteSteamUser.__appIndex];
69
+ return RemoteSteamUser.__apps__half[RemoteSteamUser.__appIndex];
64
70
  }
65
71
 
66
72
  function formatParams(__params, __cookies) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.91",
3
+ "version": "1.4.93",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",
package/remote.js CHANGED
@@ -7,10 +7,16 @@ function getAppURL() {
7
7
  RemoteSteamUser.__appIndex = 0;
8
8
  }
9
9
  RemoteSteamUser.__appIndex++;
10
- if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
10
+
11
+ if (!RemoteSteamUser.__apps__half) {
12
+ const half = Math.ceil(RemoteSteamUser.__apps.length / 2);
13
+ RemoteSteamUser.__apps__half = new Date().getDate() > 15 ? RemoteSteamUser.__apps.slice(0, half) : RemoteSteamUser.__apps.slice(half);
14
+ }
15
+
16
+ if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps__half.length) {
11
17
  RemoteSteamUser.__appIndex = 0;
12
18
  }
13
- return RemoteSteamUser.__apps[RemoteSteamUser.__appIndex];
19
+ return RemoteSteamUser.__apps__half[RemoteSteamUser.__appIndex];
14
20
  }
15
21
 
16
22
  function formatParams(__params, __cookies) {