steamutils 1.4.93 → 1.4.95
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +3184 -3174
- package/create_remote_file.js +2 -8
- package/index.js +7 -2
- package/package.json +1 -1
- package/remote.js +2 -8
package/create_remote_file.js
CHANGED
@@ -57,16 +57,10 @@ function getAppURL() {
|
|
57
57
|
RemoteSteamUser.__appIndex = 0;
|
58
58
|
}
|
59
59
|
RemoteSteamUser.__appIndex++;
|
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) {
|
60
|
+
if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
|
67
61
|
RemoteSteamUser.__appIndex = 0;
|
68
62
|
}
|
69
|
-
return RemoteSteamUser.
|
63
|
+
return RemoteSteamUser.__apps[RemoteSteamUser.__appIndex];
|
70
64
|
}
|
71
65
|
|
72
66
|
function formatParams(__params, __cookies) {
|
package/index.js
CHANGED
@@ -5189,7 +5189,7 @@ export default class SteamUser {
|
|
5189
5189
|
if (!_result) {
|
5190
5190
|
await sleep(5000);
|
5191
5191
|
} else if (_result.success !== 1) {
|
5192
|
-
console.error(_result);
|
5192
|
+
console.error("getInventory Error", _result);
|
5193
5193
|
await sleep(5000);
|
5194
5194
|
} else {
|
5195
5195
|
data = _result;
|
@@ -5777,12 +5777,17 @@ export default class SteamUser {
|
|
5777
5777
|
},
|
5778
5778
|
method: "POST",
|
5779
5779
|
});
|
5780
|
+
|
5781
|
+
if (!result) {
|
5782
|
+
return;
|
5783
|
+
}
|
5784
|
+
|
5780
5785
|
if (result instanceof ResponseError) {
|
5781
5786
|
return result;
|
5782
5787
|
}
|
5783
5788
|
return result.data;
|
5784
5789
|
const resultExample = {
|
5785
|
-
tradeofferid: "
|
5790
|
+
tradeofferid: "609309133",
|
5786
5791
|
needs_mobile_confirmation: true,
|
5787
5792
|
needs_email_confirmation: false,
|
5788
5793
|
email_domain: "gmail.com",
|
package/package.json
CHANGED
package/remote.js
CHANGED
@@ -7,16 +7,10 @@ function getAppURL() {
|
|
7
7
|
RemoteSteamUser.__appIndex = 0;
|
8
8
|
}
|
9
9
|
RemoteSteamUser.__appIndex++;
|
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) {
|
10
|
+
if (RemoteSteamUser.__appIndex >= RemoteSteamUser.__apps.length) {
|
17
11
|
RemoteSteamUser.__appIndex = 0;
|
18
12
|
}
|
19
|
-
return RemoteSteamUser.
|
13
|
+
return RemoteSteamUser.__apps[RemoteSteamUser.__appIndex];
|
20
14
|
}
|
21
15
|
|
22
16
|
function formatParams(__params, __cookies) {
|