()
| 261 | } |
| 262 | |
| 263 | public toString(): string { |
| 264 | const preRelease = this.preReleaseType |
| 265 | ? `-${this.preReleaseType}${this.preReleaseNumber ?? 0}` |
| 266 | : ''; |
| 267 | const build = this.build ? `+${this.build}` : ''; |
| 268 | return `${this.major}.${this.minor}.${this.patch}${preRelease}${build}`; |
| 269 | } |
| 270 | |
| 271 | public compare(other: SemanticVersion): number { |
| 272 | // Compare major, minor, and patch versions |
no outgoing calls
no test coverage detected