eas-cli 16.27.0 → 16.30.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 (357) 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.d.ts +5 -0
  6. package/build/branch/delete.js +23 -0
  7. package/build/branch/queries.js +5 -5
  8. package/build/branch/utils.js +2 -2
  9. package/build/build/android/build.js +3 -4
  10. package/build/build/android/graphql.js +1 -2
  11. package/build/build/android/prepareJob.js +1 -2
  12. package/build/build/android/syncProjectConfiguration.js +2 -3
  13. package/build/build/android/version.js +6 -6
  14. package/build/build/build.js +3 -4
  15. package/build/build/configure.js +4 -5
  16. package/build/build/context.d.ts +1 -0
  17. package/build/build/createContext.js +2 -2
  18. package/build/build/evaluateConfigWithEnvVarsAsync.js +1 -2
  19. package/build/build/graphql.js +7 -7
  20. package/build/build/ios/build.js +2 -3
  21. package/build/build/ios/credentials.js +2 -3
  22. package/build/build/ios/graphql.js +2 -3
  23. package/build/build/ios/prepareJob.js +2 -3
  24. package/build/build/ios/syncProjectConfiguration.js +1 -2
  25. package/build/build/ios/version.js +10 -10
  26. package/build/build/local.js +2 -2
  27. package/build/build/metadata.js +3 -4
  28. package/build/build/queries.js +4 -4
  29. package/build/build/runBuildAndSubmit.js +12 -3
  30. package/build/build/utils/appJson.js +2 -3
  31. package/build/build/utils/credentials.js +1 -2
  32. package/build/build/utils/devClient.js +1 -2
  33. package/build/build/utils/formatBuild.js +2 -3
  34. package/build/build/utils/printBuildInfo.js +4 -5
  35. package/build/build/utils/repository.js +8 -9
  36. package/build/build/utils/resourceClass.js +1 -2
  37. package/build/build/utils/url.js +8 -9
  38. package/build/build/utils/version.js +2 -3
  39. package/build/build/validate.js +3 -4
  40. package/build/channel/branch-mapping.js +24 -24
  41. package/build/channel/delete.d.ts +5 -0
  42. package/build/channel/delete.js +23 -0
  43. package/build/channel/print-utils.js +2 -3
  44. package/build/channel/queries.js +8 -8
  45. package/build/channel/utils.js +1 -2
  46. package/build/commandUtils/builds.js +3 -4
  47. package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -2
  48. package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +2 -3
  49. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +3 -4
  50. package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +1 -2
  51. package/build/commandUtils/experienceParser.d.ts +6 -0
  52. package/build/commandUtils/experienceParser.js +42 -0
  53. package/build/commandUtils/new/commands.js +3 -4
  54. package/build/commandUtils/new/configs.js +11 -9
  55. package/build/commandUtils/new/projectFiles.js +6 -7
  56. package/build/commandUtils/new/utils.js +1 -2
  57. package/build/commandUtils/projectNameValidation.d.ts +8 -0
  58. package/build/commandUtils/projectNameValidation.js +30 -0
  59. package/build/commandUtils/workflow/buildProfileUtils.js +12 -13
  60. package/build/commandUtils/workflow/creation.js +5 -5
  61. package/build/commandUtils/workflow/fetchLogs.js +2 -3
  62. package/build/commandUtils/workflow/inputs.js +5 -5
  63. package/build/commandUtils/workflow/stateMachine.js +7 -7
  64. package/build/commandUtils/workflow/utils.js +12 -12
  65. package/build/commandUtils/workflow/validation.js +4 -5
  66. package/build/commands/branch/delete.js +6 -20
  67. package/build/commands/build/cancel.js +1 -2
  68. package/build/commands/build/delete.js +1 -2
  69. package/build/commands/build/index.js +1 -10
  70. package/build/commands/channel/delete.js +7 -23
  71. package/build/commands/channel/edit.js +1 -2
  72. package/build/commands/channel/pause.js +1 -2
  73. package/build/commands/channel/resume.js +1 -2
  74. package/build/commands/deploy/index.js +1 -1
  75. package/build/commands/project/init.js +3 -1
  76. package/build/commands/project/new.js +3 -4
  77. package/build/commands/update/index.d.ts +8 -0
  78. package/build/commands/update/index.js +39 -2
  79. package/build/commands/update/list.d.ts +3 -0
  80. package/build/commands/update/list.js +30 -1
  81. package/build/commands/update/revert-update-rollout.js +1 -2
  82. package/build/credentials/android/actions/BuildCredentialsUtils.js +6 -7
  83. package/build/credentials/android/api/GraphqlClient.js +21 -21
  84. package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.d.ts +2 -2
  85. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +5 -5
  86. package/build/credentials/android/utils/googleServiceAccountKey.js +4 -4
  87. package/build/credentials/android/utils/keystore.js +2 -3
  88. package/build/credentials/android/utils/keystoreNew.js +3 -4
  89. package/build/credentials/android/utils/printCredentials.js +3 -4
  90. package/build/credentials/credentialsJson/read.js +3 -4
  91. package/build/credentials/credentialsJson/update.js +2 -3
  92. package/build/credentials/credentialsJson/utils.js +2 -3
  93. package/build/credentials/ios/actions/AppleTeamFormatting.js +1 -2
  94. package/build/credentials/ios/actions/AppleTeamUtils.js +1 -2
  95. package/build/credentials/ios/actions/AscApiKeyUtils.js +10 -10
  96. package/build/credentials/ios/actions/BuildCredentialsUtils.js +7 -8
  97. package/build/credentials/ios/actions/DeviceUtils.js +2 -3
  98. package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -5
  99. package/build/credentials/ios/actions/ProvisioningProfileUtils.js +2 -3
  100. package/build/credentials/ios/actions/PushKeyUtils.js +5 -6
  101. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +2 -2
  102. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +6 -2
  103. package/build/credentials/ios/api/GraphqlClient.js +24 -25
  104. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +5 -5
  105. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +8 -8
  106. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +5 -5
  107. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +5 -5
  108. package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.d.ts +1 -1
  109. package/build/credentials/ios/appstore/AppStoreApi.d.ts +0 -2
  110. package/build/credentials/ios/appstore/Credentials.js +4 -5
  111. package/build/credentials/ios/appstore/Credentials.types.d.ts +0 -1
  112. package/build/credentials/ios/appstore/CredentialsUtils.js +6 -7
  113. package/build/credentials/ios/appstore/ascApiKey.d.ts +0 -1
  114. package/build/credentials/ios/appstore/ascApiKey.js +6 -7
  115. package/build/credentials/ios/appstore/authenticate.d.ts +0 -1
  116. package/build/credentials/ios/appstore/authenticate.js +4 -5
  117. package/build/credentials/ios/appstore/authenticateTypes.d.ts +0 -1
  118. package/build/credentials/ios/appstore/bundleId.d.ts +0 -1
  119. package/build/credentials/ios/appstore/bundleId.js +2 -3
  120. package/build/credentials/ios/appstore/bundleIdCapabilities.d.ts +0 -1
  121. package/build/credentials/ios/appstore/bundleIdCapabilities.js +3 -3
  122. package/build/credentials/ios/appstore/capabilityIdentifiers.d.ts +0 -1
  123. package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -2
  124. package/build/credentials/ios/appstore/capabilityList.d.ts +0 -1
  125. package/build/credentials/ios/appstore/contractMessages.d.ts +0 -1
  126. package/build/credentials/ios/appstore/contractMessages.js +2 -3
  127. package/build/credentials/ios/appstore/distributionCertificate.d.ts +0 -1
  128. package/build/credentials/ios/appstore/distributionCertificate.js +7 -7
  129. package/build/credentials/ios/appstore/ensureAppExists.d.ts +6 -1
  130. package/build/credentials/ios/appstore/ensureAppExists.js +55 -18
  131. package/build/credentials/ios/appstore/ensureTestFlightGroup.d.ts +0 -1
  132. package/build/credentials/ios/appstore/ensureTestFlightGroup.js +1 -2
  133. package/build/credentials/ios/appstore/keychain.js +4 -4
  134. package/build/credentials/ios/appstore/provisioningProfile.d.ts +0 -1
  135. package/build/credentials/ios/appstore/provisioningProfile.js +5 -5
  136. package/build/credentials/ios/appstore/provisioningProfileAdhoc.d.ts +0 -1
  137. package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +1 -2
  138. package/build/credentials/ios/appstore/pushKey.js +4 -4
  139. package/build/credentials/ios/appstore/resolveCredentials.d.ts +0 -1
  140. package/build/credentials/ios/appstore/resolveCredentials.js +6 -7
  141. package/build/credentials/ios/credentials.d.ts +0 -1
  142. package/build/credentials/ios/credentials.js +2 -2
  143. package/build/credentials/ios/utils/authType.d.ts +0 -1
  144. package/build/credentials/ios/utils/authType.js +1 -2
  145. package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -2
  146. package/build/credentials/ios/utils/p12Certificate.d.ts +0 -1
  147. package/build/credentials/ios/utils/p12Certificate.js +3 -4
  148. package/build/credentials/ios/utils/printCredentials.js +3 -4
  149. package/build/credentials/ios/utils/provisioningProfile.js +5 -6
  150. package/build/credentials/ios/validators/validateAscApiKey.js +2 -3
  151. package/build/credentials/ios/validators/validateDistributionCertificate.js +1 -2
  152. package/build/credentials/ios/validators/validateProvisioningProfile.js +1 -2
  153. package/build/credentials/ios/validators/validatePushKey.js +1 -2
  154. package/build/credentials/manager/IosActions.js +4 -4
  155. package/build/credentials/manager/SelectPlatform.js +1 -1
  156. package/build/credentials/utils/promptForCredentials.js +3 -4
  157. package/build/devices/actions/create/currentMachineMethod.js +1 -2
  158. package/build/devices/actions/create/developerPortalMethod.d.ts +0 -1
  159. package/build/devices/actions/create/developerPortalMethod.js +2 -3
  160. package/build/devices/actions/create/inputMethod.js +1 -2
  161. package/build/devices/actions/create/registrationUrlMethod.js +1 -2
  162. package/build/devices/actions/create/utils.js +4 -5
  163. package/build/devices/context.js +1 -2
  164. package/build/devices/queries.js +4 -4
  165. package/build/devices/udids.js +2 -3
  166. package/build/devices/utils/formatDevice.js +2 -3
  167. package/build/fetch.d.ts +0 -1
  168. package/build/fetch.js +1 -1
  169. package/build/fingerprint/cli.js +3 -4
  170. package/build/fingerprint/diff.js +1 -2
  171. package/build/fingerprint/types.d.ts +0 -1
  172. package/build/fingerprint/utils.js +4 -5
  173. package/build/graphql/client.js +2 -2
  174. package/build/graphql/generated.d.ts +331 -103
  175. package/build/graphql/generated.js +45 -3
  176. package/build/graphql/mutations/PublishMutation.d.ts +2 -2
  177. package/build/graphql/queries/AccountUsageQuery.d.ts +1 -1
  178. package/build/graphql/queries/AppVersionQuery.d.ts +1 -1
  179. package/build/graphql/queries/BackgroundJobReceiptQuery.d.ts +1 -1
  180. package/build/graphql/queries/BranchQuery.d.ts +3 -3
  181. package/build/graphql/queries/BuildQuery.d.ts +3 -3
  182. package/build/graphql/queries/ChannelQuery.d.ts +2 -2
  183. package/build/graphql/queries/ChannelQuery.js +2 -2
  184. package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +12 -12
  185. package/build/graphql/queries/FingerprintQuery.d.ts +6 -6
  186. package/build/graphql/queries/PublishQuery.d.ts +1 -1
  187. package/build/graphql/queries/SubmissionQuery.d.ts +1 -1
  188. package/build/graphql/queries/UserQuery.d.ts +1 -1
  189. package/build/graphql/queries/WorkflowJobQuery.d.ts +2 -2
  190. package/build/graphql/queries/WorkflowRunQuery.d.ts +4 -4
  191. package/build/graphql/types/AppPlatform.js +2 -3
  192. package/build/log.js +2 -3
  193. package/build/metadata/apple/config/reader.d.ts +0 -1
  194. package/build/metadata/apple/config/writer.d.ts +0 -1
  195. package/build/metadata/apple/data.d.ts +0 -1
  196. package/build/metadata/apple/tasks/age-rating.d.ts +0 -1
  197. package/build/metadata/apple/tasks/age-rating.js +0 -1
  198. package/build/metadata/apple/tasks/app-info.d.ts +0 -1
  199. package/build/metadata/apple/tasks/app-info.js +15 -4
  200. package/build/metadata/apple/tasks/app-review-detail.d.ts +0 -1
  201. package/build/metadata/apple/tasks/app-review-detail.js +0 -1
  202. package/build/metadata/apple/tasks/app-version.d.ts +0 -1
  203. package/build/metadata/apple/tasks/app-version.js +15 -3
  204. package/build/metadata/apple/tasks/index.js +1 -2
  205. package/build/metadata/apple/types.d.ts +0 -1
  206. package/build/metadata/auth.d.ts +0 -1
  207. package/build/metadata/auth.js +1 -2
  208. package/build/metadata/config/resolve.js +4 -5
  209. package/build/metadata/config/validate.js +1 -2
  210. package/build/metadata/download.js +1 -2
  211. package/build/metadata/errors.js +3 -3
  212. package/build/metadata/upload.js +1 -2
  213. package/build/metadata/utils/ajv.js +2 -3
  214. package/build/metadata/utils/asc.d.ts +0 -1
  215. package/build/metadata/utils/date.js +1 -2
  216. package/build/metadata/utils/log.js +1 -2
  217. package/build/metadata/utils/retry.js +2 -3
  218. package/build/metadata/utils/telemetry.d.ts +0 -1
  219. package/build/metadata/utils/telemetry.js +2 -3
  220. package/build/onboarding/git.js +3 -4
  221. package/build/onboarding/installDependencies.js +3 -3
  222. package/build/onboarding/runCommand.js +1 -2
  223. package/build/ora.js +1 -2
  224. package/build/platform.d.ts +1 -0
  225. package/build/platform.js +28 -10
  226. package/build/project/android/applicationId.js +6 -6
  227. package/build/project/android/gradle.js +1 -2
  228. package/build/project/android/gradleUtils.js +4 -4
  229. package/build/project/android/versions.js +3 -3
  230. package/build/project/applicationIdentifier.js +1 -2
  231. package/build/project/customBuildConfig.js +3 -4
  232. package/build/project/expoConfig.js +5 -6
  233. package/build/project/expoSdk.js +1 -2
  234. package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +2 -3
  235. package/build/project/ios/bundleIdentifier.js +6 -6
  236. package/build/project/ios/entitlements.js +2 -3
  237. package/build/project/ios/exemptEncryption.js +1 -2
  238. package/build/project/ios/scheme.js +2 -3
  239. package/build/project/ios/target.d.ts +0 -1
  240. package/build/project/ios/target.js +8 -9
  241. package/build/project/ios/versions.js +3 -3
  242. package/build/project/maybeUploadAssetMapAsync.js +1 -2
  243. package/build/project/maybeUploadFingerprintAsync.js +1 -2
  244. package/build/project/metroConfig.js +1 -2
  245. package/build/project/projectUtils.js +15 -16
  246. package/build/project/publish.d.ts +15 -2
  247. package/build/project/publish.js +56 -29
  248. package/build/project/remoteVersionSource.js +6 -6
  249. package/build/project/resolveRuntimeVersionAsync.js +2 -3
  250. package/build/project/uploadAccountScopedFileAsync.js +1 -2
  251. package/build/project/uploadAccountScopedProjectSourceAsync.js +1 -2
  252. package/build/project/workflow.js +3 -4
  253. package/build/prompts.js +5 -6
  254. package/build/rollout/branch-mapping.js +14 -15
  255. package/build/rollout/utils.js +5 -6
  256. package/build/run/android/aapt.js +2 -3
  257. package/build/run/android/adb.js +8 -9
  258. package/build/run/android/emulator.js +6 -6
  259. package/build/run/android/run.js +1 -2
  260. package/build/run/android/sdk.d.ts +0 -1
  261. package/build/run/android/sdk.js +2 -2
  262. package/build/run/android/systemRequirements.js +1 -2
  263. package/build/run/ios/run.js +1 -2
  264. package/build/run/ios/simctl.js +1 -2
  265. package/build/run/ios/simulator.js +9 -10
  266. package/build/run/ios/systemRequirements.js +1 -2
  267. package/build/run/ios/xcode.js +5 -5
  268. package/build/run/ios/xcrun.js +3 -4
  269. package/build/run/run.js +2 -3
  270. package/build/run/utils.js +1 -2
  271. package/build/submit/ArchiveSource.js +3 -3
  272. package/build/submit/android/ServiceAccountSource.js +4 -4
  273. package/build/submit/commons.js +2 -3
  274. package/build/submit/context.js +1 -2
  275. package/build/submit/ios/AppProduce.js +1 -2
  276. package/build/submit/ios/AppSpecificPasswordSource.js +3 -3
  277. package/build/submit/ios/AscApiKeySource.js +4 -4
  278. package/build/submit/ios/utils/language.js +1 -2
  279. package/build/submit/submit.js +3 -4
  280. package/build/submit/utils/builds.js +1 -2
  281. package/build/submit/utils/errors.js +1 -2
  282. package/build/submit/utils/files.js +2 -3
  283. package/build/submit/utils/logs.js +1 -2
  284. package/build/submit/utils/summary.js +2 -3
  285. package/build/submit/utils/urls.js +2 -3
  286. package/build/submit/utils/wait.js +2 -3
  287. package/build/update/android/UpdatesModule.js +2 -3
  288. package/build/update/configure.js +4 -4
  289. package/build/update/delete.js +1 -2
  290. package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js +1 -2
  291. package/build/update/ios/UpdatesModule.js +2 -3
  292. package/build/update/queries.d.ts +5 -3
  293. package/build/update/queries.js +12 -9
  294. package/build/update/republish.js +5 -6
  295. package/build/update/roll-back-to-embedded.js +1 -2
  296. package/build/update/utils.js +15 -15
  297. package/build/uploads.js +3 -4
  298. package/build/user/User.js +2 -3
  299. package/build/user/actions.js +1 -2
  300. package/build/user/expoSsoLauncher.js +1 -2
  301. package/build/user/fetchSessionSecretAndSsoUser.js +1 -2
  302. package/build/user/fetchSessionSecretAndUser.js +1 -2
  303. package/build/user/fetchUser.js +1 -2
  304. package/build/utils/code-signing.d.ts +0 -1
  305. package/build/utils/code-signing.js +7 -8
  306. package/build/utils/date.js +1 -2
  307. package/build/utils/download.js +2 -3
  308. package/build/utils/expoCli.js +4 -4
  309. package/build/utils/expoUpdatesCli.js +2 -2
  310. package/build/utils/expodash/areSetsEqual.js +1 -1
  311. package/build/utils/expodash/capitalize.js +1 -1
  312. package/build/utils/expodash/chunk.js +1 -1
  313. package/build/utils/expodash/differenceBy.js +1 -1
  314. package/build/utils/expodash/filter.js +1 -2
  315. package/build/utils/expodash/groupBy.js +1 -1
  316. package/build/utils/expodash/intersection.js +1 -1
  317. package/build/utils/expodash/mapMapAsync.js +1 -1
  318. package/build/utils/expodash/memoize.js +1 -2
  319. package/build/utils/expodash/pick.js +1 -1
  320. package/build/utils/expodash/sortBy.js +1 -1
  321. package/build/utils/expodash/uniq.js +1 -1
  322. package/build/utils/expodash/uniqBy.js +1 -1
  323. package/build/utils/expodash/zipObject.js +1 -1
  324. package/build/utils/files.js +2 -3
  325. package/build/utils/formatFields.js +1 -1
  326. package/build/utils/image.js +3 -3
  327. package/build/utils/json.js +2 -3
  328. package/build/utils/plist.d.ts +0 -1
  329. package/build/utils/plist.js +3 -4
  330. package/build/utils/pollForBackgroundJobReceiptAsync.js +2 -2
  331. package/build/utils/profiles.js +3 -4
  332. package/build/utils/progress.js +1 -2
  333. package/build/utils/promise.js +1 -2
  334. package/build/utils/prompts.js +8 -9
  335. package/build/utils/queries.js +2 -3
  336. package/build/utils/relay.js +4 -4
  337. package/build/utils/statuspageService.js +1 -2
  338. package/build/utils/timer.js +4 -5
  339. package/build/utils/usage/checkForOverages.js +4 -6
  340. package/build/utils/variableUtils.js +4 -5
  341. package/build/vcs/clients/git.js +1 -2
  342. package/build/vcs/git.js +5 -6
  343. package/build/vcs/index.js +1 -2
  344. package/build/vcs/local.js +2 -2
  345. package/build/webhooks/formatWebhook.js +1 -2
  346. package/build/webhooks/input.js +3 -4
  347. package/build/worker/assets.d.ts +0 -1
  348. package/build/worker/assets.js +6 -7
  349. package/build/worker/deployment.js +8 -9
  350. package/build/worker/mutations.d.ts +1 -1
  351. package/build/worker/queries.d.ts +4 -4
  352. package/build/worker/upload.d.ts +0 -2
  353. package/build/worker/upload.js +5 -6
  354. package/build/worker/utils/logs.js +5 -5
  355. package/build/worker/utils/multipart.js +3 -3
  356. package/oclif.manifest.json +35 -1
  357. package/package.json +13 -11
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printJsonOnlyOutput = exports.enableJsonOutput = void 0;
3
+ exports.enableJsonOutput = enableJsonOutput;
4
+ exports.printJsonOnlyOutput = printJsonOnlyOutput;
4
5
  const tslib_1 = require("tslib");
