eas-cli 21.4.0 → 21.6.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 (56) hide show
  1. package/README.md +454 -120
  2. package/build/build/local.js +64 -7
  3. package/build/commandUtils/workflow/compositeFunctions.d.ts +1 -0
  4. package/build/commandUtils/workflow/compositeFunctions.js +36 -0
  5. package/build/commandUtils/workflow/validation.js +3 -0
  6. package/build/commands/account/usage.d.ts +3 -0
  7. package/build/commands/account/usage.js +6 -5
  8. package/build/commands/integrations/posthog/connect.js +1 -1
  9. package/build/commands/project/new.d.ts +1 -1
  10. package/build/commands/simulator/availability.d.ts +1 -0
  11. package/build/commands/simulator/availability.js +9 -2
  12. package/build/commands/simulator/events.d.ts +1 -0
  13. package/build/commands/simulator/events.js +1 -0
  14. package/build/commands/simulator/exec.d.ts +1 -0
  15. package/build/commands/simulator/exec.js +1 -0
  16. package/build/commands/simulator/get.d.ts +1 -0
  17. package/build/commands/simulator/get.js +1 -0
  18. package/build/commands/simulator/{start.d.ts → index.d.ts} +1 -1
  19. package/build/commands/simulator/{start.js → index.js} +99 -29
  20. package/build/commands/simulator/list.d.ts +2 -0
  21. package/build/commands/simulator/list.js +7 -0
  22. package/build/commands/simulator/stop.d.ts +1 -0
  23. package/build/commands/simulator/stop.js +1 -0
  24. package/build/commands/submit/cancel.d.ts +20 -0
  25. package/build/commands/submit/cancel.js +116 -0
  26. package/build/commands/submit/list.d.ts +27 -0
  27. package/build/commands/submit/list.js +100 -0
  28. package/build/commands/submit/retry.d.ts +18 -0
  29. package/build/commands/submit/retry.js +123 -0
  30. package/build/commands/submit/status.d.ts +19 -0
  31. package/build/commands/submit/status.js +116 -0
  32. package/build/commands/submit/view.d.ts +17 -0
  33. package/build/commands/submit/view.js +96 -0
  34. package/build/graphql/generated.d.ts +580 -4
  35. package/build/graphql/generated.js +3 -0
  36. package/build/graphql/mutations/SubmissionMutation.d.ts +3 -1
  37. package/build/graphql/mutations/SubmissionMutation.js +33 -0
  38. package/build/graphql/queries/SubmissionQuery.d.ts +3 -2
  39. package/build/graphql/queries/SubmissionQuery.js +19 -2
  40. package/build/graphql/types/SubmissionWithSubmittedBuild.d.ts +1 -0
  41. package/build/graphql/types/SubmissionWithSubmittedBuild.js +25 -0
  42. package/build/simulator/utils.d.ts +7 -0
  43. package/build/simulator/utils.js +15 -1
  44. package/build/submit/queries.d.ts +34 -0
  45. package/build/submit/queries.js +94 -0
  46. package/build/submit/status.d.ts +31 -0
  47. package/build/submit/status.js +187 -0
  48. package/build/submit/utils/formatSubmission.d.ts +2 -0
  49. package/build/submit/utils/formatSubmission.js +78 -0
  50. package/build/utils/promise.d.ts +3 -2
  51. package/build/utils/promise.js +17 -3
  52. package/build/utils/terminalText.d.ts +1 -0
  53. package/build/utils/terminalText.js +14 -0
  54. package/build/utils/usage/checkForOverages.js +1 -1
  55. package/oclif.manifest.json +2247 -1726
  56. package/package.json +8 -5
@@ -5,8 +5,22 @@ exports.sleepAsync = sleepAsync;
5
5
  * Returns a promise that will be resolved after given ms milliseconds.
6
6
  *
7
7
  * @param ms A number of milliseconds to sleep.
8
- * @returns A promise that resolves after the provided number of milliseconds.
8
+ * @param signal An optional signal that resolves the sleep early when aborted.
9
+ * @returns A promise that resolves after the provided number of milliseconds or when aborted.
9
10
  */
10
- async function sleepAsync(ms) {
11
- await new Promise(res => setTimeout(res, ms));
11
+ async function sleepAsync(ms, signal) {
12
+ if (signal?.aborted) {
13
+ return;
14
+ }
15
+ await new Promise(resolve => {
16
+ const onAbort = () => {
17
+ clearTimeout(timeoutId);
18
+ resolve();
19
+ };
20
+ const timeoutId = setTimeout(() => {
21
+ signal?.removeEventListener('abort', onAbort);
22
+ resolve();
23
+ }, ms);
24
+ signal?.addEventListener('abort', onAbort, { once: true });
25
+ });
12
26
  }
@@ -0,0 +1 @@
1
+ export declare function sanitizeTerminalText(value: string): string;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sanitizeTerminalText = sanitizeTerminalText;
4
+ /**
5
+ * Sanitize externally-influenced text for printing as a single-line field value. Escape
6
+ * sequences in a crafted value could clear the screen or spoof output, and embedded newlines
7
+ * could fake extra output lines, so control characters are stripped and whitespace runs
8
+ * collapse to one space.
9
+ */
10
+ // eslint-disable-next-line no-control-regex
11
+ const CONTROL_CHARACTERS = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F]/g;
12
+ function sanitizeTerminalText(value) {
13
+ return value.replace(CONTROL_CHARACTERS, '').replace(/\s+/g, ' ').trim();
14
+ }
@@ -117,7 +117,7 @@ function displayOverageWarning({ tier, name, hasFreePlan, planValue, limit, over
117
117
  return;
118
118
  }
119
119
  // tier === 'over' && paid plan
120
- log_1.default.warn(chalk_1.default.bold(`You've used ${overageCount} build${overageCount === 1 ? '' : 's'} beyond your included credits this billing period (${formatCents(overageCostCents)} in overages so far).`));
120
+ log_1.default.warn(chalk_1.default.bold(`You've used ${overageCount} build${overageCount === 1 ? '' : 's'} beyond your included credits this billing period (${formatCents(overageCostCents)} in additional usage so far).`));
121
121
  log_1.default.warn('Additional builds continue at pay-as-you-go rates. ' +
122
122
  (0, log_1.link)(billingUrl, { text: 'See usage in billing.', dim: false }));
123
123
  }