Add includeRaw option to CLI and API: enable inclusion of raw RDAP/WHOIS data in results

This commit is contained in:
2025-09-24 19:24:57 -04:00
parent 05445ef831
commit fda6d09096
6 changed files with 13 additions and 6 deletions
+2
View File
@@ -43,6 +43,7 @@ export async function lookupDomain(
json,
tried,
now,
!!opts?.includeRaw,
);
return { ok: true, record };
} catch {
@@ -105,6 +106,7 @@ export async function lookupDomain(
res.text,
res.serverQueried,
now,
!!opts?.includeRaw,
);
return { ok: true, record };
} catch (err: unknown) {