fix(core): update
This commit is contained in:
+4
-3
@@ -41,7 +41,7 @@ export class SmartWhois {
|
||||
/**
|
||||
* can be used to prepare an input for the whois command
|
||||
*/
|
||||
public async getParsedUrlResultForWhois(urlArg: string) {
|
||||
public async getDomainDelegation(urlArg: string): Promise<plugins.tsclass.network.IDomainDelegation> {
|
||||
if (!urlArg.includes('//')) {
|
||||
urlArg = `https://${urlArg}`;
|
||||
}
|
||||
@@ -53,12 +53,13 @@ export class SmartWhois {
|
||||
domain: tldtsData.domain,
|
||||
publicSuffix: tldtsData.publicSuffix,
|
||||
subdomain: tldtsData.subdomain,
|
||||
domainWithoutSuffix: tldtsData.domainWithoutSuffix,
|
||||
}
|
||||
}
|
||||
|
||||
public async getAdditionalWhoisDataForDomain(domainArg: string) {
|
||||
if (domainArg.includes('//')) {
|
||||
const parsedUrlResult = await this.getParsedUrlResultForWhois(domainArg);
|
||||
const parsedUrlResult = await this.getDomainDelegation(domainArg);
|
||||
domainArg = parsedUrlResult.fullDomain;
|
||||
}
|
||||
|
||||
@@ -80,7 +81,7 @@ export class SmartWhois {
|
||||
|
||||
public async getWhoisForDomain(domainArg: string): Promise<IWhoisInfo> {
|
||||
if (domainArg.includes('//')) {
|
||||
const parsedUrlResult = await this.getParsedUrlResultForWhois(domainArg);
|
||||
const parsedUrlResult = await this.getDomainDelegation(domainArg);
|
||||
domainArg = parsedUrlResult.fullDomain;
|
||||
}
|
||||
const whoisInfo = await plugins.whoiser.domain(domainArg);
|
||||
|
||||
Reference in New Issue
Block a user