import { SemVer } from 'semver' ; import { MAJOR_VERSION } from '../../../common/constants' ; const kibanaVersion = new SemVer ( MAJOR_VERSION ) ; export const getMockVersionInfo = ( ) => { const currentMajor = kibanaVersion . major ; return { currentVersion : kibanaVersion , currentMajor , prevMajor : currentMajor - 1 , nextMajor : currentMajor + 1 , } ; } ;