mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-17 17:43:37 -05:00
Update API and improve CLI output
This commit is contained in:
@@ -36,7 +36,7 @@ export default function Image({ data }: { data: Image }) {
|
||||
};
|
||||
const new_reference =
|
||||
data.result.info?.type == "version"
|
||||
? data.reference.split(":")[0] + ":" + data.result.info.new_version
|
||||
? data.reference.split(":")[0] + ":" + data.result.info.new_tag
|
||||
: data.reference;
|
||||
let url: string | null = null;
|
||||
if (clickable_registries.includes(data.parts.registry)) {
|
||||
|
||||
@@ -32,7 +32,7 @@ export interface Image {
|
||||
interface VersionInfo {
|
||||
type: "version";
|
||||
version_update_type: "major" | "minor" | "patch";
|
||||
new_version: string;
|
||||
new_tag: string;
|
||||
}
|
||||
|
||||
interface DigestInfo {
|
||||
|
||||
Reference in New Issue
Block a user