From 189290e093a3438ac6deeb32b4bb44a93073c1e8 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Tue, 17 Mar 2026 23:42:35 +0100 Subject: [PATCH] consistent imports --- src/integrations/orpc/services/printer.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/integrations/orpc/services/printer.ts b/src/integrations/orpc/services/printer.ts index db513edc9..a7fdf1253 100644 --- a/src/integrations/orpc/services/printer.ts +++ b/src/integrations/orpc/services/printer.ts @@ -1,5 +1,5 @@ -import * as dns from "dns"; -import { isIP } from "net"; +import dns from "node:dns/promises"; +import { isIP } from "node:net"; import { ORPCError } from "@orpc/server"; import type { InferSelectModel } from "drizzle-orm"; import puppeteer, { type Browser, type ConnectOptions, type Page } from "puppeteer-core"; @@ -17,11 +17,11 @@ let browserInstance: Browser | null = null; async function normalizePrinterEndpoint(printerEndpoint: string): Promise { // Convert endpoint hostname to IP when using chromedp - // SEE ISSUE: https://github.com/amruthpillai/reactive-resume/issues/2681 + // https://github.com/amruthpillai/reactive-resume/issues/2681 const endpoint = new URL(printerEndpoint); if (!isIP(endpoint.hostname) && !endpoint.protocol.startsWith("ws")) { - const { address } = await dns.promises.lookup(endpoint.hostname); + const { address } = await dns.lookup(endpoint.hostname); endpoint.hostname = address; }