steamutils 1.4.93 → 1.4.95

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.
@@ -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.__apps__half[RemoteSteamUser.__appIndex];
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: "6093091333",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.93",
3
+ "version": "1.4.95",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",
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.__apps__half[RemoteSteamUser.__appIndex];
13
+ return RemoteSteamUser.__apps[RemoteSteamUser.__appIndex];
20
14
  }
21
15
 
22
16
  function formatParams(__params, __cookies) {