mirror of
https://github.com/jakejarvis/rdapper.git
synced 2026-09-23 01:25:31 -04:00
Make the (very minimal) CLI official
This commit is contained in:
+2
-3
@@ -34,10 +34,9 @@ async function queryTcp(
|
||||
query: string,
|
||||
options?: LookupOptions,
|
||||
): Promise<string> {
|
||||
let net: typeof import("net") | null;
|
||||
let net: typeof import("node:net") | null;
|
||||
try {
|
||||
// biome-ignore lint/style/useNodejsImportProtocol: compatibility
|
||||
net = await import("net");
|
||||
net = await import("node:net");
|
||||
} catch {
|
||||
net = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user