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 -1
View File
@@ -18,6 +18,7 @@ export function normalizeWhois(
whoisText: string,
whoisServer: string | undefined,
fetchedAtISO: string,
includeRaw = false,
): DomainRecord {
const map = parseKeyValueLines(whoisText);
@@ -151,7 +152,7 @@ export function normalizeWhois(
whoisServer,
rdapServers: undefined,
rawRdap: undefined,
rawWhois: whoisText,
rawWhois: includeRaw ? whoisText : undefined,
source: "whois",
fetchedAt: fetchedAtISO,
warnings: undefined,