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