MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / isGreaterThan

Method isGreaterThan

src/scripts/versioning/version.ts:24–32  ·  view source on GitHub ↗
(other: Version, ignorePatchUpdate?: boolean)

Source from the content-addressed store, hash-verified

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);

Callers 3

testsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected