steamutils 1.4.86 → 1.4.87

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.
@@ -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
- const url = getAppURL();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.86",
3
+ "version": "1.4.87",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",
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
- const url = getAppURL();
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 = {