update
This commit is contained in:
+8
-8
@@ -9,7 +9,7 @@
|
||||
"author": "Task Venture Capital GmbH",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "(tstest test/ --web)",
|
||||
"test": "(tstest test/ --verbose)",
|
||||
"build": "(tsbuild --web --allowimplicitany)",
|
||||
"buildDocs": "tsdoc"
|
||||
},
|
||||
@@ -17,15 +17,14 @@
|
||||
"@git.zone/tsbuild": "^2.1.65",
|
||||
"@git.zone/tsbundle": "^2.0.7",
|
||||
"@git.zone/tsrun": "^1.2.39",
|
||||
"@git.zone/tstest": "^1.0.74",
|
||||
"@push.rocks/tapbundle": "^5.0.4",
|
||||
"@types/node": "^18.15.11"
|
||||
"@git.zone/tstest": "^2.3.2",
|
||||
"@types/node": "^22"
|
||||
},
|
||||
"dependencies": {
|
||||
"@push.rocks/smartrequest": "^2.0.15",
|
||||
"@push.rocks/smartrequest": "^4.0.1",
|
||||
"@push.rocks/smarturl": "^3.0.6",
|
||||
"@tsclass/tsclass": "^4.0.38",
|
||||
"tldts": "^6.0.3",
|
||||
"@tsclass/tsclass": "^9.2.0",
|
||||
"tldts": "^7.0.10",
|
||||
"whoiser": "^1.16.0"
|
||||
},
|
||||
"browserslist": [
|
||||
@@ -56,5 +55,6 @@
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://code.foss.global/push.rocks/smartwhois.git"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
|
||||
}
|
||||
Generated
+7739
-4464
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
import * as smartwhois from '../ts/index.js';
|
||||
|
||||
let testSmartWhois: smartwhois.SmartWhois;
|
||||
|
||||
+8
-4
@@ -65,14 +65,18 @@ export class SmartWhois {
|
||||
}
|
||||
|
||||
// lets test http response
|
||||
const httpResult = await plugins.smartrequest.safeGet(`http://${domainArg}/`);
|
||||
const httpResult = await plugins.smartrequest.SmartRequest.create()
|
||||
.url(`http://${domainArg}/`)
|
||||
.get();
|
||||
|
||||
// lets test https response
|
||||
const httpsResult = await plugins.smartrequest.safeGet(`https://${domainArg}/`);
|
||||
const httpsResult = await plugins.smartrequest.SmartRequest.create()
|
||||
.url(`https://${domainArg}/`)
|
||||
.get();
|
||||
|
||||
return {
|
||||
httpStatus: httpResult.statusCode,
|
||||
httpsStatus: httpsResult.statusCode,
|
||||
httpStatus: httpResult.status,
|
||||
httpsStatus: httpsResult.status,
|
||||
httpHeaders: httpResult.headers,
|
||||
httpsHeaders: httpsResult.headers,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user