(body, status)
| 9 | } |
| 10 | |
| 11 | function 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]; |