Skip to content

Commit

Permalink
fix: fix distTags sorter
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 7, 2022
1 parent 3236f67 commit 7384aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/js/firewall/packument.js
Expand Up @@ -69,7 +69,7 @@ export const patchTime = (time, versions) => Object.entries(time).reduce((m, [k,
})

export const guessDistTags = (distTags, versions, time) => {
const _versions = Object.keys(versions).sort((a, b) => time[b] - time[a])
const _versions = Object.keys(versions).sort((a, b) => Date.parse(time[b]) - Date.parse(time[a]))

return Object.entries(distTags)
.reduce((m, [tag, v]) => {
Expand Down

0 comments on commit 7384aad

Please sign in to comment.