eas-cli 10.2.4 → 11.0.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.
Files changed (204) hide show
  1. package/README.md +63 -65
  2. package/build/branch/actions/SelectBranch.d.ts +1 -1
  3. package/build/branch/actions/SelectBranch.js +2 -2
  4. package/build/branch/queries.js +3 -1
  5. package/build/build/android/build.js +1 -1
  6. package/build/build/android/version.js +1 -1
  7. package/build/build/build.js +21 -10
  8. package/build/build/context.d.ts +1 -0
  9. package/build/build/createContext.d.ts +2 -1
  10. package/build/build/createContext.js +6 -3
  11. package/build/build/evaluateConfigWithEnvVarsAsync.d.ts +16 -0
  12. package/build/build/evaluateConfigWithEnvVarsAsync.js +44 -0
  13. package/build/build/ios/build.js +4 -4
  14. package/build/build/local.d.ts +1 -1
  15. package/build/build/local.js +2 -1
  16. package/build/build/queries.js +3 -1
  17. package/build/build/runBuildAndSubmit.d.ts +2 -0
  18. package/build/build/runBuildAndSubmit.js +14 -7
  19. package/build/build/utils/printBuildInfo.js +6 -2
  20. package/build/build/validate.js +2 -2
  21. package/build/channel/actions/SelectChannel.d.ts +1 -1
  22. package/build/channel/actions/SelectChannel.js +2 -2
  23. package/build/channel/queries.js +6 -2
  24. package/build/commandUtils/EasCommand.js +2 -2
  25. package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -1
  26. package/build/commandUtils/flags.d.ts +3 -0
  27. package/build/commandUtils/flags.js +15 -1
  28. package/build/commandUtils/gating/FeatureGating.js +6 -2
  29. package/build/commands/analytics.js +1 -1
  30. package/build/commands/build/index.d.ts +4 -1
  31. package/build/commands/build/index.js +3 -0
  32. package/build/commands/build/resign.d.ts +4 -1
  33. package/build/commands/build/resign.js +12 -3
  34. package/build/commands/build/version/get.d.ts +1 -0
  35. package/build/commands/build/version/get.js +9 -2
  36. package/build/commands/build/version/set.d.ts +1 -0
  37. package/build/commands/build/version/set.js +11 -1
  38. package/build/commands/build/version/sync.d.ts +1 -0
  39. package/build/commands/build/version/sync.js +13 -5
  40. package/build/commands/config.d.ts +2 -0
  41. package/build/commands/config.js +17 -5
  42. package/build/commands/device/delete.js +1 -1
  43. package/build/commands/device/rename.js +1 -1
  44. package/build/commands/env/create.js +7 -2
  45. package/build/commands/env/delete.js +5 -2
  46. package/build/commands/env/get.js +12 -4
  47. package/build/commands/env/link.js +3 -1
  48. package/build/commands/env/list.d.ts +4 -2
  49. package/build/commands/env/list.js +31 -4
  50. package/build/commands/env/pull.d.ts +15 -0
  51. package/build/commands/env/pull.js +64 -0
  52. package/build/commands/env/push.d.ts +17 -0
  53. package/build/commands/env/push.js +148 -0
  54. package/build/commands/env/unlink.js +4 -1
  55. package/build/commands/env/update.js +7 -2
  56. package/build/commands/metadata/lint.js +4 -2
  57. package/build/commands/project/onboarding.js +1 -1
  58. package/build/commands/update/edit.d.ts +19 -0
  59. package/build/commands/update/edit.js +102 -0
  60. package/build/commands/update/index.d.ts +1 -2
  61. package/build/commands/update/index.js +53 -25
  62. package/build/commands/update/list.js +6 -3
  63. package/build/commands/update/roll-back-to-embedded.js +1 -1
  64. package/build/credentials/android/AndroidCredentialsProvider.d.ts +2 -2
  65. package/build/credentials/android/actions/AssignFcm.d.ts +1 -1
  66. package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForFcmV1.d.ts +1 -1
  67. package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForSubmissions.d.ts +1 -1
  68. package/build/credentials/android/actions/CreateFcm.d.ts +1 -1
  69. package/build/credentials/android/actions/CreateGoogleServiceAccountKey.d.ts +1 -1
  70. package/build/credentials/android/actions/CreateKeystore.d.ts +1 -1
  71. package/build/credentials/android/actions/DownloadKeystore.d.ts +2 -2
  72. package/build/credentials/android/actions/RemoveFcm.d.ts +1 -1
  73. package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.d.ts +2 -2
  74. package/build/credentials/android/actions/RemoveKeystore.d.ts +1 -1
  75. package/build/credentials/android/actions/SetUpBuildCredentials.d.ts +1 -1
  76. package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.d.ts +1 -1
  77. package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForFcmV1.d.ts +1 -1
  78. package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForSubmissions.d.ts +1 -1
  79. package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.d.ts +1 -1
  80. package/build/credentials/android/api/GraphqlClient.js +3 -3
  81. package/build/credentials/context.d.ts +2 -2
  82. package/build/credentials/context.js +1 -1
  83. package/build/credentials/ios/IosCredentialsProvider.d.ts +2 -2
  84. package/build/credentials/ios/IosCredentialsProvider.js +1 -1
  85. package/build/credentials/ios/actions/AscApiKeyUtils.js +1 -1
  86. package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
  87. package/build/credentials/ios/actions/AssignPushKey.d.ts +1 -1
  88. package/build/credentials/ios/actions/ConfigureProvisioningProfile.d.ts +4 -4
  89. package/build/credentials/ios/actions/CreateAscApiKey.d.ts +1 -1
  90. package/build/credentials/ios/actions/CreateDistributionCertificate.d.ts +1 -1
  91. package/build/credentials/ios/actions/CreateProvisioningProfile.d.ts +3 -3
  92. package/build/credentials/ios/actions/CreatePushKey.d.ts +1 -1
  93. package/build/credentials/ios/actions/DistributionCertificateUtils.js +5 -5
  94. package/build/credentials/ios/actions/ProvisioningProfileUtils.js +1 -1
  95. package/build/credentials/ios/actions/PushKeyUtils.js +2 -2
  96. package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +2 -2
  97. package/build/credentials/ios/actions/RemoveDistributionCertificate.d.ts +3 -3
  98. package/build/credentials/ios/actions/RemoveProvisioningProfile.d.ts +2 -2
  99. package/build/credentials/ios/actions/RemovePushKey.d.ts +2 -2
  100. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.d.ts +1 -1
  101. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +1 -1
  102. package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +2 -2
  103. package/build/credentials/ios/actions/SetUpBuildCredentials.d.ts +1 -1
  104. package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.d.ts +3 -3
  105. package/build/credentials/ios/actions/SetUpDistributionCertificate.d.ts +2 -2
  106. package/build/credentials/ios/actions/SetUpDistributionCertificate.js +1 -1
  107. package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.d.ts +1 -1
  108. package/build/credentials/ios/actions/SetUpProvisioningProfile.d.ts +3 -3
  109. package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
  110. package/build/credentials/ios/actions/SetUpPushKey.d.ts +1 -1
  111. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.d.ts +1 -1
  112. package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.d.ts +3 -3
  113. package/build/credentials/ios/actions/UpdateCredentialsJson.d.ts +3 -3
  114. package/build/credentials/ios/api/GraphqlClient.js +4 -4
  115. package/build/credentials/ios/appstore/AppStoreApi.js +4 -4
  116. package/build/credentials/ios/appstore/authenticate.js +1 -1
  117. package/build/credentials/ios/appstore/bundleId.js +1 -1
  118. package/build/credentials/ios/appstore/bundleIdCapabilities.js +1 -1
  119. package/build/credentials/ios/appstore/ensureAppExists.js +1 -1
  120. package/build/credentials/ios/appstore/keychain.js +8 -6
  121. package/build/credentials/ios/appstore/provisioningProfile.js +1 -1
  122. package/build/credentials/ios/appstore/pushKey.js +1 -1
  123. package/build/credentials/ios/appstore/resolveCredentials.js +2 -2
  124. package/build/credentials/ios/credentials.js +1 -1
  125. package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -1
  126. package/build/credentials/ios/validators/validateProvisioningProfile.js +2 -4
  127. package/build/credentials/manager/CheckBuildProfileFlagAgainstEasJson.d.ts +3 -3
  128. package/build/credentials/manager/CreateAndroidBuildCredentials.d.ts +1 -1
  129. package/build/credentials/manager/ManageAndroid.js +2 -1
  130. package/build/credentials/manager/ManageIos.js +3 -2
  131. package/build/credentials/manager/SelectAndroidBuildCredentials.d.ts +2 -2
  132. package/build/credentials/manager/SelectBuildProfileFromEasJson.d.ts +2 -2
  133. package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.d.ts +1 -1
  134. package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.js +1 -1
  135. package/build/credentials/manager/SelectPlatform.js +3 -2
  136. package/build/credentials/manager/SetDefaultAndroidKeystore.d.ts +1 -1
  137. package/build/credentials/manager/SetUpAndroidBuildCredentials.d.ts +1 -1
  138. package/build/credentials/manager/SetUpBuildCredentialsCommandAction.js +3 -2
  139. package/build/credentials/manager/SetUpIosBuildCredentials.d.ts +1 -1
  140. package/build/devices/actions/create/action.d.ts +4 -4
  141. package/build/devices/actions/create/registrationUrlMethod.js +3 -1
  142. package/build/devices/manager.d.ts +4 -4
  143. package/build/devices/queries.js +3 -1
  144. package/build/easMultiselect.js +6 -2
  145. package/build/graphql/generated.d.ts +342 -33
  146. package/build/graphql/generated.js +52 -2
  147. package/build/graphql/mutations/EnvironmentVariableMutation.d.ts +1 -0
  148. package/build/graphql/mutations/EnvironmentVariableMutation.js +20 -0
  149. package/build/graphql/mutations/PublishMutation.d.ts +1 -0
  150. package/build/graphql/mutations/PublishMutation.js +16 -0
  151. package/build/graphql/queries/BranchQuery.d.ts +7 -1
  152. package/build/graphql/queries/BranchQuery.js +42 -0
  153. package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +16 -7
  154. package/build/graphql/queries/EnvironmentVariablesQuery.js +29 -6
  155. package/build/graphql/types/Update.js +4 -0
  156. package/build/metadata/apple/config/reader.js +1 -1
  157. package/build/metadata/apple/tasks/age-rating.js +1 -1
  158. package/build/metadata/apple/tasks/app-review-detail.js +2 -1
  159. package/build/metadata/apple/tasks/app-version.d.ts +1 -1
  160. package/build/metadata/config/resolve.js +2 -1
  161. package/build/metadata/errors.js +2 -1
  162. package/build/metadata/utils/log.js +1 -1
  163. package/build/metadata/utils/retry.js +1 -1
  164. package/build/onboarding/runCommand.js +1 -1
  165. package/build/ora.js +12 -4
  166. package/build/project/android/applicationId.js +1 -1
  167. package/build/project/applicationIdentifier.d.ts +3 -2
  168. package/build/project/applicationIdentifier.js +2 -2
  169. package/build/project/expoConfig.js +2 -2
  170. package/build/project/ios/entitlements.js +1 -1
  171. package/build/project/publish.d.ts +31 -18
  172. package/build/project/publish.js +61 -37
  173. package/build/project/resolveRuntimeVersionAsync.d.ts +4 -1
  174. package/build/project/resolveRuntimeVersionAsync.js +9 -3
  175. package/build/rollout/actions/CreateRollout.d.ts +2 -2
  176. package/build/rollout/actions/EditRollout.d.ts +2 -2
  177. package/build/rollout/actions/EndRollout.d.ts +2 -2
  178. package/build/rollout/actions/ManageRollout.d.ts +2 -2
  179. package/build/rollout/actions/NonInteractiveRollout.d.ts +1 -1
  180. package/build/rollout/actions/RolloutMainMenu.d.ts +1 -1
  181. package/build/rollout/actions/SelectRuntime.d.ts +3 -3
  182. package/build/run/android/adb.js +1 -1
  183. package/build/run/ios/simctl.js +1 -1
  184. package/build/run/ios/systemRequirements.js +1 -1
  185. package/build/submit/ArchiveSource.js +15 -15
  186. package/build/submit/BaseSubmitter.js +2 -2
  187. package/build/submit/submit.js +1 -1
  188. package/build/update/android/UpdatesModule.js +1 -1
  189. package/build/update/configure.d.ts +1 -1
  190. package/build/update/queries.js +8 -3
  191. package/build/update/republish.js +2 -1
  192. package/build/update/utils.d.ts +1 -0
  193. package/build/update/utils.js +7 -0
  194. package/build/user/expoSsoLauncher.js +1 -1
  195. package/build/utils/download.js +2 -2
  196. package/build/utils/filterAsync.js +1 -1
  197. package/build/utils/image.js +2 -2
  198. package/build/utils/progress.js +1 -1
  199. package/build/utils/promise.js +1 -1
  200. package/build/utils/queries.js +2 -2
  201. package/build/vcs/clients/git.d.ts +1 -1
  202. package/build/vcs/local.d.ts +1 -1
  203. package/oclif.manifest.json +218 -22
  204. package/package.json +14 -14
