steamutils 1.1.85 → 1.1.87

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 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1575,6 +1575,8 @@ class SteamUser {
1575
1575
  config.headers['Content-Type'] = config.headers['content-type'] = 'application/x-www-form-urlencoded'
1576
1576
  retry = 1
1577
1577
  }
1578
+ } else if (response.status === 500) {
1579
+ console.log(response.status, response.statusText, config.url, response.data)
1578
1580
  } else {
1579
1581
  console.log(response.status, config.url);
1580
1582
  }
@@ -5488,7 +5490,7 @@ class SteamUser {
5488
5490
 
5489
5491
  async getTradeURL(){
5490
5492
  const result = await this._httpRequest(`${this.getMyProfileURL()}/tradeoffers/privacy`)
5491
- const $ = cherrio.load(result.data)
5493
+ const $ = cherrio.load(result?.data || '')
5492
5494
  const trade_offer_access_url = $('#trade_offer_access_url').attr('value')
5493
5495
  return trade_offer_access_url
5494
5496
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.85",
3
+ "version": "1.1.87",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",