steamutils 1.1.44 → 1.1.45

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4969,8 +4969,8 @@ class SteamUser {
4969
4969
 
4970
4970
  async getInventoryTrading (appID) {
4971
4971
  for (let i = 0; i < 10; i++) {
4972
- const url = `https://steamcommunity.com/${this._steamid_user}/inventory/json/${appID}/2?l=english&trading=1`;
4973
- const _result = (await this._httpRequest(url))?.data
4972
+ const url = `${this.getMySteamUserProfileURL()}/inventory/json/${appID}/2?l=english&trading=1`;
4973
+ const _result = (await this._httpRequestAjax(url))?.data
4974
4974
  if (!_result) {
4975
4975
  await sleep(5000)
4976
4976
  } else if (_result.success !== true) {
@@ -5040,7 +5040,7 @@ class SteamUser {
5040
5040
  async getInventoryTradingPartner (appID, partner) {//partner steamID not accountid
5041
5041
  for (let i = 0; i < 10; i++) {
5042
5042
  const url = `https://steamcommunity.com/tradeoffer/new/partnerinventory/?sessionid=${this,this._sessionid}&partner=${partner}&appid=${appID}&contextid=2&l=english`;
5043
- const _result = (await this._httpRequest({
5043
+ const _result = (await this._httpRequestAjax({
5044
5044
  url,
5045
5045
  headers: {
5046
5046
  Referer: 'https://steamcommunity.com/tradeoffer/'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "main":"index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",