eas-cli 0.52.0 → 0.53.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 (57) hide show
  1. package/README.md +44 -44
  2. package/build/build/android/version.js +1 -1
  3. package/build/build/build.js +35 -26
  4. package/build/build/local.js +1 -1
  5. package/build/commands/branch/create.js +2 -2
  6. package/build/commands/branch/delete.js +2 -2
  7. package/build/commands/branch/list.js +2 -2
  8. package/build/commands/branch/rename.js +2 -2
  9. package/build/commands/branch/view.js +2 -2
  10. package/build/commands/build/cancel.js +3 -3
  11. package/build/commands/build/configure.js +2 -2
  12. package/build/commands/build/inspect.js +1 -1
  13. package/build/commands/build/list.js +2 -2
  14. package/build/commands/build/view.js +2 -2
  15. package/build/commands/channel/create.js +2 -2
  16. package/build/commands/channel/delete.js +2 -2
  17. package/build/commands/channel/edit.js +2 -2
  18. package/build/commands/channel/list.js +2 -2
  19. package/build/commands/channel/rollout.js +2 -2
  20. package/build/commands/channel/view.js +3 -3
  21. package/build/commands/device/delete.js +2 -2
  22. package/build/commands/device/list.js +2 -2
  23. package/build/commands/device/view.js +2 -2
  24. package/build/commands/project/info.js +2 -2
  25. package/build/commands/project/init.js +2 -2
  26. package/build/commands/secret/create.js +2 -2
  27. package/build/commands/secret/delete.js +2 -2
  28. package/build/commands/secret/list.js +2 -2
  29. package/build/commands/submit.js +2 -2
  30. package/build/commands/update/configure.js +2 -3
  31. package/build/commands/update/index.js +3 -5
  32. package/build/commands/update/list.js +2 -2
  33. package/build/commands/webhook/create.js +2 -2
  34. package/build/commands/webhook/delete.js +2 -2
  35. package/build/commands/webhook/list.js +2 -2
  36. package/build/credentials/android/utils/googleServiceAccountKey.js +1 -1
  37. package/build/credentials/android/utils/keystore.js +1 -1
  38. package/build/credentials/android/utils/keystoreNew.js +2 -2
  39. package/build/credentials/context.js +2 -3
  40. package/build/credentials/credentialsJson/read.js +1 -1
  41. package/build/credentials/ios/utils/provisioningProfile.js +1 -1
  42. package/build/credentials/ios/validators/validateProvisioningProfile.js +1 -1
  43. package/build/graphql/generated.d.ts +66 -21
  44. package/build/graphql/generated.js +5 -0
  45. package/build/project/android/applicationId.js +1 -1
  46. package/build/project/ios/bundleIdentifier.js +1 -1
  47. package/build/submit/ArchiveSource.js +1 -1
  48. package/build/submit/utils/files.js +1 -1
  49. package/build/submit/utils/logs.js +1 -1
  50. package/build/update/android/UpdatesModule.js +2 -2
  51. package/build/update/ios/UpdatesModule.js +2 -2
  52. package/build/user/actions.js +1 -1
  53. package/build/vcs/clients/git.js +5 -5
  54. package/build/vcs/git.js +1 -1
  55. package/build/webhooks/input.js +1 -1
  56. package/oclif.manifest.json +1 -1
  57. package/package.json +38 -38
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const config_1 = require("@expo/config");
5
4
  const core_1 = require("@oclif/core");
6
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
6
  const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
@@ -9,13 +8,14 @@ const generated_1 = require("../../graphql/generated");
9
8
  const WebhookQuery_1 = require("../../graphql/queries/WebhookQuery");
10
9
  const log_1 = tslib_1.__importDefault(require("../../log"));
11
10
  const ora_1 = require("../../ora");
11
+ const expoConfig_1 = require("../../project/expoConfig");
12
12
  const projectUtils_1 = require("../../project/projectUtils");
13
13
  const formatWebhook_1 = require("../../webhooks/formatWebhook");
