@reddoorla/maintenance 0.94.0 → 0.94.1
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/dist/bump-deps-6OR7LL4E.js +1 -1
- package/dist/{chunk-DHVJ7H2F.js → chunk-REJCSA4H.js} +2 -2
- package/dist/{chunk-VELWHWOW.js → chunk-WJMPCVOR.js} +34 -6
- package/dist/chunk-WJMPCVOR.js.map +1 -0
- package/dist/cli/bin.js +5 -5
- package/dist/cli/commands/audit.js +1 -1
- package/dist/convert-to-pnpm-3RVGUBBR.js +1 -1
- package/dist/health-endpoint-XLNBWVHK.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{init-F5OBBWA5.js → init-YCLSGIEP.js} +2 -2
- package/dist/{launch-SUTMI4NG.js → launch-FSHDTXSM.js} +2 -2
- package/dist/onboard-NKE6GZKL.js +1 -1
- package/dist/{pipeline-PRMD4EJT.js → pipeline-MATFYQRC.js} +3 -3
- package/dist/{prismic-ci-QIO3I4KB.js → prismic-ci-DM352L2Q.js} +2 -2
- package/dist/{prismic-models-RWDVKZ2W.js → prismic-models-Q32ARSYS.js} +2 -2
- package/dist/prospect/types.js +1 -1
- package/dist/{prospect-audit-CIL3NCPM.js → prospect-audit-MT6RGMOY.js} +3 -3
- package/dist/{render-ZUQBJYJR.js → render-JE5P26H5.js} +3 -3
- package/dist/self-updating-5DVDIEHB.js +1 -1
- package/dist/smoke-suite-NUTC7IUK.js +1 -1
- package/dist/svelte-codemods-U4NIT6CV.js +1 -1
- package/dist/sync-configs-S2JYY6QU.js +1 -1
- package/dist/upgrade-YFZCMUPE.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-VELWHWOW.js.map +0 -1
- /package/dist/{chunk-DHVJ7H2F.js.map → chunk-REJCSA4H.js.map} +0 -0
- /package/dist/{init-F5OBBWA5.js.map → init-YCLSGIEP.js.map} +0 -0
- /package/dist/{launch-SUTMI4NG.js.map → launch-FSHDTXSM.js.map} +0 -0
- /package/dist/{pipeline-PRMD4EJT.js.map → pipeline-MATFYQRC.js.map} +0 -0
- /package/dist/{prismic-ci-QIO3I4KB.js.map → prismic-ci-DM352L2Q.js.map} +0 -0
- /package/dist/{prismic-models-RWDVKZ2W.js.map → prismic-models-Q32ARSYS.js.map} +0 -0
- /package/dist/{prospect-audit-CIL3NCPM.js.map → prospect-audit-MT6RGMOY.js.map} +0 -0
- /package/dist/{render-ZUQBJYJR.js.map → render-JE5P26H5.js.map} +0 -0
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
import "./chunk-ZTPPCHDB.js";
|
|
16
16
|
import "./chunk-Z3JXLULD.js";
|
|
17
17
|
import "./chunk-LBYOLBW7.js";
|
|
18
|
-
import "./chunk-RARREDQE.js";
|
|
19
18
|
import "./chunk-XXTZBPUY.js";
|
|
19
|
+
import "./chunk-RARREDQE.js";
|
|
20
20
|
import "./chunk-XTK5VIQB.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/bump-deps.ts
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
sleep,
|
|
17
17
|
summarizeAccessibility,
|
|
18
18
|
usablePages
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WJMPCVOR.js";
|
|
20
20
|
import {
|
|
21
21
|
checkGoal
|
|
22
22
|
} from "./chunk-T7ZUUOZ2.js";
|
|
@@ -2956,4 +2956,4 @@ export {
|
|
|
2956
2956
|
mergeFixes,
|
|
2957
2957
|
runProspectAudit
|
|
2958
2958
|
};
|
|
2959
|
-
//# sourceMappingURL=chunk-
|
|
2959
|
+
//# sourceMappingURL=chunk-REJCSA4H.js.map
|
|
@@ -883,7 +883,7 @@ function decodeXmlText(s) {
|
|
|
883
883
|
return s.replace(/<!\[CDATA\[([\s\S]*?)\]\]>/g, "$1").replace(/&#x([0-9a-f]+);/gi, (_, hex) => String.fromCodePoint(parseInt(hex, 16))).replace(/&#(\d+);/g, (_, dec) => String.fromCodePoint(Number(dec))).replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'").replace(/&/g, "&");
|
|
884
884
|
}
|
|
885
885
|
function parseSitemapLocs(xml) {
|
|
886
|
-
return [...xml.matchAll(/<(?:[\w-]+:)?loc\b[^>]*>([\s\S]*?)<\/(?:[\w-]+:)?loc>/gi)].map((m) => decodeXmlText(m[1] ?? "").trim()).filter(Boolean);
|
|
886
|
+
return [...xml.matchAll(/<(?!image:)(?:[\w-]+:)?loc\b[^>]*>([\s\S]*?)<\/(?:[\w-]+:)?loc>/gi)].map((m) => decodeXmlText(m[1] ?? "").trim()).filter(Boolean);
|
|
887
887
|
}
|
|
888
888
|
function isSafeNestedSitemap(child, origin) {
|
|
889
889
|
let url;
|
|
@@ -2983,7 +2983,7 @@ function headerChecks(headers, measured) {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
return out;
|
|
2985
2985
|
}
|
|
2986
|
-
function sidecarChecks(crawl, linkedPages) {
|
|
2986
|
+
function sidecarChecks(crawl, linkedPages, aliasOf) {
|
|
2987
2987
|
const discoveredLinks = linkedPages.size;
|
|
2988
2988
|
const out = [];
|
|
2989
2989
|
const robotsMeasured = crawl.sidecarErrors.robots === null;
|
|
@@ -3069,7 +3069,12 @@ function sidecarChecks(crawl, linkedPages) {
|
|
|
3069
3069
|
const ok = crawl.sitemap.urlCount >= discoveredLinks;
|
|
3070
3070
|
const sample = crawl.sitemap.sample;
|
|
3071
3071
|
const whole = sample !== void 0 && crawl.sitemap.urlCount <= sample.length;
|
|
3072
|
-
const listed = new Set(
|
|
3072
|
+
const listed = new Set(
|
|
3073
|
+
sample?.map((u) => {
|
|
3074
|
+
const at = norm2(u) ?? u;
|
|
3075
|
+
return aliasOf.get(at) ?? at;
|
|
3076
|
+
})
|
|
3077
|
+
);
|
|
3073
3078
|
const unlisted = whole ? [...linkedPages].filter((a) => !listed.has(a)) : [];
|
|
3074
3079
|
out.push(
|
|
3075
3080
|
check(
|
|
@@ -3207,7 +3212,7 @@ function metaChecks(pages) {
|
|
|
3207
3212
|
);
|
|
3208
3213
|
const TITLE_MIN = 10;
|
|
3209
3214
|
const TITLE_MAX = 70;
|
|
3210
|
-
const titled = pages.filter((p) => p.extract.title);
|
|
3215
|
+
const titled = contentPages(pages).filter((p) => p.extract.title);
|
|
3211
3216
|
if (titled.length === 0) {
|
|
3212
3217
|
out.push(
|
|
3213
3218
|
skip(
|
|
@@ -3509,6 +3514,23 @@ function byDeclaredAddress(pages) {
|
|
|
3509
3514
|
}
|
|
3510
3515
|
return [...seen.values()];
|
|
3511
3516
|
}
|
|
3517
|
+
function isPageAddress(address) {
|
|
3518
|
+
const last = address.split("/").pop() ?? "";
|
|
3519
|
+
const ext = /\.([A-Za-z0-9]{1,5})$/.exec(last);
|
|
3520
|
+
return ext === null || PAGE_EXTENSIONS.has(ext[1].toLowerCase());
|
|
3521
|
+
}
|
|
3522
|
+
var PAGE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
3523
|
+
"html",
|
|
3524
|
+
"htm",
|
|
3525
|
+
"xhtml",
|
|
3526
|
+
"shtml",
|
|
3527
|
+
"php",
|
|
3528
|
+
"asp",
|
|
3529
|
+
"aspx",
|
|
3530
|
+
"jsp",
|
|
3531
|
+
"jspx",
|
|
3532
|
+
"cfm"
|
|
3533
|
+
]);
|
|
3512
3534
|
function hiddenFromSearch(extract) {
|
|
3513
3535
|
return /\bnoindex\b/i.test(extract.metas?.["robots"] ?? "");
|
|
3514
3536
|
}
|
|
@@ -4137,11 +4159,17 @@ function runSiteChecks(crawl, checks, businessName = null, dns = null, http = nu
|
|
|
4137
4159
|
}
|
|
4138
4160
|
const at = norm2(abs);
|
|
4139
4161
|
if (!at) continue;
|
|
4162
|
+
if (!isPageAddress(at)) continue;
|
|
4140
4163
|
const target = read.get(at);
|
|
4141
4164
|
if (target && hiddenFromSearch(target.extract)) continue;
|
|
4142
4165
|
linked.add(target ? aliasAddress(target, read) ?? at : at);
|
|
4143
4166
|
}
|
|
4144
4167
|
}
|
|
4168
|
+
const aliasOf = /* @__PURE__ */ new Map();
|
|
4169
|
+
for (const [at, p] of read) {
|
|
4170
|
+
const to = aliasAddress(p, read);
|
|
4171
|
+
if (to) aliasOf.set(at, to);
|
|
4172
|
+
}
|
|
4145
4173
|
const phones = (checks?.consistency?.phones ?? []).map((p) => p.normalized);
|
|
4146
4174
|
const headersMeasured = Object.keys(crawl.homeHeaders ?? {}).length > 0;
|
|
4147
4175
|
return [
|
|
@@ -4164,7 +4192,7 @@ function runSiteChecks(crawl, checks, businessName = null, dns = null, http = nu
|
|
|
4164
4192
|
...httpChecks(http),
|
|
4165
4193
|
...formInteractionChecks(crawl.pages.map((p) => p.formProbe)),
|
|
4166
4194
|
...headerChecks(crawl.homeHeaders ?? {}, headersMeasured),
|
|
4167
|
-
...sidecarChecks(crawl, linked),
|
|
4195
|
+
...sidecarChecks(crawl, linked, aliasOf),
|
|
4168
4196
|
analyticsCheck(pages)
|
|
4169
4197
|
];
|
|
4170
4198
|
}
|
|
@@ -4191,4 +4219,4 @@ export {
|
|
|
4191
4219
|
tally,
|
|
4192
4220
|
runSiteChecks
|
|
4193
4221
|
};
|
|
4194
|
-
//# sourceMappingURL=chunk-
|
|
4222
|
+
//# sourceMappingURL=chunk-WJMPCVOR.js.map
|