fix(core): update

This commit is contained in:
2022-04-28 12:20:09 +02:00
parent af212b068d
commit c8438069d3
2 changed files with 13 additions and 2 deletions

View File

@@ -76,12 +76,12 @@ export class SmartVersion {
}
public getNewMinorVersion() {
const newInstance = new SmartVersion(`${this.semver.major}.${this.semver.minor + 1}.${this.semver.patch}`);
const newInstance = new SmartVersion(`${this.semver.major}.${this.semver.minor + 1}.${0}`);
return newInstance;
}
public getNewMajorVersion() {
const newInstance = new SmartVersion(`${this.semver.major + 1}.${this.semver.minor}.${this.semver.patch}`);
const newInstance = new SmartVersion(`${this.semver.major + 1}.${0}.${0}`);
return newInstance;
}