mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+ninja+cmake (#61)
This commit is contained in:
parent
5880b26de2
commit
f13750bb50
1 changed files with 5 additions and 2 deletions
|
@ -55,9 +55,12 @@ async function get_versions(pkg: Package): Promise<SemVer[]> {
|
|||
|
||||
//FIXME? API isn’t clear if these nulls indicate failure or not
|
||||
//NOTE if this is a new package then some empty results is expected
|
||||
return rsp
|
||||
const got = rsp
|
||||
?.contents
|
||||
?.compactMap(x => x.key?.split("/").pop())
|
||||
.compactMap(semver.coerce) //FIXME coerce is too loose
|
||||
.sort() ?? []
|
||||
?? []
|
||||
|
||||
// have to add pkg.version as put and get are not atomic
|
||||
return [...new Set([...got, pkg.version])].sort()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue