steamutils 1.0.2 → 1.0.3

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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1862,7 +1862,7 @@ class SteamUser {
1862
1862
 
1863
1863
  async getClientJsToken(retry = null) {
1864
1864
  let result = (await this._httpRequest('chat/clientjstoken'))?.data
1865
- if (!result) {
1865
+ if (!result?.steamid) {
1866
1866
  if (retry !== null && retry !== undefined && retry >= 0) {
1867
1867
  return await this.getClientJsToken(retry - 1)
1868
1868
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "dependencies": {
5
5
  "axios": "^1.3.4",
6
6
  "cheerio": "^1.0.0-rc.12",