@ahood/cli 0.3.2 → 0.3.3
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.
|
@@ -36,5 +36,11 @@ export async function versions(args) {
|
|
|
36
36
|
field("published:", v.created_at);
|
|
37
37
|
field("size:", formatSize(v.package_size_bytes));
|
|
38
38
|
field("changelog:", v.changelog_md ? v.changelog_md : "-");
|
|
39
|
+
// Marked right after the version's other details, only when the API
|
|
40
|
+
// actually flags it (issue #58) -- non-yanked versions print exactly as
|
|
41
|
+
// before, no "status:" line at all.
|
|
42
|
+
if (v.yanked_at) {
|
|
43
|
+
field("status:", v.yanked_reason ? `YANKED -- ${v.yanked_reason}` : "YANKED");
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
}
|
package/package.json
CHANGED