Skip to content

Full Toolkit for Next-Level Domain Analysis

Move node:* imports to top 🏗️

Felix Wotschofsky536cf8b61aa8
diff --git a/.prettierrc.js b/.prettierrc.js
index 1078435..1939554 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -9,6 +9,7 @@ module.exports = {
'prettier-plugin-tailwindcss',
],
importOrder: [
+ '^node:(.*)$',
'<THIRD_PARTY_MODULES>',
'^@/components/ui/(.*)$',
'^@/(.*)$',
diff --git a/lib/resolvers/authoritative.ts b/lib/resolvers/authoritative.ts
index 1a06500..4e3f3f7 100644
--- a/lib/resolvers/authoritative.ts
+++ b/lib/resolvers/authoritative.ts
@@ -1,3 +1,5 @@
+import dgram from 'node:dgram';
+
import DataLoader from 'dataloader';
import dnsPacket, {
type Answer,
@@ -5,7 +7,6 @@ import dnsPacket, {
type Question,
type StringAnswer,
} from 'dns-packet';
-import dgram from 'node:dgram';
import { retry } from '@/lib/utils';