MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getSemverPart

Function getSemverPart

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

Source from the content-addressed store, hash-verified

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

Callers 2

useUpdateNotificationFunction · 0.85

Calls 1

patchFunction · 0.85

Tested by

no test coverage detected