steamutils 1.1.45 → 1.1.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1516,14 +1516,14 @@ class SteamUser {
1516
1516
 
1517
1517
  let now = 0
1518
1518
  let diff = 0
1519
- while ((diff = (now = new Date().getTime()) - requestTimestamp) < 500) {
1520
- await sleep(diff + 10)
1521
- }
1522
1519
  if (checkTooManyRequest) {
1523
1520
  while ((diff = (now = new Date().getTime()) - tooManyRequestTimestamp) < 30000) {
1524
1521
  await sleep(diff + 10)
1525
1522
  }
1526
1523
  }
1524
+ while ((diff = (now = new Date().getTime()) - requestTimestamp) < 500) {
1525
+ await sleep(diff + 10)
1526
+ }
1527
1527
  requestTimestamp = now
1528
1528
  response = await axios.request(config)
1529
1529
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",