MCPcopy Index your code
hub / github.com/reactnativecn/react-native-update / json

Function json

Example/e2etest/scripts/local-e2e-server.ts:44–52  ·  view source on GitHub ↗
(body: unknown, status = 200)

Source from the content-addressed store, hash-verified

42}
43
44function json(body: unknown, status = 200) {
45 return new Response(JSON.stringify(body), {
46 status,
47 headers: {
48 'Content-Type': 'application/json; charset=utf-8',
49 'Cache-Control': 'no-store',
50 },
51 });
52}
53
54function safeResolve(urlPath: string) {
55 const relativePath = urlPath.replace(/^\/artifacts/, '');

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected