Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
4093d091f4 | |||
7a8086b58c | |||
a45e41889d | |||
c33ee3f52c |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartwhois",
|
||||
"version": "1.0.9",
|
||||
"version": "1.0.11",
|
||||
"private": false,
|
||||
"description": "a package for dealing with whois requests",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -22,6 +22,10 @@ tap.test('should get whois info for domain', async () => {
|
||||
const whoisInfo = await testSmartWhois.getWhoisForDomain('task.vc');
|
||||
console.log(whoisInfo);
|
||||
});
|
||||
tap.test('should get whois info for domain', async () => {
|
||||
const whoisInfo = await testSmartWhois.getWhoisForDomain('https://lossless.com');
|
||||
console.log(whoisInfo);
|
||||
});
|
||||
|
||||
tap.test('should get whois info for domain', async () => {
|
||||
const whoisInfo = await testSmartWhois.getWhoisForDomain('https://coffee.link/understanding-gen-z/');
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartwhois',
|
||||
version: '1.0.9',
|
||||
version: '1.0.11',
|
||||
description: 'a package for dealing with whois requests'
|
||||
}
|
||||
|
@ -68,8 +68,8 @@ export class SmartWhois {
|
||||
return {
|
||||
httpStatus: httpResult.statusCode,
|
||||
httpsStatus: httpsResult.statusCode,
|
||||
httpContentType: httpResult.headers['content-type'],
|
||||
httpsContentType: httpsResult.headers['content-type'],
|
||||
httpHeaders: httpResult.headers,
|
||||
httpsHeaders: httpsResult.headers,
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user