4 Commits

Author SHA1 Message Date
4093d091f4 1.0.11 2023-04-19 18:49:06 +02:00
7a8086b58c fix(core): update 2023-04-19 18:49:06 +02:00
a45e41889d 1.0.10 2023-04-19 18:41:54 +02:00
c33ee3f52c fix(core): update 2023-04-19 18:41:54 +02:00
4 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartwhois", "name": "@pushrocks/smartwhois",
"version": "1.0.9", "version": "1.0.11",
"private": false, "private": false,
"description": "a package for dealing with whois requests", "description": "a package for dealing with whois requests",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -22,6 +22,10 @@ tap.test('should get whois info for domain', async () => {
const whoisInfo = await testSmartWhois.getWhoisForDomain('task.vc'); const whoisInfo = await testSmartWhois.getWhoisForDomain('task.vc');
console.log(whoisInfo); 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 () => { tap.test('should get whois info for domain', async () => {
const whoisInfo = await testSmartWhois.getWhoisForDomain('https://coffee.link/understanding-gen-z/'); const whoisInfo = await testSmartWhois.getWhoisForDomain('https://coffee.link/understanding-gen-z/');

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartwhois', name: '@pushrocks/smartwhois',
version: '1.0.9', version: '1.0.11',
description: 'a package for dealing with whois requests' description: 'a package for dealing with whois requests'
} }

View File

@ -68,8 +68,8 @@ export class SmartWhois {
return { return {
httpStatus: httpResult.statusCode, httpStatus: httpResult.statusCode,
httpsStatus: httpsResult.statusCode, httpsStatus: httpsResult.statusCode,
httpContentType: httpResult.headers['content-type'], httpHeaders: httpResult.headers,
httpsContentType: httpsResult.headers['content-type'], httpsHeaders: httpsResult.headers,
} }
} }