fix(core): update
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartwhois',
|
||||
version: '1.0.3',
|
||||
version: '1.0.4',
|
||||
description: 'a package for dealing with whois requests'
|
||||
}
|
||||
|
10
ts/index.ts
10
ts/index.ts
@ -21,5 +21,13 @@ export class SmartWhois {
|
||||
};
|
||||
}
|
||||
|
||||
public async isValidTld(tldArg: string): Promise<boolean> {
|
||||
const allTlds = await plugins.whoiser.allTlds();
|
||||
const sanatizedTld = tldArg.startsWith('.')
|
||||
? tldArg.replace('.', '').toUpperCase()
|
||||
: tldArg.toUpperCase();
|
||||
return allTlds.includes(sanatizedTld);
|
||||
}
|
||||
|
||||
public async getWhoisForIp(ipArg: string) {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user