eas-cli 18.2.0 → 18.3.0

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.
@@ -16,10 +16,14 @@ class AccountView extends EasCommand_1.default {
16
16
  async runAsync() {
17
17
  const { maybeLoggedIn: { actor, authenticationInfo }, } = await this.getContextAsync(AccountView, { nonInteractive: true });
18
18
  if (actor) {
19
+ const displayName = (0, User_1.getActorDisplayName)(actor);
19
20
  const loggedInAs = authenticationInfo.accessToken
20
- ? `${(0, User_1.getActorDisplayName)(actor)} (authenticated using EXPO_TOKEN)`
21
- : (0, User_1.getActorDisplayName)(actor);
21
+ ? `${displayName} (authenticated using EXPO_TOKEN)`
22
+ : displayName;
22
23
  log_1.default.log(chalk_1.default.green(loggedInAs));
24
+ if ('email' in actor) {
25
+ log_1.default.log(actor.email);
26
+ }
23
27
  // personal account is included, only show if more accounts that personal account
24
28
  // but do show personal account in list if there are more
25
29
  const accountExcludingPersonalAccount = actor.accounts.filter(account => !('username' in actor) || account.name !== actor.username);
@@ -15915,6 +15915,7 @@ export type CurrentUserQuery = {
15915
15915
  }>;
15916
15916
  } | {
15917
15917
  __typename: 'User';
15918
+ email: string;
15918
15919
  username: string;
15919
15920
  id: string;
15920
15921
  featureGates: any;
@@ -14,6 +14,9 @@ exports.UserQuery = {
14
14
  meActor {
15
15
  __typename
16
16
  id
17
+ ... on User {
18
+ email
19
+ }
17
20
  ... on UserActor {
18
21
  username
19
22
  primaryAccount {