MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / getFullVersion

Method getFullVersion

app/services/meta-store.js:46–56  ·  view source on GitHub ↗
(projectName, compactProjVersion)

Source from the content-addressed store, hash-verified

44 }
45
46 getFullVersion(projectName, compactProjVersion) {
47 const availProjVersions = this.availableProjectVersions[projectName];
48 let filtered = availProjVersions.filter(
49 (v) => getCompactVersion(v) === getCompactVersion(compactProjVersion),
50 );
51 if (filtered.length === 0) {
52 return;
53 }
54 // since there can be multiple full versions that match the compact version, use the most recent one.
55 return getLastVersion(filtered);
56 }
57}

Callers 2

getFullVersionFunction · 0.80
meta-store-test.jsFile · 0.80

Calls 2

getCompactVersionFunction · 0.85
getLastVersionFunction · 0.85

Tested by

no test coverage detected