steamutils 1.3.80 → 1.3.82

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.
package/index.js CHANGED
@@ -1140,7 +1140,11 @@ export default class SteamUser {
1140
1140
  if (value === undefined || value === null) {
1141
1141
  value = "";
1142
1142
  }
1143
- form.append(name, value.toString());
1143
+ try {
1144
+ form.append(name, value);
1145
+ } catch (e) {
1146
+ form.append(name, value.toString());
1147
+ }
1144
1148
  }
1145
1149
  }
1146
1150
  }
@@ -1197,7 +1201,7 @@ export default class SteamUser {
1197
1201
  cookie.setCookies(_response?.headers["set-cookie"]);
1198
1202
  onCookieChange.forEach(function (cb) {
1199
1203
  if (typeof cb === "function") {
1200
- cb(cookie.getCookie("sessionid"), cookie.toString());
1204
+ cb({ cookie, url: _response?.request?.res?.responseUrl });
1201
1205
  }
1202
1206
  });
1203
1207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.3.80",
3
+ "version": "1.3.82",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",
@@ -1,21 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
4
- <serverData>
5
- <paths name="steamsupport">
6
- <serverdata>
7
- <mappings>
8
- <mapping local="$PROJECT_DIR$" web="/" />
9
- </mappings>
10
- </serverdata>
11
- </paths>
12
- <paths name="steamsupportui">
13
- <serverdata>
14
- <mappings>
15
- <mapping local="$PROJECT_DIR$" web="/" />
16
- </mappings>
17
- </serverdata>
18
- </paths>
19
- </serverData>
20
- </component>
21
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptLibraryMappings">
4
- <includedPredefinedLibrary name="Node.js Core" />
5
- </component>
6
- </project>