From ced8de62643b9afdd107940e0f2bb018a6605543 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sat, 11 Jan 2025 16:26:49 +0800 Subject: [PATCH] Patch `whoiser` to support `ga` TLD --- package.json | 3 ++- patches/whoiser.patch | 13 +++++++++++++ pnpm-lock.yaml | 7 +++++-- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 patches/whoiser.patch diff --git a/package.json b/package.json index bf6f4770b..a996e3dba 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,8 @@ }, "pnpm": { "patchedDependencies": { - "undici": "patches/undici.patch" + "undici": "patches/undici.patch", + "whoiser": "patches/whoiser.patch" } } } diff --git a/patches/whoiser.patch b/patches/whoiser.patch new file mode 100644 index 000000000..a070fc1e7 --- /dev/null +++ b/patches/whoiser.patch @@ -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.. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ade12320d..8cf14898b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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