function getCurrentActiveType (version) {
  const typelist = TypeList
  for (let i = 0; i < typelist.length; i++) {
    if (semver[typelist[i]](version)) {
      return typelist[i]
    }
  }
}
extract the in-pre-release type in target version

@param version
@return {string}