check-version.js
function isPre(p1, p2) {
  // remove the ^
  const stripped = semver.coerce(p2).raw;
  const diff = semver.diff(p1, stripped);
  return ['premajor', 'preminor', 'prepatch', 'prerelease'].indexOf(diff) >= 0 ? true : false;
}
function isPre(p1, p2) {
  // remove the ^
  const stripped = semver.coerce(p2).raw;
  const diff = semver.diff(p1, stripped);
  return ['premajor', 'preminor', 'prepatch', 'prerelease'].indexOf(diff) >= 0 ? true : false;
}
function isPre ( p1 , p2 ) { // remove the ^ const stripped = semver . coerce ( p2 ) . raw ; const diff = semver . diff ( p1 , stripped ) ; return [ 'premajor' , 'preminor' , 'prepatch' , 'prerelease' ] . indexOf ( diff ) >= 0 ? true : false ; }
checks if the version is a "pre"
checks if the version is a pre