Type Alias: DebugOption
DebugOption =
true| ((event) =>void)
Defined in: src/types/options.ts:186
Controls structured debug logging of request lifecycle events.
true— logs a plain summary of each event viaconsole.debug('[valifetch]', summary):type,method,url, requestheaders, plusattempt/status/responseHeaders(response) orattempt/delay/reason(retry). Values of headers, and of URL query parameters, whose name matchesauth,cookie,token,secret,key,session,pass,credential,sig,jwt,dpop,csrf,xsrf,otp,bearerorcode(case-insensitive substring) are replaced with'[REDACTED]'. Matching is deliberately broad, so some harmless names are redacted too. The URL path and fragment are logged as-is.- function — receives each
DebugEventdirectly, with the liveRequest/Response(headers unredacted); redacting secrets is then the function's responsibility