chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -39,9 +39,7 @@ export function formatUpdateOneLiner(update: UpdateCheckResult): string {
|
||||
} else if (update.git.behind === 0 && update.git.ahead > 0) {
|
||||
parts.push(`ahead ${update.git.ahead}`);
|
||||
} else if (update.git.behind > 0 && update.git.ahead > 0) {
|
||||
parts.push(
|
||||
`diverged (ahead ${update.git.ahead}, behind ${update.git.behind})`,
|
||||
);
|
||||
parts.push(`diverged (ahead ${update.git.ahead}, behind ${update.git.behind})`);
|
||||
}
|
||||
}
|
||||
if (update.git.fetchOk === false) parts.push("fetch failed");
|
||||
@@ -49,17 +47,13 @@ export function formatUpdateOneLiner(update: UpdateCheckResult): string {
|
||||
if (update.registry?.latestVersion) {
|
||||
const cmp = compareSemverStrings(VERSION, update.registry.latestVersion);
|
||||
if (cmp === 0) parts.push(`npm latest ${update.registry.latestVersion}`);
|
||||
else if (cmp != null && cmp < 0)
|
||||
parts.push(`npm update ${update.registry.latestVersion}`);
|
||||
else
|
||||
parts.push(`npm latest ${update.registry.latestVersion} (local newer)`);
|
||||
else if (cmp != null && cmp < 0) parts.push(`npm update ${update.registry.latestVersion}`);
|
||||
else parts.push(`npm latest ${update.registry.latestVersion} (local newer)`);
|
||||
} else if (update.registry?.error) {
|
||||
parts.push("npm latest unknown");
|
||||
}
|
||||
} else {
|
||||
parts.push(
|
||||
update.packageManager !== "unknown" ? update.packageManager : "pkg",
|
||||
);
|
||||
parts.push(update.packageManager !== "unknown" ? update.packageManager : "pkg");
|
||||
if (update.registry?.latestVersion) {
|
||||
const cmp = compareSemverStrings(VERSION, update.registry.latestVersion);
|
||||
if (cmp === 0) parts.push(`npm latest ${update.registry.latestVersion}`);
|
||||
|
||||
Reference in New Issue
Block a user