Skip to content

Commit

Permalink
fix: Fixed bug in decorate (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirkaang authored Jul 25, 2024
1 parent 27e2a4b commit 1bfe646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode/src/semver/semverUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export function checkVersion(version: string = "0.0.0", versions: string[]): [bo
v = "^" + v;
const max = versions[0];
if (maxSatisfying(versions, v) === null) {
if (valid(v) === null) {
if (valid(normalizeVersion(version)) === null) {
return [false, false, null];
}
// TODO: ask this test with kaan
const minV = minVersion(v)?.toString() ?? '0.0.0';
if (gt(minV, max)) {
return [true, true, v];
return [true, false, v];
}
}
// if check patch is true, check if the patch version is the same or higher than the current version
Expand Down

0 comments on commit 1bfe646

Please sign in to comment.