@@ -1,12 +1,12 @@
1
1
  import { AccountFragment, GoogleServiceAccountKeyFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  export declare class SelectAndRemoveGoogleServiceAccountKey {
4
- private account;
4
+ private readonly account;
5
5
  constructor(account: AccountFragment);
6
6
  runAsync(ctx: CredentialsContext): Promise<void>;
7
7
  }
8
8
  export declare class RemoveGoogleServiceAccountKey {
9
- private googleServiceAccountKey;
9
+ private readonly googleServiceAccountKey;
10
10
  constructor(googleServiceAccountKey: GoogleServiceAccountKeyFragment);
11
11
  runAsync(ctx: CredentialsContext): Promise<void>;
12
12
  }
@@ -2,7 +2,7 @@ import { AndroidAppBuildCredentialsFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/GraphqlClient';
4
4
  export declare class RemoveKeystore {
5
- private app;
5
+ private readonly app;
6
6
  constructor(app: AppLookupParams);
7
7
  runAsync(ctx: CredentialsContext, buildCredentials: AndroidAppBuildCredentialsFragment): Promise<void>;
8
8
  displayWarning(): void;
@@ -10,7 +10,7 @@ interface Options {
10
10
  * @name: sets up build credentials for the specified configuration. If no name is specified, the default configuration is setup
11
11
  */
12
12
  export declare class SetUpBuildCredentials {
13
- private options;
13
+ private readonly options;
14
14
  constructor(options: Options);
15
15
  runAsync(ctx: CredentialsContext): Promise<AndroidAppBuildCredentialsFragment>;
16
16
  assignBuildCredentialsAsync({ ctx, app, name, keystore, }: {
@@ -2,7 +2,7 @@ import { AndroidAppBuildCredentialsFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/GraphqlClient';
4
4
  export declare class SetUpBuildCredentialsFromCredentialsJson {
5
- private app;
5
+ private readonly app;
6
6
  constructor(app: AppLookupParams);
7
7
  runAsync(ctx: CredentialsContext): Promise<AndroidAppBuildCredentialsFragment | null>;
8
8
  }
@@ -2,7 +2,7 @@ import { CommonAndroidAppCredentialsFragment } from '../../../graphql/generated'
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/GraphqlClient';
4
4
  export declare class SetUpGoogleServiceAccountKeyForFcmV1 {
5
- private app;
5
+ private readonly app;
6
6
  constructor(app: AppLookupParams);
7
7
  runAsync(ctx: CredentialsContext): Promise<CommonAndroidAppCredentialsFragment>;
8
8
  private isGoogleServiceAccountKeySetupAsync;
@@ -2,7 +2,7 @@ import { CommonAndroidAppCredentialsFragment } from '../../../graphql/generated'
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/GraphqlClient';
4
4
  export declare class SetUpGoogleServiceAccountKeyForSubmissions {
5
- private app;
5
+ private readonly app;
6
6
  constructor(app: AppLookupParams);
7
7
  runAsync(ctx: CredentialsContext): Promise<CommonAndroidAppCredentialsFragment>;
8
8
  private isGoogleServiceAccountKeySetupAsync;
@@ -1,7 +1,7 @@
1
1
  import { AccountFragment, GoogleServiceAccountKeyFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  export declare class UseExistingGoogleServiceAccountKey {
4
- private account;
4
+ private readonly account;
5
5
  constructor(account: AccountFragment);
6
6
  runAsync(ctx: CredentialsContext): Promise<GoogleServiceAccountKeyFragment | null>;
7
7
  }
@@ -120,7 +120,7 @@ async function createKeystoreAsync(graphqlClient, account, keystore) {
120
120
  }
121
121
  exports.createKeystoreAsync = createKeystoreAsync;
122
122
  async function deleteKeystoreAsync(graphqlClient, keystore) {
123
- return await AndroidKeystoreMutation_1.AndroidKeystoreMutation.deleteAndroidKeystoreAsync(graphqlClient, keystore.id);
123
+ await AndroidKeystoreMutation_1.AndroidKeystoreMutation.deleteAndroidKeystoreAsync(graphqlClient, keystore.id);
124
124
  }
125
125
  exports.deleteKeystoreAsync = deleteKeystoreAsync;
126
126
  async function createFcmAsync(graphqlClient, account, fcmApiKey, version) {
@@ -128,7 +128,7 @@ async function createFcmAsync(graphqlClient, account, fcmApiKey, version) {
128
128
  }
129
129
  exports.createFcmAsync = createFcmAsync;
130
130
  async function deleteFcmAsync(graphqlClient, fcm) {
131
- return await AndroidFcmMutation_1.AndroidFcmMutation.deleteAndroidFcmAsync(graphqlClient, fcm.id);
131
+ await AndroidFcmMutation_1.AndroidFcmMutation.deleteAndroidFcmAsync(graphqlClient, fcm.id);
132
132
  }
133
133
  exports.deleteFcmAsync = deleteFcmAsync;
134
134
  async function createGoogleServiceAccountKeyAsync(graphqlClient, account, jsonKey) {
@@ -136,7 +136,7 @@ async function createGoogleServiceAccountKeyAsync(graphqlClient, account, jsonKe
136
136
  }
137
137
  exports.createGoogleServiceAccountKeyAsync = createGoogleServiceAccountKeyAsync;
138
138
  async function deleteGoogleServiceAccountKeyAsync(graphqlClient, googleServiceAccountKey) {
139
- return await GoogleServiceAccountKeyMutation_1.GoogleServiceAccountKeyMutation.deleteGoogleServiceAccountKeyAsync(graphqlClient, googleServiceAccountKey.id);
139
+ await GoogleServiceAccountKeyMutation_1.GoogleServiceAccountKeyMutation.deleteGoogleServiceAccountKeyAsync(graphqlClient, googleServiceAccountKey.id);
140
140
  }
141
141
  exports.deleteGoogleServiceAccountKeyAsync = deleteGoogleServiceAccountKeyAsync;
142
142
  async function getGoogleServiceAccountKeysForAccountAsync(graphqlClient, account) {
@@ -13,7 +13,7 @@ export type CredentialsContextProjectInfo = {
13
13
  projectId: string;
14
14
  };
15
15
  export declare class CredentialsContext {
16
- private options;
16
+ private readonly options;
17
17
  readonly android: typeof AndroidGraphqlClient;
18
18
  readonly appStore: AppStoreApi;
19
19
  readonly ios: typeof IosGraphqlClient;
@@ -26,7 +26,7 @@ export declare class CredentialsContext {
26
26
  readonly vcsClient: Client;
27
27
  readonly easJsonCliConfig?: EasJson['cli'];
28
28
  private shouldAskAuthenticateAppStore;
29
- private projectInfo;
29
+ private readonly projectInfo;
30
30
  constructor(options: {
31
31
  projectInfo: CredentialsContextProjectInfo | null;
32
32
  easJsonCliConfig?: EasJson['cli'];
@@ -47,7 +47,7 @@ class CredentialsContext {
47
47
  (0, expoConfig_1.getPrivateExpoConfig)(this.options.projectDir);
48
48
  }
49
49
  async bestEffortAppStoreAuthenticateAsync() {
50
- if (this.appStore.authCtx || !this.shouldAskAuthenticateAppStore) {
50
+ if (!!this.appStore.authCtx || !this.shouldAskAuthenticateAppStore) {
51
51
  // skip prompts if already have apple ctx or already asked about it
52
52
  return;
53
53
  }
@@ -9,8 +9,8 @@ interface Options {
9
9
  enterpriseProvisioning?: IosEnterpriseProvisioning;
10
10
  }
11
11
  export default class IosCredentialsProvider {
12
- private ctx;
13
- private options;
12
+ private readonly ctx;
13
+ private readonly options;
14
14
  readonly platform = Platform.IOS;
15
15
  constructor(ctx: CredentialsContext, options: Options);
16
16
  getCredentialsAsync(src: CredentialsSource.LOCAL | CredentialsSource.REMOTE): Promise<IosCredentials>;
@@ -74,7 +74,7 @@ class IosCredentialsProvider {
74
74
  return null;
75
75
  }
76
76
  else if (ctx.easJsonCliConfig?.promptToConfigurePushNotifications === undefined &&
77
- !(await (0, projectUtils_1.isExpoNotificationsInstalled)(ctx.projectDir))) {
77
+ !(0, projectUtils_1.isExpoNotificationsInstalled)(ctx.projectDir)) {
78
78
  return null;
79
79
  }
80
80
  const setupOption = await (0, prompts_1.selectAsync)(`Would you like to set up Push Notifications for your project?`, [
@@ -149,7 +149,7 @@ async function selectAscApiKeysFromAccountAsync(ctx, account, { filterDifferentA
149
149
  }
150
150
  return null;
151
151
  }
152
- return selectAscApiKeysAsync(ascApiKeysForAccount);
152
+ return await selectAscApiKeysAsync(ascApiKeysForAccount);
153
153
  }
154
154
  exports.selectAscApiKeysFromAccountAsync = selectAscApiKeysFromAccountAsync;
155
155
  async function selectAscApiKeysAsync(ascApiKeys) {
@@ -3,7 +3,7 @@ import { AppStoreConnectApiKeyFragment, CommonIosAppCredentialsFragment } from '
3
3
  import { CredentialsContext } from '../../context';
4
4
  import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
5
5
  export declare class AssignAscApiKey {
6
- private app;
6
+ private readonly app;
7
7
  constructor(app: AppLookupParams);
8
8
  runAsync(ctx: CredentialsContext, ascApiKey: AppStoreConnectApiKeyFragment, purpose: AppStoreApiKeyPurpose): Promise<CommonIosAppCredentialsFragment>;
9
9
  }
@@ -2,7 +2,7 @@ import { ApplePushKeyFragment, CommonIosAppCredentialsFragment } from '../../../
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
4
4
  export declare class AssignPushKey {
5
- private app;
5
+ private readonly app;
6
6
  constructor(app: AppLookupParams);
7
7
  runAsync(ctx: CredentialsContext, pushKey: ApplePushKeyFragment): Promise<CommonIosAppCredentialsFragment>;
8
8
  }
@@ -4,10 +4,10 @@ import { AppleProvisioningProfileMutationResult } from '../api/graphql/mutations
4
4
  import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
5
5
  import { Target } from '../types';
6
6
  export declare class ConfigureProvisioningProfile {
7
- private app;
8
- private target;
9
- private distributionCertificate;
10
- private originalProvisioningProfile;
7
+ private readonly app;
8
+ private readonly target;
9
+ private readonly distributionCertificate;
10
+ private readonly originalProvisioningProfile;
11
11
  constructor(app: AppLookupParams, target: Target, distributionCertificate: AppleDistributionCertificateFragment, originalProvisioningProfile: AppleProvisioningProfileFragment);
12
12
  runAsync(ctx: CredentialsContext): Promise<AppleProvisioningProfileMutationResult | null>;
13
13
  private configureAndUpdateAsync;
@@ -2,7 +2,7 @@ import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
2
2
  import { AccountFragment, AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
3
3
  import { CredentialsContext } from '../../context';
4
4
  export declare class CreateAscApiKey {
5
- private account;
5
+ private readonly account;
6
6
  constructor(account: AccountFragment);
7
7
  runAsync(ctx: CredentialsContext, purpose: AppStoreApiKeyPurpose): Promise<AppStoreConnectApiKeyFragment>;
8
8
  }
@@ -2,7 +2,7 @@ import { AccountFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppleDistributionCertificateMutationResult } from '../api/graphql/mutations/AppleDistributionCertificateMutation';
4
4
  export declare class CreateDistributionCertificate {
5
- private account;
5
+ private readonly account;
6
6
  constructor(account: AccountFragment);
7
7
  runAsync(ctx: CredentialsContext): Promise<AppleDistributionCertificateMutationResult>;
8
8
  }
@@ -4,9 +4,9 @@ import { AppleProvisioningProfileMutationResult } from '../api/graphql/mutations
4
4
  import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
5
5
  import { Target } from '../types';
6
6
  export declare class CreateProvisioningProfile {
7
- private app;
8
- private target;
9
- private distributionCertificate;
7
+ private readonly app;
8
+ private readonly target;
9
+ private readonly distributionCertificate;
10
10
  constructor(app: AppLookupParams, target: Target, distributionCertificate: AppleDistributionCertificateFragment);
11
11
  runAsync(ctx: CredentialsContext): Promise<AppleProvisioningProfileMutationResult>;
12
12
  private maybeGetUserProvidedAsync;
@@ -1,7 +1,7 @@
1
1
  import { AccountFragment, ApplePushKeyFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  export declare class CreatePushKey {
4
- private account;
4
+ private readonly account;
5
5
  constructor(account: AccountFragment);
6
6
  runAsync(ctx: CredentialsContext): Promise<ApplePushKeyFragment>;
7
7
  }
@@ -65,12 +65,12 @@ async function selectDistributionCertificateWithDependenciesAsync(ctx, account)
65
65
  return null;
66
66
  }
67
67
  if (!ctx.appStore.authCtx) {
68
- return selectDistributionCertificateAsync(distCertsForAccount);
68
+ return await selectDistributionCertificateAsync(distCertsForAccount);
69
69
  }
70
70
  // get valid certs on the developer portal
71
71
  const certInfoFromApple = await ctx.appStore.listDistributionCertificatesAsync();
72
- const validDistCerts = await (0, CredentialsUtils_1.filterRevokedDistributionCertsFromEasServers)(distCertsForAccount, certInfoFromApple);
73
- return selectDistributionCertificateAsync(distCertsForAccount, validDistCerts);
72
+ const validDistCerts = (0, CredentialsUtils_1.filterRevokedDistributionCertsFromEasServers)(distCertsForAccount, certInfoFromApple);
73
+ return await selectDistributionCertificateAsync(distCertsForAccount, validDistCerts);
74
74
  }
75
75
  exports.selectDistributionCertificateWithDependenciesAsync = selectDistributionCertificateWithDependenciesAsync;
76
76
  /**
@@ -83,7 +83,7 @@ async function selectValidDistributionCertificateAsync(ctx, appLookupParams) {
83
83
  return null;
84
84
  }
85
85
  if (!ctx.appStore.authCtx) {
86
- return selectDistributionCertificateAsync(distCertsForAccount);
86
+ return await selectDistributionCertificateAsync(distCertsForAccount);
87
87
  }
88
88
  // filter by apple team
89
89
  (0, assert_1.default)(ctx.appStore.authCtx, 'authentication to the Apple App Store is required');
@@ -95,7 +95,7 @@ async function selectValidDistributionCertificateAsync(ctx, appLookupParams) {
95
95
  const certInfoFromApple = await ctx.appStore.listDistributionCertificatesAsync();
96
96
  const validDistCerts = (0, CredentialsUtils_1.filterRevokedDistributionCertsFromEasServers)(distCertsForAppleTeam, certInfoFromApple);
97
97
  log_1.default.log(`${validDistCerts.length}/${distCertsForAccount.length} Distribution Certificates are currently valid for Apple Team ${ctx.appStore.authCtx?.team.id}.`);
98
- return selectDistributionCertificateAsync(validDistCerts);
98
+ return await selectDistributionCertificateAsync(validDistCerts);
99
99
  }
100
100
  exports.selectValidDistributionCertificateAsync = selectValidDistributionCertificateAsync;
101
101
  const APPLE_DIST_CERTS_TOO_MANY_GENERATED_ERROR = `
@@ -17,7 +17,7 @@ async function generateProvisioningProfileAsync(ctx, target, bundleIdentifier, d
17
17
  const appleAuthCtx = await ctx.appStore.ensureAuthenticatedAsync();
18
18
  const type = appleAuthCtx.team.inHouse ? 'Enterprise ' : 'AppStore';
19
19
  const profileName = `*[expo] ${bundleIdentifier} ${type} ${new Date().toISOString()}`; // Apple drops [ if its the first char (!!)
20
- const applePlatform = await (0, target_1.getApplePlatformFromTarget)(target);
20
+ const applePlatform = (0, target_1.getApplePlatformFromTarget)(target);
21
21
  return await ctx.appStore.createProvisioningProfileAsync(bundleIdentifier, distCert, profileName, applePlatform);
22
22
  }
23
23
  exports.generateProvisioningProfileAsync = generateProvisioningProfileAsync;
@@ -111,10 +111,10 @@ async function selectPushKeyAsync(ctx, account) {
111
111
  return null;
112
112
  }
113
113
  if (!ctx.appStore.authCtx) {
114
- return selectPushKeysAsync(pushKeysForAccount);
114
+ return await selectPushKeysAsync(pushKeysForAccount);
115
115
  }
116
116
  const validPushKeys = await getValidAndTrackedPushKeysOnEasServersAsync(ctx, pushKeysForAccount);
117
- return selectPushKeysAsync(pushKeysForAccount, validPushKeys);
117
+ return await selectPushKeysAsync(pushKeysForAccount, validPushKeys);
118
118
  }
119
119
  exports.selectPushKeyAsync = selectPushKeyAsync;
120
120
  async function getValidAndTrackedPushKeysOnEasServersAsync(ctx, pushKeysForAccount) {
@@ -1,12 +1,12 @@
1
1
  import { AccountFragment, AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  export declare class SelectAndRemoveAscApiKey {
4
- private account;
4
+ private readonly account;
5
5
  constructor(account: AccountFragment);
6
6
  runAsync(ctx: CredentialsContext): Promise<void>;
7
7
  }
8
8
  export declare class RemoveAscApiKey {
9
- private ascApiKey;
9
+ private readonly ascApiKey;
10
10
  constructor(ascApiKey: AppStoreConnectApiKeyFragment);
11
11
  runAsync(ctx: CredentialsContext): Promise<void>;
12
12
  }
@@ -1,13 +1,13 @@
1
1
  import { AccountFragment, AppleDistributionCertificateFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  export declare class SelectAndRemoveDistributionCertificate {
4
- private account;
4
+ private readonly account;
5
5
  constructor(account: AccountFragment);
6
6
  runAsync(ctx: CredentialsContext): Promise<void>;
7
7
  }
8
8
  export declare class RemoveDistributionCertificate {
9
- private account;
10
- private distributionCertificate;
9
+ private readonly account;
10
+ private readonly distributionCertificate;
11
11
  constructor(account: AccountFragment, distributionCertificate: AppleDistributionCertificateFragment);
12
12
  runAsync(ctx: CredentialsContext): Promise<void>;
13
13
  private removeInvalidProvisioningProfilesAsync;
@@ -2,8 +2,8 @@ import { AppleProvisioningProfileIdentifiersFragment } from '../../../graphql/ge
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
4
4
  export declare class RemoveProvisioningProfiles {
5
- private apps;
6
- private provisioningProfiles;
5
+ private readonly apps;
6
+ private readonly provisioningProfiles;
7
7
  constructor(apps: AppLookupParams[], provisioningProfiles: AppleProvisioningProfileIdentifiersFragment[]);
8
8
  runAsync(ctx: CredentialsContext): Promise<void>;
9
9
  }
@@ -1,12 +1,12 @@
1
1
  import { AccountFragment, ApplePushKeyFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  export declare class SelectAndRemovePushKey {
4
- private account;
4
+ private readonly account;
5
5
  constructor(account: AccountFragment);
6
6
  runAsync(ctx: CredentialsContext): Promise<void>;
7
7
  }
8
8
  export declare class RemovePushKey {
9
- private pushKey;
9
+ private readonly pushKey;
10
10
  constructor(pushKey: ApplePushKeyFragment);
11
11
  runAsync(ctx: CredentialsContext): Promise<void>;
12
12
  }
@@ -7,7 +7,7 @@ interface Options {
7
7
  target: Target;
8
8
  }
9
9
  export declare class SetUpAdhocProvisioningProfile {
10
- private options;
10
+ private readonly options;
11
11
  constructor(options: Options);
12
12
  runAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
13
13
  runWithDistributionCertificateAsync(ctx: CredentialsContext, distCert: AppleDistributionCertificateFragment): Promise<IosAppBuildCredentialsFragment>;
@@ -79,7 +79,7 @@ class SetUpAdhocProvisioningProfile {
79
79
  const provisionedDeviceIdentifiers = (currentBuildCredentials?.provisioningProfile?.appleDevices ?? []).map(i => i.identifier);
80
80
  const chosenDevices = await (0, DeviceUtils_1.chooseDevicesAsync)(registeredAppleDevices, provisionedDeviceIdentifiers);
81
81
  // 4. Reuse or create the profile on Apple Developer Portal
82
- const applePlatform = await (0, target_1.getApplePlatformFromTarget)(target);
82
+ const applePlatform = (0, target_1.getApplePlatformFromTarget)(target);
83
83
  const profileType = applePlatform === constants_1.ApplePlatform.TV_OS
84
84
  ? apple_utils_1.ProfileType.TVOS_APP_ADHOC
85
85
  : apple_utils_1.ProfileType.IOS_APP_ADHOC;
@@ -7,8 +7,8 @@ export declare enum SetupAscApiKeyChoice {
7
7
  USE_EXISTING = "USE_EXISTING"
8
8
  }
9
9
  export declare class SetUpAscApiKey {
10
- private app;
11
- private purpose;
10
+ private readonly app;
11
+ private readonly purpose;
12
12
  choices: {
13
13
  title: string;
14
14
  value: string;
@@ -8,7 +8,7 @@ interface Options {
8
8
  enterpriseProvisioning?: IosEnterpriseProvisioning;
9
9
  }
10
10
  export declare class SetUpBuildCredentials {
11
- private options;
11
+ private readonly options;
12
12
  constructor(options: Options);
13
13
  runAsync(ctx: CredentialsContext): Promise<IosCredentials>;
14
14
  }
@@ -2,9 +2,9 @@ import { IosDistributionType } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { App, Target } from '../types';
4
4
  export declare class SetUpBuildCredentialsFromCredentialsJson {
5
- private app;
6
- private targets;
7
- private distributionType;
5
+ private readonly app;
6
+ private readonly targets;
7
+ private readonly distributionType;
8
8
  constructor(app: App, targets: Target[], distributionType: IosDistributionType);
9
9
  runAsync(ctx: CredentialsContext): Promise<void>;
10
10
  private readCredentialsJsonAsync;
@@ -2,8 +2,8 @@ import { AppleDistributionCertificate, AppleDistributionCertificateFragment, Ios
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
4
4
  export declare class SetUpDistributionCertificate {
5
- private app;
6
- private distributionType;
5
+ private readonly app;
6
+ private readonly distributionType;
7
7
  private validDistCerts?;
8
8
  constructor(app: AppLookupParams, distributionType: IosDistributionType);
9
9
  runAsync(ctx: CredentialsContext): Promise<AppleDistributionCertificateFragment>;
@@ -104,7 +104,7 @@ class SetUpDistributionCertificate {
104
104
  }
105
105
  }
106
106
  async createNewDistCertAsync(ctx) {
107
- return new CreateDistributionCertificate_1.CreateDistributionCertificate(this.app.account).runAsync(ctx);
107
+ return await new CreateDistributionCertificate_1.CreateDistributionCertificate(this.app.account).runAsync(ctx);
108
108
  }
109
109
  async reuseDistCertAsync(ctx) {
110
110
  const validDistCerts = await this.getValidDistCertsAsync(ctx);
@@ -14,7 +14,7 @@ interface Options {
14
14
  target: Target;
15
15
  }
16
16
  export declare class SetUpInternalProvisioningProfile {
17
- private options;
17
+ private readonly options;
18
18
  constructor(options: Options);
19
19
  runAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
20
20
  private setupAdhocProvisioningProfileAsync;
@@ -6,9 +6,9 @@ import { Target } from '../types';
6
6
  * Sets up either APP_STORE or ENTERPRISE provisioning profiles
7
7
  */
8
8
  export declare class SetUpProvisioningProfile {
9
- private app;
10
- private target;
11
- private distributionType;
9
+ private readonly app;
10
+ private readonly target;
11
+ private readonly distributionType;
12
12
  constructor(app: AppLookupParams, target: Target, distributionType: IosDistributionType);
13
13
  areBuildCredentialsSetupAsync(ctx: CredentialsContext): Promise<boolean>;
14
14
  assignNewAndDeleteOldProfileAsync(ctx: CredentialsContext, distCert: AppleDistributionCertificateFragment, currentProfile: AppleProvisioningProfileFragment): Promise<IosAppBuildCredentialsFragment>;
@@ -63,7 +63,7 @@ class SetUpProvisioningProfile {
63
63
  return await this.createAndAssignProfileAsync(ctx, distCert);
64
64
  }
65
65
  // See if the profile we have exists on the Apple Servers
66
- const applePlatform = await (0, target_1.getApplePlatformFromTarget)(this.target);
66
+ const applePlatform = (0, target_1.getApplePlatformFromTarget)(this.target);
67
67
  const existingProfiles = await ctx.appStore.listProvisioningProfilesAsync(this.app.bundleIdentifier, applePlatform);
68
68
  const currentProfileFromServer = this.getCurrentProfileStoreInfo(existingProfiles, currentProfile);
69
69
  if (!currentProfileFromServer) {
@@ -2,7 +2,7 @@ import { CommonIosAppCredentialsFragment } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
4
4
  export declare class SetUpPushKey {
5
- private app;
5
+ private readonly app;
6
6
  constructor(app: AppLookupParams);
7
7
  isPushKeySetupAsync(ctx: CredentialsContext): Promise<boolean>;
8
8
  runAsync(ctx: CredentialsContext): Promise<CommonIosAppCredentialsFragment | null>;
@@ -12,7 +12,7 @@ interface Options {
12
12
  target: Target;
13
13
  }
14
14
  export declare class SetUpTargetBuildCredentials {
15
- private options;
15
+ private readonly options;
16
16
  constructor(options: Options);
17
17
  runAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
18
18
  setupBuildCredentialsAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
@@ -3,9 +3,9 @@ import { CredentialsContext } from '../../context';
3
3
  import { IosTargetCredentials } from '../../credentialsJson/types';
4
4
  import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
5
5
  export declare class SetUpTargetBuildCredentialsFromCredentialsJson {
6
- private app;
7
- private distributionType;
8
- private targetCredentials;
6
+ private readonly app;
7
+ private readonly distributionType;
8
+ private readonly targetCredentials;
9
9
  constructor(app: AppLookupParams, distributionType: IosDistributionType, targetCredentials: IosTargetCredentials);
10
10
  runAsync(ctx: CredentialsContext): Promise<IosAppBuildCredentialsFragment>;
11
11
  getDistributionCertificateToAssignAsync(ctx: CredentialsContext, appleTeam: AppleTeamFragment, currentDistributionCertificate: AppleDistributionCertificateFragment | null): Promise<AppleDistributionCertificateFragment>;
@@ -2,9 +2,9 @@ import { IosDistributionType } from '../../../graphql/generated';
2
2
  import { CredentialsContext } from '../../context';
3
3
  import { App, Target } from '../types';
4
4
  export declare class UpdateCredentialsJson {
5
- private app;
6
- private targets;
7
- private distributionType;
5
+ private readonly app;
6
+ private readonly targets;
7
+ private readonly distributionType;
8
8
  constructor(app: App, targets: Target[], distributionType: IosDistributionType);
9
9
  runAsync(ctx: CredentialsContext): Promise<void>;
10
10
  }
@@ -171,7 +171,7 @@ async function updateProvisioningProfileAsync(graphqlClient, appleProvisioningPr
171
171
  }
172
172
  exports.updateProvisioningProfileAsync = updateProvisioningProfileAsync;
173
173
  async function deleteProvisioningProfilesAsync(graphqlClient, appleProvisioningProfileIds) {
174
- return await AppleProvisioningProfileMutation_1.AppleProvisioningProfileMutation.deleteAppleProvisioningProfilesAsync(graphqlClient, appleProvisioningProfileIds);
174
+ await AppleProvisioningProfileMutation_1.AppleProvisioningProfileMutation.deleteAppleProvisioningProfilesAsync(graphqlClient, appleProvisioningProfileIds);
175
175
  }
176
176
  exports.deleteProvisioningProfilesAsync = deleteProvisioningProfilesAsync;
177
177
  async function getDistributionCertificateForAppAsync(graphqlClient, appLookupParams, iosDistributionType, { appleTeam } = { appleTeam: null }) {
@@ -202,7 +202,7 @@ async function createDistributionCertificateAsync(graphqlClient, account, distCe
202
202
  }
203
203
  exports.createDistributionCertificateAsync = createDistributionCertificateAsync;
204
204
  async function deleteDistributionCertificateAsync(graphqlClient, distributionCertificateId) {
205
- return await AppleDistributionCertificateMutation_1.AppleDistributionCertificateMutation.deleteAppleDistributionCertificateAsync(graphqlClient, distributionCertificateId);
205
+ await AppleDistributionCertificateMutation_1.AppleDistributionCertificateMutation.deleteAppleDistributionCertificateAsync(graphqlClient, distributionCertificateId);
206
206
  }
207
207
  exports.deleteDistributionCertificateAsync = deleteDistributionCertificateAsync;
208
208
  async function createPushKeyAsync(graphqlClient, account, pushKey) {
@@ -227,7 +227,7 @@ async function getPushKeyForAppAsync(graphqlClient, appLookupParams) {
227
227
  }
228
228
  exports.getPushKeyForAppAsync = getPushKeyForAppAsync;
229
229
  async function deletePushKeyAsync(graphqlClient, pushKeyId) {
230
- return await ApplePushKeyMutation_1.ApplePushKeyMutation.deleteApplePushKeyAsync(graphqlClient, pushKeyId);
230
+ await ApplePushKeyMutation_1.ApplePushKeyMutation.deleteApplePushKeyAsync(graphqlClient, pushKeyId);
231
231
  }
232
232
  exports.deletePushKeyAsync = deletePushKeyAsync;
233
233
  async function createAscApiKeyAsync(graphqlClient, account, ascApiKey) {
@@ -257,7 +257,7 @@ async function getAscApiKeyForAppSubmissionsAsync(graphqlClient, appLookupParams
257
257
  }
258
258
  exports.getAscApiKeyForAppSubmissionsAsync = getAscApiKeyForAppSubmissionsAsync;
259
259
  async function deleteAscApiKeyAsync(graphqlClient, ascApiKeyId) {
260
- return await AppStoreConnectApiKeyMutation_1.AppStoreConnectApiKeyMutation.deleteAppStoreConnectApiKeyAsync(graphqlClient, ascApiKeyId);
260
+ await AppStoreConnectApiKeyMutation_1.AppStoreConnectApiKeyMutation.deleteAppStoreConnectApiKeyAsync(graphqlClient, ascApiKeyId);
261
261
  }
262
262
  exports.deleteAscApiKeyAsync = deleteAscApiKeyAsync;
263
263
  function convertUserRoleToGraphqlType(userRole) {
@@ -38,7 +38,7 @@ class AppStoreApi {
38
38
  }
39
39
  async ensureBundleIdExistsAsync(app, options) {
40
40
  const ctx = await this.ensureAuthenticatedAsync();
41
- return await (0, ensureAppExists_1.ensureBundleIdExistsAsync)(ctx, app, options);
41
+ await (0, ensureAppExists_1.ensureBundleIdExistsAsync)(ctx, app, options);
42
42
  }
43
43
  async listDistributionCertificatesAsync() {
44
44
  const ctx = await this.ensureAuthenticatedAsync();
@@ -50,7 +50,7 @@ class AppStoreApi {
50
50
  }
51
51
  async revokeDistributionCertificateAsync(ids) {
52
52
  const ctx = await this.ensureAuthenticatedAsync();
53
- return await (0, distributionCertificate_1.revokeDistributionCertificateAsync)(ctx, ids);
53
+ await (0, distributionCertificate_1.revokeDistributionCertificateAsync)(ctx, ids);
54
54
  }
55
55
  async listPushKeysAsync() {
56
56
  const userCtx = await this.ensureUserAuthenticatedAsync();
@@ -62,7 +62,7 @@ class AppStoreApi {
62
62
  }
63
63
  async revokePushKeyAsync(ids) {
64
64
  const userCtx = await this.ensureUserAuthenticatedAsync();
65
- return await (0, pushKey_1.revokePushKeyAsync)(userCtx, ids);
65
+ await (0, pushKey_1.revokePushKeyAsync)(userCtx, ids);
66
66
  }
67
67
  async useExistingProvisioningProfileAsync(bundleIdentifier, provisioningProfile, distCert) {
68
68
  const ctx = await this.ensureAuthenticatedAsync();
@@ -78,7 +78,7 @@ class AppStoreApi {
78
78
  }
79
79
  async revokeProvisioningProfileAsync(bundleIdentifier, applePlatform, profileClass) {
80
80
  const ctx = await this.ensureAuthenticatedAsync();
81
- return await (0, provisioningProfile_1.revokeProvisioningProfileAsync)(ctx, bundleIdentifier, applePlatform, profileClass);
81
+ await (0, provisioningProfile_1.revokeProvisioningProfileAsync)(ctx, bundleIdentifier, applePlatform, profileClass);
82
82
  }
83
83
  async createOrReuseAdhocProvisioningProfileAsync(udids, bundleIdentifier, distCertSerialNumber, profileType) {
84
84
  const ctx = await this.ensureAuthenticatedAsync();
@@ -67,7 +67,7 @@ async function loginAsync(userCredentials = {}, options) {
67
67
  await (0, resolveCredentials_1.deletePasswordAsync)({ username });
68
68
  if (await (0, prompts_1.toggleConfirmAsync)({ message: 'Would you like to try again?' })) {
69
69
  // Don't pass credentials back or the method will throw
70
- return loginAsync({
70
+ return await loginAsync({
71
71
  teamId: userCredentials.teamId,
72
72
  providerId: userCredentials.providerId,
73
73
  }, options);