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

Function getEnabledForApps

src/rest/lib/index.js:139–148  ·  view source on GitHub ↗
(docsVersion, apiVersion)

Source from the content-addressed store, hash-verified

137
138const enabledForApps = {}
139export async function getEnabledForApps(docsVersion, apiVersion) {
140 if (Object.keys(enabledForApps).length === 0) {
141 // The `readCompressedJsonFileFallback()` function
142 // will check for both a .br and .json extension.
143 Object.assign(enabledForApps, readCompressedJsonFileFallback(ENABLED_APPS_FILENAME))
144 }
145 const openApiVersion = getOpenApiVersion(docsVersion) + (apiVersion ? `.${apiVersion}` : '')
146
147 return enabledForApps[openApiVersion]
148}

Callers 2

getServerSidePropsFunction · 0.90
rest.jsFile · 0.90

Calls 2

getOpenApiVersionFunction · 0.70

Tested by

no test coverage detected