MCPcopy Index your code
hub / github.com/github/docs / getFlatMappingWithCalendarDates

Function getFlatMappingWithCalendarDates

tests/rendering/rest.js:186–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184// enterprise-server@3.6: { url: enterprise-server@3.6 }
185// }
186function getFlatMappingWithCalendarDates() {
187 const flatMapping = {}
188
189 for (const version in allVersions) {
190 if (isApiVersioned(version)) {
191 for (const apiVersion of allVersions[version].apiVersions) {
192 flatMapping[allVersions[version].version] = {
193 url: `${version === 'free-pro-team@latest' ? '' : allVersions[version].version}`,
194 apiVersion,
195 }
196 }
197 } else {
198 flatMapping[allVersions[version].version] = { url: allVersions[version].version }
199 }
200 }
201
202 return flatMapping
203}

Callers 1

rest.jsFile · 0.85

Calls 1

isApiVersionedFunction · 0.90

Tested by

no test coverage detected