MCPcopy
hub / github.com/codeaashu/claude-code / getSemverPart

Function getSemverPart

src/hooks/useUpdateNotification.ts:4–6  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

2import { major, minor, patch } from 'semver'
3
4export function getSemverPart(version: string): string {
5 return `${major(version, { loose: true })}.${minor(version, { loose: true })}.${patch(version, { loose: true })}`
6}
7
8export function shouldShowUpdateNotification(
9 updatedVersion: string,

Callers 2

useUpdateNotificationFunction · 0.85

Calls 1

patchFunction · 0.85

Tested by

no test coverage detected