Skip to content

Commit

Permalink
Version#toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git committed Jul 25, 2024
1 parent cdc3f96 commit b9dba44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class Version {
return new Version(major, minor, patch, label);
}

public toString() {
return `${this.major}.${this.minor}.${this.patch}${this.label === undefined ? "" : `-${this.label}`}`;
}

/**
* Check whether this version (local) is compatible with the given version (remote)
*
Expand Down

0 comments on commit b9dba44

Please sign in to comment.