steamutils 1.1.53 → 1.1.54

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.
Files changed (2) hide show
  1. package/index.js +7 -0
  2. 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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.53",
3
+ "version": "1.1.54",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",