Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
export function isServerUpdateAvailable(current: string, latest: string) {
const c = current.split('.').map(Number)
const l = latest.split('.').map(Number)
const max = Math.max(c.length, l.length)
for (let i = 0; i < max; i++) {
const cv = c[i] || 0
const lv = l[i] || 0
if (lv > cv) return true
if (lv < cv) return false
}
return false
}