MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / verGE

Function verGE

vmm/ui/src/composables/useVmManager.ts:635–643  ·  view source on GitHub ↗
(versionStr: string, otherVersionStr: string)

Source from the content-addressed store, hash-verified

633 };
634
635 const verGE = (versionStr: string, otherVersionStr: string) => {
636 const versionParts = versionStr.split('.').map(Number);
637 const otherParts = otherVersionStr.split('.').map(Number);
638 return (
639 versionParts[0] > otherParts[0] ||
640 (versionParts[0] === otherParts[0] && versionParts[1] > otherParts[1]) ||
641 (versionParts[0] === otherParts[0] && versionParts[1] === otherParts[1] && versionParts[2] >= otherParts[2])
642 );
643 };
644
645 const imageVersionFeatures = (versionStr: string | undefined) => {
646 const features = {

Callers 1

imageVersionFeaturesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected