steamutils 1.2.60 → 1.2.62
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -985,7 +985,7 @@ function SteamClient({
|
|
985
985
|
if (isAutoRequestFreeLicense) {
|
986
986
|
doSetInterval(function () {
|
987
987
|
autoRequestFreeLicense(false, 50)
|
988
|
-
}, 60000, 'autoRequestFreeLicense')
|
988
|
+
}, [5 * 60000, 10 * 60000], 'autoRequestFreeLicense')
|
989
989
|
}
|
990
990
|
if (autoPlay) {
|
991
991
|
await sleep(10000)
|
package/index.js
CHANGED
@@ -6002,7 +6002,7 @@ class SteamUser {
|
|
6002
6002
|
return null
|
6003
6003
|
}
|
6004
6004
|
const $ = cheerio.load(response)
|
6005
|
-
const text = $('.help_event_limiteduser .help_event_limiteduser_spend').text()
|
6005
|
+
const text = $('.help_event_limiteduser .help_event_limiteduser_spend').text().replaceAll(/[\t\n\r]/gi, ' ').replaceAll(/\s+/g, ' ').trim()
|
6006
6006
|
if (text?.startsWith("Amount Spent on Steam")) {
|
6007
6007
|
return text
|
6008
6008
|
} else {
|