@stacksjs/whois 0.58.62 → 0.58.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -22,7 +22,7 @@ async function findWhoIsServer(tld: string): Promise<string> {
|
|
|
22
22
|
const body = await res.text()
|
|
23
23
|
const server = body.match(/whois:\s+(.*)\s+/)
|
|
24
24
|
if (server)
|
|
25
|
-
return server[1]
|
|
25
|
+
return server[1]!
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
catch (err) {
|
|
@@ -103,7 +103,7 @@ function getTLD(domain: string): keyof typeof SERVERS {
|
|
|
103
103
|
|
|
104
104
|
// get whois query parameters if exist on parameters.json for whois server
|
|
105
105
|
function getParameters(server: string): string | undefined {
|
|
106
|
-
return PARAMETERS[server]
|
|
106
|
+
return (PARAMETERS as { [key: string]: string })[server]
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/**
|