@asteroidai/cli 1.9.123 → 1.9.132
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/dist/asteroid.js +7 -7
- package/dist/core.js +8 -6
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -7434,7 +7434,7 @@ var ApiError = class extends Error {
|
|
|
7434
7434
|
status;
|
|
7435
7435
|
body;
|
|
7436
7436
|
};
|
|
7437
|
-
var VERSION = "1.9.
|
|
7437
|
+
var VERSION = "1.9.132";
|
|
7438
7438
|
function problem(status, body, fallback) {
|
|
7439
7439
|
if (body && typeof body === "object") {
|
|
7440
7440
|
const record2 = body;
|
|
@@ -9008,12 +9008,12 @@ function formatIssues(issues) {
|
|
|
9008
9008
|
const warnings = issues.length - errors;
|
|
9009
9009
|
const count = (n, noun) => `${n} ${noun}${n === 1 ? "" : "s"}`;
|
|
9010
9010
|
const summary2 = errors === 0 ? `Validation: ${count(warnings, "warning")}, nothing blocks a publish.` : `Validation: ${count(errors, "error")}${warnings > 0 ? `, ${count(warnings, "warning")}` : ""}. Fix the errors before you publish.`;
|
|
9011
|
-
return [
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
)
|
|
9016
|
-
|
|
9011
|
+
return [summary2, ...formatIssueLines(issues)];
|
|
9012
|
+
}
|
|
9013
|
+
function formatIssueLines(issues) {
|
|
9014
|
+
return issues.map(
|
|
9015
|
+
(issue) => ` ${issue.severity === "error" ? "!" : "?"} ${issue.path.join("/") || "(workflow)"}: ${issue.message}`
|
|
9016
|
+
);
|
|
9017
9017
|
}
|
|
9018
9018
|
|
|
9019
9019
|
// src/sync/run.ts
|
package/dist/core.js
CHANGED
|
@@ -8006,12 +8006,12 @@ function formatIssues(issues) {
|
|
|
8006
8006
|
const warnings = issues.length - errors;
|
|
8007
8007
|
const count = (n, noun) => `${n} ${noun}${n === 1 ? "" : "s"}`;
|
|
8008
8008
|
const summary2 = errors === 0 ? `Validation: ${count(warnings, "warning")}, nothing blocks a publish.` : `Validation: ${count(errors, "error")}${warnings > 0 ? `, ${count(warnings, "warning")}` : ""}. Fix the errors before you publish.`;
|
|
8009
|
-
return [
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
)
|
|
8014
|
-
|
|
8009
|
+
return [summary2, ...formatIssueLines(issues)];
|
|
8010
|
+
}
|
|
8011
|
+
function formatIssueLines(issues) {
|
|
8012
|
+
return issues.map(
|
|
8013
|
+
(issue) => ` ${issue.severity === "error" ? "!" : "?"} ${issue.path.join("/") || "(workflow)"}: ${issue.message}`
|
|
8014
|
+
);
|
|
8015
8015
|
}
|
|
8016
8016
|
|
|
8017
8017
|
// src/sync/run.ts
|
|
@@ -8160,6 +8160,8 @@ export {
|
|
|
8160
8160
|
formatExecutionPull,
|
|
8161
8161
|
formatExecutionWait,
|
|
8162
8162
|
formatInsightPull,
|
|
8163
|
+
formatIssueLines,
|
|
8164
|
+
formatIssues,
|
|
8163
8165
|
formatWorkflowPull,
|
|
8164
8166
|
formatWorkflowPush,
|
|
8165
8167
|
headFilesRequest,
|