eas-cli 16.28.0 → 16.31.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.
Files changed (354) hide show
  1. package/README.md +97 -94
  2. package/build/analytics/AnalyticsManager.js +4 -4
  3. package/build/analytics/common.js +1 -2
  4. package/build/api.js +5 -5
  5. package/build/branch/delete.js +1 -2
  6. package/build/branch/queries.js +5 -5
  7. package/build/branch/utils.js +2 -2
  8. package/build/build/android/build.js +3 -4
  9. package/build/build/android/graphql.js +1 -2
  10. package/build/build/android/prepareJob.js +1 -2
  11. package/build/build/android/syncProjectConfiguration.js +2 -3
  12. package/build/build/android/version.js +6 -6
  13. package/build/build/build.js +3 -4
  14. package/build/build/configure.js +4 -5
  15. package/build/build/createContext.js +1 -2
  16. package/build/build/evaluateConfigWithEnvVarsAsync.js +1 -2
  17. package/build/build/graphql.js +7 -7
  18. package/build/build/ios/build.js +2 -3
  19. package/build/build/ios/credentials.js +2 -3
  20. package/build/build/ios/graphql.js +2 -3
  21. package/build/build/ios/prepareJob.js +2 -3
  22. package/build/build/ios/syncProjectConfiguration.js +1 -2
  23. package/build/build/ios/version.js +10 -10
  24. package/build/build/local.js +2 -2
  25. package/build/build/metadata.js +3 -4
  26. package/build/build/queries.js +4 -4
  27. package/build/build/runBuildAndSubmit.js +2 -3
  28. package/build/build/utils/appJson.js +2 -3
  29. package/build/build/utils/credentials.js +1 -2
  30. package/build/build/utils/devClient.js +1 -2
  31. package/build/build/utils/formatBuild.js +2 -3
  32. package/build/build/utils/printBuildInfo.js +4 -5
  33. package/build/build/utils/repository.js +8 -9
  34. package/build/build/utils/resourceClass.js +1 -2
  35. package/build/build/utils/url.js +8 -9
  36. package/build/build/utils/version.js +2 -3
  37. package/build/build/validate.js +3 -4
  38. package/build/channel/branch-mapping.js +24 -24
  39. package/build/channel/delete.d.ts +5 -0
  40. package/build/channel/delete.js +23 -0
  41. package/build/channel/print-utils.js +2 -3
  42. package/build/channel/queries.js +8 -8
  43. package/build/channel/utils.js +1 -2
  44. package/build/commandUtils/builds.js +3 -4
  45. package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -2
  46. package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +2 -3
  47. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +3 -4
  48. package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +1 -2
  49. package/build/commandUtils/experienceParser.d.ts +6 -0
  50. package/build/commandUtils/experienceParser.js +42 -0
  51. package/build/commandUtils/new/commands.js +3 -4
  52. package/build/commandUtils/new/configs.js +4 -5
  53. package/build/commandUtils/new/projectFiles.js +6 -7
  54. package/build/commandUtils/new/utils.js +1 -2
  55. package/build/commandUtils/projectNameValidation.d.ts +8 -0
  56. package/build/commandUtils/projectNameValidation.js +30 -0
  57. package/build/commandUtils/workflow/buildProfileUtils.js +12 -13
  58. package/build/commandUtils/workflow/creation.js +5 -5
  59. package/build/commandUtils/workflow/fetchLogs.js +2 -3
  60. package/build/commandUtils/workflow/inputs.js +5 -5
  61. package/build/commandUtils/workflow/stateMachine.js +7 -7
  62. package/build/commandUtils/workflow/utils.js +12 -12
  63. package/build/commandUtils/workflow/validation.js +4 -5
  64. package/build/commands/build/cancel.js +1 -2
  65. package/build/commands/build/delete.js +1 -2
  66. package/build/commands/build/index.js +1 -2
  67. package/build/commands/channel/delete.js +7 -23
  68. package/build/commands/channel/edit.js +1 -2
  69. package/build/commands/channel/pause.js +1 -2
  70. package/build/commands/channel/resume.js +1 -2
  71. package/build/commands/deploy/index.js +1 -1
  72. package/build/commands/project/init.js +3 -1
  73. package/build/commands/project/new.js +3 -4
  74. package/build/commands/update/index.d.ts +8 -0
  75. package/build/commands/update/index.js +39 -56
  76. package/build/commands/update/list.d.ts +3 -0
  77. package/build/commands/update/list.js +30 -1
  78. package/build/commands/update/revert-update-rollout.js +1 -2
  79. package/build/credentials/android/actions/BuildCredentialsUtils.js +6 -7
  80. package/build/credentials/android/api/GraphqlClient.js +21 -21
  81. package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.d.ts +2 -2
  82. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +5 -5
  83. package/build/credentials/android/utils/googleServiceAccountKey.js +4 -4
  84. package/build/credentials/android/utils/keystore.js +2 -3
  85. package/build/credentials/android/utils/keystoreNew.js +3 -4
  86. package/build/credentials/android/utils/printCredentials.js +3 -4
  87. package/build/credentials/credentialsJson/read.js +3 -4
  88. package/build/credentials/credentialsJson/update.js +2 -3
  89. package/build/credentials/credentialsJson/utils.js +2 -3
  90. package/build/credentials/ios/actions/AppleTeamFormatting.js +1 -2
  91. package/build/credentials/ios/actions/AppleTeamUtils.js +1 -2
  92. package/build/credentials/ios/actions/AscApiKeyUtils.js +10 -10
  93. package/build/credentials/ios/actions/BuildCredentialsUtils.js +7 -8
  94. package/build/credentials/ios/actions/DeviceUtils.js +2 -3
  95. package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -5
  96. package/build/credentials/ios/actions/ProvisioningProfileUtils.js +2 -3
  97. package/build/credentials/ios/actions/PushKeyUtils.js +5 -6
  98. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +2 -2
  99. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +6 -2
  100. package/build/credentials/ios/api/GraphqlClient.js +24 -25
  101. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +5 -5
  102. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +8 -8
  103. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +5 -5
  104. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +5 -5
  105. package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.d.ts +1 -1
  106. package/build/credentials/ios/appstore/AppStoreApi.d.ts +0 -2
  107. package/build/credentials/ios/appstore/Credentials.js +4 -5
  108. package/build/credentials/ios/appstore/Credentials.types.d.ts +0 -1
  109. package/build/credentials/ios/appstore/CredentialsUtils.js +6 -7
  110. package/build/credentials/ios/appstore/ascApiKey.d.ts +0 -1
  111. package/build/credentials/ios/appstore/ascApiKey.js +6 -7
  112. package/build/credentials/ios/appstore/authenticate.d.ts +0 -1
  113. package/build/credentials/ios/appstore/authenticate.js +4 -5
  114. package/build/credentials/ios/appstore/authenticateTypes.d.ts +0 -1
  115. package/build/credentials/ios/appstore/bundleId.d.ts +0 -1
  116. package/build/credentials/ios/appstore/bundleId.js +2 -3
  117. package/build/credentials/ios/appstore/bundleIdCapabilities.d.ts +0 -1
  118. package/build/credentials/ios/appstore/bundleIdCapabilities.js +3 -3
  119. package/build/credentials/ios/appstore/capabilityIdentifiers.d.ts +0 -1
  120. package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -2
  121. package/build/credentials/ios/appstore/capabilityList.d.ts +0 -1
  122. package/build/credentials/ios/appstore/contractMessages.d.ts +0 -1
  123. package/build/credentials/ios/appstore/contractMessages.js +2 -3
  124. package/build/credentials/ios/appstore/distributionCertificate.d.ts +0 -1
  125. package/build/credentials/ios/appstore/distributionCertificate.js +7 -7
  126. package/build/credentials/ios/appstore/ensureAppExists.d.ts +6 -1
  127. package/build/credentials/ios/appstore/ensureAppExists.js +55 -18
  128. package/build/credentials/ios/appstore/ensureTestFlightGroup.d.ts +0 -1
  129. package/build/credentials/ios/appstore/ensureTestFlightGroup.js +1 -2
  130. package/build/credentials/ios/appstore/keychain.js +4 -4
  131. package/build/credentials/ios/appstore/provisioningProfile.d.ts +0 -1
  132. package/build/credentials/ios/appstore/provisioningProfile.js +5 -5
  133. package/build/credentials/ios/appstore/provisioningProfileAdhoc.d.ts +0 -1
  134. package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +1 -2
  135. package/build/credentials/ios/appstore/pushKey.js +4 -4
  136. package/build/credentials/ios/appstore/resolveCredentials.d.ts +0 -1
  137. package/build/credentials/ios/appstore/resolveCredentials.js +6 -7
  138. package/build/credentials/ios/credentials.d.ts +0 -1
  139. package/build/credentials/ios/credentials.js +2 -2
  140. package/build/credentials/ios/utils/authType.d.ts +0 -1
  141. package/build/credentials/ios/utils/authType.js +1 -2
  142. package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -2
  143. package/build/credentials/ios/utils/p12Certificate.d.ts +0 -1
  144. package/build/credentials/ios/utils/p12Certificate.js +3 -4
  145. package/build/credentials/ios/utils/printCredentials.js +3 -4
  146. package/build/credentials/ios/utils/provisioningProfile.js +5 -6
  147. package/build/credentials/ios/validators/validateAscApiKey.js +2 -3
  148. package/build/credentials/ios/validators/validateDistributionCertificate.js +1 -2
  149. package/build/credentials/ios/validators/validateProvisioningProfile.js +1 -2
  150. package/build/credentials/ios/validators/validatePushKey.js +1 -2
  151. package/build/credentials/manager/IosActions.js +4 -4
  152. package/build/credentials/manager/SelectPlatform.js +1 -1
  153. package/build/credentials/utils/promptForCredentials.js +3 -4
  154. package/build/devices/actions/create/currentMachineMethod.js +1 -2
  155. package/build/devices/actions/create/developerPortalMethod.d.ts +0 -1
  156. package/build/devices/actions/create/developerPortalMethod.js +2 -3
  157. package/build/devices/actions/create/inputMethod.js +1 -2
  158. package/build/devices/actions/create/registrationUrlMethod.js +1 -2
  159. package/build/devices/actions/create/utils.js +4 -5
  160. package/build/devices/context.js +1 -2
  161. package/build/devices/queries.js +4 -4
  162. package/build/devices/udids.js +2 -3
  163. package/build/devices/utils/formatDevice.js +2 -3
  164. package/build/fetch.d.ts +0 -1
  165. package/build/fetch.js +1 -1
  166. package/build/fingerprint/cli.js +3 -4
  167. package/build/fingerprint/diff.js +1 -2
  168. package/build/fingerprint/types.d.ts +0 -1
  169. package/build/fingerprint/utils.js +4 -5
  170. package/build/graphql/client.js +2 -2
  171. package/build/graphql/generated.d.ts +177 -88
  172. package/build/graphql/generated.js +39 -3
  173. package/build/graphql/mutations/PublishMutation.d.ts +2 -2
  174. package/build/graphql/queries/AccountUsageQuery.d.ts +1 -1
  175. package/build/graphql/queries/AppVersionQuery.d.ts +1 -1
  176. package/build/graphql/queries/BackgroundJobReceiptQuery.d.ts +1 -1
  177. package/build/graphql/queries/BranchQuery.d.ts +3 -3
  178. package/build/graphql/queries/BuildQuery.d.ts +3 -3
  179. package/build/graphql/queries/ChannelQuery.d.ts +2 -2
  180. package/build/graphql/queries/ChannelQuery.js +2 -2
  181. package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +12 -12
  182. package/build/graphql/queries/FingerprintQuery.d.ts +6 -6
  183. package/build/graphql/queries/PublishQuery.d.ts +1 -1
  184. package/build/graphql/queries/SubmissionQuery.d.ts +1 -1
  185. package/build/graphql/queries/UserQuery.d.ts +1 -1
  186. package/build/graphql/queries/WorkflowJobQuery.d.ts +2 -2
  187. package/build/graphql/queries/WorkflowRunQuery.d.ts +4 -4
  188. package/build/graphql/types/AppPlatform.js +2 -3
  189. package/build/log.js +2 -3
  190. package/build/metadata/apple/config/reader.d.ts +0 -1
  191. package/build/metadata/apple/config/writer.d.ts +0 -1
  192. package/build/metadata/apple/data.d.ts +0 -1
  193. package/build/metadata/apple/tasks/age-rating.d.ts +0 -1
  194. package/build/metadata/apple/tasks/age-rating.js +0 -1
  195. package/build/metadata/apple/tasks/app-info.d.ts +0 -1
  196. package/build/metadata/apple/tasks/app-info.js +15 -4
  197. package/build/metadata/apple/tasks/app-review-detail.d.ts +0 -1
  198. package/build/metadata/apple/tasks/app-review-detail.js +0 -1
  199. package/build/metadata/apple/tasks/app-version.d.ts +0 -1
  200. package/build/metadata/apple/tasks/app-version.js +15 -3
  201. package/build/metadata/apple/tasks/index.js +1 -2
  202. package/build/metadata/apple/types.d.ts +0 -1
  203. package/build/metadata/auth.d.ts +0 -1
  204. package/build/metadata/auth.js +1 -2
  205. package/build/metadata/config/resolve.js +4 -5
  206. package/build/metadata/config/validate.js +1 -2
  207. package/build/metadata/download.js +1 -2
  208. package/build/metadata/errors.js +3 -3
  209. package/build/metadata/upload.js +1 -2
  210. package/build/metadata/utils/ajv.js +2 -3
  211. package/build/metadata/utils/asc.d.ts +0 -1
  212. package/build/metadata/utils/date.js +1 -2
  213. package/build/metadata/utils/log.js +1 -2
  214. package/build/metadata/utils/retry.js +2 -3
  215. package/build/metadata/utils/telemetry.d.ts +0 -1
  216. package/build/metadata/utils/telemetry.js +2 -3
  217. package/build/onboarding/git.js +3 -4
  218. package/build/onboarding/installDependencies.js +3 -3
  219. package/build/onboarding/runCommand.js +1 -2
  220. package/build/ora.js +1 -2
  221. package/build/platform.d.ts +1 -0
  222. package/build/platform.js +28 -10
  223. package/build/project/android/applicationId.js +6 -6
  224. package/build/project/android/gradle.js +1 -2
  225. package/build/project/android/gradleUtils.js +4 -4
  226. package/build/project/android/versions.js +3 -3
  227. package/build/project/applicationIdentifier.js +1 -2
  228. package/build/project/customBuildConfig.js +3 -4
  229. package/build/project/expoConfig.js +5 -6
  230. package/build/project/expoSdk.js +1 -2
  231. package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +2 -3
  232. package/build/project/ios/bundleIdentifier.js +6 -6
  233. package/build/project/ios/entitlements.js +2 -3
  234. package/build/project/ios/exemptEncryption.js +1 -2
  235. package/build/project/ios/scheme.js +2 -3
  236. package/build/project/ios/target.d.ts +0 -1
  237. package/build/project/ios/target.js +8 -9
  238. package/build/project/ios/versions.js +3 -3
  239. package/build/project/maybeUploadAssetMapAsync.js +1 -2
  240. package/build/project/maybeUploadFingerprintAsync.js +1 -2
  241. package/build/project/metroConfig.js +1 -2
  242. package/build/project/projectUtils.js +15 -16
  243. package/build/project/publish.d.ts +15 -2
  244. package/build/project/publish.js +56 -29
  245. package/build/project/remoteVersionSource.js +6 -6
  246. package/build/project/resolveRuntimeVersionAsync.js +2 -3
  247. package/build/project/uploadAccountScopedFileAsync.js +1 -2
  248. package/build/project/uploadAccountScopedProjectSourceAsync.js +1 -2
  249. package/build/project/workflow.js +3 -4
  250. package/build/prompts.js +5 -6
  251. package/build/rollout/branch-mapping.js +14 -15
  252. package/build/rollout/utils.js +5 -6
  253. package/build/run/android/aapt.js +2 -3
  254. package/build/run/android/adb.js +8 -9
  255. package/build/run/android/emulator.js +6 -6
  256. package/build/run/android/run.js +1 -2
  257. package/build/run/android/sdk.d.ts +0 -1
  258. package/build/run/android/sdk.js +2 -2
  259. package/build/run/android/systemRequirements.js +1 -2
  260. package/build/run/ios/run.js +1 -2
  261. package/build/run/ios/simctl.js +1 -2
  262. package/build/run/ios/simulator.js +9 -10
  263. package/build/run/ios/systemRequirements.js +1 -2
  264. package/build/run/ios/xcode.js +5 -5
  265. package/build/run/ios/xcrun.js +3 -4
  266. package/build/run/run.js +2 -3
  267. package/build/run/utils.js +1 -2
  268. package/build/submit/ArchiveSource.js +3 -3
  269. package/build/submit/android/ServiceAccountSource.js +4 -4
  270. package/build/submit/commons.js +2 -3
  271. package/build/submit/context.js +1 -2
  272. package/build/submit/ios/AppProduce.js +1 -2
  273. package/build/submit/ios/AppSpecificPasswordSource.js +3 -3
  274. package/build/submit/ios/AscApiKeySource.js +4 -4
  275. package/build/submit/ios/utils/language.js +1 -2
  276. package/build/submit/submit.js +3 -4
  277. package/build/submit/utils/builds.js +1 -2
  278. package/build/submit/utils/errors.js +1 -2
  279. package/build/submit/utils/files.js +2 -3
  280. package/build/submit/utils/logs.js +1 -2
  281. package/build/submit/utils/summary.js +2 -3
  282. package/build/submit/utils/urls.js +2 -3
  283. package/build/submit/utils/wait.js +2 -3
  284. package/build/update/android/UpdatesModule.js +2 -3
  285. package/build/update/configure.js +4 -4
  286. package/build/update/delete.js +1 -2
  287. package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js +1 -2
  288. package/build/update/ios/UpdatesModule.js +2 -3
  289. package/build/update/queries.d.ts +5 -3
  290. package/build/update/queries.js +12 -9
  291. package/build/update/republish.js +5 -6
  292. package/build/update/roll-back-to-embedded.js +1 -2
  293. package/build/update/utils.js +15 -15
  294. package/build/uploads.js +3 -4
  295. package/build/user/User.js +2 -3
  296. package/build/user/actions.js +1 -2
  297. package/build/user/expoSsoLauncher.js +1 -2
  298. package/build/user/fetchSessionSecretAndSsoUser.js +1 -2
  299. package/build/user/fetchSessionSecretAndUser.js +1 -2
  300. package/build/user/fetchUser.js +1 -2
  301. package/build/utils/code-signing.d.ts +0 -1
  302. package/build/utils/code-signing.js +7 -8
  303. package/build/utils/date.js +1 -2
  304. package/build/utils/download.js +2 -3
  305. package/build/utils/expoCli.js +4 -4
  306. package/build/utils/expoUpdatesCli.js +2 -2
  307. package/build/utils/expodash/areSetsEqual.js +1 -1
  308. package/build/utils/expodash/capitalize.js +1 -1
  309. package/build/utils/expodash/chunk.js +1 -1
  310. package/build/utils/expodash/differenceBy.js +1 -1
  311. package/build/utils/expodash/filter.js +1 -2
  312. package/build/utils/expodash/groupBy.js +1 -1
  313. package/build/utils/expodash/intersection.js +1 -1
  314. package/build/utils/expodash/mapMapAsync.js +1 -1
  315. package/build/utils/expodash/memoize.js +1 -2
  316. package/build/utils/expodash/pick.js +1 -1
  317. package/build/utils/expodash/sortBy.js +1 -1
  318. package/build/utils/expodash/uniq.js +1 -1
  319. package/build/utils/expodash/uniqBy.js +1 -1
  320. package/build/utils/expodash/zipObject.js +1 -1
  321. package/build/utils/files.js +2 -3
  322. package/build/utils/formatFields.js +1 -1
  323. package/build/utils/image.js +3 -3
  324. package/build/utils/json.js +2 -3
  325. package/build/utils/plist.d.ts +0 -1
  326. package/build/utils/plist.js +3 -4
  327. package/build/utils/pollForBackgroundJobReceiptAsync.js +2 -2
  328. package/build/utils/profiles.js +3 -4
  329. package/build/utils/progress.js +1 -2
  330. package/build/utils/promise.js +1 -2
  331. package/build/utils/prompts.js +8 -9
  332. package/build/utils/queries.js +2 -3
  333. package/build/utils/relay.js +4 -4
  334. package/build/utils/statuspageService.js +1 -2
  335. package/build/utils/timer.js +4 -5
  336. package/build/utils/usage/checkForOverages.js +4 -5
  337. package/build/utils/variableUtils.js +4 -5
  338. package/build/vcs/clients/git.js +1 -2
  339. package/build/vcs/git.js +5 -6
  340. package/build/vcs/index.js +1 -2
  341. package/build/vcs/local.js +2 -2
  342. package/build/webhooks/formatWebhook.js +1 -2
  343. package/build/webhooks/input.js +3 -4
  344. package/build/worker/assets.d.ts +0 -1
  345. package/build/worker/assets.js +6 -7
  346. package/build/worker/deployment.js +8 -9
  347. package/build/worker/mutations.d.ts +1 -1
  348. package/build/worker/queries.d.ts +4 -4
  349. package/build/worker/upload.d.ts +0 -2
  350. package/build/worker/upload.js +5 -6
  351. package/build/worker/utils/logs.js +5 -5
  352. package/build/worker/utils/multipart.js +3 -3
  353. package/oclif.manifest.json +35 -1
  354. package/package.json +13 -11
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deletePasswordAsync = exports.promptPasswordAsync = exports.resolveAppleTeamAsync = exports.resolveAscApiKeyAsync = exports.hasAscEnvVars = exports.resolveUserCredentialsAsync = void 0;
3
+ exports.resolveUserCredentialsAsync = resolveUserCredentialsAsync;
4
+ exports.hasAscEnvVars = hasAscEnvVars;
5
+ exports.resolveAscApiKeyAsync = resolveAscApiKeyAsync;
6
+ exports.resolveAppleTeamAsync = resolveAppleTeamAsync;
7
+ exports.promptPasswordAsync = promptPasswordAsync;
8
+ exports.deletePasswordAsync = deletePasswordAsync;
4
9
  const tslib_1 = require("tslib");
