steamutils 1.4.86 → 1.4.87
Sign up to get free protection for your applications and to get access to all the features.
- package/create_remote_file.js +2 -1
- package/package.json +1 -1
- package/remote.js +3 -1
package/create_remote_file.js
CHANGED
@@ -80,7 +80,8 @@ const MAX_RETRY = 5;
|
|
80
80
|
|
81
81
|
async function doRequest(config){
|
82
82
|
for (let i = 0; i < MAX_RETRY; i++) {
|
83
|
-
|
83
|
+
let url = getAppURL();
|
84
|
+
url = [url.replace(/\\/$/, ""), config.method].join("/");
|
84
85
|
|
85
86
|
try {
|
86
87
|
const response = await axios.post(url, config);
|
package/package.json
CHANGED
package/remote.js
CHANGED
@@ -36,7 +36,8 @@ const MAX_RETRY = 5;
|
|
36
36
|
|
37
37
|
async function doRequest(config) {
|
38
38
|
for (let i = 0; i < MAX_RETRY; i++) {
|
39
|
-
|
39
|
+
let url = getAppURL();
|
40
|
+
url = [url.replace(/\/$/, ""), config.method].join("/");
|
40
41
|
|
41
42
|
try {
|
42
43
|
const response = await axios.post(url, config);
|
@@ -1409,6 +1410,7 @@ export default class RemoteSteamUser {
|
|
1409
1410
|
};
|
1410
1411
|
return await doRequest(config);
|
1411
1412
|
}
|
1413
|
+
|
1412
1414
|
async deauthorizeAllDevices() {
|
1413
1415
|
const { __params, __cookies } = formatParams([], this._cookies);
|
1414
1416
|
const config = {
|