export class Version { param currentVersion param prevVersion returns public static isNewVersion ( currentVersion , prevVersion ) { try { if ( ! currentVersion ) return false ; const cv = currentVersion . split ( '.' ) ; if ( cv . length < 2 ) return false ; if ( ! prevVersion ) return true ; const pv = prevVersion . split ( '.' ) ; if ( pv . length < 2 ) return true ; const cmjr = parseInt ( cv [ 0 ] ) ; if ( isNaN ( cmjr ) ) return false ; const cmnr = parseInt ( cv [ 1 ] ) ; if ( isNaN ( cmnr ) ) return false ; const pmjr = parseInt ( pv [ 0 ] ) ; if ( isNaN ( pmjr ) ) return true ; const pmnr = parseInt ( pv [ 1 ] ) ; if ( isNaN ( pmnr ) ) return true ; if ( cmjr > pmjr ) return true ; if ( cmnr > pmnr ) return true ; return false ; } catch { return false ; } } }