mirror of
https://github.com/jakejarvis/rdapper.git
synced 2026-09-23 00:15:31 -04:00
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:
@@ -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
@@ -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
@@ -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
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user