Skip to content

Commit 57cc1de

Browse files
committed
chore: wip
1 parent 45c66b4 commit 57cc1de

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/registry/registry-client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ export class RegistryClient {
619619
// Find multiple update paths: patch, minor, and major
620620
const currentVersion = pkg.version
621621
const latestVersion = pkg.latest
622-
622+
623623
// Get all available versions by querying composer show
624624
let availableVersions: string[] = []
625625
try {
@@ -677,7 +677,7 @@ export class RegistryClient {
677677
private async findBestUpdates(currentVersion: string, availableVersions: string[], constraint: string): Promise<{ version: string, type: 'patch' | 'minor' | 'major' }[]> {
678678
const { getUpdateType } = await import('../utils/helpers')
679679
const candidates: { version: string, type: 'patch' | 'minor' | 'major' }[] = []
680-
680+
681681
// Parse current version
682682
const currentParts = this.parseVersion(currentVersion)
683683
if (!currentParts) return []
@@ -733,11 +733,11 @@ export class RegistryClient {
733733
// Remove 'v' prefix and any pre-release identifiers
734734
const cleanVersion = version.replace(/^v/, '').split('-')[0].split('+')[0]
735735
const parts = cleanVersion.split('.').map(p => parseInt(p, 10))
736-
736+
737737
if (parts.length < 2 || parts.some(p => isNaN(p))) {
738738
return null
739739
}
740-
740+
741741
return {
742742
major: parts[0] || 0,
743743
minor: parts[1] || 0,
@@ -752,9 +752,9 @@ export class RegistryClient {
752752
private compareVersions(a: string, b: string): number {
753753
const parseA = this.parseVersion(a)
754754
const parseB = this.parseVersion(b)
755-
755+
756756
if (!parseA || !parseB) return 0
757-
757+
758758
if (parseA.major !== parseB.major) return parseA.major - parseB.major
759759
if (parseA.minor !== parseB.minor) return parseA.minor - parseB.minor
760760
return parseA.patch - parseB.patch

0 commit comments

Comments
 (0)