MCPcopy Index your code
hub / github.com/fontsource/fontsource / getVariableList

Function getVariableList

api/metadata/src/variable/get.ts:5–19  ·  view source on GitHub ↗
(env: Env, ctx: ExecutionContext)

Source from the content-addressed store, hash-verified

3import { updateAxisRegistry, updateVariableList } from './update';
4
5export const getVariableList = async (env: Env, ctx: ExecutionContext) => {
6 const value = await env.METADATA.get<VariableList>(
7 METADATA_KEYS.variable_list,
8 {
9 type: 'json',
10 cacheTtl: KV_TTL,
11 },
12 );
13
14 if (!value) {
15 return await updateVariableList(env, ctx);
16 }
17
18 return value;
19};
20
21export const getVariableId = async (
22 id: string,

Callers 2

router.tsFile · 0.90
getVariableIdFunction · 0.85

Calls 1

updateVariableListFunction · 0.90

Tested by

no test coverage detected