updated docs, fixed run with node/tsx

This commit is contained in:
dswbx
2025-03-28 21:12:50 +01:00
parent b29c04e8c9
commit b2fd907e8c
5 changed files with 28 additions and 20 deletions

View File

@@ -78,6 +78,7 @@ export const assetsTmpPath = `${import.meta.dir}/_assets/tmp`;
export async function enableFetchLogging() {
const originalFetch = global.fetch;
// @ts-ignore
global.fetch = async (input: RequestInfo | URL, init?: RequestInit) => {
const response = await originalFetch(input, init);
const url = input instanceof URL || typeof input === "string" ? input : input.url;