mirror of
https://github.com/jakejarvis/rdapper.git
synced 2026-09-23 01:25:31 -04:00
Add includeRaw option to CLI and API: enable inclusion of raw RDAP/WHOIS data in results
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user