5
6
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
7
  const log_1 = tslib_1.__importDefault(require("../log"));
@@ -12,7 +13,6 @@ function enableJsonOutput() {
12
13
  stdoutWrite = process.stdout.write;
13
14
  process.stdout.write = process.stderr.write.bind(process.stderr);
14
15
  }
15
- exports.enableJsonOutput = enableJsonOutput;
16
16
  function printJsonOnlyOutput(value) {
17
17
  (0, assert_1.default)(stdoutWrite, 'this should only be called with --json flag');
18
18
  try {
@@ -23,7 +23,6 @@ function printJsonOnlyOutput(value) {
23
23
  process.stdout.write = process.stderr.write.bind(process.stderr);
24
24
  }
25
25
  }
26
- exports.printJsonOnlyOutput = printJsonOnlyOutput;
27
26
  function sanitizeValue(value) {
28
27
  if (Array.isArray(value)) {
29
28
  return value.map(val => sanitizeValue(val));
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { IOSConfig } from '@expo/config-plugins';
3
2
  export declare function readPlistAsync(plistPath: string): Promise<object | null>;
4
3
  export declare function writePlistAsync(plistPath: string, plistObject: IOSConfig.ExpoPlist | IOSConfig.InfoPlist): Promise<void>;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseBinaryPlistBuffer = exports.writePlistAsync = exports.readPlistAsync = void 0;
3
+ exports.readPlistAsync = readPlistAsync;
4
+ exports.writePlistAsync = writePlistAsync;
5
+ exports.parseBinaryPlistBuffer = parseBinaryPlistBuffer;
4
6
  const tslib_1 = require("tslib");
5
7
  const plist_1 = tslib_1.__importDefault(require("@expo/plist"));
6
8
  const bplist_parser_1 = tslib_1.__importDefault(require("bplist-parser"));
@@ -21,13 +23,11 @@ async function readPlistAsync(plistPath) {
21
23
  return null;
22
24
  }
23
25
  }
24
- exports.readPlistAsync = readPlistAsync;
25
26
  async function writePlistAsync(plistPath, plistObject) {
26
27
  const contents = plist_1.default.build(plistObject);
27
28
  await fs_extra_1.default.mkdirp(path_1.default.dirname(plistPath));
28
29
  await fs_extra_1.default.writeFile(plistPath, contents);
29
30
  }
30
- exports.writePlistAsync = writePlistAsync;
31
31
  const CHAR_CHEVRON_OPEN = 60;
32
32
  const CHAR_B_LOWER = 98;
33
33
  function parseBinaryPlistBuffer(contents) {
@@ -49,4 +49,3 @@ function parseBinaryPlistBuffer(contents) {
49
49
  throw new Error(`Cannot parse plist of type byte (0x${contents[0].toString(16)})`);
50
50
  }
51
51
  }
52
- exports.parseBinaryPlistBuffer = parseBinaryPlistBuffer;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pollForBackgroundJobReceiptAsync = exports.BackgroundJobReceiptPollError = exports.BackgroundJobReceiptPollErrorType = void 0;
3
+ exports.BackgroundJobReceiptPollError = exports.BackgroundJobReceiptPollErrorType = void 0;
4
+ exports.pollForBackgroundJobReceiptAsync = pollForBackgroundJobReceiptAsync;
4
5
  const core_1 = require("@urql/core");
5
6
  const set_interval_async_1 = require("set-interval-async");
6
7
  const generated_1 = require("../graphql/generated");
@@ -89,4 +90,3 @@ async function pollForBackgroundJobReceiptAsync(graphqlClient, backgroundJobRece
89
90
  }, options?.pollInterval ?? 1000);
90
91
  });
