Patch whoiser to support ga TLD

This commit is contained in:
SukkaW 2025-01-11 16:26:49 +08:00
parent 7b859e7358
commit 35bead6f99
3 changed files with 20 additions and 3 deletions

View File

@ -77,7 +77,8 @@
},
"pnpm": {
"patchedDependencies": {
"undici": "patches/undici.patch"
"undici": "patches/undici.patch",
"whoiser": "patches/whoiser.patch"
}
}
}

13
patches/whoiser.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/src/whoiser.js b/src/whoiser.js
index ff42b8c7fe1749d389df2d420f68f1ec6590fe69..dea40e123c8bab3c38c1e5d41b6da3bff43acbfe 100644
--- a/src/whoiser.js
+++ b/src/whoiser.js
@@ -50,6 +50,8 @@ let cacheTldWhoisServer = {
shop: 'whois.nic.shop',
site: 'whois.nic.site',
xyz: 'whois.nic.xyz',
+
+ ga: 'whois.nic.ga'
}
// misspelled whois servers..

7
pnpm-lock.yaml generated
View File

@ -11,6 +11,9 @@ patchedDependencies:
undici:
hash: eyidnukwfhrd7exzoydz2h5cfq
path: patches/undici.patch
whoiser:
hash: jvdx7w7gioupgqcow7nnybv6ye
path: patches/whoiser.patch
importers:
@ -84,7 +87,7 @@ importers:
version: 0.1.1(undici@7.2.1(patch_hash=eyidnukwfhrd7exzoydz2h5cfq))
whoiser:
specifier: ^1.18.0
version: 1.18.0
version: 1.18.0(patch_hash=jvdx7w7gioupgqcow7nnybv6ye)
why-is-node-running:
specifier: ^3.2.2
version: 3.2.2
@ -3783,7 +3786,7 @@ snapshots:
dependencies:
isexe: 2.0.0
whoiser@1.18.0:
whoiser@1.18.0(patch_hash=jvdx7w7gioupgqcow7nnybv6ye):
dependencies:
punycode: 2.3.1