@reddoorla/maintenance 0.54.1 → 0.54.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -9
- package/dist/cli/bin.js +38 -8
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/commands/audit.js +16 -4
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/forms/index.d.ts +8 -3
- package/dist/forms/index.js +2 -2
- package/dist/forms/index.js.map +1 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -312,7 +312,7 @@ function securityFields(counts) {
|
|
|
312
312
|
}
|
|
313
313
|
function domainFields(result) {
|
|
314
314
|
const fields = { "Domain checked at": result.checkedAt };
|
|
315
|
-
|
|
315
|
+
fields["Cert days remaining"] = result.certDaysRemaining;
|
|
316
316
|
return fields;
|
|
317
317
|
}
|
|
318
318
|
function browserFields(r) {
|
|
@@ -1874,11 +1874,15 @@ async function browserAudit(ctx) {
|
|
|
1874
1874
|
await runner.close?.();
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
|
+
var FETCH_TIMEOUT_MS = 1e4;
|
|
1877
1878
|
function defaultDiscoverDeps() {
|
|
1878
1879
|
return {
|
|
1879
1880
|
fetchText: async (url) => {
|
|
1880
1881
|
try {
|
|
1881
|
-
const res = await fetch(url, {
|
|
1882
|
+
const res = await fetch(url, {
|
|
1883
|
+
redirect: "follow",
|
|
1884
|
+
signal: AbortSignal.timeout(FETCH_TIMEOUT_MS)
|
|
1885
|
+
});
|
|
1882
1886
|
if (!res.ok) return null;
|
|
1883
1887
|
return await res.text();
|
|
1884
1888
|
} catch {
|
|
@@ -1979,9 +1983,17 @@ async function defaultBrowserRunner() {
|
|
|
1979
1983
|
for (const url of urls) {
|
|
1980
1984
|
let status;
|
|
1981
1985
|
try {
|
|
1982
|
-
let res = await fetch(url, {
|
|
1986
|
+
let res = await fetch(url, {
|
|
1987
|
+
method: "HEAD",
|
|
1988
|
+
redirect: "follow",
|
|
1989
|
+
signal: AbortSignal.timeout(FETCH_TIMEOUT_MS)
|
|
1990
|
+
});
|
|
1983
1991
|
if (res.status === 405 || res.status === 501) {
|
|
1984
|
-
res = await fetch(url, {
|
|
1992
|
+
res = await fetch(url, {
|
|
1993
|
+
method: "GET",
|
|
1994
|
+
redirect: "follow",
|
|
1995
|
+
signal: AbortSignal.timeout(FETCH_TIMEOUT_MS)
|
|
1996
|
+
});
|
|
1985
1997
|
}
|
|
1986
1998
|
status = res.status;
|
|
1987
1999
|
} catch {
|