14
14
  class WebhookList extends EasCommand_1.default {
15
15
  async runAsync() {
16
16
  const { flags: { event }, } = await this.parse(WebhookList);
17
17
  const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
18
- const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
18
+ const exp = (0, expoConfig_1.getExpoConfig)(projectDir);
19
19
  const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
20
20
  const projectFullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
21
21
  const spinner = (0, ora_1.ora)(`Fetching the list of webhook on project ${projectFullName}`).start();
@@ -20,7 +20,7 @@ function fileIsServiceAccountKey(keyJsonPath) {
20
20
  readAndValidateServiceAccountKey(keyJsonPath);
21
21
  return true;
22
22
  }
23
- catch (err) {
23
+ catch {
24
24
  return false;
25
25
  }
26
26
  }
@@ -20,7 +20,7 @@ async function keytoolCommandExistsAsync() {
20
20
  await (0, spawn_async_1.default)('keytool');
21
21
  return true;
22
22
  }
23
- catch (error) {
23
+ catch {
24
24
  return false;
25
25
  }
26
26
  }
@@ -26,7 +26,7 @@ function isPKCSKeystore(keystore) {
26
26
  (0, pkcs12_1.parsePKCS12)(keystore.keystore, keystore.keystorePassword);
27
27
  return true;
28
28
  }
29
- catch (e) {
29
+ catch {
30
30
  return false;
31
31
  }
32
32
  }
@@ -35,7 +35,7 @@ function isJKSKeystore(keystore) {
35
35
  jks_js_1.default.parseJks(Buffer.from(keystore.keystore, 'base64'), keystore.keystorePassword);
36
36
  return true;
37
37
  }
38
- catch (e) {
38
+ catch {
39
39
  return false;
40
40
  }
41
41
  }
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CredentialsContext = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const config_1 = require("@expo/config");
6
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
6
  const log_1 = tslib_1.__importDefault(require("../log"));
8
7
  const expoConfig_1 = require("../project/expoConfig");
@@ -34,7 +33,7 @@ class CredentialsContext {
34
33
  try {
35
34
  return (0, expoConfig_1.getExpoConfig)(projectDir, { env });
36
35
  }
37
- catch (error) {
36
+ catch {
38
37
  // ignore error, context might be created outside of expo project
39
38
  return null;
40
39
  }
@@ -51,7 +50,7 @@ class CredentialsContext {
51
50
  return;
52
51
  }
53
52
  // trigger getConfig error
54
- (0, config_1.getConfig)(this.options.projectDir, { skipSDKVersionRequirement: true });
53
+ (0, expoConfig_1.getExpoConfig)(this.options.projectDir);
55
54
  }
56
55
  logOwnerAndProject() {
57
56
  var _a;
@@ -81,7 +81,7 @@ async function readRawAsync(projectDir, { throwIfMissing = true } = {}) {
81
81
  const credentialsJSONContents = await fs_extra_1.default.readFile(credentialsJsonFilePath, 'utf8');
82
82
  return JSON.parse(credentialsJSONContents);
83
83
  }
84
- catch (err) {
84
+ catch {
85
85
  throw new Error(`credentials.json must exist in the project root directory and contain a valid JSON`);
86
86
  }
87
87
  }
@@ -31,7 +31,7 @@ function parse(dataBase64) {
31
31
  const profile = buffer.toString('utf8');
32
32
  return plist_1.default.parse(profile);
33
33
  }
34
- catch (error) {
34
+ catch {
35
35
  throw new Error('Provisioning profile is malformed');
36
36
  }
37
37
  }
@@ -53,7 +53,7 @@ function validateProvisioningProfileWithoutApple(app, { provisioningProfile, dis
53
53
  return false;
54
54
  }
55
55
  }
56
- catch (error) {
56
+ catch {
57
57
  log_1.default.warn('Provisioning Profile is malformed.');
58
58
  return false;
59
59
  }
@@ -91,7 +91,7 @@ export declare type Account = {
91
91
  apps: Array<App>;
92
92
  /** @deprecated Build packs are no longer supported */
93
93
  availableBuilds?: Maybe<Scalars['Int']>;
94
- /** Billing information */
94
+ /** Billing information. Only visible to members with the ADMIN or OWNER role. */
95
95
  billing?: Maybe<Billing>;
96
96
  billingPeriod: BillingPeriod;
97
97
  /** Build Jobs associated with this account */
@@ -295,7 +295,9 @@ export declare type AccountMutationRenameArgs = {
295
295
  };
296
296
  export declare type AccountMutationRequestRefundArgs = {
297
297
  accountID: Scalars['ID'];
298
- chargeIdentifier: Scalars['ID'];
298
+ chargeID: Scalars['ID'];
299
+ description?: InputMaybe<Scalars['String']>;
300
+ reason?: InputMaybe<Scalars['String']>;
299
301
  };
300
302
  export declare type AccountMutationRevokeActorPermissionsArgs = {
301
303
  accountID: Scalars['ID'];
@@ -334,18 +336,34 @@ export declare type AccountQueryByNameArgs = {
334
336
  };
335
337
  export declare type AccountUsageMetric = {
336
338
  __typename?: 'AccountUsageMetric';
337
- metric: EasServiceMetric;
339
+ id: Scalars['ID'];
338
340
  metricType: UsageMetricType;
341
+ serviceMetric: EasServiceMetric;
339
342
  timestamp: Scalars['DateTime'];
340
343
  value: Scalars['Float'];
341
344
  };
345
+ export declare type AccountUsageMetricAndCost = {
346
+ __typename?: 'AccountUsageMetricAndCost';
347
+ id: Scalars['ID'];
348
+ /** The limit, in units, allowed by this plan */
349
+ limit: Scalars['Float'];
350
+ metricType: UsageMetricType;
351
+ serviceMetric: EasServiceMetric;
352
+ /** Total cost of this particular metric, in cents */
353
+ totalCost: Scalars['Float'];
354
+ value: Scalars['Float'];
355
+ };
342
356
  export declare type AccountUsageMetrics = {
343
357
  __typename?: 'AccountUsageMetrics';
358
+ byBillingPeriod: UsageMetricTotal;
344
359
  metricsForServiceMetric: Array<AccountUsageMetric>;
345
360
  };
361
+ export declare type AccountUsageMetricsByBillingPeriodArgs = {
362
+ date: Scalars['DateTime'];
363
+ };
346
364
  export declare type AccountUsageMetricsMetricsForServiceMetricArgs = {
347
365
  granularity: UsageMetricsGranularity;
348
- metric: EasServiceMetric;
366
+ serviceMetric: EasServiceMetric;
349
367
  timespan: UsageMetricsTimespan;
350
368
  };
351
369
  export declare type ActivityTimelineProjectActivity = {
@@ -842,14 +860,18 @@ export declare type AppDataInput = {
842
860
  };
843
861
  export declare type AppIcon = {
844
862
  __typename?: 'AppIcon';
845
- /** Nullable color palette of the app icon. If null, color palette couldn't be retrieved from external service (imgix) */
863
+ /** @deprecated No longer supported */
846
864
  colorPalette?: Maybe<Scalars['JSON']>;
847
865
  originalUrl: Scalars['String'];
848
866
  primaryColor?: Maybe<Scalars['String']>;
849
867
  url: Scalars['String'];
850
868
  };
869
+ export declare type AppInfoInput = {
870
+ displayName?: InputMaybe<Scalars['String']>;
871
+ };
851
872
  export declare type AppInput = {
852
873
  accountId: Scalars['ID'];
874
+ appInfo?: InputMaybe<AppInfoInput>;
853
875
  privacy: AppPrivacy;
854
876
  projectName: Scalars['String'];
855
877
  };
@@ -859,6 +881,8 @@ export declare type AppMutation = {
859
881
  createApp: App;
860
882
  /** @deprecated No longer supported */
861
883
  grantAccess?: Maybe<App>;
884
+ /** Set display info for app */
885
+ setAppInfo: App;
862
886
  /** Require api token to send push notifs for experience */
863
887
  setPushSecurityEnabled: App;
864
888
  };
@@ -869,6 +893,10 @@ export declare type AppMutationGrantAccessArgs = {
869
893
  accessLevel?: InputMaybe<Scalars['String']>;
870
894
  toUser: Scalars['ID'];
871
895
  };
896
+ export declare type AppMutationSetAppInfoArgs = {
897
+ appId: Scalars['ID'];
898
+ appInfo: AppInfoInput;
899
+ };
872
900
  export declare type AppMutationSetPushSecurityEnabledArgs = {
873
901
  appId: Scalars['ID'];
874
902
  pushSecurityEnabled: Scalars['Boolean'];
@@ -1594,6 +1622,12 @@ export declare type CodeSigningInfoInput = {
1594
1622
  keyid: Scalars['String'];
1595
1623
  sig: Scalars['String'];
1596
1624
  };
1625
+ export declare type Concurrencies = {
1626
+ __typename?: 'Concurrencies';
1627
+ android: Scalars['Int'];
1628
+ ios: Scalars['Int'];
1629
+ total: Scalars['Int'];
1630
+ };
1597
1631
  export declare type CreateAccessTokenInput = {
1598
1632
  actorID: Scalars['ID'];
1599
1633
  note?: InputMaybe<Scalars['String']>;
@@ -1607,6 +1641,7 @@ export declare type CreateAccessTokenResponse = {
1607
1641
  };
1608
1642
  export declare type CreateAndroidSubmissionInput = {
1609
1643
  appId: Scalars['ID'];
1644
+ archiveUrl?: InputMaybe<Scalars['String']>;
1610
1645
  config: AndroidSubmissionConfigInput;
1611
1646
  submittedBuildId?: InputMaybe<Scalars['ID']>;
1612
1647
  };
@@ -1621,15 +1656,10 @@ export declare type CreateEnvironmentSecretInput = {
1621
1656
  };
1622
1657
  export declare type CreateIosSubmissionInput = {
1623
1658
  appId: Scalars['ID'];
1659
+ archiveUrl?: InputMaybe<Scalars['String']>;
1624
1660
  config: IosSubmissionConfigInput;
1625
1661
  submittedBuildId?: InputMaybe<Scalars['ID']>;
1626
1662
  };
1627
- export declare type CreateSubmissionInput = {
1628
- appId: Scalars['ID'];
1629
- config: Scalars['JSONObject'];
1630
- platform: AppPlatform;
1631
- submittedBuildId?: InputMaybe<Scalars['ID']>;
1632
- };
1633
1663
  export declare type CreateSubmissionResult = {
1634
1664
  __typename?: 'CreateSubmissionResult';
1635
1665
  /** Created submission */
@@ -1720,7 +1750,10 @@ export declare enum EasBuildDeprecationInfoType {
1720
1750
  UserFacing = "USER_FACING"
1721
1751
  }
1722
1752
  export declare enum EasServiceMetric {
1723
- ManifestRequests = "MANIFEST_REQUESTS"
1753
+ AssetsRequests = "ASSETS_REQUESTS",
1754
+ BandwidthUsage = "BANDWIDTH_USAGE",
1755
+ ManifestRequests = "MANIFEST_REQUESTS",
1756
+ UniqueUsers = "UNIQUE_USERS"
1724
1757
  }
1725
1758
  export declare type EditUpdateBranchInput = {
1726
1759
  appId?: InputMaybe<Scalars['ID']>;
@@ -2595,6 +2628,8 @@ export declare type Submission = ActivityTimelineProjectActivity & {
2595
2628
  actor?: Maybe<Actor>;
2596
2629
  androidConfig?: Maybe<AndroidSubmissionConfig>;
2597
2630
  app: App;
2631
+ archiveUrl?: Maybe<Scalars['String']>;
2632
+ canRetry: Scalars['Boolean'];
2598
2633
  cancelingActor?: Maybe<Actor>;
2599
2634
  createdAt: Scalars['DateTime'];
2600
2635
  error?: Maybe<SubmissionError>;
@@ -2602,6 +2637,7 @@ export declare type Submission = ActivityTimelineProjectActivity & {
2602
2637
  initiatingActor?: Maybe<Actor>;
2603
2638
  iosConfig?: Maybe<IosSubmissionConfig>;
2604
2639
  logsUrl?: Maybe<Scalars['String']>;
2640
+ parentSubmission?: Maybe<Submission>;
2605
2641
  platform: AppPlatform;
2606
2642
  status: SubmissionStatus;
2607
2643
  submittedBuild?: Maybe<Build>;
@@ -2640,14 +2676,11 @@ export declare type SubmissionMutation = {
2640
2676
  createAndroidSubmission: CreateSubmissionResult;
2641
2677
  /** Create an iOS EAS Submit submission */
2642
2678
  createIosSubmission: CreateSubmissionResult;
2643
- /**
2644
- * Create an EAS Submit submission
2645
- * @deprecated Use createIosSubmission / createAndroidSubmission instead
2646
- */
2647
- createSubmission: CreateSubmissionResult;
2679
+ /** Retry an EAS Submit submission */
2680
+ retrySubmission: CreateSubmissionResult;
2648
2681
  };
2649
2682
  export declare type SubmissionMutationCancelSubmissionArgs = {
2650
- submissionId?: InputMaybe<Scalars['ID']>;
2683
+ submissionId: Scalars['ID'];
2651
2684
  };
2652
2685
  export declare type SubmissionMutationCreateAndroidSubmissionArgs = {
2653
2686
  input: CreateAndroidSubmissionInput;
@@ -2655,8 +2688,8 @@ export declare type SubmissionMutationCreateAndroidSubmissionArgs = {
2655
2688
  export declare type SubmissionMutationCreateIosSubmissionArgs = {
2656
2689
  input: CreateIosSubmissionInput;
2657
2690
  };
2658
- export declare type SubmissionMutationCreateSubmissionArgs = {
2659
- input: CreateSubmissionInput;
2691
+ export declare type SubmissionMutationRetrySubmissionArgs = {
2692
+ parentSubmissionId: Scalars['ID'];
2660
2693
  };
2661
2694
  export declare type SubmissionQuery = {
2662
2695
  __typename?: 'SubmissionQuery';
@@ -2678,6 +2711,7 @@ export declare type SubscriptionDetails = {
2678
2711
  __typename?: 'SubscriptionDetails';
2679
2712
  addons: Array<AddonDetails>;
2680
2713
  cancelledAt?: Maybe<Scalars['DateTime']>;
2714
+ concurrencies?: Maybe<Concurrencies>;
2681
2715
  endedAt?: Maybe<Scalars['DateTime']>;
2682
2716
  id: Scalars['ID'];
2683
2717
  isDowngrading?: Maybe<Scalars['Boolean']>;
@@ -2828,8 +2862,19 @@ export declare enum UploadSessionType {
2828
2862
  EasBuildProjectSources = "EAS_BUILD_PROJECT_SOURCES",
2829
2863
  EasSubmitAppArchive = "EAS_SUBMIT_APP_ARCHIVE"
2830
2864
  }
2865
+ export declare type UsageMetricTotal = {
2866
+ __typename?: 'UsageMetricTotal';
2867
+ billingPeriod: BillingPeriod;
2868
+ id: Scalars['ID'];
2869
+ overageMetrics: Array<AccountUsageMetricAndCost>;
2870
+ planMetrics: Array<AccountUsageMetricAndCost>;
2871
+ /** Total cost of overages, in cents */
2872
+ totalCost: Scalars['Float'];
2873
+ };
2831
2874
  export declare enum UsageMetricType {
2832
- Request = "REQUEST"
2875
+ Bandwidth = "BANDWIDTH",
2876
+ Request = "REQUEST",
2877
+ User = "USER"
2833
2878
  }
2834
2879
  export declare enum UsageMetricsGranularity {
2835
2880
  Day = "DAY",
@@ -147,7 +147,10 @@ var EasBuildDeprecationInfoType;
147
147
  })(EasBuildDeprecationInfoType = exports.EasBuildDeprecationInfoType || (exports.EasBuildDeprecationInfoType = {}));
148
148
  var EasServiceMetric;
149
149
  (function (EasServiceMetric) {
150
+ EasServiceMetric["AssetsRequests"] = "ASSETS_REQUESTS";
151
+ EasServiceMetric["BandwidthUsage"] = "BANDWIDTH_USAGE";
150
152
  EasServiceMetric["ManifestRequests"] = "MANIFEST_REQUESTS";
153
+ EasServiceMetric["UniqueUsers"] = "UNIQUE_USERS";
151
154
  })(EasServiceMetric = exports.EasServiceMetric || (exports.EasServiceMetric = {}));
152
155
  var Feature;
153
156
  (function (Feature) {
@@ -287,7 +290,9 @@ var UploadSessionType;
287
290
  })(UploadSessionType = exports.UploadSessionType || (exports.UploadSessionType = {}));
288
291
  var UsageMetricType;
289
292
  (function (UsageMetricType) {
293
+ UsageMetricType["Bandwidth"] = "BANDWIDTH";
290
294
  UsageMetricType["Request"] = "REQUEST";
295
+ UsageMetricType["User"] = "USER";
291
296
  })(UsageMetricType = exports.UsageMetricType || (exports.UsageMetricType = {}));
292
297
  var UsageMetricsGranularity;
293
298
  (function (UsageMetricsGranularity) {
@@ -25,7 +25,7 @@ async function ensureApplicationIdIsDefinedForManagedProjectAsync(projectDir, ex
25
25
  moduleName: gradleUtils.DEFAULT_MODULE_NAME,
26
26
  });
27
27
  }
28
- catch (err) {
28
+ catch {
29
29
  return await configureApplicationIdAsync(projectDir, exp);
30
30
  }
31
31
  }
@@ -21,7 +21,7 @@ async function ensureBundleIdentifierIsDefinedForManagedProjectAsync(projectDir,
21
21
  try {
22
22
  return await getBundleIdentifierAsync(projectDir, exp);
23
23
  }
24
- catch (err) {
24
+ catch {
25
25
  return await configureBundleIdentifierAsync(projectDir, exp);
26
26
  }
27
27
  }
@@ -374,7 +374,7 @@ function validateUrl(url) {
374
374
  : false
375
375
  : true;
376
376
  }
377
- catch (err) {
377
+ catch {
378
378
  return false;
379
379
  }
380
380
  }
@@ -11,7 +11,7 @@ async function isExistingFileAsync(filePath) {
11
11
  const stats = await fs_extra_1.default.stat(filePath);
12
12
  return stats.isFile();
13
13
  }
14
- catch (e) {
14
+ catch {
15
15
  return false;
16
16
  }
17
17
  }
@@ -50,7 +50,7 @@ function parseLogs(logs) {
50
50
  try {
51
51
  parsedLine = JSON.parse(line);
52
52
  }
53
- catch (error) {
53
+ catch {
54
54
  continue;
55
55
  }
56
56
  let level;
@@ -20,7 +20,7 @@ async function readReleaseChannelSafelyAsync(projectDir) {
20
20
  const androidManifest = await getAndroidManifestAsync(projectDir);
21
21
  return config_plugins_1.AndroidConfig.Manifest.getMainApplicationMetaDataValue(androidManifest, config_plugins_1.AndroidConfig.Updates.Config.RELEASE_CHANNEL);
22
22
  }
23
- catch (err) {
23
+ catch {
24
24
  return null;
25
25
  }
26
26
  }
@@ -35,7 +35,7 @@ async function readChannelSafelyAsync(projectDir) {
35
35
  }
36
36
  return (_a = JSON.parse(stringifiedRequestHeaders)['expo-channel-name']) !== null && _a !== void 0 ? _a : null;
37
37
  }
38
- catch (err) {
38
+ catch {
39
39
  return null;
40
40
  }
41
41
  }
@@ -32,7 +32,7 @@ async function readReleaseChannelSafelyAsync(projectDir) {
32
32
  const expoPlist = await readExpoPlistAsync(projectDir);
33
33
  return (_a = expoPlist[config_plugins_1.IOSConfig.Updates.Config.RELEASE_CHANNEL]) !== null && _a !== void 0 ? _a : null;
34
34
  }
35
- catch (err) {
35
+ catch {
36
36
  return null;
37
37
  }
38
38
  }
@@ -44,7 +44,7 @@ async function readChannelSafelyAsync(projectDir) {
44
44
  const updatesRequestHeaders = expoPlist['EXUpdatesRequestHeaders'];
45
45
  return (_a = updatesRequestHeaders['expo-channel-name']) !== null && _a !== void 0 ? _a : null;
46
46
  }
47
- catch (err) {
47
+ catch {
48
48
  return null;
49
49
  }
50
50
  }
@@ -51,7 +51,7 @@ async function ensureLoggedInAsync({ nonInteractive = false } = {}) {
51
51
  try {
52
52
  user = await (0, User_1.getUserAsync)();
53
53
  }
54
- catch (_) { }
54
+ catch { }
55
55
  if (!user) {
56
56
  log_1.default.warn('An Expo user account is required to proceed.');
57
57
  await showLoginPromptAsync({ nonInteractive, printNewLine: true });
@@ -113,7 +113,7 @@ class GitClient extends vcs_1.Client {
113
113
  try {
114
114
  return (await (0, spawn_async_1.default)('git', ['rev-parse', 'HEAD'])).stdout.trim();
115
115
  }
116
- catch (err) {
116
+ catch {
117
117
  return undefined;
118
118
  }
119
119
  }
@@ -124,7 +124,7 @@ class GitClient extends vcs_1.Client {
124
124
  try {
125
125
  return (await (0, spawn_async_1.default)('git', ['rev-parse', '--abbrev-ref', 'HEAD'])).stdout.trim();
126
126
  }
127
- catch (e) {
127
+ catch {
128
128
  return null;
129
129
  }
130
130
  }
@@ -132,7 +132,7 @@ class GitClient extends vcs_1.Client {
132
132
  try {
133
133
  return (await (0, spawn_async_1.default)('git', ['--no-pager', 'log', '-1', '--pretty=%B'])).stdout.trim();
134
134
  }
135
- catch (e) {
135
+ catch {
136
136
  return null;
137
137
  }
138
138
  }
@@ -152,7 +152,7 @@ class GitClient extends vcs_1.Client {
152
152
  await (0, spawn_async_1.default)('git', ['check-ignore', '-q', filePath]);
153
153
  return true;
154
154
  }
155
- catch (e) {
155
+ catch {
156
156
  return false;
157
157
  }
158
158
  }
@@ -245,7 +245,7 @@ async function isGitCaseSensitiveAsync() {
245
245
  return true;
246
246
  }
247
247
  }
248
- catch (e) {
248
+ catch {
249
249
  return undefined;
250
250
  }
251
251
  }
package/build/vcs/git.js CHANGED
@@ -21,7 +21,7 @@ async function doesGitRepoExistAsync() {
21
21
  await (0, spawn_async_1.default)('git', ['rev-parse', '--git-dir']);
22
22
  return true;
23
23
  }
24
- catch (err) {
24
+ catch {
25
25
  return false;
26
26
  }
27
27
  }
@@ -64,7 +64,7 @@ function validateURL(url) {
64
64
  new url_1.URL(url);
65
65
  return true;
66
66
  }
67
- catch (err) {
67
+ catch {
68
68
  return false;
69
69
  }
70
70
  }