steamutils 1.1.43 → 1.1.44
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5040,7 +5040,12 @@ 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._httpRequest({
|
5044
|
+
url,
|
5045
|
+
headers: {
|
5046
|
+
Referer: 'https://steamcommunity.com/tradeoffer/'
|
5047
|
+
}
|
5048
|
+
}))?.data
|
5044
5049
|
if (!_result) {
|
5045
5050
|
await sleep(5000)
|
5046
5051
|
} else if (_result.success !== true) {
|