steamutils 1.1.53 → 1.1.54
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +7 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1532,6 +1532,13 @@ class SteamUser {
|
|
1532
1532
|
redirectURL = response.headers.location
|
1533
1533
|
console.log(`Redirect to ${redirectURL}`)
|
1534
1534
|
} else if (response.status === 200) {
|
1535
|
+
if(response.data && typeof response.data === 'string') {
|
1536
|
+
response._$ = function () {
|
1537
|
+
return cheerio.load(response.data
|
1538
|
+
.replaceAll(/[\t\n\r]/gi, '')
|
1539
|
+
.trim())
|
1540
|
+
}
|
1541
|
+
}
|
1535
1542
|
break
|
1536
1543
|
} else if (response.status === 429) {
|
1537
1544
|
console.log('Too Many Requests', config.url)
|