@brandlab-digital/conformance 3.5.0 → 3.7.0
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 -0
- package/dist/area-map-cli.d.ts +73 -0
- package/dist/area-map-cli.d.ts.map +1 -0
- package/dist/area-map-cli.js +245 -0
- package/dist/area-map-cli.js.map +1 -0
- package/dist/current-release.js +5 -5
- package/dist/current-release.js.map +1 -1
- package/dist/estate.d.ts +2 -0
- package/dist/estate.d.ts.map +1 -1
- package/dist/estate.js +34 -2
- package/dist/estate.js.map +1 -1
- package/dist/page-standard.d.ts +23 -0
- package/dist/page-standard.d.ts.map +1 -1
- package/dist/page-standard.js +63 -0
- package/dist/page-standard.js.map +1 -1
- package/package.json +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-standard.js","sourceRoot":"","sources":["../src/page-standard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,6GAA6G;AAC7G,+GAA+G;AAU/G,oFAAoF;AACpF,MAAM,UAAU,wBAAwB,CAAC,IAAkB,EAAE,EAAgB;IAC3E,MAAM,OAAO,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;IAC/D,MAAM,aAAa,GAAG,OAAO,CAAC,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC3D,MAAM,cAAc,GAAG,OAAO,CAAC,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAC9D,MAAM,SAAS,GACb,IAAI,CAAC,GAAG,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;QAChC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,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AO,KAAK;SACT,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;SACtB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;SACrB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;SACrB,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC;SACvB,OAAO,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAC;AAC1C,CAAC","sourcesContent":["/**\n * The Brandlab on-page and location standard (3.4.0) as pure checks over the\n * server HTML of a production build. The estate journey enforces the objective\n * ones; the page-quality journey reports the judgement ones without failing.\n *\n * Every function reads only the HTML a crawler receives before any script runs.\n */\n// Conformance compiles without the other packages (the operations evaluator builds it from source alone), so\n// the few site-core rules it needs are mirrored here; page-standard.test.ts keeps them identical to site-core.\n\n/** A suburb's centre in GDA2020 degrees (site-core/geography's nswSuburbCentres). */\nexport interface SuburbCentre {\n latitude: number;\n longitude: number;\n}\n\nexport type SuburbCentreLookup = (slug: string) => SuburbCentre | undefined;\n\n/** Great-circle distance in kilometres, as site-core's distanceBetweenCentresKm. */\nexport function distanceBetweenCentresKm(from: SuburbCentre, to: SuburbCentre): number {\n const radians = (degrees: number) => (degrees * Math.PI) / 180;\n const latitudeDelta = radians(to.latitude - from.latitude);\n const longitudeDelta = radians(to.longitude - from.longitude);\n const haversine =\n Math.sin(latitudeDelta / 2) ** 2 +\n Math.cos(radians(from.latitude)) * Math.cos(radians(to.latitude)) * Math.sin(longitudeDelta / 2) ** 2;\n return 2 * 6371.0088 * Math.asin(Math.min(1, Math.sqrt(haversine)));\n}\n\n/** The first place listed after a farther one, as site-core's findNeighbourOrderProblem. */\nexport function findNeighbourOrderProblem(\n origin: string,\n slugs: readonly string[],\n centreOf: SuburbCentreLookup,\n toleranceKm = 0.05,\n): { index: number; slug: string; previous: string; detail: string } | null {\n const from = centreOf(origin);\n if (!from) return null;\n let previous: { slug: string; distanceKm: number } | undefined;\n for (const [index, slug] of slugs.entries()) {\n const to = centreOf(slug);\n if (!to) continue;\n const current = { slug, distanceKm: distanceBetweenCentresKm(from, to) };\n if (previous && current.distanceKm + toleranceKm < previous.distanceKm) {\n return {\n index,\n slug,\n previous: previous.slug,\n detail: `${slug} (${current.distanceKm.toFixed(1)} km) is listed after ${previous.slug} (${previous.distanceKm.toFixed(1)} km); nearby places are ranked nearest first`,\n };\n }\n previous = current;\n }\n return null;\n}\n\nexport type BrandlabSitemapFamily = 'core' | 'services' | 'locations' | 'service-locations' | 'blog' | 'projects';\n\nconst SITEMAP_FAMILY_BY_KIND: Readonly<Record<string, BrandlabSitemapFamily>> = Object.freeze({\n service: 'services',\n location: 'locations',\n 'service-location': 'service-locations',\n 'blog-post': 'blog',\n project: 'projects',\n});\n\n/** The split sitemap family of a route kind, as site-core's sitemapFamilyForKind. */\nexport function sitemapFamilyForKind(kind: string): BrandlabSitemapFamily {\n return Object.hasOwn(SITEMAP_FAMILY_BY_KIND, kind) ? SITEMAP_FAMILY_BY_KIND[kind]! : 'core';\n}\n\n// ---------------------------------------------------------------------------\n// Location index policy (mirrors site-core/location-policy)\n// ---------------------------------------------------------------------------\n\nexport interface LocationPolicyRoute {\n id?: string;\n path: string;\n kind?: string;\n indexing: string;\n locationDecision?: { evidence?: readonly string[]; review?: string };\n}\n\n/** A capacity recorded with site-core's defineLocationCapacity. */\nexport interface LocationCapacityRecord {\n limit: number;\n recordedAt: string;\n indexableAtRecord: number;\n approval?: { approvedBy: string; approvedAt: string; reviewBy: string; maxIndexable?: number };\n}\n\nconst LOCATION_ROUTE_KINDS = new Set(['location', 'service-location']);\n\nfunction isIndexableLocationRoute(route: LocationPolicyRoute): boolean {\n return LOCATION_ROUTE_KINDS.has(route.kind ?? '') && route.indexing === 'index';\n}\n\n/** As site-core's checkLocationCapacity: blocked only beyond both the limit and the pages at record (or the approval). */\nexport function checkLocationCapacity(\n routes: readonly LocationPolicyRoute[],\n capacity: LocationCapacityRecord | null | undefined,\n): { indexable: number; limit: number | null; allowed: number | null; overCapacity: boolean; blocked: boolean; detail: string } {\n const indexable = routes.filter(isIndexableLocationRoute).length;\n if (!capacity) {\n return { indexable, limit: null, allowed: null, overCapacity: false, blocked: false, detail: `${indexable} indexable location page(s); no location capacity is recorded yet.` };\n }\n const approval = capacity.approval;\n const allowed = approval ? approval.maxIndexable ?? Number.POSITIVE_INFINITY : Math.max(capacity.limit, capacity.indexableAtRecord);\n const overCapacity = indexable > capacity.limit;\n const blocked = indexable > allowed;\n const approved = approval ? ` under ${approval.approvedBy}'s approval of ${approval.approvedAt} (review by ${approval.reviewBy})` : '';\n const detail = blocked\n ? `${indexable} indexable location page(s) exceed what the site may carry (${allowed}: capacity ${capacity.limit} recorded ${capacity.recordedAt} with ${capacity.indexableAtRecord} at record${approved}). Add pages only within capacity, or record Romie's approval.`\n : overCapacity\n ? `${indexable} indexable location page(s) against a capacity of ${capacity.limit} (recorded ${capacity.recordedAt})${approved}; no pages may be added.`\n : `${indexable} indexable location page(s) within a capacity of ${capacity.limit} (recorded ${capacity.recordedAt}).`;\n return { indexable, limit: capacity.limit, allowed: Number.isFinite(allowed) ? allowed : null, overCapacity, blocked, detail };\n}\n\n/** As site-core's buildLocationReviewList: indexable location pages without evidence or with an open review flag. */\nexport function buildLocationReviewList(\n routes: readonly LocationPolicyRoute[],\n): { id?: string; path: string; evidence: readonly string[]; reasons: readonly string[] }[] {\n const items: { id?: string; path: string; evidence: readonly string[]; reasons: readonly string[] }[] = [];\n for (const route of routes) {\n if (!isIndexableLocationRoute(route)) continue;\n const evidence = route.locationDecision?.evidence ?? [];\n const reasons: string[] = [];\n if (evidence.length === 0) {\n reasons.push('no qualifying evidence recorded (job, base suburb, facts and demand, existing clicks or enquiries, or an approved exception)');\n }\n const review = route.locationDecision?.review?.trim();\n if (review) reasons.push(review);\n if (reasons.length > 0) items.push({ ...(route.id ? { id: route.id } : {}), path: route.path, evidence, reasons });\n }\n return items.sort((a, b) => a.path.localeCompare(b.path));\n}\n\n// ---------------------------------------------------------------------------\n// Geography, loaded from the site's installed site-core at run time\n// ---------------------------------------------------------------------------\n\ninterface GeographyRecord {\n slug: string;\n name: string;\n}\n\ninterface GeographyRegistryLike {\n suburbs: readonly GeographyRecord[];\n nonSuburbLocalities: readonly GeographyRecord[];\n councils: readonly GeographyRecord[];\n regions: readonly (GeographyRecord & { seoName: string; alternateNames?: readonly string[] })[];\n subRegions: readonly GeographyRecord[];\n}\n\nexport interface BrandlabGeography {\n centreOf: SuburbCentreLookup;\n /** Registry place names by slug: suburbs, localities, regions and sub-regions. */\n placeNames: ReadonlyMap<string, string>;\n /** Masks every registry place name and postcode. */\n maskPlaces: (text: string) => string;\n}\n\n// A variable specifier: the module is the site's own site-core (3.4.0 or later), resolved when a journey runs.\nconst GEOGRAPHY_MODULE: string = '@brandlab-digital/site-core/geography';\nlet geography: Promise<BrandlabGeography> | undefined;\n\n/** The suburb centres and place names of the site's installed site-core geography. */\nexport function loadBrandlabGeography(): Promise<BrandlabGeography> {\n geography ??= (import(GEOGRAPHY_MODULE) as Promise<{\n getSuburbCentre?: SuburbCentreLookup;\n sydneyGeography: GeographyRegistryLike;\n centralCoastGeography: GeographyRegistryLike;\n }>).then((module) => {\n if (typeof module.getSuburbCentre !== 'function') {\n throw new Error('@brandlab-digital/site-core/geography has no getSuburbCentre: install site-core 3.4.0 or later with the conformance package.');\n }\n const registries = [module.sydneyGeography, module.centralCoastGeography];\n const placeNames = new Map<string, string>();\n const names: string[] = [];\n for (const registry of registries) {\n for (const record of [...registry.suburbs, ...registry.nonSuburbLocalities, ...registry.regions, ...registry.subRegions]) {\n if (!placeNames.has(record.slug)) placeNames.set(record.slug, record.name);\n }\n for (const record of [...registry.suburbs, ...registry.nonSuburbLocalities, ...registry.councils, ...registry.subRegions]) names.push(record.name);\n for (const region of registry.regions) names.push(region.name, region.seoName, ...(region.alternateNames ?? []));\n }\n return { centreOf: module.getSuburbCentre, placeNames, maskPlaces: createPlaceMask(names) };\n });\n return geography;\n}\n\n// ---------------------------------------------------------------------------\n// Structured data\n// ---------------------------------------------------------------------------\n\n/** Types that describe the business itself; a rating on them is a self-serving rating. */\nexport const BUSINESS_SCHEMA_TYPES = new Set([\n 'LocalBusiness', 'HomeAndConstructionBusiness', 'GeneralContractor', 'Plumber', 'Electrician',\n 'RoofingContractor', 'HousePainter', 'Locksmith', 'MovingCompany', 'HVACBusiness', 'ProfessionalService',\n 'Organization', 'Corporation', 'EmergencyService',\n]);\nconst RETIRED_RICH_RESULT_TYPES = new Set(['FAQPage', 'HowTo']);\n\nexport interface StructuredDataCheckOptions {\n origin: string;\n /** The home route: it must carry a WebSite node naming the site and its URL. */\n home: boolean;\n /** The business node's @id (default `<origin>/#business`). */\n businessId?: string | false;\n /** The business facts record: the business node's name and telephone must match it. */\n business?: { name?: string; telephone?: string };\n}\n\nfunction schemaTypes(node: Record<string, unknown>): string[] {\n return ([] as unknown[]).concat(node['@type'] ?? []).map((type) => String(type).replace(/^(?:https?:\\/\\/)?schema\\.org\\//i, ''));\n}\n\nfunction collectNodes(payloads: readonly unknown[]): Record<string, unknown>[] {\n const nodes: Record<string, unknown>[] = [];\n const visit = (value: unknown) => {\n if (!value || typeof value !== 'object') return;\n if (Array.isArray(value)) {\n value.forEach(visit);\n return;\n }\n const node = value as Record<string, unknown>;\n nodes.push(node);\n Object.values(node).forEach(visit);\n };\n payloads.forEach(visit);\n return nodes;\n}\n\nfunction digits(value: unknown): string {\n return String(value ?? '').replace(/\\D/g, '').replace(/^61/, '0');\n}\n\n/**\n * The structured-data rules a crawler can check on one page: no FAQPage or\n * HowTo, no rating on the business itself, a WebSite node with name and url on\n * the homepage, and the business name and telephone matching the facts record.\n */\nexport function structuredDataProblems(payloads: readonly unknown[], options: StructuredDataCheckOptions): string[] {\n const problems: string[] = [];\n const nodes = collectNodes(payloads);\n const businessId = options.businessId === undefined ? `${options.origin}/#business` : options.businessId;\n for (const node of nodes) {\n const types = schemaTypes(node);\n const retired = types.find((type) => RETIRED_RICH_RESULT_TYPES.has(type));\n if (retired) problems.push(`JSON-LD declares ${retired}; FAQ and HowTo markup is no longer used`);\n const isBusiness = types.some((type) => BUSINESS_SCHEMA_TYPES.has(type)) || (businessId !== false && node['@id'] === businessId && types.length > 0);\n if (!isBusiness) continue;\n if (node.aggregateRating !== undefined || node.review !== undefined || node.reviews !== undefined) {\n problems.push(`JSON-LD rates the business itself (${String(node['@id'] ?? types.join('/'))} has ${node.aggregateRating !== undefined ? 'aggregateRating' : 'review'}); stars are not allowed for the business's own rating`);\n }\n if (options.business && (businessId === false || node['@id'] === businessId)) {\n const { name, telephone } = options.business;\n if (name && typeof node.name === 'string' && node.name.trim() !== name.trim()) {\n problems.push(`JSON-LD business name \"${node.name}\" does not match the business facts (\"${name}\")`);\n }\n if (telephone && node.telephone !== undefined && digits(node.telephone) !== digits(telephone)) {\n problems.push(`JSON-LD business telephone ${String(node.telephone)} does not match the business facts (${telephone})`);\n }\n }\n }\n if (options.home) {\n const website = nodes.find((node) => schemaTypes(node).includes('WebSite'));\n const expected = new URL('/', options.origin).href;\n if (!website) {\n problems.push('the homepage JSON-LD has no WebSite node (name and url) for the site name');\n } else {\n if (typeof website.name !== 'string' || !website.name.trim()) problems.push('the homepage WebSite node has no name');\n const url = typeof website.url === 'string' ? safeHref(website.url, options.origin) : null;\n if (!url || url.replace(/\\/$/, '') !== expected.replace(/\\/$/, '')) {\n problems.push(`the homepage WebSite node's url is ${String(website.url ?? 'missing')} (expected ${expected})`);\n }\n }\n }\n return [...new Set(problems)];\n}\n\nfunction safeHref(value: string, base: string): string | null {\n try {\n return new URL(value, base).href;\n } catch {\n return null;\n }\n}\n\n// ---------------------------------------------------------------------------\n// Sitemaps\n// ---------------------------------------------------------------------------\n\nexport interface SitemapUrlEntry {\n url: string;\n lastmod?: string;\n}\n\nexport interface SitemapFile {\n path: string;\n entries: readonly SitemapUrlEntry[];\n}\n\nexport function parseSitemapEntries(xml: string): SitemapUrlEntry[] {\n return [...xml.matchAll(/<url>([\\s\\S]*?)<\\/url>/gi)].flatMap((match) => {\n const loc = /<loc>\\s*([^<\\s]+)\\s*<\\/loc>/i.exec(match[1]!)?.[1];\n if (!loc) return [];\n const lastmod = /<lastmod>\\s*([^<\\s]+)\\s*<\\/lastmod>/i.exec(match[1]!)?.[1];\n return [{ url: new URL(decodeXml(loc)).href, ...(lastmod ? { lastmod: decodeXml(lastmod) } : {}) }];\n });\n}\n\nexport interface SitemapRoute {\n path: string;\n canonicalPath?: string;\n kind?: string;\n indexing: string;\n lastSignificantChange?: string;\n}\n\n/**\n * Whether the sitemap is split by page family (services, locations,\n * service-in-suburb, blog, projects and the rest) once the catalogue's\n * indexable pages span more than one family, each file holding one family.\n */\nexport function sitemapFamilyProblems(input: {\n index: boolean;\n files: readonly SitemapFile[];\n routes: readonly SitemapRoute[];\n origin: string;\n}): string[] {\n const familyOf = new Map<string, BrandlabSitemapFamily>();\n for (const route of input.routes) {\n if (route.indexing !== 'index') continue;\n familyOf.set(new URL(route.canonicalPath ?? route.path, `${input.origin}/`).href, sitemapFamilyForKind(route.kind ?? ''));\n }\n const families = new Set(familyOf.values());\n if (families.size <= 1) return [];\n if (!input.index) {\n return [`the sitemap is one file for ${families.size} page families (${[...families].sort().join(', ')}); split it by family (brandlab.config sitemap.mode 'split') so Search Console reports each family's coverage`];\n }\n const problems: string[] = [];\n for (const file of input.files) {\n const inFile = new Set(file.entries.map((entry) => familyOf.get(entry.url)).filter((family): family is BrandlabSitemapFamily => Boolean(family)));\n if (inFile.size > 1) problems.push(`${file.path} mixes page families (${[...inFile].sort().join(', ')}); each sitemap file holds one family`);\n }\n return problems;\n}\n\n/** Hours before the run in which a shared timestamp looks like the build, not a content change. */\nconst BUILD_WINDOW_HOURS = 48;\n\n/**\n * `lastmod` must date the content, never the build: it equals the route's\n * `lastSignificantChange` (and is absent without one), is never in the future,\n * and pages do not share one fresh timestamp.\n */\nexport function sitemapLastmodProblems(\n entries: readonly SitemapUrlEntry[],\n routes: readonly SitemapRoute[],\n origin: string,\n now = Date.now(),\n): string[] {\n const routeByUrl = new Map(routes.map((route) => [new URL(route.canonicalPath ?? route.path, `${origin}/`).href, route]));\n const problems: string[] = [];\n const recentTimestamps = new Map<string, number>();\n for (const entry of entries) {\n if (!entry.lastmod) continue;\n const time = Date.parse(entry.lastmod);\n if (Number.isNaN(time)) {\n problems.push(`${entry.url}: lastmod \"${entry.lastmod}\" is not a date`);\n continue;\n }\n if (time > now + 24 * 3_600_000) problems.push(`${entry.url}: lastmod ${entry.lastmod} is in the future`);\n const route = routeByUrl.get(entry.url);\n if (route && !route.lastSignificantChange) {\n problems.push(`${entry.url}: lastmod ${entry.lastmod} without a content date (the route has no lastSignificantChange)`);\n } else if (route?.lastSignificantChange && Date.parse(route.lastSignificantChange) !== time) {\n problems.push(`${entry.url}: lastmod ${entry.lastmod} is not the route's content date ${route.lastSignificantChange}`);\n }\n if (/T\\d{2}:\\d{2}/.test(entry.lastmod) && now - time >= 0 && now - time < BUILD_WINDOW_HOURS * 3_600_000) {\n recentTimestamps.set(entry.lastmod, (recentTimestamps.get(entry.lastmod) ?? 0) + 1);\n }\n }\n for (const [timestamp, count] of recentTimestamps) {\n if (count > 1) problems.push(`${count} URLs share the lastmod ${timestamp}, a timestamp from the last ${BUILD_WINDOW_HOURS} hours: lastmod must be the content date, not the build time`);\n }\n return problems;\n}\n\n// ---------------------------------------------------------------------------\n// HTML structure: main content, link groups and text blocks\n// ---------------------------------------------------------------------------\n\nconst VOID_ELEMENTS = new Set(['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'source', 'track', 'wbr']);\nconst LIST_ELEMENTS = new Set(['ul', 'ol']);\nconst CONTAINER_ELEMENTS = new Set(['div', 'section', 'aside', 'article', 'p', 'dl', 'table', 'tbody', 'nav', 'main', 'figure']);\nconst CHROME_ELEMENTS = new Set(['header', 'footer', 'nav']);\n\nfunction stripInert(html: string): string {\n return html.replace(/<(script|style|template|noscript|svg)\\b[\\s\\S]*?<\\/\\1>/gi, ' ').replace(/<!--[\\s\\S]*?-->/g, ' ');\n}\n\n/** The page's main content: `<main>` when present, else the body. */\nexport function mainContent(html: string): string {\n const cleaned = stripInert(html);\n const main = /<main\\b[^>]*>([\\s\\S]*)<\\/main>/i.exec(cleaned)?.[1];\n if (main !== undefined) return main;\n return /<body\\b[^>]*>([\\s\\S]*?)(?:<\\/body>|$)/i.exec(cleaned)?.[1] ?? cleaned;\n}\n\ninterface OpenElement {\n tag: string;\n id: number;\n}\n\n/**\n * The links of the main content grouped by the list (or, outside a list, the\n * nearest container) that holds them, in document order; links inside a\n * header, footer or navigation block are left out.\n */\nexport function extractLinkGroups(html: string): string[][] {\n const content = mainContent(html);\n const stack: OpenElement[] = [];\n const groups = new Map<number, string[]>();\n let nextId = 1;\n for (const match of content.matchAll(/<(\\/?)([a-zA-Z][a-zA-Z0-9-]*)\\b([^>]*)>/g)) {\n const closing = match[1] === '/';\n const tag = match[2]!.toLowerCase();\n const attributes = match[3] ?? '';\n if (closing) {\n const index = stack.map((element) => element.tag).lastIndexOf(tag);\n if (index >= 0) stack.length = index;\n continue;\n }\n if (tag === 'a') {\n const href = /\\bhref=(?:\"([^\"]*)\"|'([^']*)')/i.exec(attributes);\n if (href && !stack.some((element) => CHROME_ELEMENTS.has(element.tag))) {\n const holder =\n [...stack].reverse().find((element) => LIST_ELEMENTS.has(element.tag)) ??\n [...stack].reverse().find((element) => CONTAINER_ELEMENTS.has(element.tag));\n const key = holder?.id ?? 0;\n if (!groups.has(key)) groups.set(key, []);\n groups.get(key)!.push(decodeXml(href[1] ?? href[2] ?? ''));\n }\n }\n if (VOID_ELEMENTS.has(tag) || attributes.trimEnd().endsWith('/')) continue;\n stack.push({ tag, id: nextId++ });\n }\n return [...groups.values()];\n}\n\n/** The most links a list may hold and still be a nearby list rather than a directory. */\nconst NEARBY_LIST_MAX = 12;\n\nexport interface NeighbourOrderInput {\n html: string;\n /** The page's own place slug. */\n origin: string;\n /** The page's absolute URL, which relative links resolve against. */\n pageUrl: string;\n /** The place slug a link's path names when it is a location page, else undefined. */\n placeOf: (path: string) => string | undefined;\n centreOf: SuburbCentreLookup;\n}\n\n/**\n * Nearby lists on a location page must be ranked by distance: any list of 3 to\n * 12 links to other places with a centre is checked; a directory longer than\n * that is not a nearby list.\n */\nexport function neighbourOrderProblems(input: NeighbourOrderInput): string[] {\n const problems: string[] = [];\n const base = new URL(input.pageUrl);\n for (const group of extractLinkGroups(input.html)) {\n const places: string[] = [];\n for (const href of group) {\n let url: URL;\n try {\n url = new URL(href, base);\n } catch {\n continue;\n }\n if (url.origin !== base.origin) continue;\n const place = input.placeOf(normalisePath(url.pathname));\n if (place && !places.includes(place)) places.push(place);\n }\n const located = places.filter((place) => place !== input.origin && input.centreOf(place));\n if (located.length < 3 || places.length > NEARBY_LIST_MAX) continue;\n const problem = findNeighbourOrderProblem(input.origin, located, input.centreOf);\n if (problem) problems.push(`nearby list [${located.join(', ')}] is not ranked by distance: ${problem.detail}`);\n }\n return problems;\n}\n\nconst BLOCK_TAGS = /<\\/?(?:p|li|h[1-6]|td|th|dt|dd|blockquote|figcaption|caption|div|section|article|aside|br|tr|summary|details|label|button)\\b[^>]*>/gi;\n\n/** The main content's text blocks (header, footer and navigation removed), lower-cased with whitespace collapsed. */\nexport function textBlocks(html: string): string[] {\n let content = mainContent(html);\n for (const tag of CHROME_ELEMENTS) content = content.replace(new RegExp(`<${tag}\\\\b[\\\\s\\\\S]*?<\\\\/${tag}>`, 'gi'), ' ');\n return decodeXml(content.replace(BLOCK_TAGS, '\\n').replace(/<[^>]+>/g, ' '))\n .replace(/ | /g, ' ')\n .split('\\n')\n .map((block) => block.toLowerCase().replace(/\\s+/g, ' ').trim())\n .filter((block) => block.split(' ').length >= 3);\n}\n\n/** Masks place names and postcodes so name-swapped copy compares as the same text. */\nexport function createPlaceMask(names: readonly string[]): (text: string) => string {\n const unique = [...new Set(names.map((name) => name.trim().toLowerCase()).filter((name) => name.length >= 3))]\n .sort((a, b) => b.length - a.length)\n .map((name) => name.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\s+/g, '\\\\s+'));\n const pattern = unique.length ? new RegExp(`\\\\b(?:${unique.join('|')})\\\\b`, 'g') : null;\n return (text) => (pattern ? text.replace(pattern, '{place}') : text).replace(/\\b2\\d{3}\\b/g, '{postcode}');\n}\n\nconst SHINGLE = 5;\n\nfunction shingles(words: readonly string[]): Set<string> {\n const result = new Set<string>();\n for (let index = 0; index + SHINGLE <= words.length; index += 1) result.add(words.slice(index, index + SHINGLE).join(' '));\n return result;\n}\n\nfunction words(text: string): string[] {\n return text.replace(/[^a-z0-9{}' -]+/g, ' ').split(/\\s+/).filter(Boolean);\n}\n\nexport interface SimilarityPage {\n path: string;\n place: string;\n /** Masked text blocks of the page's main content. */\n blocks: readonly string[];\n}\n\nexport interface SimilarityScore {\n path: string;\n /** Share of the page's five-word phrases also on its most similar near sibling: 0 nothing shared, 1 identical. */\n score: number;\n sibling: string | null;\n /** Words of page-specific text left after shared blocks are removed. */\n uniqueWords: number;\n}\n\n/**\n * Centerpiece similarity: shared blocks (on half or more of the location pages)\n * are removed, place names are masked, and each page's five-word phrases are\n * compared with its three nearest siblings that have a centre. Pages without a\n * centre are not scored.\n */\nexport function centerpieceSimilarity(\n pages: readonly SimilarityPage[],\n centreOf: SuburbCentreLookup,\n siblings = 3,\n): SimilarityScore[] {\n const located = pages.filter((page) => centreOf(page.place));\n if (located.length < 2) return [];\n const frequency = new Map<string, number>();\n for (const page of located) for (const block of new Set(page.blocks)) frequency.set(block, (frequency.get(block) ?? 0) + 1);\n const threshold = Math.max(2, Math.ceil(located.length / 2));\n const prepared = located.map((page) => {\n const unique = page.blocks.filter((block) => (frequency.get(block) ?? 0) < threshold);\n const tokens = unique.flatMap(words);\n return { page, tokens, shingles: shingles(tokens), centre: centreOf(page.place)! };\n });\n return prepared.map((current) => {\n const nearest = prepared\n .filter((other) => other !== current && other.page.place !== current.page.place)\n .map((other) => ({ other, distance: Math.hypot(other.centre.latitude - current.centre.latitude, (other.centre.longitude - current.centre.longitude) * Math.cos((current.centre.latitude * Math.PI) / 180)) }))\n .sort((a, b) => a.distance - b.distance)\n .slice(0, siblings);\n if (current.shingles.size === 0) {\n return { path: current.page.path, score: nearest.length ? 1 : 0, sibling: nearest[0]?.other.page.path ?? null, uniqueWords: current.tokens.length };\n }\n let best = { score: 0, sibling: null as string | null };\n for (const { other } of nearest) {\n let shared = 0;\n for (const phrase of current.shingles) if (other.shingles.has(phrase)) shared += 1;\n const score = shared / current.shingles.size;\n if (score > best.score) best = { score, sibling: other.page.path };\n }\n return { path: current.page.path, score: Math.round(best.score * 1000) / 1000, sibling: best.sibling, uniqueWords: current.tokens.length };\n });\n}\n\n/** Similarity at or above this is reported as a warning. */\nexport const SIMILARITY_WARN = 0.5;\n/** Similarity at or above this puts the page on the review list; it stays indexed. */\nexport const SIMILARITY_REVIEW = 0.7;\n\n// ---------------------------------------------------------------------------\n// Titles, headings, descriptions and page weight\n// ---------------------------------------------------------------------------\n\nexport const TITLE_MAX_LENGTH = 60;\nexport const DESCRIPTION_MIN_LENGTH = 70;\nexport const DESCRIPTION_MAX_LENGTH = 170;\nexport const HTML_MAX_BYTES = 1_048_576;\n\n/** Title format warnings: over 60 characters, more than one pipe, brackets, emoji, capitals or \"near me\". */\nexport function titleFormatProblems(title: string): string[] {\n const problems: string[] = [];\n const length = [...title].length;\n if (length > TITLE_MAX_LENGTH) problems.push(`${length} characters (keep to about ${TITLE_MAX_LENGTH})`);\n const pipes = title.split('|').length - 1;\n if (pipes > 1) problems.push(`${pipes} pipes (use one hyphen or colon as the separator)`);\n if (/[[\\](){}]/.test(title)) problems.push('brackets');\n if (/\\p{Extended_Pictographic}/u.test(title)) problems.push('emoji');\n const letters = title.replace(/[^A-Za-z]/g, '');\n if (letters.length >= 6 && letters === letters.toUpperCase()) problems.push('all capitals');\n else if (/\\b[A-Z]{5,}\\b/.test(title)) problems.push(`capitalised word ${/\\b[A-Z]{5,}\\b/.exec(title)![0]}`);\n if (/\\bnear (?:me|you)\\b/i.test(title)) problems.push('\"near me\" wording');\n return problems;\n}\n\nconst STOP_WORDS = new Set(['a', 'an', 'and', 'the', 'in', 'for', 'of', 'to', 'on', 'at', 'by', 'with', 'our', 'your', 'from', 'we', 'you', 'is', 'are', 'best', 'local', 'sydney-wide']);\n\nfunction contentWords(text: string): string[] {\n return text\n .toLowerCase()\n .replace(/&/g, ' and ')\n .replace(/[^a-z0-9' ]+/g, ' ')\n .split(/\\s+/)\n .map((word) => word.replace(/'s$|'$/, '').replace(/(?<=[a-z]{3})s$/, ''))\n .filter((word) => word && !STOP_WORDS.has(word));\n}\n\n/** The title's primary phrase: the part before its first separator. */\nexport function primaryTitlePhrase(title: string): string {\n return title.split(/\\s+[|–—-]\\s+|:\\s+/)[0]!.trim();\n}\n\n/**\n * Whether the title and the H1 share the page's primary phrase: half or more of\n * the title's primary words appear in the H1, and the page's place (when it has\n * one) appears in both.\n */\nexport function titleHeadingProblems(title: string, h1: string, place?: string): string[] {\n const primary = contentWords(primaryTitlePhrase(title));\n const heading = new Set(contentWords(h1));\n const problems: string[] = [];\n if (primary.length > 0) {\n const shared = primary.filter((word) => heading.has(word)).length;\n if (shared / primary.length < 0.5) problems.push(`the H1 \"${h1}\" does not say what the title's primary phrase \"${primaryTitlePhrase(title)}\" says`);\n }\n if (place) {\n const pattern = new RegExp(`\\\\b${place.toLowerCase().replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\s+/g, '\\\\s+')}\\\\b`);\n if (!pattern.test(title.toLowerCase())) problems.push(`the title does not name ${place}`);\n if (!pattern.test(h1.toLowerCase())) problems.push(`the H1 does not name ${place}`);\n }\n return problems;\n}\n\nexport function descriptionLengthProblem(description: string): string | null {\n const length = [...description].length;\n if (length < DESCRIPTION_MIN_LENGTH) return `${length} characters (aim for ${DESCRIPTION_MIN_LENGTH}–${DESCRIPTION_MAX_LENGTH})`;\n if (length > DESCRIPTION_MAX_LENGTH) return `${length} characters (aim for ${DESCRIPTION_MIN_LENGTH}–${DESCRIPTION_MAX_LENGTH})`;\n return null;\n}\n\n/** The text of every H1 in the server HTML. */\nexport function headingTexts(html: string): string[] {\n return [...stripInert(html).matchAll(/<h1\\b[^>]*>([\\s\\S]*?)<\\/h1>/gi)].map((match) =>\n decodeXml(match[1]!.replace(/<[^>]+>/g, ' ')).replace(/\\s+/g, ' ').trim());\n}\n\nexport function normalisePath(path: string): string {\n const pathname = path.split(/[?#]/)[0] || '/';\n return pathname.length > 1 ? pathname.replace(/\\/+$/, '') : '/';\n}\n\nexport function decodeXml(value: string): string {\n return value\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/"/g, '\"')\n .replace(/'|'|'/g, \"'\");\n}\n"]}
|
|
1
|
+
{"version":3,"file":"page-standard.js","sourceRoot":"","sources":["../src/page-standard.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,6GAA6G;AAC7G,+GAA+G;AAU/G,oFAAoF;AACpF,MAAM,UAAU,wBAAwB,CAAC,IAAkB,EAAE,EAAgB;IAC3E,MAAM,OAAO,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;IAC/D,MAAM,aAAa,GAAG,OAAO,CAAC,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC3D,MAAM,cAAc,GAAG,OAAO,CAAC,EAAE,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;IAC9D,MAAM,SAAS,GACb,IAAI,CAAC,GAAG,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;QAChC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;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AS,MAAM,2DAA2D,CAAC,CAAC;QACnJ,CAAC;QACD,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,QAAQ,CAAC,6CAA6C,CAAC,EAAE,CAAC;YACnF,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;YACrD,IAAI,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC;gBAAE,SAAS;YACrC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YAClC,IAAI,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM;gBAAE,SAAS;YACzC,MAAM,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAG,EAAU,CAAC;YAC9D,IAAI,GAAG,CAAC,IAAI;gBAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACzC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;QACpC,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AACxD,CAAC","sourcesContent":["/**\n * The Brandlab on-page and location standard (3.4.0) as pure checks over the\n * server HTML of a production build. The estate journey enforces the objective\n * ones; the page-quality journey reports the judgement ones without failing.\n *\n * Every function reads only the HTML a crawler receives before any script runs.\n */\n// Conformance compiles without the other packages (the operations evaluator builds it from source alone), so\n// the few site-core rules it needs are mirrored here; page-standard.test.ts keeps them identical to site-core.\n\n/** A suburb's centre in GDA2020 degrees (site-core/geography's nswSuburbCentres). */\nexport interface SuburbCentre {\n latitude: number;\n longitude: number;\n}\n\nexport type SuburbCentreLookup = (slug: string) => SuburbCentre | undefined;\n\n/** Great-circle distance in kilometres, as site-core's distanceBetweenCentresKm. */\nexport function distanceBetweenCentresKm(from: SuburbCentre, to: SuburbCentre): number {\n const radians = (degrees: number) => (degrees * Math.PI) / 180;\n const latitudeDelta = radians(to.latitude - from.latitude);\n const longitudeDelta = radians(to.longitude - from.longitude);\n const haversine =\n Math.sin(latitudeDelta / 2) ** 2 +\n Math.cos(radians(from.latitude)) * Math.cos(radians(to.latitude)) * Math.sin(longitudeDelta / 2) ** 2;\n return 2 * 6371.0088 * Math.asin(Math.min(1, Math.sqrt(haversine)));\n}\n\n/** The first place listed after a farther one, as site-core's findNeighbourOrderProblem. */\nexport function findNeighbourOrderProblem(\n origin: string,\n slugs: readonly string[],\n centreOf: SuburbCentreLookup,\n toleranceKm = 0.05,\n): { index: number; slug: string; previous: string; detail: string } | null {\n const from = centreOf(origin);\n if (!from) return null;\n let previous: { slug: string; distanceKm: number } | undefined;\n for (const [index, slug] of slugs.entries()) {\n const to = centreOf(slug);\n if (!to) continue;\n const current = { slug, distanceKm: distanceBetweenCentresKm(from, to) };\n if (previous && current.distanceKm + toleranceKm < previous.distanceKm) {\n return {\n index,\n slug,\n previous: previous.slug,\n detail: `${slug} (${current.distanceKm.toFixed(1)} km) is listed after ${previous.slug} (${previous.distanceKm.toFixed(1)} km); nearby places are ranked nearest first`,\n };\n }\n previous = current;\n }\n return null;\n}\n\nexport type BrandlabSitemapFamily = 'core' | 'services' | 'locations' | 'service-locations' | 'blog' | 'projects';\n\nconst SITEMAP_FAMILY_BY_KIND: Readonly<Record<string, BrandlabSitemapFamily>> = Object.freeze({\n service: 'services',\n location: 'locations',\n 'service-location': 'service-locations',\n 'blog-post': 'blog',\n project: 'projects',\n});\n\n/** The split sitemap family of a route kind, as site-core's sitemapFamilyForKind. */\nexport function sitemapFamilyForKind(kind: string): BrandlabSitemapFamily {\n return Object.hasOwn(SITEMAP_FAMILY_BY_KIND, kind) ? SITEMAP_FAMILY_BY_KIND[kind]! : 'core';\n}\n\n// ---------------------------------------------------------------------------\n// Location index policy (mirrors site-core/location-policy)\n// ---------------------------------------------------------------------------\n\nexport interface LocationPolicyRoute {\n id?: string;\n path: string;\n kind?: string;\n indexing: string;\n locationDecision?: { evidence?: readonly string[]; review?: string };\n}\n\n/** A capacity recorded with site-core's defineLocationCapacity. */\nexport interface LocationCapacityRecord {\n limit: number;\n recordedAt: string;\n indexableAtRecord: number;\n approval?: { approvedBy: string; approvedAt: string; reviewBy: string; maxIndexable?: number };\n}\n\nconst LOCATION_ROUTE_KINDS = new Set(['location', 'service-location']);\n\nfunction isIndexableLocationRoute(route: LocationPolicyRoute): boolean {\n return LOCATION_ROUTE_KINDS.has(route.kind ?? '') && route.indexing === 'index';\n}\n\n/** As site-core's checkLocationCapacity: blocked only beyond both the limit and the pages at record (or the approval). */\nexport function checkLocationCapacity(\n routes: readonly LocationPolicyRoute[],\n capacity: LocationCapacityRecord | null | undefined,\n): { indexable: number; limit: number | null; allowed: number | null; overCapacity: boolean; blocked: boolean; detail: string } {\n const indexable = routes.filter(isIndexableLocationRoute).length;\n if (!capacity) {\n return { indexable, limit: null, allowed: null, overCapacity: false, blocked: false, detail: `${indexable} indexable location page(s); no location capacity is recorded yet.` };\n }\n const approval = capacity.approval;\n const allowed = approval ? approval.maxIndexable ?? Number.POSITIVE_INFINITY : Math.max(capacity.limit, capacity.indexableAtRecord);\n const overCapacity = indexable > capacity.limit;\n const blocked = indexable > allowed;\n const approved = approval ? ` under ${approval.approvedBy}'s approval of ${approval.approvedAt} (review by ${approval.reviewBy})` : '';\n const detail = blocked\n ? `${indexable} indexable location page(s) exceed what the site may carry (${allowed}: capacity ${capacity.limit} recorded ${capacity.recordedAt} with ${capacity.indexableAtRecord} at record${approved}). Add pages only within capacity, or record Romie's approval.`\n : overCapacity\n ? `${indexable} indexable location page(s) against a capacity of ${capacity.limit} (recorded ${capacity.recordedAt})${approved}; no pages may be added.`\n : `${indexable} indexable location page(s) within a capacity of ${capacity.limit} (recorded ${capacity.recordedAt}).`;\n return { indexable, limit: capacity.limit, allowed: Number.isFinite(allowed) ? allowed : null, overCapacity, blocked, detail };\n}\n\n/** As site-core's buildLocationReviewList: indexable location pages without evidence or with an open review flag. */\nexport function buildLocationReviewList(\n routes: readonly LocationPolicyRoute[],\n): { id?: string; path: string; evidence: readonly string[]; reasons: readonly string[] }[] {\n const items: { id?: string; path: string; evidence: readonly string[]; reasons: readonly string[] }[] = [];\n for (const route of routes) {\n if (!isIndexableLocationRoute(route)) continue;\n const evidence = route.locationDecision?.evidence ?? [];\n const reasons: string[] = [];\n if (evidence.length === 0) {\n reasons.push('no qualifying evidence recorded (job, base suburb, facts and demand, existing clicks or enquiries, or an approved exception)');\n }\n const review = route.locationDecision?.review?.trim();\n if (review) reasons.push(review);\n if (reasons.length > 0) items.push({ ...(route.id ? { id: route.id } : {}), path: route.path, evidence, reasons });\n }\n return items.sort((a, b) => a.path.localeCompare(b.path));\n}\n\n// ---------------------------------------------------------------------------\n// Geography, loaded from the site's installed site-core at run time\n// ---------------------------------------------------------------------------\n\ninterface GeographyRecord {\n slug: string;\n name: string;\n}\n\ninterface GeographyRegistryLike {\n suburbs: readonly GeographyRecord[];\n nonSuburbLocalities: readonly GeographyRecord[];\n councils: readonly GeographyRecord[];\n regions: readonly (GeographyRecord & { seoName: string; alternateNames?: readonly string[] })[];\n subRegions: readonly GeographyRecord[];\n}\n\nexport interface BrandlabGeography {\n centreOf: SuburbCentreLookup;\n /** Registry place names by slug: suburbs, localities, regions and sub-regions. */\n placeNames: ReadonlyMap<string, string>;\n /** Masks every registry place name and postcode. */\n maskPlaces: (text: string) => string;\n}\n\n// A variable specifier: the module is the site's own site-core (3.4.0 or later), resolved when a journey runs.\nconst GEOGRAPHY_MODULE: string = '@brandlab-digital/site-core/geography';\nlet geography: Promise<BrandlabGeography> | undefined;\n\n/** The suburb centres and place names of the site's installed site-core geography. */\nexport function loadBrandlabGeography(): Promise<BrandlabGeography> {\n geography ??= (import(GEOGRAPHY_MODULE) as Promise<{\n getSuburbCentre?: SuburbCentreLookup;\n sydneyGeography: GeographyRegistryLike;\n centralCoastGeography: GeographyRegistryLike;\n }>).then((module) => {\n if (typeof module.getSuburbCentre !== 'function') {\n throw new Error('@brandlab-digital/site-core/geography has no getSuburbCentre: install site-core 3.4.0 or later with the conformance package.');\n }\n const registries = [module.sydneyGeography, module.centralCoastGeography];\n const placeNames = new Map<string, string>();\n const names: string[] = [];\n for (const registry of registries) {\n for (const record of [...registry.suburbs, ...registry.nonSuburbLocalities, ...registry.regions, ...registry.subRegions]) {\n if (!placeNames.has(record.slug)) placeNames.set(record.slug, record.name);\n }\n for (const record of [...registry.suburbs, ...registry.nonSuburbLocalities, ...registry.councils, ...registry.subRegions]) names.push(record.name);\n for (const region of registry.regions) names.push(region.name, region.seoName, ...(region.alternateNames ?? []));\n }\n return { centreOf: module.getSuburbCentre, placeNames, maskPlaces: createPlaceMask(names) };\n });\n return geography;\n}\n\n// ---------------------------------------------------------------------------\n// Structured data\n// ---------------------------------------------------------------------------\n\n/** Types that describe the business itself; a rating on them is a self-serving rating. */\nexport const BUSINESS_SCHEMA_TYPES = new Set([\n 'LocalBusiness', 'HomeAndConstructionBusiness', 'GeneralContractor', 'Plumber', 'Electrician',\n 'RoofingContractor', 'HousePainter', 'Locksmith', 'MovingCompany', 'HVACBusiness', 'ProfessionalService',\n 'Organization', 'Corporation', 'EmergencyService',\n]);\nconst RETIRED_RICH_RESULT_TYPES = new Set(['FAQPage', 'HowTo']);\n\nexport interface StructuredDataCheckOptions {\n origin: string;\n /** The home route: it must carry a WebSite node naming the site and its URL. */\n home: boolean;\n /** The business node's @id (default `<origin>/#business`). */\n businessId?: string | false;\n /** The business facts record: the business node's name and telephone must match it. */\n business?: { name?: string; telephone?: string };\n}\n\nfunction schemaTypes(node: Record<string, unknown>): string[] {\n return ([] as unknown[]).concat(node['@type'] ?? []).map((type) => String(type).replace(/^(?:https?:\\/\\/)?schema\\.org\\//i, ''));\n}\n\nfunction collectNodes(payloads: readonly unknown[]): Record<string, unknown>[] {\n const nodes: Record<string, unknown>[] = [];\n const visit = (value: unknown) => {\n if (!value || typeof value !== 'object') return;\n if (Array.isArray(value)) {\n value.forEach(visit);\n return;\n }\n const node = value as Record<string, unknown>;\n nodes.push(node);\n Object.values(node).forEach(visit);\n };\n payloads.forEach(visit);\n return nodes;\n}\n\nfunction digits(value: unknown): string {\n return String(value ?? '').replace(/\\D/g, '').replace(/^61/, '0');\n}\n\n/**\n * The structured-data rules a crawler can check on one page: no FAQPage or\n * HowTo, no rating on the business itself, a WebSite node with name and url on\n * the homepage, and the business name and telephone matching the facts record.\n */\nexport function structuredDataProblems(payloads: readonly unknown[], options: StructuredDataCheckOptions): string[] {\n const problems: string[] = [];\n const nodes = collectNodes(payloads);\n const businessId = options.businessId === undefined ? `${options.origin}/#business` : options.businessId;\n for (const node of nodes) {\n const types = schemaTypes(node);\n const retired = types.find((type) => RETIRED_RICH_RESULT_TYPES.has(type));\n if (retired) problems.push(`JSON-LD declares ${retired}; FAQ and HowTo markup is no longer used`);\n const isBusiness = types.some((type) => BUSINESS_SCHEMA_TYPES.has(type)) || (businessId !== false && node['@id'] === businessId && types.length > 0);\n if (!isBusiness) continue;\n if (node.aggregateRating !== undefined || node.review !== undefined || node.reviews !== undefined) {\n problems.push(`JSON-LD rates the business itself (${String(node['@id'] ?? types.join('/'))} has ${node.aggregateRating !== undefined ? 'aggregateRating' : 'review'}); stars are not allowed for the business's own rating`);\n }\n if (options.business && (businessId === false || node['@id'] === businessId)) {\n const { name, telephone } = options.business;\n if (name && typeof node.name === 'string' && node.name.trim() !== name.trim()) {\n problems.push(`JSON-LD business name \"${node.name}\" does not match the business facts (\"${name}\")`);\n }\n if (telephone && node.telephone !== undefined && digits(node.telephone) !== digits(telephone)) {\n problems.push(`JSON-LD business telephone ${String(node.telephone)} does not match the business facts (${telephone})`);\n }\n }\n }\n if (options.home) {\n const website = nodes.find((node) => schemaTypes(node).includes('WebSite'));\n const expected = new URL('/', options.origin).href;\n if (!website) {\n problems.push('the homepage JSON-LD has no WebSite node (name and url) for the site name');\n } else {\n if (typeof website.name !== 'string' || !website.name.trim()) problems.push('the homepage WebSite node has no name');\n const url = typeof website.url === 'string' ? safeHref(website.url, options.origin) : null;\n if (!url || url.replace(/\\/$/, '') !== expected.replace(/\\/$/, '')) {\n problems.push(`the homepage WebSite node's url is ${String(website.url ?? 'missing')} (expected ${expected})`);\n }\n }\n }\n return [...new Set(problems)];\n}\n\nfunction safeHref(value: string, base: string): string | null {\n try {\n return new URL(value, base).href;\n } catch {\n return null;\n }\n}\n\n// ---------------------------------------------------------------------------\n// Sitemaps\n// ---------------------------------------------------------------------------\n\nexport interface SitemapUrlEntry {\n url: string;\n lastmod?: string;\n}\n\nexport interface SitemapFile {\n path: string;\n entries: readonly SitemapUrlEntry[];\n}\n\nexport function parseSitemapEntries(xml: string): SitemapUrlEntry[] {\n return [...xml.matchAll(/<url>([\\s\\S]*?)<\\/url>/gi)].flatMap((match) => {\n const loc = /<loc>\\s*([^<\\s]+)\\s*<\\/loc>/i.exec(match[1]!)?.[1];\n if (!loc) return [];\n const lastmod = /<lastmod>\\s*([^<\\s]+)\\s*<\\/lastmod>/i.exec(match[1]!)?.[1];\n return [{ url: new URL(decodeXml(loc)).href, ...(lastmod ? { lastmod: decodeXml(lastmod) } : {}) }];\n });\n}\n\nexport interface SitemapRoute {\n path: string;\n canonicalPath?: string;\n kind?: string;\n indexing: string;\n lastSignificantChange?: string;\n}\n\n/**\n * Whether the sitemap is split by page family (services, locations,\n * service-in-suburb, blog, projects and the rest) once the catalogue's\n * indexable pages span more than one family, each file holding one family.\n */\nexport function sitemapFamilyProblems(input: {\n index: boolean;\n files: readonly SitemapFile[];\n routes: readonly SitemapRoute[];\n origin: string;\n}): string[] {\n const familyOf = new Map<string, BrandlabSitemapFamily>();\n for (const route of input.routes) {\n if (route.indexing !== 'index') continue;\n familyOf.set(new URL(route.canonicalPath ?? route.path, `${input.origin}/`).href, sitemapFamilyForKind(route.kind ?? ''));\n }\n const families = new Set(familyOf.values());\n if (families.size <= 1) return [];\n if (!input.index) {\n return [`the sitemap is one file for ${families.size} page families (${[...families].sort().join(', ')}); split it by family (brandlab.config sitemap.mode 'split') so Search Console reports each family's coverage`];\n }\n const problems: string[] = [];\n for (const file of input.files) {\n const inFile = new Set(file.entries.map((entry) => familyOf.get(entry.url)).filter((family): family is BrandlabSitemapFamily => Boolean(family)));\n if (inFile.size > 1) problems.push(`${file.path} mixes page families (${[...inFile].sort().join(', ')}); each sitemap file holds one family`);\n }\n return problems;\n}\n\n/** Hours before the run in which a shared timestamp looks like the build, not a content change. */\nconst BUILD_WINDOW_HOURS = 48;\n\n/**\n * `lastmod` must date the content, never the build: it equals the route's\n * `lastSignificantChange` (and is absent without one), is never in the future,\n * and pages do not share one fresh timestamp.\n */\nexport function sitemapLastmodProblems(\n entries: readonly SitemapUrlEntry[],\n routes: readonly SitemapRoute[],\n origin: string,\n now = Date.now(),\n): string[] {\n const routeByUrl = new Map(routes.map((route) => [new URL(route.canonicalPath ?? route.path, `${origin}/`).href, route]));\n const problems: string[] = [];\n const recentTimestamps = new Map<string, number>();\n for (const entry of entries) {\n if (!entry.lastmod) continue;\n const time = Date.parse(entry.lastmod);\n if (Number.isNaN(time)) {\n problems.push(`${entry.url}: lastmod \"${entry.lastmod}\" is not a date`);\n continue;\n }\n if (time > now + 24 * 3_600_000) problems.push(`${entry.url}: lastmod ${entry.lastmod} is in the future`);\n const route = routeByUrl.get(entry.url);\n if (route && !route.lastSignificantChange) {\n problems.push(`${entry.url}: lastmod ${entry.lastmod} without a content date (the route has no lastSignificantChange)`);\n } else if (route?.lastSignificantChange && Date.parse(route.lastSignificantChange) !== time) {\n problems.push(`${entry.url}: lastmod ${entry.lastmod} is not the route's content date ${route.lastSignificantChange}`);\n }\n if (/T\\d{2}:\\d{2}/.test(entry.lastmod) && now - time >= 0 && now - time < BUILD_WINDOW_HOURS * 3_600_000) {\n recentTimestamps.set(entry.lastmod, (recentTimestamps.get(entry.lastmod) ?? 0) + 1);\n }\n }\n for (const [timestamp, count] of recentTimestamps) {\n if (count > 1) problems.push(`${count} URLs share the lastmod ${timestamp}, a timestamp from the last ${BUILD_WINDOW_HOURS} hours: lastmod must be the content date, not the build time`);\n }\n return problems;\n}\n\n// ---------------------------------------------------------------------------\n// HTML structure: main content, link groups and text blocks\n// ---------------------------------------------------------------------------\n\nconst VOID_ELEMENTS = new Set(['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'source', 'track', 'wbr']);\nconst LIST_ELEMENTS = new Set(['ul', 'ol']);\nconst CONTAINER_ELEMENTS = new Set(['div', 'section', 'aside', 'article', 'p', 'dl', 'table', 'tbody', 'nav', 'main', 'figure']);\nconst CHROME_ELEMENTS = new Set(['header', 'footer', 'nav']);\n\nfunction stripInert(html: string): string {\n return html.replace(/<(script|style|template|noscript|svg)\\b[\\s\\S]*?<\\/\\1>/gi, ' ').replace(/<!--[\\s\\S]*?-->/g, ' ');\n}\n\n/** The page's main content: `<main>` when present, else the body. */\nexport function mainContent(html: string): string {\n const cleaned = stripInert(html);\n const main = /<main\\b[^>]*>([\\s\\S]*)<\\/main>/i.exec(cleaned)?.[1];\n if (main !== undefined) return main;\n return /<body\\b[^>]*>([\\s\\S]*?)(?:<\\/body>|$)/i.exec(cleaned)?.[1] ?? cleaned;\n}\n\ninterface OpenElement {\n tag: string;\n id: number;\n}\n\n/**\n * The links of the main content grouped by the list (or, outside a list, the\n * nearest container) that holds them, in document order; links inside a\n * header, footer or navigation block are left out.\n */\nexport function extractLinkGroups(html: string): string[][] {\n const content = mainContent(html);\n const stack: OpenElement[] = [];\n const groups = new Map<number, string[]>();\n let nextId = 1;\n for (const match of content.matchAll(/<(\\/?)([a-zA-Z][a-zA-Z0-9-]*)\\b([^>]*)>/g)) {\n const closing = match[1] === '/';\n const tag = match[2]!.toLowerCase();\n const attributes = match[3] ?? '';\n if (closing) {\n const index = stack.map((element) => element.tag).lastIndexOf(tag);\n if (index >= 0) stack.length = index;\n continue;\n }\n if (tag === 'a') {\n const href = /\\bhref=(?:\"([^\"]*)\"|'([^']*)')/i.exec(attributes);\n if (href && !stack.some((element) => CHROME_ELEMENTS.has(element.tag))) {\n const holder =\n [...stack].reverse().find((element) => LIST_ELEMENTS.has(element.tag)) ??\n [...stack].reverse().find((element) => CONTAINER_ELEMENTS.has(element.tag));\n const key = holder?.id ?? 0;\n if (!groups.has(key)) groups.set(key, []);\n groups.get(key)!.push(decodeXml(href[1] ?? href[2] ?? ''));\n }\n }\n if (VOID_ELEMENTS.has(tag) || attributes.trimEnd().endsWith('/')) continue;\n stack.push({ tag, id: nextId++ });\n }\n return [...groups.values()];\n}\n\n/** The most links a list may hold and still be a nearby list rather than a directory. */\nconst NEARBY_LIST_MAX = 12;\n\nexport interface NeighbourOrderInput {\n html: string;\n /** The page's own place slug. */\n origin: string;\n /** The page's absolute URL, which relative links resolve against. */\n pageUrl: string;\n /** The place slug a link's path names when it is a location page, else undefined. */\n placeOf: (path: string) => string | undefined;\n centreOf: SuburbCentreLookup;\n}\n\n/**\n * Nearby lists on a location page must be ranked by distance: any list of 3 to\n * 12 links to other places with a centre is checked; a directory longer than\n * that is not a nearby list.\n */\nexport function neighbourOrderProblems(input: NeighbourOrderInput): string[] {\n const problems: string[] = [];\n const base = new URL(input.pageUrl);\n for (const group of extractLinkGroups(input.html)) {\n const places: string[] = [];\n for (const href of group) {\n let url: URL;\n try {\n url = new URL(href, base);\n } catch {\n continue;\n }\n if (url.origin !== base.origin) continue;\n const place = input.placeOf(normalisePath(url.pathname));\n if (place && !places.includes(place)) places.push(place);\n }\n const located = places.filter((place) => place !== input.origin && input.centreOf(place));\n if (located.length < 3 || places.length > NEARBY_LIST_MAX) continue;\n const problem = findNeighbourOrderProblem(input.origin, located, input.centreOf);\n if (problem) problems.push(`nearby list [${located.join(', ')}] is not ranked by distance: ${problem.detail}`);\n }\n return problems;\n}\n\nconst BLOCK_TAGS = /<\\/?(?:p|li|h[1-6]|td|th|dt|dd|blockquote|figcaption|caption|div|section|article|aside|br|tr|summary|details|label|button)\\b[^>]*>/gi;\n\n/** The main content's text blocks (header, footer and navigation removed), lower-cased with whitespace collapsed. */\nexport function textBlocks(html: string): string[] {\n let content = mainContent(html);\n for (const tag of CHROME_ELEMENTS) content = content.replace(new RegExp(`<${tag}\\\\b[\\\\s\\\\S]*?<\\\\/${tag}>`, 'gi'), ' ');\n return decodeXml(content.replace(BLOCK_TAGS, '\\n').replace(/<[^>]+>/g, ' '))\n .replace(/ | /g, ' ')\n .split('\\n')\n .map((block) => block.toLowerCase().replace(/\\s+/g, ' ').trim())\n .filter((block) => block.split(' ').length >= 3);\n}\n\n/** Masks place names and postcodes so name-swapped copy compares as the same text. */\nexport function createPlaceMask(names: readonly string[]): (text: string) => string {\n const unique = [...new Set(names.map((name) => name.trim().toLowerCase()).filter((name) => name.length >= 3))]\n .sort((a, b) => b.length - a.length)\n .map((name) => name.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\s+/g, '\\\\s+'));\n const pattern = unique.length ? new RegExp(`\\\\b(?:${unique.join('|')})\\\\b`, 'g') : null;\n return (text) => (pattern ? text.replace(pattern, '{place}') : text).replace(/\\b2\\d{3}\\b/g, '{postcode}');\n}\n\nconst SHINGLE = 5;\n\nfunction shingles(words: readonly string[]): Set<string> {\n const result = new Set<string>();\n for (let index = 0; index + SHINGLE <= words.length; index += 1) result.add(words.slice(index, index + SHINGLE).join(' '));\n return result;\n}\n\nfunction words(text: string): string[] {\n return text.replace(/[^a-z0-9{}' -]+/g, ' ').split(/\\s+/).filter(Boolean);\n}\n\nexport interface SimilarityPage {\n path: string;\n place: string;\n /** Masked text blocks of the page's main content. */\n blocks: readonly string[];\n}\n\nexport interface SimilarityScore {\n path: string;\n /** Share of the page's five-word phrases also on its most similar near sibling: 0 nothing shared, 1 identical. */\n score: number;\n sibling: string | null;\n /** Words of page-specific text left after shared blocks are removed. */\n uniqueWords: number;\n}\n\n/**\n * Centerpiece similarity: shared blocks (on half or more of the location pages)\n * are removed, place names are masked, and each page's five-word phrases are\n * compared with its three nearest siblings that have a centre. Pages without a\n * centre are not scored.\n */\nexport function centerpieceSimilarity(\n pages: readonly SimilarityPage[],\n centreOf: SuburbCentreLookup,\n siblings = 3,\n): SimilarityScore[] {\n const located = pages.filter((page) => centreOf(page.place));\n if (located.length < 2) return [];\n const frequency = new Map<string, number>();\n for (const page of located) for (const block of new Set(page.blocks)) frequency.set(block, (frequency.get(block) ?? 0) + 1);\n const threshold = Math.max(2, Math.ceil(located.length / 2));\n const prepared = located.map((page) => {\n const unique = page.blocks.filter((block) => (frequency.get(block) ?? 0) < threshold);\n const tokens = unique.flatMap(words);\n return { page, tokens, shingles: shingles(tokens), centre: centreOf(page.place)! };\n });\n return prepared.map((current) => {\n const nearest = prepared\n .filter((other) => other !== current && other.page.place !== current.page.place)\n .map((other) => ({ other, distance: Math.hypot(other.centre.latitude - current.centre.latitude, (other.centre.longitude - current.centre.longitude) * Math.cos((current.centre.latitude * Math.PI) / 180)) }))\n .sort((a, b) => a.distance - b.distance)\n .slice(0, siblings);\n if (current.shingles.size === 0) {\n return { path: current.page.path, score: nearest.length ? 1 : 0, sibling: nearest[0]?.other.page.path ?? null, uniqueWords: current.tokens.length };\n }\n let best = { score: 0, sibling: null as string | null };\n for (const { other } of nearest) {\n let shared = 0;\n for (const phrase of current.shingles) if (other.shingles.has(phrase)) shared += 1;\n const score = shared / current.shingles.size;\n if (score > best.score) best = { score, sibling: other.page.path };\n }\n return { path: current.page.path, score: Math.round(best.score * 1000) / 1000, sibling: best.sibling, uniqueWords: current.tokens.length };\n });\n}\n\n/** Similarity at or above this is reported as a warning. */\nexport const SIMILARITY_WARN = 0.5;\n/** Similarity at or above this puts the page on the review list; it stays indexed. */\nexport const SIMILARITY_REVIEW = 0.7;\n\n// ---------------------------------------------------------------------------\n// Titles, headings, descriptions and page weight\n// ---------------------------------------------------------------------------\n\nexport const TITLE_MAX_LENGTH = 60;\nexport const DESCRIPTION_MIN_LENGTH = 70;\nexport const DESCRIPTION_MAX_LENGTH = 170;\nexport const HTML_MAX_BYTES = 1_048_576;\n\n/** Title format warnings: over 60 characters, more than one pipe, brackets, emoji, capitals or \"near me\". */\nexport function titleFormatProblems(title: string): string[] {\n const problems: string[] = [];\n const length = [...title].length;\n if (length > TITLE_MAX_LENGTH) problems.push(`${length} characters (keep to about ${TITLE_MAX_LENGTH})`);\n const pipes = title.split('|').length - 1;\n if (pipes > 1) problems.push(`${pipes} pipes (use one hyphen or colon as the separator)`);\n if (/[[\\](){}]/.test(title)) problems.push('brackets');\n if (/\\p{Extended_Pictographic}/u.test(title)) problems.push('emoji');\n const letters = title.replace(/[^A-Za-z]/g, '');\n if (letters.length >= 6 && letters === letters.toUpperCase()) problems.push('all capitals');\n else if (/\\b[A-Z]{5,}\\b/.test(title)) problems.push(`capitalised word ${/\\b[A-Z]{5,}\\b/.exec(title)![0]}`);\n if (/\\bnear (?:me|you)\\b/i.test(title)) problems.push('\"near me\" wording');\n return problems;\n}\n\nconst STOP_WORDS = new Set(['a', 'an', 'and', 'the', 'in', 'for', 'of', 'to', 'on', 'at', 'by', 'with', 'our', 'your', 'from', 'we', 'you', 'is', 'are', 'best', 'local', 'sydney-wide']);\n\nfunction contentWords(text: string): string[] {\n return text\n .toLowerCase()\n .replace(/&/g, ' and ')\n .replace(/[^a-z0-9' ]+/g, ' ')\n .split(/\\s+/)\n .map((word) => word.replace(/'s$|'$/, '').replace(/(?<=[a-z]{3})s$/, ''))\n .filter((word) => word && !STOP_WORDS.has(word));\n}\n\n/** The title's primary phrase: the part before its first separator. */\nexport function primaryTitlePhrase(title: string): string {\n return title.split(/\\s+[|–—-]\\s+|:\\s+/)[0]!.trim();\n}\n\n/**\n * Whether the title and the H1 share the page's primary phrase: half or more of\n * the title's primary words appear in the H1, and the page's place (when it has\n * one) appears in both.\n */\nexport function titleHeadingProblems(title: string, h1: string, place?: string): string[] {\n const primary = contentWords(primaryTitlePhrase(title));\n const heading = new Set(contentWords(h1));\n const problems: string[] = [];\n if (primary.length > 0) {\n const shared = primary.filter((word) => heading.has(word)).length;\n if (shared / primary.length < 0.5) problems.push(`the H1 \"${h1}\" does not say what the title's primary phrase \"${primaryTitlePhrase(title)}\" says`);\n }\n if (place) {\n const pattern = new RegExp(`\\\\b${place.toLowerCase().replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/\\s+/g, '\\\\s+')}\\\\b`);\n if (!pattern.test(title.toLowerCase())) problems.push(`the title does not name ${place}`);\n if (!pattern.test(h1.toLowerCase())) problems.push(`the H1 does not name ${place}`);\n }\n return problems;\n}\n\nexport function descriptionLengthProblem(description: string): string | null {\n const length = [...description].length;\n if (length < DESCRIPTION_MIN_LENGTH) return `${length} characters (aim for ${DESCRIPTION_MIN_LENGTH}–${DESCRIPTION_MAX_LENGTH})`;\n if (length > DESCRIPTION_MAX_LENGTH) return `${length} characters (aim for ${DESCRIPTION_MIN_LENGTH}–${DESCRIPTION_MAX_LENGTH})`;\n return null;\n}\n\n/** The text of every H1 in the server HTML. */\nexport function headingTexts(html: string): string[] {\n return [...stripInert(html).matchAll(/<h1\\b[^>]*>([\\s\\S]*?)<\\/h1>/gi)].map((match) =>\n decodeXml(match[1]!.replace(/<[^>]+>/g, ' ')).replace(/\\s+/g, ' ').trim());\n}\n\nexport function normalisePath(path: string): string {\n const pathname = path.split(/[?#]/)[0] || '/';\n return pathname.length > 1 ? pathname.replace(/\\/+$/, '') : '/';\n}\n\nexport function decodeXml(value: string): string {\n return value\n .replace(/&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/"/g, '\"')\n .replace(/'|'|'/g, \"'\");\n}\n\n// ---------------------------------------------------------------------------\n// Service-area maps (3.6.0)\n// ---------------------------------------------------------------------------\n\n/** The most inline markup one service-area map may carry: its base layer belongs in a cached file. */\nexport const AREA_MAP_INLINE_MAX_BYTES = 60_000;\n\nexport interface AreaMapCheckInput {\n html: string;\n pageUrl: string;\n /** Whether a same-origin path is an indexable catalogue route. */\n isIndexable: (path: string) => boolean;\n maxBytes?: number;\n}\n\nexport interface AreaMapCheckResult {\n maps: number;\n problems: string[];\n /** Base-layer files the maps reference with `<use href>`: path → the group ids used. */\n baseLayers: Map<string, Set<string>>;\n}\n\n/**\n * Checks each service-area map (`<figure data-area-map>`) in the server HTML:\n * it has a caption with the boundary credit (CC BY), its links go only to\n * indexable catalogue routes and stay out of the tab order (the lists beside the\n * map are the accessible links), and its inline markup stays within the budget.\n * The base-layer files it references are returned for a status check.\n */\nexport function areaMapProblems(input: AreaMapCheckInput): AreaMapCheckResult {\n const maxBytes = input.maxBytes ?? AREA_MAP_INLINE_MAX_BYTES;\n const base = new URL(input.pageUrl);\n const problems: string[] = [];\n const baseLayers = new Map<string, Set<string>>();\n // Scripts, styles and comments go; the map's SVG stays (stripInert drops it).\n const html = input.html.replace(/<(script|style|template|noscript)\\b[\\s\\S]*?<\\/\\1>/gi, ' ').replace(/<!--[\\s\\S]*?-->/g, ' ');\n const figures = [...html.matchAll(/<figure\\b[^>]*\\bdata-area-map\\b[^>]*>[\\s\\S]*?<\\/figure>/gi)].map((match) => match[0]);\n figures.forEach((figure, index) => {\n const name = `service-area map ${index + 1}`;\n const bytes = Buffer.byteLength(figure, 'utf8');\n if (bytes > maxBytes) problems.push(`${name} carries ${bytes} bytes inline (budget ${maxBytes}); serve its base layer as a cached file`);\n const caption = /<figcaption\\b[^>]*>([\\s\\S]*?)<\\/figcaption>/i.exec(figure)?.[1] ?? '';\n if (!/CC BY/i.test(decodeXml(caption.replace(/<[^>]+>/g, ' ')))) problems.push(`${name} has no caption with the boundary credit (CC BY)`);\n for (const match of figure.matchAll(/<a\\b([^>]*)>/gi)) {\n const attributes = match[1] ?? '';\n const href = /\\bhref=(?:\"([^\"]*)\"|'([^']*)')/i.exec(attributes);\n if (!href) continue;\n const target = decodeXml(href[1] ?? href[2] ?? '');\n let url: URL;\n try {\n url = new URL(target, base);\n } catch {\n problems.push(`${name} links an invalid address ${target}`);\n continue;\n }\n const path = normalisePath(url.pathname);\n if (url.origin !== base.origin || !input.isIndexable(path)) problems.push(`${name} links ${target}, which is not an indexable catalogue page`);\n if (!/\\btabindex=[\"']-1[\"']/i.test(attributes)) problems.push(`${name} link ${target} is a tab stop; the list beside the map carries the links`);\n }\n for (const match of figure.matchAll(/<use\\b[^>]*\\bhref=(?:\"([^\"]*)\"|'([^']*)')/gi)) {\n const target = decodeXml(match[1] ?? match[2] ?? '');\n if (target.startsWith('#')) continue;\n const url = new URL(target, base);\n if (url.origin !== base.origin) continue;\n const ids = baseLayers.get(url.pathname) ?? new Set<string>();\n if (url.hash) ids.add(url.hash.slice(1));\n baseLayers.set(url.pathname, ids);\n }\n });\n return { maps: figures.length, problems, baseLayers };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brandlab-digital/conformance",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"bin": {
|
|
14
|
-
"brandlab-verify": "dist/cli.js"
|
|
14
|
+
"brandlab-verify": "dist/cli.js",
|
|
15
|
+
"brandlab-area-map": "dist/area-map-cli.js"
|
|
15
16
|
},
|
|
16
17
|
"files": [
|
|
17
18
|
"dist"
|
|
@@ -20,12 +21,12 @@
|
|
|
20
21
|
"access": "public"
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
|
-
"build": "rm -rf dist && tsc -p tsconfig.json && chmod +x dist/cli.js",
|
|
24
|
+
"build": "rm -rf dist && tsc -p tsconfig.json && chmod +x dist/cli.js dist/area-map-cli.js",
|
|
24
25
|
"test": "vitest run",
|
|
25
26
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"@brandlab-digital/site-core": "3.
|
|
29
|
+
"@brandlab-digital/site-core": "3.7.0",
|
|
29
30
|
"typescript": "6.0.3"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|