91
92
  }
92
- exports.pollForBackgroundJobReceiptAsync = pollForBackgroundJobReceiptAsync;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.maybePrintBuildProfileDeprecationWarningsAsync = exports.clearHasPrintedDeprecationWarnings = exports.getProfilesAsync = void 0;
3
+ exports.getProfilesAsync = getProfilesAsync;
4
+ exports.clearHasPrintedDeprecationWarnings = clearHasPrintedDeprecationWarnings;
5
+ exports.maybePrintBuildProfileDeprecationWarningsAsync = maybePrintBuildProfileDeprecationWarningsAsync;
4
6
  const tslib_1 = require("tslib");
5
7
  const eas_json_1 = require("@expo/eas-json");
6
8
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
@@ -23,7 +25,6 @@ async function getProfilesAsync({ easJsonAccessor, platforms, profileName, type,
23
25
  });
24
26
  return await Promise.all(results);
25
27
  }
26
- exports.getProfilesAsync = getProfilesAsync;
27
28
  async function maybeSetNodeVersionFromFileAsync(projectDir, profile) {
28
29
  if (profile?.node) {
29
30
  return;
@@ -66,7 +67,6 @@ let hasPrintedDeprecationWarnings = false;
66
67
  function clearHasPrintedDeprecationWarnings() {
67
68
  hasPrintedDeprecationWarnings = false;
68
69
  }
69
- exports.clearHasPrintedDeprecationWarnings = clearHasPrintedDeprecationWarnings;
70
70
  async function maybePrintBuildProfileDeprecationWarningsAsync(easJsonAccessor, platform, profileName) {
71
71
  if (hasPrintedDeprecationWarnings) {
72
72
  return;
@@ -87,4 +87,3 @@ async function maybePrintBuildProfileDeprecationWarningsAsync(easJsonAccessor, p
87
87
  }
88
88
  hasPrintedDeprecationWarnings = true;
89
89
  }
90
- exports.maybePrintBuildProfileDeprecationWarningsAsync = maybePrintBuildProfileDeprecationWarningsAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createProgressTracker = void 0;
3
+ exports.createProgressTracker = createProgressTracker;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const node_crypto_1 = require("node:crypto");
@@ -62,4 +62,3 @@ function createProgressTracker({ total, message, completedMessage, }) {
62
62
  }
63
63
  };
64
64
  }
65
- exports.createProgressTracker = createProgressTracker;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sleepAsync = void 0;
3
+ exports.sleepAsync = sleepAsync;
4
4
  /**
5
5
  * Returns a promise that will be resolved after given ms milliseconds.
6
6
  *
@@ -10,4 +10,3 @@ exports.sleepAsync = void 0;
10
10
  async function sleepAsync(ms) {
11
11
  await new Promise(res => setTimeout(res, ms));
12
12
  }
13
- exports.sleepAsync = sleepAsync;
@@ -1,6 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.promptPlatformAsync = exports.promptVariableNameAsync = exports.promptVariableValueAsync = exports.promptVariableEnvironmentAsync = exports.promptVariableVisibilityAsync = exports.parseVisibility = exports.promptVariableTypeAsync = exports.getProjectEnvironmentVariableEnvironmentsAsync = void 0;
3
+ exports.getProjectEnvironmentVariableEnvironmentsAsync = getProjectEnvironmentVariableEnvironmentsAsync;
4
+ exports.promptVariableTypeAsync = promptVariableTypeAsync;
5
+ exports.parseVisibility = parseVisibility;
6
+ exports.promptVariableVisibilityAsync = promptVariableVisibilityAsync;
7
+ exports.promptVariableEnvironmentAsync = promptVariableEnvironmentAsync;
8
+ exports.promptVariableValueAsync = promptVariableValueAsync;
9
+ exports.promptVariableNameAsync = promptVariableNameAsync;
10
+ exports.promptPlatformAsync = promptPlatformAsync;
4
11
  const tslib_1 = require("tslib");
5
12
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
13
  const environment_1 = require("../build/utils/environment");
@@ -18,7 +25,6 @@ async function getProjectEnvironmentVariableEnvironmentsAsync(graphqlClient, pro
18
25
  throw new Error('Failed to fetch available environments');
19
26
  }
20
27
  }
21
- exports.getProjectEnvironmentVariableEnvironmentsAsync = getProjectEnvironmentVariableEnvironmentsAsync;
22
28
  const CUSTOM_ENVIRONMENT_VALUE = '~~CUSTOM~~';
23
29
  async function promptVariableTypeAsync(nonInteractive, initialType) {
24
30
  if (nonInteractive) {
@@ -38,7 +44,6 @@ async function promptVariableTypeAsync(nonInteractive, initialType) {
38
44
  initial: initialType,
39
45
  });
40
46
  }
41
- exports.promptVariableTypeAsync = promptVariableTypeAsync;
42
47
  function parseVisibility(stringVisibility) {
43
48
  switch (stringVisibility) {
44
49
  case 'plaintext':
@@ -51,7 +56,6 @@ function parseVisibility(stringVisibility) {
51
56
  throw new Error(`Invalid visibility: ${stringVisibility}`);
52
57
  }
53
58
  }
54
- exports.parseVisibility = parseVisibility;
55
59
  async function promptCustomEnvironmentAsync() {
56
60
  const { customEnvironment } = await (0, prompts_1.promptAsync)({
57
61
  type: 'text',
@@ -91,7 +95,6 @@ async function promptVariableVisibilityAsync(nonInteractive, selectedVisibility)
91
95
  },
92
96
  ]);
93
97
  }
94
- exports.promptVariableVisibilityAsync = promptVariableVisibilityAsync;
95
98
  async function promptVariableEnvironmentAsync({ nonInteractive, selectedEnvironments, multiple = false, canEnterCustomEnvironment = false, graphqlClient, projectId, }) {
96
99
  if (nonInteractive) {
97
100
  throw new Error('The `--environment` flag must be set when running in `--non-interactive` mode.');
@@ -143,7 +146,6 @@ async function promptVariableEnvironmentAsync({ nonInteractive, selectedEnvironm
143
146
  }
144
147
  return environments;
145
148
  }
146
- exports.promptVariableEnvironmentAsync = promptVariableEnvironmentAsync;
147
149
  async function promptVariableValueAsync({ nonInteractive, required = true, hidden = false, filePath = false, initial, }) {
148
150
  if (nonInteractive && required) {
149
151
  throw new Error(`Environment variable needs 'value' to be specified when running in non-interactive mode. Run the command with ${chalk_1.default.bold('--value VARIABLE_VALUE')} flag to fix the issue`);
@@ -168,7 +170,6 @@ async function promptVariableValueAsync({ nonInteractive, required = true, hidde
168
170
  }
169
171
  return variableValue;
170
172
  }
171
- exports.promptVariableValueAsync = promptVariableValueAsync;
172
173
  async function promptVariableNameAsync(nonInteractive, initialValue) {
173
174
  const validationMessage = 'Variable name may not be empty.';
174
175
  if (nonInteractive) {
@@ -194,7 +195,6 @@ async function promptVariableNameAsync(nonInteractive, initialValue) {
194
195
  }
195
196
  return name;
196
197
  }
197
- exports.promptVariableNameAsync = promptVariableNameAsync;
198
198
  async function promptPlatformAsync({ message, }) {
199
199
  const { platform } = await (0, prompts_1.promptAsync)({
200
200
  type: 'select',
@@ -217,4 +217,3 @@ async function promptPlatformAsync({ message, }) {
217
217
  });
218
218
  return platform;
219
219
  }
220
- exports.promptPlatformAsync = promptPlatformAsync;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginatedQueryWithSelectPromptAsync = exports.paginatedQueryWithConfirmPromptAsync = void 0;
3
+ exports.paginatedQueryWithConfirmPromptAsync = paginatedQueryWithConfirmPromptAsync;
4
+ exports.paginatedQueryWithSelectPromptAsync = paginatedQueryWithSelectPromptAsync;
4
5
  const tslib_1 = require("tslib");
5
6
  const uniqBy_1 = tslib_1.__importDefault(require("./expodash/uniqBy"));
6
7
  const prompts_1 = require("../prompts");
@@ -8,7 +9,6 @@ const fetchMoreValue = '_fetchMore';
8
9
  async function paginatedQueryWithConfirmPromptAsync(queryArgs) {
9
10
  await paginatedQueryWithConfirmPromptInternalAsync(queryArgs, []);
10
11
  }
11
- exports.paginatedQueryWithConfirmPromptAsync = paginatedQueryWithConfirmPromptAsync;
12
12
  async function paginatedQueryWithConfirmPromptInternalAsync({ limit, offset, queryToPerform, promptOptions, }, accumulator) {
13
13
  // query an extra item to determine if there are more pages left
14
14
  const paginatedItems = await queryToPerform(limit + 1, offset);
@@ -36,7 +36,6 @@ async function paginatedQueryWithConfirmPromptInternalAsync({ limit, offset, que
36
36
  async function paginatedQueryWithSelectPromptAsync(queryArgs) {
37
37
  return await paginatedQueryWithSelectPromptInternalAsync(queryArgs, []);
38
38
  }
39
- exports.paginatedQueryWithSelectPromptAsync = paginatedQueryWithSelectPromptAsync;
40
39
  async function paginatedQueryWithSelectPromptInternalAsync({ limit, offset, queryToPerform, promptOptions, }, accumulator) {
41
40
  // query an extra item to determine if there are more pages left
42
41
  const paginatedItems = await queryToPerform(limit + 1, offset);
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchEntireDatasetAsync = exports.PAGE_SIZE = exports.NEXT_PAGE_OPTION = exports.PREV_PAGE_OPTION = exports.selectPaginatedAsync = exports.FilterPagination = void 0;
3
+ exports.PAGE_SIZE = exports.NEXT_PAGE_OPTION = exports.PREV_PAGE_OPTION = exports.FilterPagination = void 0;
4
+ exports.selectPaginatedAsync = selectPaginatedAsync;
5
+ exports.fetchEntireDatasetAsync = fetchEntireDatasetAsync;
4
6
  const tslib_1 = require("tslib");
5
7
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
8
  const cli_progress_1 = tslib_1.__importDefault(require("cli-progress"));
@@ -29,7 +31,7 @@ const prompts_1 = require("../prompts");
29
31
  * @throws {Error} - If an error occurs during execution of the query or pagination.
30
32
  */
31
33
  class FilterPagination {
32
- static async getPageAsync({ queryParams, queryAsync, filterPredicate, internalBatchSize = 100, maxNodesFetched = 10000, beforeEachQuery, afterEachQuery, }) {
34
+ static async getPageAsync({ queryParams, queryAsync, filterPredicate, internalBatchSize = 100, maxNodesFetched = 10_000, beforeEachQuery, afterEachQuery, }) {
33
35
  if (this.isFirstAfter(queryParams)) {
34
36
  return await this.getFirstItemsAsync(queryParams, {
35
37
  queryAsync,
@@ -143,7 +145,6 @@ async function selectPaginatedAsync({ queryAsync, getTitleAsync, printedType, pa
143
145
  queryParams: { first: pageSize },
144
146
  });
145
147
  }
146
- exports.selectPaginatedAsync = selectPaginatedAsync;
147
148
  exports.PREV_PAGE_OPTION = {
148
149
  value: Symbol('PREV_PAGE'),
149
150
  title: '⬆️ Previous page',
@@ -252,4 +253,3 @@ async function fetchEntireDatasetAsync({ paginatedGetterAsync, progressBarLabel,
252
253
  }
253
254
  return data;
254
255
  }
255
- exports.fetchEntireDatasetAsync = fetchEntireDatasetAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.maybeWarnAboutEasOutagesAsync = void 0;
3
+ exports.maybeWarnAboutEasOutagesAsync = maybeWarnAboutEasOutagesAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const generated_1 = require("../graphql/generated");
@@ -12,7 +12,6 @@ async function maybeWarnAboutEasOutagesAsync(graphqlClient, serviceNames) {
12
12
  warnAboutServiceOutage(service);
13
13
  }
14
14
  }
15
- exports.maybeWarnAboutEasOutagesAsync = maybeWarnAboutEasOutagesAsync;
16
15
  const humanReadableServiceName = {
17
16
  [generated_1.StatuspageServiceName.EasBuild]: 'EAS Build',
18
17
  [generated_1.StatuspageServiceName.EasSubmit]: 'EAS Submit',
@@ -1,16 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatMilliseconds = exports.endTimer = exports.startTimer = exports.hasTimer = void 0;
3
+ exports.hasTimer = hasTimer;
4
+ exports.startTimer = startTimer;
5
+ exports.endTimer = endTimer;
6
+ exports.formatMilliseconds = formatMilliseconds;
4
7
  const LABEL = 'DEFAULT';
5
8
  const startTimes = {};
6
9
  function hasTimer(label) {
7
10
  return startTimes[label] ?? null;
8
11
  }
9
- exports.hasTimer = hasTimer;
10
12
  function startTimer(label = LABEL) {
11
13
  startTimes[label] = Date.now();
12
14
  }
13
- exports.startTimer = startTimer;
14
15
  function endTimer(label = LABEL, clear = true) {
15
16
  const endTime = Date.now();
16
17
  const startTime = startTimes[label];
@@ -23,7 +24,6 @@ function endTimer(label = LABEL, clear = true) {
23
24
  }
24
25
  throw new Error(`Timer '${label}' has not be started yet`);
25
26
  }
26
- exports.endTimer = endTimer;
27
27
  /**
28
28
  * Optimally format milliseconds
29
29
  *
@@ -52,4 +52,3 @@ function formatMilliseconds(duration) {
52
52
  }
53
53
  return portions.join(' ');
54
54
  }
55
- exports.formatMilliseconds = formatMilliseconds;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.displayOverageWarning = exports.createProgressBar = exports.calculatePercentUsed = exports.maybeWarnAboutUsageOveragesAsync = void 0;
3
+ exports.maybeWarnAboutUsageOveragesAsync = maybeWarnAboutUsageOveragesAsync;
4
+ exports.calculatePercentUsed = calculatePercentUsed;
5
+ exports.createProgressBar = createProgressBar;
6
+ exports.displayOverageWarning = displayOverageWarning;
4
7
  const tslib_1 = require("tslib");
5
8
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
9
  const AccountUsageQuery_1 = require("../../graphql/queries/AccountUsageQuery");
@@ -25,14 +28,12 @@ async function maybeWarnAboutUsageOveragesAsync({ graphqlClient, accountId, }) {
25
28
  log_1.default.debug(`Failed to fetch usage data: ${error}`);
26
29
  }
27
30
  }
28
- exports.maybeWarnAboutUsageOveragesAsync = maybeWarnAboutUsageOveragesAsync;
29
31
  function calculatePercentUsed(value, limit) {
30
32
  if (limit === 0) {
31
33
  return 0;
32
34
  }
33
35
  return Math.min(Math.floor((value / limit) * 100), 100);
34
36
  }
35
- exports.calculatePercentUsed = calculatePercentUsed;
36
37
  function createProgressBar(percentUsed, width = 30) {
37
38
  const filledWidth = Math.round((percentUsed / 100) * width);
38
39
  const emptyWidth = width - filledWidth;
@@ -40,7 +41,6 @@ function createProgressBar(percentUsed, width = 30) {
40
41
  const empty = '░'.repeat(emptyWidth);
41
42
  return `${filled}${empty}`;
42
43
  }
43
- exports.createProgressBar = createProgressBar;
44
44
  function displayOverageWarning({ percentUsed, hasFreePlan, name, }) {
45
45
  log_1.default.warn(chalk_1.default.bold(`You've used ${percentUsed}% of your included build credits for this month. `) +
46
46
  createProgressBar(percentUsed));
@@ -54,6 +54,4 @@ function displayOverageWarning({ percentUsed, hasFreePlan, name, }) {
54
54
  dim: false,
55
55
  });
56
56
  log_1.default.warn(warning);
57
- log_1.default.newLine();
58
57
  }
59
- exports.displayOverageWarning = displayOverageWarning;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatVariable = exports.performForEnvironmentsAsync = exports.formatVariableValue = exports.formatVariableName = void 0;
3
+ exports.formatVariableName = formatVariableName;
4
+ exports.formatVariableValue = formatVariableValue;
5
+ exports.performForEnvironmentsAsync = performForEnvironmentsAsync;
6
+ exports.formatVariable = formatVariable;
4
7
  const tslib_1 = require("tslib");
5
8
  const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
6
9
  const formatFields_1 = tslib_1.__importDefault(require("./formatFields"));
@@ -14,7 +17,6 @@ function formatVariableName(variable) {
14
17
  const visibility = variable.visibility;
15
18
  return `${name} | ${scope} | ${type} | ${visibility} | ${environments} | Updated at: ${updatedAt}`;
16
19
  }
17
- exports.formatVariableName = formatVariableName;
18
20
  function formatVariableValue(variable) {
19
21
  // TODO: Add Learn more link
20
22
  if (variable.value) {
@@ -34,12 +36,10 @@ function formatVariableValue(variable) {
34
36
  }
35
37
  return '*****';
36
38
  }
37
- exports.formatVariableValue = formatVariableValue;
38
39
  async function performForEnvironmentsAsync(environments, fun) {
39
40
  const selectedEnvironments = environments ?? [undefined];
40
41
  return await Promise.all(selectedEnvironments.map(env => fun(env)));
41
42
  }
42
- exports.performForEnvironmentsAsync = performForEnvironmentsAsync;
43
43
  function formatVariable(variable) {
44
44
  return (0, formatFields_1.default)([
45
45
  { label: 'ID', value: variable.id },
@@ -59,4 +59,3 @@ function formatVariable(variable) {
59
59
  { label: 'Updated at', value: (0, dateformat_1.default)(variable.updatedAt, 'mmm dd HH:MM:ss') },
60
60
  ]);
61
61
  }
62
- exports.formatVariable = formatVariable;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isGitCaseSensitiveAsync = void 0;
3
+ exports.isGitCaseSensitiveAsync = isGitCaseSensitiveAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const PackageManagerUtils = tslib_1.__importStar(require("@expo/package-manager"));
6
6
  const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
@@ -401,7 +401,6 @@ async function isGitCaseSensitiveAsync(cwd) {
401
401
  return undefined;
402
402
  }
403
403
  }
404
- exports.isGitCaseSensitiveAsync = isGitCaseSensitiveAsync;
405
404
  async function setGitCaseSensitivityAsync(enable, cwd) {
406
405
  // we are assuming that if someone sets that on non-macos device then
407
406
  // they know what they are doing
package/build/vcs/git.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.gitDiffAsync = exports.getGitDiffOutputAsync = exports.gitStatusAsync = exports.doesGitRepoExistAsync = exports.isGitInstalledAsync = void 0;
3
+ exports.isGitInstalledAsync = isGitInstalledAsync;
4
+ exports.doesGitRepoExistAsync = doesGitRepoExistAsync;
5
+ exports.gitStatusAsync = gitStatusAsync;
6
+ exports.getGitDiffOutputAsync = getGitDiffOutputAsync;
7
+ exports.gitDiffAsync = gitDiffAsync;
4
8
  const tslib_1 = require("tslib");
5
9
  const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
6
10
  async function isGitInstalledAsync() {
@@ -15,7 +19,6 @@ async function isGitInstalledAsync() {
15
19
  }
16
20
  return true;
17
21
  }
18
- exports.isGitInstalledAsync = isGitInstalledAsync;
19
22
  async function doesGitRepoExistAsync(cwd) {
20
23
  try {
21
24
  await (0, spawn_async_1.default)('git', ['rev-parse', '--git-dir'], {
@@ -27,19 +30,16 @@ async function doesGitRepoExistAsync(cwd) {
27
30
  return false;
28
31
  }
29
32
  }
30
- exports.doesGitRepoExistAsync = doesGitRepoExistAsync;
31
33
  async function gitStatusAsync({ showUntracked, cwd }) {
32
34
  return (await (0, spawn_async_1.default)('git', ['status', '-s', showUntracked ? '-uall' : '-uno'], {
33
35
  cwd,
34
36
  })).stdout;
35
37
  }
36
- exports.gitStatusAsync = gitStatusAsync;
37
38
  async function getGitDiffOutputAsync(cwd) {
38
39
  return (await (0, spawn_async_1.default)('git', ['--no-pager', 'diff'], {
39
40
  cwd,
40
41
  })).stdout;
41
42
  }
42
- exports.getGitDiffOutputAsync = getGitDiffOutputAsync;
43
43
  async function gitDiffAsync({ withPager = false, cwd, }) {
44
44
  const options = withPager ? [] : ['--no-pager'];
45
45
  try {
@@ -57,4 +57,3 @@ async function gitDiffAsync({ withPager = false, cwd, }) {
57
57
  throw error;
58
58
  }
59
59
  }
60
- exports.gitDiffAsync = gitDiffAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveVcsClient = void 0;
3
+ exports.resolveVcsClient = resolveVcsClient;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const git_1 = tslib_1.__importDefault(require("./clients/git"));
@@ -23,4 +23,3 @@ function resolveVcsClient(requireCommit = false) {
23
23
  }
24
24
  return new git_1.default({ requireCommit });
25
25
  }
26
- exports.resolveVcsClient = resolveVcsClient;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeShallowCopyAsync = exports.Ignore = exports.EASIGNORE_FILENAME = void 0;
3
+ exports.Ignore = exports.EASIGNORE_FILENAME = void 0;
4
+ exports.makeShallowCopyAsync = makeShallowCopyAsync;
4
5
  const tslib_1 = require("tslib");
5
6
  const fast_glob_1 = tslib_1.__importDefault(require("fast-glob"));
6
7
  const promises_1 = tslib_1.__importDefault(require("fs/promises"));
@@ -114,4 +115,3 @@ async function makeShallowCopyAsync(_src, dst) {
114
115
  },
115
116
  });
116
117
  }
117
- exports.makeShallowCopyAsync = makeShallowCopyAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatWebhook = void 0;
3
+ exports.formatWebhook = formatWebhook;
4
4
  const tslib_1 = require("tslib");
5
5
  const formatFields_1 = tslib_1.__importDefault(require("../utils/formatFields"));
6
6
  function formatWebhook(webhook) {
@@ -12,4 +12,3 @@ function formatWebhook(webhook) {
12
12
  { label: 'Updated at', value: new Date(webhook.updatedAt).toLocaleString() },
13
13
  ]);
14
14
  }
15
- exports.formatWebhook = formatWebhook;
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateSecret = exports.validateURL = exports.prepareInputParamsAsync = void 0;
3
+ exports.prepareInputParamsAsync = prepareInputParamsAsync;
4
+ exports.validateURL = validateURL;
5
+ exports.validateSecret = validateSecret;
4
6
  const tslib_1 = require("tslib");
5
7
  const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
6
8
  const url_1 = require("url");
@@ -66,7 +68,6 @@ async function prepareInputParamsAsync({ event: maybeEvent, url: maybeUrl, secre
66
68
  secret: (0, nullthrows_1.default)(secret),
67
69
  };
68
70
  }
69
- exports.prepareInputParamsAsync = prepareInputParamsAsync;
70
71
  function validateURL(url) {
71
72
  try {
72
73
  // eslint-disable-next-line no-new
@@ -77,8 +78,6 @@ function validateURL(url) {
77
78
  return false;
78
79
  }
79
80
  }
80
- exports.validateURL = validateURL;
81
81
  function validateSecret(secret) {
82
82
  return secret.length >= 16 && secret.length <= 1000;
83
83
  }
84
- exports.validateSecret = validateSecret;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { GzipOptions } from 'minizlib';
3
2
  import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
4
3
  interface AssetMapOptions {
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.packFilesIterableAsync = exports.listWorkerFilesAsync = exports.createManifestAsync = exports.assetsToAssetsMap = exports.getRoutesConfigAsync = exports.collectAssetsAsync = void 0;
3
+ exports.collectAssetsAsync = collectAssetsAsync;
4
+ exports.getRoutesConfigAsync = getRoutesConfigAsync;
5
+ exports.assetsToAssetsMap = assetsToAssetsMap;
6
+ exports.createManifestAsync = createManifestAsync;
7
+ exports.listWorkerFilesAsync = listWorkerFilesAsync;
8
+ exports.packFilesIterableAsync = packFilesIterableAsync;
4
9
  const tslib_1 = require("tslib");
5
10
  const env_1 = require("@expo/env");
6
11
  const mime_1 = tslib_1.__importDefault(require("mime"));
@@ -106,7 +111,6 @@ async function collectAssetsAsync(assetPath, options) {
106
111
  }
107
112
  return assets;
108
113
  }
109
- exports.collectAssetsAsync = collectAssetsAsync;
110
114
  async function getRoutesConfigAsync(assetPath) {
111
115
  if (assetPath) {
112
116
  for (const candidatePath of EXPO_ROUTES_PATHS) {
@@ -125,7 +129,6 @@ async function getRoutesConfigAsync(assetPath) {
125
129
  }
126
130
  return null;
127
131
  }
128
- exports.getRoutesConfigAsync = getRoutesConfigAsync;
129
132
  /** Converts array of asset entries into AssetMap (as sent to deployment-api) */
130
133
  function assetsToAssetsMap(assets) {
131
134
  return assets.reduce((map, entry) => {
@@ -136,7 +139,6 @@ function assetsToAssetsMap(assets) {
136
139
  return map;
137
140
  }, Object.create(null));
138
141
  }
139
- exports.assetsToAssetsMap = assetsToAssetsMap;
140
142
  /** Creates a manifest configuration sent up for deployment */
141
143
  async function createManifestAsync(params, graphqlClient) {
142
144
  // Resolve .env file variables
@@ -162,7 +164,6 @@ async function createManifestAsync(params, graphqlClient) {
162
164
  const manifest = { env };
163
165
  return { conflictingVariableNames, manifest };
164
166
  }
165
- exports.createManifestAsync = createManifestAsync;
166
167
  /** Reads worker files while normalizing sourcemaps and providing normalized paths */
167
168
  async function* listWorkerFilesAsync(workerPath) {
168
169
  for await (const file of listFilesRecursively(workerPath)) {
@@ -173,7 +174,6 @@ async function* listWorkerFilesAsync(workerPath) {
173
174
  };
174
175
  }
175
176
  }
176
- exports.listWorkerFilesAsync = listWorkerFilesAsync;
177
177
  /** Packs file entries into a tar.gz file (path to tgz returned) */
178
178
  async function packFilesIterableAsync(iterable, options) {
179
179
  const writePath = `${await createTempWritePathAsync()}.tar.gz`;
@@ -188,4 +188,3 @@ async function packFilesIterableAsync(iterable, options) {
188
188
  await writeTask$;
189
189
  return writePath;
190
190
  }
191
- exports.packFilesIterableAsync = packFilesIterableAsync;
@@ -1,6 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteWorkerDeploymentAsync = exports.selectWorkerDeploymentAliasOnAppAsync = exports.deleteWorkerDeploymentAliasAsync = exports.selectWorkerDeploymentOnAppAsync = exports.assignWorkerDeploymentProductionAsync = exports.assignWorkerDeploymentAliasAsync = exports.assignDevDomainNameAsync = exports.getSignedDeploymentUrlAsync = void 0;
3
+ exports.getSignedDeploymentUrlAsync = getSignedDeploymentUrlAsync;
4
+ exports.assignDevDomainNameAsync = assignDevDomainNameAsync;
5
+ exports.assignWorkerDeploymentAliasAsync = assignWorkerDeploymentAliasAsync;
6
+ exports.assignWorkerDeploymentProductionAsync = assignWorkerDeploymentProductionAsync;
7
+ exports.selectWorkerDeploymentOnAppAsync = selectWorkerDeploymentOnAppAsync;
8
+ exports.deleteWorkerDeploymentAliasAsync = deleteWorkerDeploymentAliasAsync;
9
+ exports.selectWorkerDeploymentAliasOnAppAsync = selectWorkerDeploymentAliasOnAppAsync;
10
+ exports.deleteWorkerDeploymentAsync = deleteWorkerDeploymentAsync;
4
11
  const tslib_1 = require("tslib");
5
12
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
13
  const mutations_1 = require("./mutations");
@@ -35,7 +42,6 @@ async function getSignedDeploymentUrlAsync(graphqlClient, options) {
35
42
  return await getSignedDeploymentUrlAsync(graphqlClient, options);
36
43
  }
37
44
  }
38
- exports.getSignedDeploymentUrlAsync = getSignedDeploymentUrlAsync;
39
45
  const DEV_DOMAIN_INVALID_START_END_CHARACTERS = /^[^a-z0-9]+|[^a-z0-9-]+$/;
40
46
  const DEV_DOMAIN_INVALID_REPLACEMENT_HYPHEN = /[^a-z0-9-]+/;
41
47
  const DEV_DOMAIN_INVALID_MULTIPLE_HYPHENS = /(-{2,})/;
@@ -128,7 +134,6 @@ async function assignDevDomainNameAsync({ graphqlClient, appId, nonInteractive,
128
134
  return await assignDevDomainNameAsync({ graphqlClient, appId, nonInteractive });
129
135
  }
130
136
  }
131
- exports.assignDevDomainNameAsync = assignDevDomainNameAsync;
132
137
  async function assignWorkerDeploymentAliasAsync({ graphqlClient, appId, deploymentId, aliasName, }) {
133
138
  return await mutations_1.DeploymentsMutation.assignAliasAsync(graphqlClient, {
134
139
  appId,
@@ -136,7 +141,6 @@ async function assignWorkerDeploymentAliasAsync({ graphqlClient, appId, deployme
136
141
  aliasName,
137
142
  });
138
143
  }
139
- exports.assignWorkerDeploymentAliasAsync = assignWorkerDeploymentAliasAsync;
140
144
  async function assignWorkerDeploymentProductionAsync({ graphqlClient, appId, deploymentId, }) {
141
145
  return await mutations_1.DeploymentsMutation.assignAliasAsync(graphqlClient, {
142
146
  appId,
@@ -144,7 +148,6 @@ async function assignWorkerDeploymentProductionAsync({ graphqlClient, appId, dep
144
148
  aliasName: null, // this will assign the deployment as production
145
149
  });
146
150
  }
147
- exports.assignWorkerDeploymentProductionAsync = assignWorkerDeploymentProductionAsync;
148
151
  async function selectWorkerDeploymentOnAppAsync({ graphqlClient, appId, selectTitle, pageSize, }) {
149
152
  return await (0, relay_1.selectPaginatedAsync)({
150
153
  pageSize: pageSize ?? 25,
@@ -156,14 +159,12 @@ async function selectWorkerDeploymentOnAppAsync({ graphqlClient, appId, selectTi
156
159
  getTitleAsync: async (deployment) => (0, chalk_1.default) `${deployment.deploymentIdentifier}{dim - created at: ${new Date(deployment.createdAt).toLocaleString()}}`,
157
160
  });
158
161
  }
159
- exports.selectWorkerDeploymentOnAppAsync = selectWorkerDeploymentOnAppAsync;
160
162
  async function deleteWorkerDeploymentAliasAsync({ graphqlClient, appId, aliasName, }) {
161
163
  return await mutations_1.DeploymentsMutation.deleteAliasAsync(graphqlClient, {
162
164
  appId,
163
165
  aliasName,
164
166
  });
165
167
  }
166
- exports.deleteWorkerDeploymentAliasAsync = deleteWorkerDeploymentAliasAsync;
167
168
  async function selectWorkerDeploymentAliasOnAppAsync({ graphqlClient, appId, selectTitle, pageSize, }) {
168
169
  return await (0, relay_1.selectPaginatedAsync)({
169
170
  pageSize: pageSize ?? 25,
@@ -175,11 +176,9 @@ async function selectWorkerDeploymentAliasOnAppAsync({ graphqlClient, appId, sel
175
176
  getTitleAsync: async (alias) => (0, chalk_1.default) `${alias.aliasName ?? 'production'}{dim - ${alias.url}}`,
176
177
  });
177
178
  }
178
- exports.selectWorkerDeploymentAliasOnAppAsync = selectWorkerDeploymentAliasOnAppAsync;
179
179
  async function deleteWorkerDeploymentAsync({ graphqlClient, appId, deploymentIdentifier, }) {
180
180
  return await mutations_1.DeploymentsMutation.deleteWorkerDeploymentAsync(graphqlClient, {
181
181
  appId,
182
182
  deploymentIdentifier,
183
183
  });
184
184
  }
185
- exports.deleteWorkerDeploymentAsync = deleteWorkerDeploymentAsync;