(other: Version, ignorePatchUpdate?: boolean)
| 22 | } |
| 23 | |
| 24 | public isGreaterThan(other: Version, ignorePatchUpdate?: boolean): boolean { |
| 25 | if (this.major !== other.major) { |
| 26 | return this.major > other.major; |
| 27 | } |
| 28 | if (this.minor !== other.minor) { |
| 29 | return this.minor > other.minor; |
| 30 | } |
| 31 | return ignorePatchUpdate ? false : this.patch > other.patch; |
| 32 | } |
| 33 | |
| 34 | public isGreaterThanOrEqualTo(other: Version, ignorePatchUpdate?: boolean): boolean { |
| 35 | return this.isEqualTo(other, ignorePatchUpdate) || this.isGreaterThan(other, ignorePatchUpdate); |
no outgoing calls
no test coverage detected