steamcommunity 3.46.0 → 3.46.1

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.
@@ -99,8 +99,8 @@ exports.resolveVanityURL = function(url, callback) {
99
99
  return;
100
100
  }
101
101
 
102
- let steamID64 = parsed.profile.steamID64;
103
- let vanityURL = parsed.profile.customURL;
102
+ let steamID64 = parsed.profile.steamID64[0];
103
+ let vanityURL = parsed.profile.customURL[0];
104
104
 
105
105
  callback(null, {"vanityURL": vanityURL, "steamID": steamID64});
106
106
  });
@@ -56,9 +56,9 @@ async function main() {
56
56
  let codeAction = startResult.validActions.find(action => codeActionTypes.includes(action.type));
57
57
  if (codeAction) {
58
58
  if (codeAction.type == SteamSession.EAuthSessionGuardType.EmailCode) {
59
+ // We wouldn't expect this to happen since mobile confirmations are only possible with 2FA enabled, but just in case...
59
60
  console.log(`A code has been sent to your email address at ${codeAction.detail}.`);
60
61
  } else {
61
- // We wouldn't expect this to happen since we're trying to enable 2FA, but just in case...
62
62
  console.log('You need to provide a Steam Guard Mobile Authenticator code.');
63
63
  }
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamcommunity",
3
- "version": "3.46.0",
3
+ "version": "3.46.1",
4
4
  "description": "Provides an interface for logging into and interacting with the Steam Community website",
5
5
  "keywords": [
6
6
  "steam",