Replaced tsconfig.build.json with tsdown configuration for simplified builds.

This commit is contained in:
2025-09-28 21:30:57 -04:00
parent d09d8e4ffd
commit c76da2bf5c
20 changed files with 826 additions and 868 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import { createConnection } from "node:net";
import { withTimeout } from "../lib/async.js";
import { DEFAULT_TIMEOUT_MS } from "../lib/constants.js";
import type { LookupOptions } from "../types.js";
import { withTimeout } from "../lib/async";
import { DEFAULT_TIMEOUT_MS } from "../lib/constants";
import type { LookupOptions } from "../types";
export interface WhoisQueryResult {
serverQueried: string;
+4 -6
View File
@@ -1,6 +1,6 @@
import type { LookupOptions } from "../types.js";
import { whoisQuery } from "./client.js";
import { WHOIS_TLD_EXCEPTIONS } from "./servers.js";
import type { LookupOptions } from "../types";
import { whoisQuery } from "./client";
import { WHOIS_TLD_EXCEPTIONS } from "./servers";
/**
* Parse the IANA WHOIS response for a TLD and extract the WHOIS server
@@ -32,9 +32,7 @@ export function parseIanaWhoisServer(text: string): string | undefined {
* remarks: Registration information: http://example.tld
* url: https://registry.example
*/
export function parseIanaRegistrationInfoUrl(
text: string,
): string | undefined {
export function parseIanaRegistrationInfoUrl(text: string): string | undefined {
const lines = String(text).split(/\r?\n/);
for (const raw of lines) {
const line = raw.trim();
+1 -1
View File
@@ -1,5 +1,5 @@
import { expect, test } from "vitest";
import { normalizeWhois } from "./normalize.js";
import { normalizeWhois } from "./normalize";
test("WHOIS .de (DENIC-like) nserver lines", () => {
const text = `
+4 -4
View File
@@ -1,12 +1,12 @@
import { toISO } from "../lib/dates.js";
import { isWhoisAvailable } from "../lib/domain.js";
import { parseKeyValueLines, uniq } from "../lib/text.js";
import { toISO } from "../lib/dates";
import { isWhoisAvailable } from "../lib/domain";
import { parseKeyValueLines, uniq } from "../lib/text";
import type {
Contact,
DomainRecord,
Nameserver,
RegistrarInfo,
} from "../types.js";
} from "../types";
/**
* Convert raw WHOIS text into our normalized DomainRecord.