5
10
  const apple_utils_1 = require("@expo/apple-utils");
6
11
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -23,13 +28,11 @@ async function resolveUserCredentialsAsync(options) {
23
28
  }
24
29
  return credentials;
25
30
  }
26
- exports.resolveUserCredentialsAsync = resolveUserCredentialsAsync;
27
31
  function hasAscEnvVars() {
28
32
  return (!!process.env.EXPO_ASC_API_KEY_PATH ||
29
33
  !!process.env.EXPO_ASC_KEY_ID ||
30
34
  !!process.env.EXPO_ASC_ISSUER_ID);
31
35
  }
32
- exports.hasAscEnvVars = hasAscEnvVars;
33
36
  async function resolveAscApiKeyAsync(ascApiKey) {
34
37
  const passedKeyP8 = await getAscKeyP8FromEnvironmentOrOptionsAsync(ascApiKey);
35
38
  const passedKeyId = await getAscKeyIdFromEnvironmentOrOptionsAsync(ascApiKey);
@@ -40,7 +43,6 @@ async function resolveAscApiKeyAsync(ascApiKey) {
40
43
  issuerId: passedIssuerId,
41
44
  };
42
45
  }
43
- exports.resolveAscApiKeyAsync = resolveAscApiKeyAsync;
44
46
  async function getAscKeyP8FromEnvironmentOrOptionsAsync(ascApiKey) {
45
47
  if (ascApiKey?.keyP8) {
46
48
  return ascApiKey?.keyP8;
@@ -144,7 +146,6 @@ async function resolveAppleTeamAsync(options = {}) {
144
146
  inHouse: passedTeamType === authenticateTypes_1.AppleTeamType.IN_HOUSE,
145
147
  };
146
148
  }
147
- exports.resolveAppleTeamAsync = resolveAppleTeamAsync;
148
149
  function getAppleIdFromEnvironmentOrOptions({ username, password, ...userCredentials }) {
149
150
  const passedAppleId = username || process.env.EXPO_APPLE_ID;
150
151
  // Only resolve the password if the username was provided.
@@ -207,7 +208,6 @@ async function promptPasswordAsync({ username, }) {
207
208
  await cachePasswordAsync({ username, password });
208
209
  return password;
209
210
  }
210
- exports.promptPasswordAsync = promptPasswordAsync;
211
211
  async function getCachedUsernameAsync() {
212
212
  if (Keychain.EXPO_NO_KEYCHAIN) {
213
213
  // Clear last used apple ID.
@@ -235,7 +235,6 @@ async function deletePasswordAsync({ username, }) {
235
235
  }
236
236
  return success;
237
237
  }
238
- exports.deletePasswordAsync = deletePasswordAsync;
239
238
  async function getCachedPasswordAsync({ username, }) {
240
239
  // If the user opts out, delete the password.
241
240
  if (Keychain.EXPO_NO_KEYCHAIN) {
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { UserRole } from '@expo/apple-utils';
3
2
  import { DistributionCertificate, ProvisioningProfile, PushKey } from './appstore/Credentials.types';
4
3
  import { AppleDevice } from '../../graphql/generated';
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.provisioningProfileSchema = exports.pushKeySchema = exports.ascApiKeyIssuerIdSchema = exports.ascApiKeyIdSchema = exports.distributionCertificateSchema = exports.getAppLookupParams = void 0;
3
+ exports.provisioningProfileSchema = exports.pushKeySchema = exports.ascApiKeyIssuerIdSchema = exports.ascApiKeyIdSchema = exports.distributionCertificateSchema = void 0;
4
+ exports.getAppLookupParams = getAppLookupParams;
4
5
  const tslib_1 = require("tslib");
5
6
  const p12Certificate_1 = require("./utils/p12Certificate");
6
7
  const provisioningProfile_1 = require("./utils/provisioningProfile");
@@ -16,7 +17,6 @@ function getAppLookupParams(experienceName, bundleIdentifier) {
16
17
  bundleIdentifier,
17
18
  };
18
19
  }
19
- exports.getAppLookupParams = getAppLookupParams;
20
20
  exports.distributionCertificateSchema = {
21
21
  name: 'Apple Distribution Certificate',
22
22
  questions: [
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { RequestContext } from '@expo/apple-utils';
3
2
  /** Is the request context App Store Connect only with no access to cookies authentication. */
4
3
  export declare function isAppStoreConnectTokenOnlyContext(authContext: RequestContext): boolean;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isAppStoreConnectTokenOnlyContext = void 0;
3
+ exports.isAppStoreConnectTokenOnlyContext = isAppStoreConnectTokenOnlyContext;
4
4
  /** Is the request context App Store Connect only with no access to cookies authentication. */
5
5
  function isAppStoreConnectTokenOnlyContext(authContext) {
6
6
  return !authContext.teamId && !!authContext.token;
7
7
  }
8
- exports.isAppStoreConnectTokenOnlyContext = isAppStoreConnectTokenOnlyContext;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertHTMLToASCII = void 0;
3
+ exports.convertHTMLToASCII = convertHTMLToASCII;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  // @ts-expect-error
@@ -56,4 +56,3 @@ function convertHTMLToASCII({ content, rootUrl, }) {
56
56
  const service = getService(rootUrl);
57
57
  return (0, wrap_ansi_1.default)(service.turndown(content), process.stdout.columns || 80);
58
58
  }
59
- exports.convertHTMLToASCII = convertHTMLToASCII;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { pki } from 'node-forge';
3
2
  export declare function getP12CertFingerprint(p12Buffer: Buffer | string, passwordRaw: string | null): string;
4
3
  export declare function findP12CertSerialNumber(p12Buffer: Buffer | string, passwordRaw: string | null): string;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCertData = exports.findP12CertSerialNumber = exports.getP12CertFingerprint = void 0;
3
+ exports.getP12CertFingerprint = getP12CertFingerprint;
4
+ exports.findP12CertSerialNumber = findP12CertSerialNumber;
5
+ exports.getCertData = getCertData;
4
6
  const tslib_1 = require("tslib");
5
7
  const node_forge_1 = tslib_1.__importDefault(require("node-forge"));
6
8
  function getP12CertFingerprint(p12Buffer, passwordRaw) {
@@ -9,12 +11,10 @@ function getP12CertFingerprint(p12Buffer, passwordRaw) {
9
11
  const certDer = node_forge_1.default.asn1.toDer(certAsn1).getBytes();
10
12
  return node_forge_1.default.md.sha1.create().update(certDer).digest().toHex().toUpperCase();
11
13
  }
12
- exports.getP12CertFingerprint = getP12CertFingerprint;
13
14
  function findP12CertSerialNumber(p12Buffer, passwordRaw) {
14
15
  const { serialNumber } = getCertData(p12Buffer, passwordRaw);
15
16
  return serialNumber;
16
17
  }
17
- exports.findP12CertSerialNumber = findP12CertSerialNumber;
18
18
  function getCertData(p12Buffer, passwordRaw) {
19
19
  const certData = getRawCertData(p12Buffer, passwordRaw);
20
20
  return {
@@ -22,7 +22,6 @@ function getCertData(p12Buffer, passwordRaw) {
22
22
  serialNumber: certData.serialNumber.replace(/^0+/, '').toUpperCase(),
23
23
  };
24
24
  }
25
- exports.getCertData = getCertData;
26
25
  function getRawCertData(p12Buffer, passwordRaw) {
27
26
  if (Buffer.isBuffer(p12Buffer)) {
28
27
  p12Buffer = p12Buffer.toString('base64');
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.displayProjectCredentials = exports.displayIosCredentials = exports.displayEmptyIosCredentials = void 0;
3
+ exports.displayEmptyIosCredentials = displayEmptyIosCredentials;
4
+ exports.displayIosCredentials = displayIosCredentials;
5
+ exports.displayProjectCredentials = displayProjectCredentials;
4
6
  const tslib_1 = require("tslib");
5
7
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
8
  const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
@@ -34,7 +36,6 @@ function displayEmptyIosCredentials(appLookupParams) {
34
36
  fields.push({ label: '', value: '' });
35
37
  log_1.default.log((0, formatFields_1.default)(fields, { labelFormat: chalk_1.default.cyan.bold }));
36
38
  }
37
- exports.displayEmptyIosCredentials = displayEmptyIosCredentials;
38
39
  /**
39
40
  * sort a build credentials array in descending order of preference
40
41
  */
@@ -93,7 +94,6 @@ function displayIosCredentials(app, appCredentialsMap, targets) {
93
94
  }
94
95
  log_1.default.log((0, formatFields_1.default)(fields, { labelFormat: chalk_1.default.cyan.bold }));
95
96
  }
96
- exports.displayIosCredentials = displayIosCredentials;
97
97
  function displayProjectCredentials(app, appBuildCredentials, targets) {
98
98
  const projectFullName = `@${app.account.name}/${app.projectName}`;
99
99
  const targetToBundleId = targets.reduce((acc, target) => {
@@ -115,7 +115,6 @@ function displayProjectCredentials(app, appBuildCredentials, targets) {
115
115
  }
116
116
  log_1.default.log((0, formatFields_1.default)(fields, { labelFormat: chalk_1.default.cyan.bold }));
117
117
  }
118
- exports.displayProjectCredentials = displayProjectCredentials;
119
118
  function displayIosAppBuildCredentials(buildCredentials, fields) {
120
119
  fields.push({ label: '', value: '' });
121
120
  fields.push({
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parse = exports.isEnterpriseUniversalProfile = exports.isAdHocProfile = exports.readProfileName = exports.readAppleTeam = void 0;
3
+ exports.readAppleTeam = readAppleTeam;
4
+ exports.readProfileName = readProfileName;
5
+ exports.isAdHocProfile = isAdHocProfile;
6
+ exports.isEnterpriseUniversalProfile = isEnterpriseUniversalProfile;
7
+ exports.parse = parse;
4
8
  const tslib_1 = require("tslib");
5
9
  const plist_1 = tslib_1.__importDefault(require("@expo/plist"));
6
10
  function readAppleTeam(dataBase64) {
@@ -12,23 +16,19 @@ function readAppleTeam(dataBase64) {
12
16
  }
13
17
  return { teamId, teamName };
14
18
  }
15
- exports.readAppleTeam = readAppleTeam;
16
19
  function readProfileName(dataBase64) {
17
20
  const profilePlist = parse(dataBase64);
18
21
  return profilePlist['Name'];
19
22
  }
20
- exports.readProfileName = readProfileName;
21
23
  function isAdHocProfile(dataBase64) {
22
24
  const profilePlist = parse(dataBase64);
23
25
  const provisionedDevices = profilePlist['ProvisionedDevices'];
24
26
  return Array.isArray(provisionedDevices);
25
27
  }
26
- exports.isAdHocProfile = isAdHocProfile;
27
28
  function isEnterpriseUniversalProfile(dataBase64) {
28
29
  const profilePlist = parse(dataBase64);
29
30
  return !!profilePlist['ProvisionsAllDevices'];
30
31
  }
31
- exports.isEnterpriseUniversalProfile = isEnterpriseUniversalProfile;
32
32
  function parse(dataBase64) {
33
33
  try {
34
34
  const buffer = Buffer.from(dataBase64, 'base64');
@@ -39,4 +39,3 @@ function parse(dataBase64) {
39
39
  throw new Error('Provisioning profile is malformed');
40
40
  }
41
41
  }
42
- exports.parse = parse;
@@ -1,18 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getValidAndTrackedAscApiKeysAsync = exports.isAscApiKeyValidAndTrackedAsync = void 0;
3
+ exports.isAscApiKeyValidAndTrackedAsync = isAscApiKeyValidAndTrackedAsync;
4
+ exports.getValidAndTrackedAscApiKeysAsync = getValidAndTrackedAscApiKeysAsync;
4
5
  async function isAscApiKeyValidAndTrackedAsync(ctx, ascApiKey) {
5
6
  const ascApiKeyInfo = await ctx.appStore.getAscApiKeyAsync(ascApiKey.keyId);
6
7
  return isKeyValid(ascApiKeyInfo);
7
8
  }
8
- exports.isAscApiKeyValidAndTrackedAsync = isAscApiKeyValidAndTrackedAsync;
9
9
  async function getValidAndTrackedAscApiKeysAsync(ctx, ascApiKeys) {
10
10
  const ascApiKeysInfo = await ctx.appStore.listAscApiKeysAsync();
11
11
  const validAscApiKeysInfo = ascApiKeysInfo.filter(keyInfo => isKeyValid(keyInfo));
12
12
  const validKeyIdentifiers = new Set(validAscApiKeysInfo.map(keyInfo => keyInfo.keyId));
13
13
  return ascApiKeys.filter(key => validKeyIdentifiers.has(key.keyIdentifier));
14
14
  }
15
- exports.getValidAndTrackedAscApiKeysAsync = getValidAndTrackedAscApiKeysAsync;
16
15
  function isKeyValid(ascApiKeyInfo) {
17
16
  if (!ascApiKeyInfo) {
18
17
  return false;
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateDistributionCertificateAsync = void 0;
3
+ exports.validateDistributionCertificateAsync = validateDistributionCertificateAsync;
4
4
  const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
5
5
  async function validateDistributionCertificateAsync(ctx, distributionCertificate) {
6
6
  const certInfoFromApple = await ctx.appStore.listDistributionCertificatesAsync();
7
7
  const validDistributionCerts = (0, CredentialsUtils_1.filterRevokedDistributionCerts)([distributionCertificate], certInfoFromApple);
8
8
  return validDistributionCerts.length > 0;
9
9
  }
10
- exports.validateDistributionCertificateAsync = validateDistributionCertificateAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateProvisioningProfileAsync = void 0;
3
+ exports.validateProvisioningProfileAsync = validateProvisioningProfileAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
6
  const crypto_1 = tslib_1.__importDefault(require("crypto"));
@@ -26,7 +26,6 @@ async function validateProvisioningProfileAsync(ctx, target, app, buildCredentia
26
26
  }
27
27
  return await validateProvisioningProfileWithAppleAsync(ctx, target, app, buildCredentials);
28
28
  }
29
- exports.validateProvisioningProfileAsync = validateProvisioningProfileAsync;
30
29
  function validateProvisioningProfileWithoutApple(app, { provisioningProfile, distributionCertificate }) {
31
30
  try {
32
31
  const profilePlist = (0, provisioningProfile_2.parse)((0, nullthrows_1.default)(provisioningProfile?.provisioningProfile));
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPushKeyValidAndTrackedAsync = void 0;
3
+ exports.isPushKeyValidAndTrackedAsync = isPushKeyValidAndTrackedAsync;
4
4
  const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
5
5
  async function isPushKeyValidAndTrackedAsync(ctx, pushKey) {
6
6
  const pushInfoFromApple = await ctx.appStore.listPushKeysAsync();
7
7
  const validPushKeys = await (0, CredentialsUtils_1.filterRevokedAndUntrackedPushKeysAsync)([pushKey], pushInfoFromApple);
8
8
  return validPushKeys.length > 0;
9
9
  }
10
- exports.isPushKeyValidAndTrackedAsync = isPushKeyValidAndTrackedAsync;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBuildCredentialsActions = exports.getAscApiKeyActions = exports.getPushKeyActions = exports.credentialsJsonActions = exports.highLevelActions = void 0;
3
+ exports.credentialsJsonActions = exports.highLevelActions = void 0;
4
+ exports.getPushKeyActions = getPushKeyActions;
5
+ exports.getAscApiKeyActions = getAscApiKeyActions;
6
+ exports.getBuildCredentialsActions = getBuildCredentialsActions;
4
7
  const Actions_1 = require("./Actions");
5
8
  exports.highLevelActions = [
6
9
  {
@@ -80,7 +83,6 @@ function getPushKeyActions(ctx) {
80
83
  },
81
84
  ];
82
85
  }
83
- exports.getPushKeyActions = getPushKeyActions;
84
86
  function getAscApiKeyActions(ctx) {
85
87
  return [
86
88
  {
@@ -110,7 +112,6 @@ function getAscApiKeyActions(ctx) {
110
112
  },
111
113
  ];
112
114
  }
113
- exports.getAscApiKeyActions = getAscApiKeyActions;
114
115
  function getBuildCredentialsActions(ctx) {
115
116
  return [
116
117
  {
@@ -147,4 +148,3 @@ function getBuildCredentialsActions(ctx) {
147
148
  },
148
149
  ];
149
150
  }
150
- exports.getBuildCredentialsActions = getBuildCredentialsActions;
@@ -22,7 +22,7 @@ class SelectPlatform {
22
22
  this.flagPlatform = flagPlatform;
23
23
  }
24
24
  async runAsync() {
25
- const platform = await (0, platform_1.selectPlatformAsync)(this.flagPlatform);
25
+ const platform = await (0, platform_1.selectPlatformWithExitOptionAsync)(this.flagPlatform);
26
26
  if (platform === 'ios') {
27
27
  await new ManageIos_1.ManageIos(this, process.cwd()).runAsync();
28
28
  return;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.shouldAutoGenerateCredentialsAsync = exports.getCredentialsFromUserAsync = exports.askForUserProvidedAsync = void 0;
3
+ exports.askForUserProvidedAsync = askForUserProvidedAsync;
4
+ exports.getCredentialsFromUserAsync = getCredentialsFromUserAsync;
5
+ exports.shouldAutoGenerateCredentialsAsync = shouldAutoGenerateCredentialsAsync;
4
6
  const tslib_1 = require("tslib");
5
7
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
6
8
  const path_1 = tslib_1.__importDefault(require("path"));
@@ -28,7 +30,6 @@ async function askForUserProvidedAsync(schema, initialValues = {}) {
28
30
  EXPERT_PROMPT();
29
31
  return await getCredentialsFromUserAsync(schema, initialValues);
30
32
  }
31
- exports.askForUserProvidedAsync = askForUserProvidedAsync;
32
33
  async function getCredentialsFromUserAsync(credentialsSchema, initialValues = {}) {
33
34
  const results = {};
34
35
  for (const question of credentialsSchema.questions) {
@@ -38,7 +39,6 @@ async function getCredentialsFromUserAsync(credentialsSchema, initialValues = {}
38
39
  ? await credentialsSchema.transformResultAsync(results)
39
40
  : results;
40
41
  }
41
- exports.getCredentialsFromUserAsync = getCredentialsFromUserAsync;
42
42
  async function shouldAutoGenerateCredentialsAsync(schema) {
43
43
  const answer = await (0, prompts_1.confirmAsync)({
44
44
  message: schema?.provideMethodQuestion?.question ?? `Generate a new ${schema.name}?`,
@@ -46,7 +46,6 @@ async function shouldAutoGenerateCredentialsAsync(schema) {
46
46
  });
47
47
  return answer;
48
48
  }
49
- exports.shouldAutoGenerateCredentialsAsync = shouldAutoGenerateCredentialsAsync;
50
49
  async function askQuestionAndProcessAnswerAsync(definition, initialValue) {
51
50
  const questionObject = buildQuestionObject(definition, initialValue);
52
51
  const { input } = await (0, prompts_1.promptAsync)(questionObject);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runCurrentMachineMethodAsync = void 0;
3
+ exports.runCurrentMachineMethodAsync = runCurrentMachineMethodAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
6
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -21,7 +21,6 @@ async function runCurrentMachineMethodAsync(graphqlClient, accountId, appleTeam)
21
21
  log_1.default.log(chalk_1.default.green('Check successful.'));
22
22
  await collectDataAndRegisterDeviceAsync(graphqlClient, { accountId, appleTeam });
23
23
  }
24
- exports.runCurrentMachineMethodAsync = runCurrentMachineMethodAsync;
25
24
  function isMachineAppleSilicon() {
26
25
  return os_1.default.cpus()[0].model.includes('Apple M') && process.platform === 'darwin';
27
26
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="@expo/apple-utils/ts-declarations/expo__app-store" />
2
1
  import { Device } from '@expo/apple-utils';
3
2
  import { ExpoGraphqlClient } from '../../../commandUtils/context/contextUtils/createGraphqlClient';
4
3
  import AppStoreApi from '../../../credentials/ios/appstore/AppStoreApi';
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatDeviceLabel = exports.runDeveloperPortalMethodAsync = void 0;
3
+ exports.runDeveloperPortalMethodAsync = runDeveloperPortalMethodAsync;
4
+ exports.formatDeviceLabel = formatDeviceLabel;
4
5
  const tslib_1 = require("tslib");
5
6
  const apple_utils_1 = require("@expo/apple-utils");
6
7
  const AppleDeviceMutation_1 = require("../../../credentials/ios/api/graphql/mutations/AppleDeviceMutation");
@@ -27,7 +28,6 @@ async function runDeveloperPortalMethodAsync(graphqlClient, appStoreApi, account
27
28
  const devicesToImport = await chooseDevicesToImportAsync(unregisteredPortalDevices);
28
29
  await importDevicesAsync(graphqlClient, account.id, appleTeam, devicesToImport);
29
30
  }
30
- exports.runDeveloperPortalMethodAsync = runDeveloperPortalMethodAsync;
31
31
  async function importDevicesAsync(graphqlClient, accountId, appleTeam, devices) {
32
32
  const spinner = (0, ora_1.ora)(`Importing ${devices.length} Apple device${devices.length === 1 ? '' : 's'} to EAS`).start();
33
33
  const deviceChunks = (0, chunk_1.default)(devices, DEVICE_IMPORT_CHUNK_SIZE);
@@ -80,7 +80,6 @@ function formatDeviceLabel(device) {
80
80
  const deviceDetails = formatDeviceDetails(device);
81
81
  return `${device.attributes.name} - ${device.attributes.udid})${deviceDetails !== '' ? ` - ${deviceDetails}` : ''}`;
82
82
  }
83
- exports.formatDeviceLabel = formatDeviceLabel;
84
83
  function formatDeviceDetails(device) {
85
84
  let details = device.attributes.deviceClass;
86
85
  if (device.attributes.model) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runInputMethodAsync = void 0;
3
+ exports.runInputMethodAsync = runInputMethodAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const utils_1 = require("./utils");
@@ -21,7 +21,6 @@ async function runInputMethodAsync(graphqlClient, accountId, appleTeam) {
21
21
  });
22
22
  }
23
23
  }
24
- exports.runInputMethodAsync = runInputMethodAsync;
25
24
  async function collectDataAndRegisterDeviceAsync(graphqlClient, { accountId, appleTeam, }) {
26
25
  const { udid, deviceClass, name } = await collectDeviceDataAsync(appleTeam);
27
26
  const spinner = (0, ora_1.ora)(`Registering Apple device on EAS`).start();
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runRegistrationUrlMethodAsync = void 0;
3
+ exports.runRegistrationUrlMethodAsync = runRegistrationUrlMethodAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const indent_string_1 = tslib_1.__importDefault(require("indent-string"));
@@ -18,7 +18,6 @@ async function runRegistrationUrlMethodAsync(graphqlClient, accountId, appleTeam
18
18
  log_1.default.log('Open the following link on your iOS devices (or scan the QR code) and follow the instructions to install the development profile:');
19
19
  log_1.default.log(chalk_1.default.green(`${registrationURL}`));
20
20
  }
21
- exports.runRegistrationUrlMethodAsync = runRegistrationUrlMethodAsync;
22
21
  async function generateDeviceRegistrationURLAsync(graphqlClient, accountId, appleTeam) {
23
22
  const appleDeviceRegistrationRequest = await AppleDeviceRegistrationRequestMutation_1.AppleDeviceRegistrationRequestMutation.createAppleDeviceRegistrationRequestAsync(graphqlClient, appleTeam.id, accountId);
24
23
  return formatRegistrationURL(appleDeviceRegistrationRequest.id);
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printDeviceData = exports.promptForUDIDAsync = exports.promptForNameAsync = exports.promptForDeviceClassAsync = void 0;
3
+ exports.promptForDeviceClassAsync = promptForDeviceClassAsync;
4
+ exports.promptForNameAsync = promptForNameAsync;
5
+ exports.promptForUDIDAsync = promptForUDIDAsync;
6
+ exports.printDeviceData = printDeviceData;
4
7
  const tslib_1 = require("tslib");
5
8
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
9
  const generated_1 = require("../../../graphql/generated");
@@ -25,7 +28,6 @@ async function promptForDeviceClassAsync(initial) {
25
28
  });
26
29
  return deviceClass;
27
30
  }
28
- exports.promptForDeviceClassAsync = promptForDeviceClassAsync;
29
31
  async function promptForNameAsync(initial) {
30
32
  const { name } = await (0, prompts_1.promptAsync)({
31
33
  type: 'text',
@@ -35,7 +37,6 @@ async function promptForNameAsync(initial) {
35
37
  });
36
38
  return name;
37
39
  }
38
- exports.promptForNameAsync = promptForNameAsync;
39
40
  async function promptForUDIDAsync(initial) {
40
41
  const { udid } = await (0, prompts_1.promptAsync)({
41
42
  type: 'text',
@@ -61,7 +62,6 @@ async function promptForUDIDAsync(initial) {
61
62
  });
62
63
  return udid;
63
64
  }
64
- exports.promptForUDIDAsync = promptForUDIDAsync;
65
65
  function printDeviceData(deviceData, appleTeam) {
66
66
  log_1.default.newLine();
67
67
  log_1.default.log(`We are going to register the following device in our database.
@@ -70,4 +70,3 @@ function printDeviceData(deviceData, appleTeam) {
70
70
  log_1.default.log((0, formatDevice_1.formatNewDevice)({ ...deviceData, identifier: deviceData.udid }, appleTeam));
71
71
  log_1.default.newLine();
72
72
  }
73
- exports.printDeviceData = printDeviceData;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createContextAsync = void 0;
3
+ exports.createContextAsync = createContextAsync;
4
4
  async function createContextAsync({ appStore, user, graphqlClient, projectId, }) {
5
5
  return {
6
6
  appStore,
@@ -9,4 +9,3 @@ async function createContextAsync({ appStore, user, graphqlClient, projectId, })
9
9
  projectId: projectId ?? null,
10
10
  };
11
11
  }
12
- exports.createContextAsync = createContextAsync;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listAndRenderAppleDevicesOnAppleTeamAsync = exports.selectAppleDeviceOnAppleTeamAsync = exports.selectAppleTeamOnAccountAsync = exports.DEVICES_LIMIT = exports.TEAMS_LIMIT = void 0;
3
+ exports.DEVICES_LIMIT = exports.TEAMS_LIMIT = void 0;
4
+ exports.selectAppleTeamOnAccountAsync = selectAppleTeamOnAccountAsync;
5
+ exports.selectAppleDeviceOnAppleTeamAsync = selectAppleDeviceOnAppleTeamAsync;
6
+ exports.listAndRenderAppleDevicesOnAppleTeamAsync = listAndRenderAppleDevicesOnAppleTeamAsync;
4
7
  const tslib_1 = require("tslib");
5
8
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
9
  const formatDevice_1 = tslib_1.__importDefault(require("./utils/formatDevice"));
@@ -42,7 +45,6 @@ async function selectAppleTeamOnAccountAsync(graphqlClient, { accountName, selec
42
45
  return selectedAppleTeam;
43
46
  }
44
47
  }
45
- exports.selectAppleTeamOnAccountAsync = selectAppleTeamOnAccountAsync;
46
48
  async function selectAppleDeviceOnAppleTeamAsync(graphqlClient, { accountName, appleTeamIdentifier, selectionPromptTitle, paginatedQueryOptions, }) {
47
49
  if (paginatedQueryOptions.nonInteractive) {
48
50
  throw new Error('Unable to select an Apple device in non-interactive mode.');
@@ -71,7 +73,6 @@ async function selectAppleDeviceOnAppleTeamAsync(graphqlClient, { accountName, a
71
73
  return selectedAppleDevice;
72
74
  }
73
75
  }
74
- exports.selectAppleDeviceOnAppleTeamAsync = selectAppleDeviceOnAppleTeamAsync;
75
76
  async function listAndRenderAppleDevicesOnAppleTeamAsync(graphqlClient, { accountName, appleTeam, paginatedQueryOptions, }) {
76
77
  if (paginatedQueryOptions.nonInteractive) {
77
78
  const devices = await AppleDeviceQuery_1.AppleDeviceQuery.getAllForAppleTeamAsync(graphqlClient, {
@@ -101,7 +102,6 @@ async function listAndRenderAppleDevicesOnAppleTeamAsync(graphqlClient, { accoun
101
102
  });
102
103
  }
103
104
  }
104
- exports.listAndRenderAppleDevicesOnAppleTeamAsync = listAndRenderAppleDevicesOnAppleTeamAsync;
105
105
  function renderPageOfAppleDevices({ devices, appleTeam, paginatedQueryOptions, }) {
106
106
  if (paginatedQueryOptions.json) {
107
107
  (0, json_1.printJsonOnlyOutput)(devices);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeUDID = exports.isValidUDID = void 0;
3
+ exports.isValidUDID = isValidUDID;
4
+ exports.normalizeUDID = normalizeUDID;
4
5
  function isValidUDID(udid) {
5
6
  if (udid.length === 25) {
6
7
  return /[A-Z0-9]{8}-[A-Z0-9]{16}/.test(udid);
@@ -12,7 +13,6 @@ function isValidUDID(udid) {
12
13
  return false;
13
14
  }
14
15
  }
15
- exports.isValidUDID = isValidUDID;
16
16
  function normalizeUDID(rawUDID) {
17
17
  const udid = rawUDID.trim();
18
18
  if (udid.length === 25) {
@@ -25,4 +25,3 @@ function normalizeUDID(rawUDID) {
25
25
  return udid;
26
26
  }
27
27
  }
28
- exports.normalizeUDID = normalizeUDID;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatNewDevice = void 0;
3
+ exports.default = formatDevice;
4
+ exports.formatNewDevice = formatNewDevice;
4
5
  const tslib_1 = require("tslib");
5
6
  const generated_1 = require("../../graphql/generated");
6
7
  const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
@@ -32,7 +33,6 @@ function formatDevice(device, team) {
32
33
  }
33
34
  return (0, formatFields_1.default)(fields);
34
35
  }
35
- exports.default = formatDevice;
36
36
  function formatNewDevice(device, team) {
37
37
  const fields = [
38
38
  { label: 'Name', value: device.name ?? '(empty)' },
@@ -47,4 +47,3 @@ function formatNewDevice(device, team) {
47
47
  }
48
48
  return (0, formatFields_1.default)(fields);
49
49
  }
50
- exports.formatNewDevice = formatNewDevice;
package/build/fetch.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Agent } from 'https';
3
2
  import { RequestInfo, RequestInit, Response } from 'node-fetch';
4
3
  export { Headers, RequestInfo, RequestInit, Response } from 'node-fetch';
package/build/fetch.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.httpsProxyAgent = exports.RequestError = exports.Response = exports.Headers = void 0;
4
+ exports.default = default_1;
4
5
  const tslib_1 = require("tslib");
5
6
  const https_proxy_agent_1 = tslib_1.__importDefault(require("https-proxy-agent"));
6
7
  const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
@@ -33,4 +34,3 @@ async function default_1(url, init) {
33
34
  }
34
35
  return response;
35
36
  }
36
- exports.default = default_1;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createFingerprintsByKeyAsync = exports.createFingerprintAsync = exports.diffFingerprint = void 0;
3
+ exports.diffFingerprint = diffFingerprint;
4
+ exports.createFingerprintAsync = createFingerprintAsync;
5
+ exports.createFingerprintsByKeyAsync = createFingerprintsByKeyAsync;
4
6
  const tslib_1 = require("tslib");
5
7
  const eas_build_job_1 = require("@expo/eas-build-job");
6
8
  const resolve_from_1 = require("resolve-from");
@@ -16,7 +18,6 @@ function diffFingerprint(projectDir, fingerprint1, fingerprint2) {
16
18
  const Fingerprint = require(fingerprintPath);
17
19
  return Fingerprint.diffFingerprints(fingerprint1, fingerprint2);
18
20
  }
19
- exports.diffFingerprint = diffFingerprint;
20
21
  async function createFingerprintAsync(projectDir, options) {
21
22
  // @expo/fingerprint is exported in the expo package for SDK 52+
22
23
  const fingerprintPath = (0, resolve_from_1.silent)(projectDir, 'expo/fingerprint');
@@ -48,7 +49,6 @@ async function createFingerprintAsync(projectDir, options) {
48
49
  spinner.stop();
49
50
  }
50
51
  }
51
- exports.createFingerprintAsync = createFingerprintAsync;
52
52
  async function createFingerprintWithoutLoggingAsync(projectDir, fingerprintPath, options) {
53
53
  const Fingerprint = require(fingerprintPath);
54
54
  const fingerprintOptions = {};
@@ -124,4 +124,3 @@ async function createFingerprintsByKeyAsync(projectDir, fingerprintOptionsByKey)
124
124
  spinner.stop();
125
125
  }
126
126
  }
127
- exports.createFingerprintsByKeyAsync = createFingerprintsByKeyAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.abridgedDiff = void 0;
3
+ exports.abridgedDiff = abridgedDiff;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const diff_1 = require("diff");
@@ -120,4 +120,3 @@ function abridgedDiff(str1, str2, contextLines = 2) {
120
120
  flushChunk(); // Flush any remaining chunk
121
121
  log_1.default.log(output.join('\n'));
122
122
  }
123
- exports.abridgedDiff = abridgedDiff;