betterstart-cli 0.0.70 → 0.0.71
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/cli.js +6 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -22952,6 +22952,11 @@ function hasNoUsableLinkedProject(detail) {
|
|
|
22952
22952
|
detail
|
|
22953
22953
|
);
|
|
22954
22954
|
}
|
|
22955
|
+
function isDeletedRailwayProject(value) {
|
|
22956
|
+
if (!value || typeof value !== "object") return false;
|
|
22957
|
+
const deletedAt = value.deletedAt;
|
|
22958
|
+
return isString(deletedAt);
|
|
22959
|
+
}
|
|
22955
22960
|
function parseProjectSummary(value) {
|
|
22956
22961
|
if (!value || typeof value !== "object") return void 0;
|
|
22957
22962
|
const project2 = value;
|
|
@@ -23016,7 +23021,7 @@ ${result.stderr}`) ?? "Could not list Railway projects."
|
|
|
23016
23021
|
if (!Array.isArray(payload)) {
|
|
23017
23022
|
throw new Error("Railway returned an invalid project list response.");
|
|
23018
23023
|
}
|
|
23019
|
-
const projects = payload.map(parseProjectSummary);
|
|
23024
|
+
const projects = payload.filter((project2) => !isDeletedRailwayProject(project2)).map(parseProjectSummary);
|
|
23020
23025
|
if (projects.some((project2) => !project2)) {
|
|
23021
23026
|
throw new Error("Railway returned an invalid project list response.");
|
|
23022
23027
|
}
|