MCPcopy Index your code
hub / github.com/coder/code-server / isLatestVersion

Method isLatestVersion

src/node/update.ts:75–82  ·  view source on GitHub ↗

* Return true if the currently installed version is the latest.

(latest: Update)

Source from the content-addressed store, hash-verified

73 * Return true if the currently installed version is the latest.
74 */
75 public isLatestVersion(latest: Update): boolean {
76 logger.debug("comparing versions", field("current", version), field("latest", latest.version))
77 try {
78 return semver.lte(latest.version, version)
79 } catch (error) {
80 return true
81 }
82 }
83
84 private async request(uri: string): Promise<Buffer> {
85 const response = await this.requestResponse(uri)

Callers 2

update.test.tsFile · 0.80
update.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected