MCPcopy
hub / github.com/CopilotKit/CopilotKit / bodyOf

Function bodyOf

packages/shared/src/telemetry/lambda-client.test.ts:18–24  ·  view source on GitHub ↗
(callIdx = 0)

Source from the content-addressed store, hash-verified

16 });
17
18 function bodyOf(callIdx = 0): {
19 properties: Record<string, unknown>;
20 global_properties: Record<string, unknown>;
21 } {
22 const init = fetchMock.mock.calls[callIdx][1] as RequestInit;
23 return JSON.parse(init.body as string);
24 }
25
26 function headersOf(callIdx = 0): Record<string, string> {
27 const init = fetchMock.mock.calls[callIdx][1] as RequestInit;

Callers 1

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…