MCPcopy Create free account
hub / github.com/EvoMap/evolver / jsonResponse

Function jsonResponse

test/issueReporter.test.js:11–18  ·  view source on GitHub ↗
(body, status)

Source from the content-addressed store, hash-verified

9}
10
11function jsonResponse(body, status) {
12 return {
13 ok: status == null || (status >= 200 && status < 300),
14 status: status || 200,
15 json: async function () { return body; },
16 text: async function () { return JSON.stringify(body); },
17 };
18}
19
20(async function run() {
21 delete require.cache[MODULE_PATH];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected