Refactor WHOIS handling: move WHOIS_TLD_EXCEPTIONS to servers.ts, update imports in discovery and index files, and add DEFAULT_TIMEOUT_MS constant to bootstrap and client modules for consistency.

This commit is contained in:
2025-09-24 18:57:55 -04:00
parent e5ec1b488c
commit 6857b0d11b
7 changed files with 58 additions and 65 deletions
+1 -1
View File
@@ -4,13 +4,13 @@ import { getRdapBaseUrlsForTld } from "./rdap/bootstrap.js";
import { fetchRdapDomain } from "./rdap/client.js";
import { normalizeRdap } from "./rdap/normalize.js";
import type { DomainRecord, LookupOptions, LookupResult } from "./types.js";
import { WHOIS_TLD_EXCEPTIONS } from "./whois/catalog.js";
import { whoisQuery } from "./whois/client.js";
import {
extractWhoisReferral,
ianaWhoisServerForTld,
} from "./whois/discovery.js";
import { normalizeWhois } from "./whois/normalize.js";
import { WHOIS_TLD_EXCEPTIONS } from "./whois/servers.js";
/**
* High-level lookup that prefers RDAP and falls back to WHOIS.