(other: Version, ignorePatchUpdate?: boolean)
| 36 | } |
| 37 | |
| 38 | public isLesserThan(other: Version, ignorePatchUpdate?: boolean): boolean { |
| 39 | if (this.major !== other.major) { |
| 40 | return this.major < other.major; |
| 41 | } |
| 42 | if (this.minor !== other.minor) { |
| 43 | return this.minor < other.minor; |
| 44 | } |
| 45 | return ignorePatchUpdate ? false : this.patch < other.patch; |
| 46 | } |
| 47 | |
| 48 | public isLesserThanOrEqualTo(other: Version, ignorePatchUpdate?: boolean): boolean { |
| 49 | return this.isEqualTo(other, ignorePatchUpdate) || this.isLesserThan(other, ignorePatchUpdate); |
no outgoing calls
no test coverage detected