Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Compositr committed Aug 6, 2021
1 parent 75100a0 commit 9b07c30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/updater/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ const defaultMessage = function (options) {
} else if (
semver.minor(options.latestVersion) >
semver.minor(options.currentVersion) &&
semver.major(options.latestVersion) > semver.major(options.currentVersion)
semver.major(options.latestVersion) < semver.major(options.currentVersion)
) {
return chalk`{yellow !} Feature update avaliable (${options.currentVersion} ➔ {green ${options.latestVersion}})`;
} else if (
semver.patch(options.latestVersion) >
semver.patch(options.currentVersion) &&
semver.minor(options.latestVersion) >
semver.minor(options.latestVersion) <
semver.minor(options.currentVersion) &&
semver.major(options.latestVersion) > semver.major(options.currentVersion)
semver.major(options.latestVersion) < semver.major(options.currentVersion)
) {
return chalk`{cyan !} Patch update avaliable (${options.currentVersion}${options.latestVersion})`;
} else {
Expand Down

0 comments on commit 9b07c30

Please sign in to comment.