MCPcopy Index your code
hub / github.com/tensorflow/tfjs / getPatchUpdateVersion

Function getPatchUpdateVersion

scripts/release-util.ts:472–484  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

470
471// Computes the default updated version (does a patch version update).
472export function getPatchUpdateVersion(version: string): string {
473 const versionSplit = version.split('.');
474
475 // For alpha or beta version string (e.g. "0.0.1-alpha.5"), increase the
476 // number after alpha/beta.
477 if (versionSplit[2].includes('alpha') || versionSplit[2].includes('beta')) {
478 return [
479 versionSplit[0], versionSplit[1], versionSplit[2], +versionSplit[3] + 1
480 ].join('.');
481 }
482
483 return [versionSplit[0], versionSplit[1], +versionSplit[2] + 1].join('.');
484}
485
486
487/**

Callers 1

mainFunction · 0.90

Calls 2

joinMethod · 0.80
splitMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…