@przeprogramowani/10x-cli 1.27.0 → 1.28.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/dist/index.mjs +8 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3183,7 +3183,7 @@ var cac = (name = "") => new CAC(name);
|
|
|
3183
3183
|
// package.json
|
|
3184
3184
|
var package_default = {
|
|
3185
3185
|
name: "@przeprogramowani/10x-cli",
|
|
3186
|
-
version: "1.
|
|
3186
|
+
version: "1.28.0",
|
|
3187
3187
|
description: "Open-source CLI for 10xDevs course content",
|
|
3188
3188
|
repository: {
|
|
3189
3189
|
type: "git",
|
|
@@ -3929,7 +3929,7 @@ function isChangelogEntry(value) {
|
|
|
3929
3929
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
3930
3930
|
return false;
|
|
3931
3931
|
const e2 = value;
|
|
3932
|
-
if (e2["schemaVersion"] !==
|
|
3932
|
+
if (e2["schemaVersion"] !== 1)
|
|
3933
3933
|
return false;
|
|
3934
3934
|
if (typeof e2["version"] !== "string" || !e2["version"])
|
|
3935
3935
|
return false;
|
|
@@ -3939,6 +3939,8 @@ function isChangelogEntry(value) {
|
|
|
3939
3939
|
return false;
|
|
3940
3940
|
if (e2["model"] !== null && typeof e2["model"] !== "string")
|
|
3941
3941
|
return false;
|
|
3942
|
+
if (!Array.isArray(e2["highlights"]) || !e2["highlights"].every((h2) => typeof h2 === "string"))
|
|
3943
|
+
return false;
|
|
3942
3944
|
const artifacts = e2["artifacts"];
|
|
3943
3945
|
if (!artifacts || typeof artifacts !== "object" || Array.isArray(artifacts))
|
|
3944
3946
|
return false;
|
|
@@ -3948,7 +3950,7 @@ function isChangelogEntry(value) {
|
|
|
3948
3950
|
if (!item || typeof item !== "object")
|
|
3949
3951
|
return false;
|
|
3950
3952
|
const change = item;
|
|
3951
|
-
return typeof change["name"] === "string" && typeof change["status"] === "string" && CHANGELOG_STATUSES.includes(change["status"]);
|
|
3953
|
+
return typeof change["name"] === "string" && typeof change["status"] === "string" && CHANGELOG_STATUSES.includes(change["status"]) && (change["summary"] === null || typeof change["summary"] === "string");
|
|
3952
3954
|
});
|
|
3953
3955
|
});
|
|
3954
3956
|
}
|
|
@@ -5854,6 +5856,9 @@ function handleChangelogError(ctx, status, code, error) {
|
|
|
5854
5856
|
if (code === "changelog_unsupported") {
|
|
5855
5857
|
outputError(ctx, code, "The 10x-toolkit API does not support the toolkit changelog yet.", ExitCodes.ERROR, "The changelog endpoint has not been deployed yet. Try again later; '10x sync' still updates your files.");
|
|
5856
5858
|
}
|
|
5859
|
+
if (status === 403) {
|
|
5860
|
+
outputError(ctx, "course_access_denied", "Your account has no active course access, so there is no toolkit changelog to show.", ExitCodes.FORBIDDEN);
|
|
5861
|
+
}
|
|
5857
5862
|
if (status === 401) {
|
|
5858
5863
|
outputError(ctx, "auth_required", "Your session is no longer valid.", ExitCodes.AUTH_REQUIRED, "Run '10x auth' to log in again.");
|
|
5859
5864
|
}
|