MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / validateVersion

Function validateVersion

apps/cli/src/release.ts:113–117  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

111};
112
113const validateVersion = (version: string): void => {
114 if (!semverPattern.test(version)) {
115 throw new Error(`${versionPackagePath} version is not valid semver: ${version}`);
116 }
117};
118
119const resolveChannel = (version: string): ReleaseChannel =>
120 version.includes("-") ? "beta" : "latest";

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected