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.
- package/README.md +454 -120
- package/build/build/local.js +64 -7
- package/build/commandUtils/workflow/compositeFunctions.d.ts +1 -0
- package/build/commandUtils/workflow/compositeFunctions.js +36 -0
- package/build/commandUtils/workflow/validation.js +3 -0
- package/build/commands/account/usage.d.ts +3 -0
- package/build/commands/account/usage.js +6 -5
- package/build/commands/integrations/posthog/connect.js +1 -1
- package/build/commands/project/new.d.ts +1 -1
- package/build/commands/simulator/availability.d.ts +1 -0
- package/build/commands/simulator/availability.js +9 -2
- package/build/commands/simulator/events.d.ts +1 -0
- package/build/commands/simulator/events.js +1 -0
- package/build/commands/simulator/exec.d.ts +1 -0
- package/build/commands/simulator/exec.js +1 -0
- package/build/commands/simulator/get.d.ts +1 -0
- package/build/commands/simulator/get.js +1 -0
- package/build/commands/simulator/{start.d.ts → index.d.ts} +1 -1
- package/build/commands/simulator/{start.js → index.js} +99 -29
- package/build/commands/simulator/list.d.ts +2 -0
- package/build/commands/simulator/list.js +7 -0
- package/build/commands/simulator/stop.d.ts +1 -0
- package/build/commands/simulator/stop.js +1 -0
- package/build/commands/submit/cancel.d.ts +20 -0
- package/build/commands/submit/cancel.js +116 -0
- package/build/commands/submit/list.d.ts +27 -0
- package/build/commands/submit/list.js +100 -0
- package/build/commands/submit/retry.d.ts +18 -0
- package/build/commands/submit/retry.js +123 -0
- package/build/commands/submit/status.d.ts +19 -0
- package/build/commands/submit/status.js +116 -0
- package/build/commands/submit/view.d.ts +17 -0
- package/build/commands/submit/view.js +96 -0
- package/build/graphql/generated.d.ts +580 -4
- package/build/graphql/generated.js +3 -0
- package/build/graphql/mutations/SubmissionMutation.d.ts +3 -1
- package/build/graphql/mutations/SubmissionMutation.js +33 -0
- package/build/graphql/queries/SubmissionQuery.d.ts +3 -2
- package/build/graphql/queries/SubmissionQuery.js +19 -2
- package/build/graphql/types/SubmissionWithSubmittedBuild.d.ts +1 -0
- package/build/graphql/types/SubmissionWithSubmittedBuild.js +25 -0
- package/build/simulator/utils.d.ts +7 -0
- package/build/simulator/utils.js +15 -1
- package/build/submit/queries.d.ts +34 -0
- package/build/submit/queries.js +94 -0
- package/build/submit/status.d.ts +31 -0
- package/build/submit/status.js +187 -0
- package/build/submit/utils/formatSubmission.d.ts +2 -0
- package/build/submit/utils/formatSubmission.js +78 -0
- package/build/utils/promise.d.ts +3 -2
- package/build/utils/promise.js +17 -3
- package/build/utils/terminalText.d.ts +1 -0
- package/build/utils/terminalText.js +14 -0
- package/build/utils/usage/checkForOverages.js +1 -1
- package/oclif.manifest.json +2247 -1726
- package/package.json +8 -5
package/build/utils/promise.js
CHANGED
|
@@ -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
|
-
* @
|
|
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
|
-
|
|
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
|
|
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
|
}
|