lib/lifecycles/bump.js
function getCurrentActiveType (version) {
  let typelist = TypeList
  for (let i = 0; i < typelist.length; i++) {
    if (semver[typelist[i]](version)) {
      return typelist[i]
    }
  }
}
function getCurrentActiveType (version) {
  let typelist = TypeList
  for (let i = 0; i < typelist.length; i++) {
    if (semver[typelist[i]](version)) {
      return typelist[i]
    }
  }
}
function getCurrentActiveType ( version ) { let 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}
extract the in - pre - release type in target version