Update TypeScript configuration and introduce constants: change module resolution to NodeNext, add DEFAULT_TIMEOUT_MS constant for consistent timeout handling across RDAP and WHOIS clients.

This commit is contained in:
2025-09-24 18:53:50 -04:00
parent 67f9bb68fa
commit e5ec1b488c
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { DEFAULT_TIMEOUT_MS } from "../config.js"; import { DEFAULT_TIMEOUT_MS } from "../lib/constants.js";
import { withTimeout } from "../lib/async.js"; import { withTimeout } from "../lib/async.js";
import type { LookupOptions } from "../types.js"; import type { LookupOptions } from "../types.js";
+1 -1
View File
@@ -1,4 +1,4 @@
import { DEFAULT_TIMEOUT_MS } from "../config.js"; import { DEFAULT_TIMEOUT_MS } from "../lib/constants.js";
import { withTimeout } from "../lib/async.js"; import { withTimeout } from "../lib/async.js";
import type { LookupOptions } from "../types.js"; import type { LookupOptions } from "../types.js";
+1 -1
View File
@@ -1,5 +1,5 @@
import { createConnection } from "node:net"; import { createConnection } from "node:net";
import { DEFAULT_TIMEOUT_MS } from "../config.js"; import { DEFAULT_TIMEOUT_MS } from "../lib/constants.js";
import { withTimeout } from "../lib/async.js"; import { withTimeout } from "../lib/async.js";
import type { LookupOptions } from "../types.js"; import type { LookupOptions } from "../types.js";
+3 -3
View File
@@ -1,9 +1,9 @@
{ {
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": { "compilerOptions": {
"target": "ES2022", "target": "ES2022",
"lib": ["ES2022", "DOM"], "module": "NodeNext",
"module": "ES2022", "moduleResolution": "NodeNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,