MCPcopy Create free account
hub / github.com/vercel/vercel / versionLessOrEqual

Function versionLessOrEqual

packages/python/src/version.ts:116–121  ·  view source on GitHub ↗
(a: PythonVersion, b: PythonVersion)

Source from the content-addressed store, hash-verified

114}
115
116function versionLessOrEqual(a: PythonVersion, b: PythonVersion): boolean {
117 const am = a.major ?? 0;
118 const bm = b.major ?? 0;
119 if (am !== bm) return am < bm;
120 return (a.minor ?? 0) <= (b.minor ?? 0);
121}
122
123function toPythonBuild(opt: PythonVersion): PythonBuild {
124 if (opt.major === undefined || opt.minor === undefined) {

Callers 1

resolvePythonVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected