MCPcopy Create free account
hub / github.com/Kong/httpsnippet / availableTargets

Function availableTargets

src/helpers/utils.ts:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5}
6
7export const availableTargets = () =>
8 Object.keys(targets).map<AvailableTarget>(targetId => ({
9 ...targets[targetId as TargetId].info,
10 clients: Object.keys(targets[targetId as TargetId].clientsById).map(
11 clientId => targets[targetId as TargetId].clientsById[clientId].info,
12 ),
13 }));
14
15export const extname = (targetId: TargetId) => targets[targetId]?.info.extname || '';

Callers 2

utils.test.tsFile · 0.90
targets.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…