mirror of
https://github.com/jakejarvis/rdapper.git
synced 2026-09-23 01:25:31 -04:00
Replaced tsconfig.build.json with tsdown configuration for simplified builds.
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
@@ -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,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 = `
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user