@svelte-vitals/core 0.50.0 → 0.50.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/index.js +1 -1
- package/dist/internal.d.ts +18 -8
- package/dist/internal.js +36 -10
- package/dist/{markdown-CEYpv4SU.js → markdown-BBqqynv7.js} +26 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gr as defineConfig, l as formatGithubReport, lr as hasFailureAtOrAbove, pr as CATEGORIES, t as formatMarkdownReport, ur as summarize } from "./markdown-BBqqynv7.js";
|
|
2
2
|
export { CATEGORIES, defineConfig, formatGithubReport, formatMarkdownReport, hasFailureAtOrAbove, summarize };
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { $ as HeadTag, A as formatFailedRuleWarning, At as defaultProject, B as IDREF_ATTRS, C as shouldSkipRangeCheck, D as applyOverrides, E as CompiledOverride, Et as Severity, F as withFailedRulesOff, Ft as OrphanEffectFact, G as isTopFragment, H as ResolvedA11y, I as KitModuleFacts, It as SourceSpan, J as HeadingInfo, K as splitTokens, L as A11yOccurrenceInfo, Lt as SuppressionDirective, M as selectRules, Mt as ComponentFacts, N as settingOptions, Nt as EachBlockFact, O as applyRuleSeverities, Ot as Value, P as settingSeverity, Pt as EffectFact, Q as HeadProvider, R as A11ySkipCause, Rt as skippedFileWarnings, S as resolveRuleOptions, T as validateRuleSetting, Tt as Scope, U as decodeFragmentId, V as LANDMARK_ROLES, W as foldOccurrences, X as ImageInfo, Y as ResolvedHeadings, Z as ResolvedImages, _ as RuleOptionsSpec, _t as KitAlias, a as HealthResult, at as formatGithubReport, b as listOption, bt as Result, c as ScoreResult, ct as classify, d as scoresByCategory, dt as summarize, et as ResolvedHead, f as Rule, g as RuleOptionSpec, gt as Fix, h as isPenalized, i as formatJsonReport, it as formatMarkdownReport, j as overrideMatches, k as compileOverrides, kt as defaultConfig, l as computeHealth, lt as effectiveSeverity, m as docsUrlFor, mt as Config, nt as Runtime, ot as Classification, p as RuleContext, pt as Category, q as stripTextDirective, r as buildJsonReport, rt as withReadLimit, s as ScoreOptions, t as JsonReport, tt as READ_CONCURRENCY, u as computeScore, ut as hasFailureAtOrAbove, v as intOption, w as validateRuleOptions, x as mapOption, y as isMentionedAnywhere, yt as Project, z as BranchStep } from "./json-CcKHN-tx.js";
|
|
2
2
|
import { AST } from "svelte/compiler";
|
|
3
|
+
//#region src/rules/a11y/aria-data.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The role a user agent applies: the first token naming a concrete role, or undefined when none
|
|
6
|
+
* does. Shared so the role rules cannot disagree about what a fallback list means.
|
|
7
|
+
*/
|
|
8
|
+
declare function resolveRole(tokens: readonly string[]): string | undefined;
|
|
9
|
+
//#endregion
|
|
3
10
|
//#region src/component-parse.d.ts
|
|
4
11
|
/**
|
|
5
12
|
* Inline `svelte-vitals-disable-next-line` directives (issue #92). A plain text scan, not an
|
|
@@ -1025,17 +1032,20 @@ declare function formatConsoleReport(results: Result[], config: Config, options?
|
|
|
1025
1032
|
//#endregion
|
|
1026
1033
|
//#region src/reporter/sanitize.d.ts
|
|
1027
1034
|
/**
|
|
1028
|
-
* Strip ANSI/OSC escape sequences and C0 control characters (except `\n`/`\t`) from a
|
|
1035
|
+
* Strip ANSI/OSC escape sequences and C0/C1 control characters (except `\n`/`\t`) from a
|
|
1029
1036
|
* string before it reaches a terminal. POSIX file/route names can contain almost any
|
|
1030
1037
|
* byte, so a hostile repo can smuggle a terminal-title rewrite, cursor move, or other
|
|
1031
1038
|
* escape-sequence trick into what looks like plain report text.
|
|
1032
1039
|
*
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1035
|
-
*
|
|
1036
|
-
*
|
|
1037
|
-
*
|
|
1038
|
-
*
|
|
1040
|
+
* OSC and CSI sequences are pattern-matched and removed whole (payload included) — those
|
|
1041
|
+
* cover title-bar writes and cursor/screen control, the two classes with a real blast
|
|
1042
|
+
* radius. Each is matched in both its two-byte `ESC` form and its single-codepoint C1
|
|
1043
|
+
* form (U+009D OSC, U+009B CSI — C1 also interprets as `ESC ]`/`ESC [` on legacy/some
|
|
1044
|
+
* configured terminals), and OSC's terminator likewise accepts either `ESC \` or the
|
|
1045
|
+
* single-codepoint C1 ST (U+009C). Any other `ESC`/C1 byte (rarer single/two-byte forms
|
|
1046
|
+
* like reset or save-cursor) falls through to the final control sweep below, which drops
|
|
1047
|
+
* the lone control byte but — deliberately, not swallowing an adjacent legitimate
|
|
1048
|
+
* character — leaves whatever printable byte follows it as stray text.
|
|
1039
1049
|
* ponytail: doesn't special-case every Fe escape form; broaden the CSI/OSC patterns if a
|
|
1040
1050
|
* concrete non-CSI/OSC sequence turns out to matter.
|
|
1041
1051
|
*/
|
|
@@ -1119,4 +1129,4 @@ declare function formatHtmlReport(results: Result[], config: Config, meta: {
|
|
|
1119
1129
|
coreVersion?: string;
|
|
1120
1130
|
}): string;
|
|
1121
1131
|
//#endregion
|
|
1122
|
-
export { type A11yOccurrenceInfo, type A11ySkipCause, APP_SCRIPT, APP_STYLE, type AppSnapshot, BAND_COLOR, type BranchStep, CHILD_NODE_KEYS, type Classification, type CompiledOverride, type ComponentFacts, type ConsoleReportOptions, type DirectiveIndex, type EachBlockFact, type EffectFact, type FailedRule, type HeadProvider, type HeadTag, type HeadingInfo, type HealthResult, IDREF_ATTRS, type ImageInfo, type KitAlias, type KitModuleFacts, LANDMARK_ROLES, type OrphanEffectFact, type Palette, type Project, READ_CONCURRENCY, ROBOTS_SOURCE_PATHS, type RawKitAliases, type ResolvedA11y, type ResolvedHead, type ResolvedHeadings, type ResolvedImages, type RouteBadge, type Rule, type RuleContext, RuleInfo, RuleOptionInfo, type RuleOptionSpec, type RuleOptionsSpec, type Runtime, SITEMAP_SOURCE_PATHS, SVELTE_CONFIG_FILES, type Scope, type ScoreOptions, type ScoreResult, type SourceSpan, type SuppressionDirective, VITE_CONFIG_FILES, type ViteKitConfigResult, a11yAbbrTitle, a11yAccessibleName, a11yAriaHiddenFocus, a11yDeprecatedAria, a11yDeprecatedAttr, a11yDeprecatedElement, a11yDisallowedAriaProps, a11yDisallowedElement, a11yDoctype, a11yDuplicateLandmark, a11yIdDuplication, a11yInteractiveNesting, a11yInvalidAriaValue, a11yInvalidRole, a11yLabelHasControl, a11yNoAccesskey, a11yNoAutofocus, a11yNoDuplicateDt, a11yNoMissingIdRef, a11yPatternTitle, a11yPermittedContents, a11yPlaceholderLabelOption, a11yPositiveTabindex, a11yRequireDatetime, a11yRequiredAriaProps, a11yRequiredElement, a11yTopLevelLandmark, a11yUnknownAriaAttribute, a11yUnverifiedIdRef, a11yUseList, allRules, applyInlineDirectives, applyOverrides, applyRuleSeverities, architectureComponentSize, architectureDirectoryNaming, architectureDocLinkTarget, architecturePrivateScopeImport, architecturePropCount, architectureReservedDirectoryNames, architectureReservedNamePlacement, architectureRouteComponentImport, architectureUnitEntryFile, attrText, attrTextOf, attrValue, attrValueOf, buildHtmlDocument, buildJsonReport, classify, collectComponentFacts, collectKitModuleFacts, collectSourceFiles, collectSuppressions, compileOverrides, computeHealth, computeScore, correctnessAutoplayMuted, correctnessBasePathNavigation, correctnessCheckableBindValue, correctnessEachIndexKey, correctnessEachKey, correctnessEffectAsDerived, correctnessEffectAsOnMount, correctnessInstanceBrowserGlobal, correctnessNonreactiveBuiltinState, correctnessOrphanEffect, correctnessOrphanLifecycle, correctnessPropMutation, correctnessServerBrowserGlobal, correctnessStalePropDerivation, correctnessUnmutatedState, decodeFragmentId, defaultConfig, defaultProject, docsUrlFor, effectiveSeverity, emptyComponentFacts, emptyKitModuleFacts, escapeHtml, explainRule, findAttr, findKitAliasesInSvelteConfig, findKitPathsBaseInSvelteConfig, findKitPathsBaseInViteConfig, findMinifyDisabled, foldOccurrences, formatAgentReport, formatConsoleReport, formatFailedRuleWarning, formatGithubReport, formatHtmlReport, formatJsonReport, formatMarkdownReport, formatSarifReport, hasFailureAtOrAbove, headTagRule, imageRule, intOption, isMentionedAnywhere, isPenalized, isTopFragment, lineOf, linkRule, listOption, mapOption, noColorPalette, overrideMatches, parseComponentFacts, parseKitModuleFacts, parseSvelte, performanceFontPreloadCrossorigin, performanceHeavyImport, performanceIframeLoading, performanceImageDimensions, performanceImageLoadingHint, performanceLcpImage, performanceLoadWaterfall, performanceMinifyDisabled, performanceNamespaceImport, performancePreconnect, performancePreloadMissingAs, performanceRenderBlockingScript, performanceResponsiveImage, performanceSequentialAwaits, performanceStateRaw, renderAppShell, resolveKitAliases, resolveKitPathsBase, resolveRepoLocalPath, resolveRuleOptions, resolveRunesModuleSpecifier, runRules, safeHref, scoreBand, scoreColor, scoresByCategory, securityHandlerStateWrite, securityJavascriptUrl, securityRawHtml, securityServerModuleState, securitySharedStateImport, selectRules, seoCanonicalUrl, seoCharset, seoDescriptionLength, seoDescriptionPresence, seoDuplicateDescription, seoDuplicateTitle, seoHeadingLevelSkip, seoHreflang, seoHtmlLang, seoImageAlt, seoIndexability, seoJsonLd, seoJsonLdDateFormat, seoJsonLdDeprecatedType, seoJsonLdPlaceholder, seoJsonLdRelativeUrl, seoJsonLdRequiredProps, seoJsonLdValidity, seoOgDescription, seoOgImage, seoOgTitle, seoOgUrl, seoRobotsTxt, seoSingleH1, seoSitemapInRobots, seoSitemapXml, seoSsrDisabled, seoTitleLength, seoTitlePresence, seoTwitterCard, seoViewport, settingOptions, settingSeverity, shouldSkipRangeCheck, skippedFileWarnings, splitTokens, stripTextDirective, summarize, terminalSafe, textFromNodes, unknownDirectiveIds, validateRuleOptions, validateRuleSetting, valueFromNodes, withFailedRulesOff, withReadLimit };
|
|
1132
|
+
export { type A11yOccurrenceInfo, type A11ySkipCause, APP_SCRIPT, APP_STYLE, type AppSnapshot, BAND_COLOR, type BranchStep, CHILD_NODE_KEYS, type Classification, type CompiledOverride, type ComponentFacts, type ConsoleReportOptions, type DirectiveIndex, type EachBlockFact, type EffectFact, type FailedRule, type HeadProvider, type HeadTag, type HeadingInfo, type HealthResult, IDREF_ATTRS, type ImageInfo, type KitAlias, type KitModuleFacts, LANDMARK_ROLES, type OrphanEffectFact, type Palette, type Project, READ_CONCURRENCY, ROBOTS_SOURCE_PATHS, type RawKitAliases, type ResolvedA11y, type ResolvedHead, type ResolvedHeadings, type ResolvedImages, type RouteBadge, type Rule, type RuleContext, RuleInfo, RuleOptionInfo, type RuleOptionSpec, type RuleOptionsSpec, type Runtime, SITEMAP_SOURCE_PATHS, SVELTE_CONFIG_FILES, type Scope, type ScoreOptions, type ScoreResult, type SourceSpan, type SuppressionDirective, VITE_CONFIG_FILES, type ViteKitConfigResult, a11yAbbrTitle, a11yAccessibleName, a11yAriaHiddenFocus, a11yDeprecatedAria, a11yDeprecatedAttr, a11yDeprecatedElement, a11yDisallowedAriaProps, a11yDisallowedElement, a11yDoctype, a11yDuplicateLandmark, a11yIdDuplication, a11yInteractiveNesting, a11yInvalidAriaValue, a11yInvalidRole, a11yLabelHasControl, a11yNoAccesskey, a11yNoAutofocus, a11yNoDuplicateDt, a11yNoMissingIdRef, a11yPatternTitle, a11yPermittedContents, a11yPlaceholderLabelOption, a11yPositiveTabindex, a11yRequireDatetime, a11yRequiredAriaProps, a11yRequiredElement, a11yTopLevelLandmark, a11yUnknownAriaAttribute, a11yUnverifiedIdRef, a11yUseList, allRules, applyInlineDirectives, applyOverrides, applyRuleSeverities, architectureComponentSize, architectureDirectoryNaming, architectureDocLinkTarget, architecturePrivateScopeImport, architecturePropCount, architectureReservedDirectoryNames, architectureReservedNamePlacement, architectureRouteComponentImport, architectureUnitEntryFile, attrText, attrTextOf, attrValue, attrValueOf, buildHtmlDocument, buildJsonReport, classify, collectComponentFacts, collectKitModuleFacts, collectSourceFiles, collectSuppressions, compileOverrides, computeHealth, computeScore, correctnessAutoplayMuted, correctnessBasePathNavigation, correctnessCheckableBindValue, correctnessEachIndexKey, correctnessEachKey, correctnessEffectAsDerived, correctnessEffectAsOnMount, correctnessInstanceBrowserGlobal, correctnessNonreactiveBuiltinState, correctnessOrphanEffect, correctnessOrphanLifecycle, correctnessPropMutation, correctnessServerBrowserGlobal, correctnessStalePropDerivation, correctnessUnmutatedState, decodeFragmentId, defaultConfig, defaultProject, docsUrlFor, effectiveSeverity, emptyComponentFacts, emptyKitModuleFacts, escapeHtml, explainRule, findAttr, findKitAliasesInSvelteConfig, findKitPathsBaseInSvelteConfig, findKitPathsBaseInViteConfig, findMinifyDisabled, foldOccurrences, formatAgentReport, formatConsoleReport, formatFailedRuleWarning, formatGithubReport, formatHtmlReport, formatJsonReport, formatMarkdownReport, formatSarifReport, hasFailureAtOrAbove, headTagRule, imageRule, intOption, isMentionedAnywhere, isPenalized, isTopFragment, lineOf, linkRule, listOption, mapOption, noColorPalette, overrideMatches, parseComponentFacts, parseKitModuleFacts, parseSvelte, performanceFontPreloadCrossorigin, performanceHeavyImport, performanceIframeLoading, performanceImageDimensions, performanceImageLoadingHint, performanceLcpImage, performanceLoadWaterfall, performanceMinifyDisabled, performanceNamespaceImport, performancePreconnect, performancePreloadMissingAs, performanceRenderBlockingScript, performanceResponsiveImage, performanceSequentialAwaits, performanceStateRaw, renderAppShell, resolveKitAliases, resolveKitPathsBase, resolveRepoLocalPath, resolveRole, resolveRuleOptions, resolveRunesModuleSpecifier, runRules, safeHref, scoreBand, scoreColor, scoresByCategory, securityHandlerStateWrite, securityJavascriptUrl, securityRawHtml, securityServerModuleState, securitySharedStateImport, selectRules, seoCanonicalUrl, seoCharset, seoDescriptionLength, seoDescriptionPresence, seoDuplicateDescription, seoDuplicateTitle, seoHeadingLevelSkip, seoHreflang, seoHtmlLang, seoImageAlt, seoIndexability, seoJsonLd, seoJsonLdDateFormat, seoJsonLdDeprecatedType, seoJsonLdPlaceholder, seoJsonLdRelativeUrl, seoJsonLdRequiredProps, seoJsonLdValidity, seoOgDescription, seoOgImage, seoOgTitle, seoOgUrl, seoRobotsTxt, seoSingleH1, seoSitemapInRobots, seoSitemapXml, seoSsrDisabled, seoTitleLength, seoTitlePresence, seoTwitterCard, seoViewport, settingOptions, settingSeverity, shouldSkipRangeCheck, skippedFileWarnings, splitTokens, stripTextDirective, summarize, terminalSafe, textFromNodes, unknownDirectiveIds, validateRuleOptions, validateRuleSetting, valueFromNodes, withFailedRulesOff, withReadLimit };
|
package/dist/internal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as architectureDocLinkTarget, $n as
|
|
1
|
+
import { $ as architectureDocLinkTarget, $n as seoRobotsTxt, $t as correctnessEffectAsDerived, A as a11yAbbrTitle, An as shouldSkipRangeCheck, At as lineOf, B as a11yAriaHiddenFocus, Bn as settingSeverity, Bt as securityRawHtml, C as a11yPermittedContents, Cn as seoIndexability, Ct as stripTextDirective, D as a11yDeprecatedAttr, Dn as listOption, Dt as attrValue, E as a11yDisallowedAriaProps, En as isMentionedAnywhere, Et as attrTextOf, F as a11yRequireDatetime, Fn as compileOverrides, Ft as architectureComponentSize, G as a11yInvalidRole, Gn as performancePreloadMissingAs, Gt as correctnessOrphanEffect, H as a11yInvalidAriaValue, Hn as performanceRenderBlockingScript, Ht as correctnessServerBrowserGlobal, I as a11yPlaceholderLabelOption, In as formatFailedRuleWarning, It as securitySharedStateImport, J as performanceSequentialAwaits, Jn as performanceImageLoadingHint, Jt as correctnessNonreactiveBuiltinState, K as performanceIframeLoading, Kn as linkRule, Kt as correctnessAutoplayMuted, L as a11yUseList, Ln as overrideMatches, Lt as securityServerModuleState, M as a11yNoAutofocus, Mn as validateRuleSetting, Mt as textFromNodes, N as a11yNoAccesskey, Nn as applyOverrides, Nt as valueFromNodes, O as a11yDeprecatedElement, On as mapOption, Ot as attrValueOf, P as a11yPositiveTabindex, Pn as applyRuleSeverities, Pt as architecturePropCount, Q as performanceHeavyImport, Qn as seoSitemapXml, Qt as correctnessEffectAsOnMount, R as a11yLabelHasControl, Rn as selectRules, Rt as securityHandlerStateWrite, S as a11yRequiredElement, Sn as seoTwitterCard, St as splitTokens, T as a11yDeprecatedAria, Tn as intOption, Tt as attrText, U as a11yRequiredAriaProps, Un as performanceLcpImage, Ut as correctnessBasePathNavigation, V as a11yInteractiveNesting, Vn as withFailedRulesOff, Vt as correctnessInstanceBrowserGlobal, W as a11yUnknownAriaAttribute, Wn as performanceFontPreloadCrossorigin, Wt as correctnessOrphanLifecycle, X as performanceMinifyDisabled, Xn as imageRule, Xt as correctnessPropMutation, Y as performanceLoadWaterfall, Yn as performanceImageDimensions, Yt as correctnessStalePropDerivation, Z as performanceNamespaceImport, Zn as seoHtmlLang, Zt as correctnessUnmutatedState, _ as a11yNoMissingIdRef, _n as seoJsonLdValidity, _t as IDREF_ATTRS, a as formatJsonReport, an as seoDuplicateTitle, ar as headTagRule, at as architecturePrivateScopeImport, b as a11yDuplicateLandmark, bn as seoOgUrl, bt as foldOccurrences, c as scoresByCategory, cn as seoImageAlt, cr as effectiveSeverity, ct as parseKitModuleFacts, d as messageText, dn as seoTitleLength, dr as docsUrlFor, dt as collectNamedImportAliases, en as correctnessEachIndexKey, er as seoJsonLd, et as architectureRouteComponentImport, f as ruleMetaById, fn as seoJsonLdRequiredProps, fr as isPenalized, ft as collectSuppressions, g as a11yUnverifiedIdRef, gn as seoJsonLdDeprecatedType, gt as resolveRole, h as explainRule, hn as seoJsonLdRelativeUrl, hr as defaultProject, ht as unwrapTs, i as buildJsonReport, in as seoDuplicateDescription, ir as seoDescriptionPresence, it as architectureUnitEntryFile, j as a11yNoDuplicateDt, jn as validateRuleOptions, jt as parseSvelte, k as a11yPatternTitle, kn as resolveRuleOptions, kt as findAttr, l as formatGithubReport, ln as seoCharset, lr as hasFailureAtOrAbove, lt as resolveRepoLocalPath, m as allRules, mn as seoJsonLdDateFormat, mr as defaultConfig, mt as parseModuleProgram, n as mdEscape, nn as seoSsrDisabled, nr as seoOgImage, nt as architectureReservedDirectoryNames, o as computeHealth, on as seoSingleH1, or as seoTitlePresence, ot as collectTopLevelBindings, p as severityToSarifLevel, pn as seoJsonLdPlaceholder, pt as parseComponentFacts, q as performanceStateRaw, qn as performanceResponsiveImage, qt as correctnessCheckableBindValue, r as terminalSafe, rn as seoHeadingLevelSkip, rr as seoCanonicalUrl, rt as architectureDirectoryNaming, s as computeScore, sn as seoHreflang, sr as classify, st as parseInMemoryExports, t as formatMarkdownReport, tn as correctnessEachKey, tr as seoOgTitle, tt as architectureReservedNamePlacement, u as SEVERITY_RANK, un as seoDescriptionLength, ur as summarize, ut as resolveRunesModuleSpecifier, v as a11yIdDuplication, vn as seoSitemapInRobots, vt as LANDMARK_ROLES, w as a11yDisallowedElement, wn as performancePreconnect, wt as CHILD_NODE_KEYS, x as a11yDoctype, xn as seoOgDescription, xt as isTopFragment, y as a11yTopLevelLandmark, yn as seoViewport, yt as decodeFragmentId, z as a11yAccessibleName, zn as settingOptions, zt as securityJavascriptUrl } from "./markdown-BBqqynv7.js";
|
|
2
2
|
//#region src/inline-directives.ts
|
|
3
3
|
/** The directive silencing `r`, if one sits on its line and names its rule (or names nothing). */
|
|
4
4
|
function directiveFor(index, r) {
|
|
@@ -1247,30 +1247,56 @@ const APP_SCRIPT = `
|
|
|
1247
1247
|
return pre;
|
|
1248
1248
|
}
|
|
1249
1249
|
|
|
1250
|
+
// Analyzed-repo strings (title, location, recommendation, fix description, docs URL) flow
|
|
1251
|
+
// into a prompt the user pastes into a coding agent — same threat model as
|
|
1252
|
+
// reporter/sanitize.ts's mdEscape, re-implemented here in ES5 because APP_SCRIPT runs in
|
|
1253
|
+
// the browser and cannot import build-time modules. Keep the two in sync.
|
|
1254
|
+
function mdSafe(text) {
|
|
1255
|
+
return String(text)
|
|
1256
|
+
.replace(/\\r\\n|\\r|\\n/g, ' ')
|
|
1257
|
+
.replace(/<[^>]+>/g, function (tag) {
|
|
1258
|
+
var longest = 0;
|
|
1259
|
+
var runs = tag.match(/\`+/g);
|
|
1260
|
+
if (runs) for (var i = 0; i < runs.length; i++) if (runs[i].length > longest) longest = runs[i].length;
|
|
1261
|
+
var fence = Array(longest + 2).join('\`');
|
|
1262
|
+
var pad = tag.charAt(0) === '\`' || tag.charAt(tag.length - 1) === '\`' ? ' ' : '';
|
|
1263
|
+
return fence + pad + tag + pad + fence;
|
|
1264
|
+
})
|
|
1265
|
+
.replace(/\\[([^\\]]*)\\]\\(([^)]*)\\)/g, '[$1]\\\\($2\\\\)');
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
function fenceFor(snippet) {
|
|
1269
|
+
var longest = 0;
|
|
1270
|
+
var runs = String(snippet).match(/\`+/g);
|
|
1271
|
+
if (runs) for (var i = 0; i < runs.length; i++) if (runs[i].length > longest) longest = runs[i].length;
|
|
1272
|
+
return Array(Math.max(3, longest + 1) + 1).join('\`');
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1250
1275
|
// Plain-text, copy-pasteable prompt for a single finding — same ingredients as the
|
|
1251
1276
|
// agent reporter's per-finding block (rule id, location, recommendation, fix, docs),
|
|
1252
1277
|
// reshaped for a standalone request rather than a whole-project remediation doc.
|
|
1253
1278
|
function buildAiPrompt(issue, route) {
|
|
1254
1279
|
var lines = ['Fix this svelte-vitals finding:', ''];
|
|
1255
|
-
lines.push('- Rule: ' + issue.id + ' — ' + issue.title + ' (' + issue.severity + ')');
|
|
1256
|
-
if (route) lines.push('- Route: ' + route);
|
|
1280
|
+
lines.push('- Rule: ' + issue.id + ' — ' + mdSafe(issue.title) + ' (' + issue.severity + ')');
|
|
1281
|
+
if (route) lines.push('- Route: ' + mdSafe(route));
|
|
1257
1282
|
if (issue.location) {
|
|
1258
|
-
lines.push('- Location: ' + issue.location + (issue.line !== undefined ? ':' + issue.line : ''));
|
|
1283
|
+
lines.push('- Location: ' + mdSafe(issue.location) + (issue.line !== undefined ? ':' + issue.line : ''));
|
|
1259
1284
|
}
|
|
1260
|
-
if (issue.recommendation) lines.push('- Recommendation: ' + issue.recommendation);
|
|
1285
|
+
if (issue.recommendation) lines.push('- Recommendation: ' + mdSafe(issue.recommendation));
|
|
1261
1286
|
if (issue.fix) {
|
|
1262
|
-
lines.push('- Fix: ' + issue.fix.description);
|
|
1287
|
+
lines.push('- Fix: ' + mdSafe(issue.fix.description));
|
|
1263
1288
|
if (issue.fix.snippet) {
|
|
1264
|
-
|
|
1289
|
+
var fence = fenceFor(issue.fix.snippet);
|
|
1290
|
+
lines.push('', fence + (issue.fix.lang || 'svelte'), issue.fix.snippet, fence);
|
|
1265
1291
|
}
|
|
1266
1292
|
}
|
|
1267
|
-
if (issue.docsUrl) lines.push('- Docs: ' + issue.docsUrl);
|
|
1293
|
+
if (issue.docsUrl) lines.push('- Docs: ' + mdSafe(issue.docsUrl));
|
|
1268
1294
|
lines.push(
|
|
1269
1295
|
'',
|
|
1270
1296
|
'After fixing, re-run \`svelte-vitals --diff\` (or revisit this route) to confirm ' +
|
|
1271
1297
|
issue.id +
|
|
1272
1298
|
' passes' +
|
|
1273
|
-
(route ? ' for ' + route : '') +
|
|
1299
|
+
(route ? ' for ' + mdSafe(route) : '') +
|
|
1274
1300
|
'.'
|
|
1275
1301
|
);
|
|
1276
1302
|
return lines.join('\\n');
|
|
@@ -1707,4 +1733,4 @@ function formatHtmlReport(results, config, meta) {
|
|
|
1707
1733
|
return buildHtmlDocument(buildJsonReport(results, config, meta), meta);
|
|
1708
1734
|
}
|
|
1709
1735
|
//#endregion
|
|
1710
|
-
export { APP_SCRIPT, APP_STYLE, BAND_COLOR, CHILD_NODE_KEYS, IDREF_ATTRS, LANDMARK_ROLES, READ_CONCURRENCY, ROBOTS_SOURCE_PATHS, SITEMAP_SOURCE_PATHS, SVELTE_CONFIG_FILES, VITE_CONFIG_FILES, a11yAbbrTitle, a11yAccessibleName, a11yAriaHiddenFocus, a11yDeprecatedAria, a11yDeprecatedAttr, a11yDeprecatedElement, a11yDisallowedAriaProps, a11yDisallowedElement, a11yDoctype, a11yDuplicateLandmark, a11yIdDuplication, a11yInteractiveNesting, a11yInvalidAriaValue, a11yInvalidRole, a11yLabelHasControl, a11yNoAccesskey, a11yNoAutofocus, a11yNoDuplicateDt, a11yNoMissingIdRef, a11yPatternTitle, a11yPermittedContents, a11yPlaceholderLabelOption, a11yPositiveTabindex, a11yRequireDatetime, a11yRequiredAriaProps, a11yRequiredElement, a11yTopLevelLandmark, a11yUnknownAriaAttribute, a11yUnverifiedIdRef, a11yUseList, allRules, applyInlineDirectives, applyOverrides, applyRuleSeverities, architectureComponentSize, architectureDirectoryNaming, architectureDocLinkTarget, architecturePrivateScopeImport, architecturePropCount, architectureReservedDirectoryNames, architectureReservedNamePlacement, architectureRouteComponentImport, architectureUnitEntryFile, attrText, attrTextOf, attrValue, attrValueOf, buildHtmlDocument, buildJsonReport, classify, collectComponentFacts, collectKitModuleFacts, collectSourceFiles, collectSuppressions, compileOverrides, computeHealth, computeScore, correctnessAutoplayMuted, correctnessBasePathNavigation, correctnessCheckableBindValue, correctnessEachIndexKey, correctnessEachKey, correctnessEffectAsDerived, correctnessEffectAsOnMount, correctnessInstanceBrowserGlobal, correctnessNonreactiveBuiltinState, correctnessOrphanEffect, correctnessOrphanLifecycle, correctnessPropMutation, correctnessServerBrowserGlobal, correctnessStalePropDerivation, correctnessUnmutatedState, decodeFragmentId, defaultConfig, defaultProject, docsUrlFor, effectiveSeverity, emptyComponentFacts, emptyKitModuleFacts, escapeHtml, explainRule, findAttr, findKitAliasesInSvelteConfig, findKitPathsBaseInSvelteConfig, findKitPathsBaseInViteConfig, findMinifyDisabled, foldOccurrences, formatAgentReport, formatConsoleReport, formatFailedRuleWarning, formatGithubReport, formatHtmlReport, formatJsonReport, formatMarkdownReport, formatSarifReport, hasFailureAtOrAbove, headTagRule, imageRule, intOption, isMentionedAnywhere, isPenalized, isTopFragment, lineOf, linkRule, listOption, mapOption, noColorPalette, overrideMatches, parseComponentFacts, parseKitModuleFacts, parseSvelte, performanceFontPreloadCrossorigin, performanceHeavyImport, performanceIframeLoading, performanceImageDimensions, performanceImageLoadingHint, performanceLcpImage, performanceLoadWaterfall, performanceMinifyDisabled, performanceNamespaceImport, performancePreconnect, performancePreloadMissingAs, performanceRenderBlockingScript, performanceResponsiveImage, performanceSequentialAwaits, performanceStateRaw, renderAppShell, resolveKitAliases, resolveKitPathsBase, resolveRepoLocalPath, resolveRuleOptions, resolveRunesModuleSpecifier, runRules, safeHref, scoreBand, scoreColor, scoresByCategory, securityHandlerStateWrite, securityJavascriptUrl, securityRawHtml, securityServerModuleState, securitySharedStateImport, selectRules, seoCanonicalUrl, seoCharset, seoDescriptionLength, seoDescriptionPresence, seoDuplicateDescription, seoDuplicateTitle, seoHeadingLevelSkip, seoHreflang, seoHtmlLang, seoImageAlt, seoIndexability, seoJsonLd, seoJsonLdDateFormat, seoJsonLdDeprecatedType, seoJsonLdPlaceholder, seoJsonLdRelativeUrl, seoJsonLdRequiredProps, seoJsonLdValidity, seoOgDescription, seoOgImage, seoOgTitle, seoOgUrl, seoRobotsTxt, seoSingleH1, seoSitemapInRobots, seoSitemapXml, seoSsrDisabled, seoTitleLength, seoTitlePresence, seoTwitterCard, seoViewport, settingOptions, settingSeverity, shouldSkipRangeCheck, skippedFileWarnings, splitTokens, stripTextDirective, summarize, terminalSafe, textFromNodes, unknownDirectiveIds, validateRuleOptions, validateRuleSetting, valueFromNodes, withFailedRulesOff, withReadLimit };
|
|
1736
|
+
export { APP_SCRIPT, APP_STYLE, BAND_COLOR, CHILD_NODE_KEYS, IDREF_ATTRS, LANDMARK_ROLES, READ_CONCURRENCY, ROBOTS_SOURCE_PATHS, SITEMAP_SOURCE_PATHS, SVELTE_CONFIG_FILES, VITE_CONFIG_FILES, a11yAbbrTitle, a11yAccessibleName, a11yAriaHiddenFocus, a11yDeprecatedAria, a11yDeprecatedAttr, a11yDeprecatedElement, a11yDisallowedAriaProps, a11yDisallowedElement, a11yDoctype, a11yDuplicateLandmark, a11yIdDuplication, a11yInteractiveNesting, a11yInvalidAriaValue, a11yInvalidRole, a11yLabelHasControl, a11yNoAccesskey, a11yNoAutofocus, a11yNoDuplicateDt, a11yNoMissingIdRef, a11yPatternTitle, a11yPermittedContents, a11yPlaceholderLabelOption, a11yPositiveTabindex, a11yRequireDatetime, a11yRequiredAriaProps, a11yRequiredElement, a11yTopLevelLandmark, a11yUnknownAriaAttribute, a11yUnverifiedIdRef, a11yUseList, allRules, applyInlineDirectives, applyOverrides, applyRuleSeverities, architectureComponentSize, architectureDirectoryNaming, architectureDocLinkTarget, architecturePrivateScopeImport, architecturePropCount, architectureReservedDirectoryNames, architectureReservedNamePlacement, architectureRouteComponentImport, architectureUnitEntryFile, attrText, attrTextOf, attrValue, attrValueOf, buildHtmlDocument, buildJsonReport, classify, collectComponentFacts, collectKitModuleFacts, collectSourceFiles, collectSuppressions, compileOverrides, computeHealth, computeScore, correctnessAutoplayMuted, correctnessBasePathNavigation, correctnessCheckableBindValue, correctnessEachIndexKey, correctnessEachKey, correctnessEffectAsDerived, correctnessEffectAsOnMount, correctnessInstanceBrowserGlobal, correctnessNonreactiveBuiltinState, correctnessOrphanEffect, correctnessOrphanLifecycle, correctnessPropMutation, correctnessServerBrowserGlobal, correctnessStalePropDerivation, correctnessUnmutatedState, decodeFragmentId, defaultConfig, defaultProject, docsUrlFor, effectiveSeverity, emptyComponentFacts, emptyKitModuleFacts, escapeHtml, explainRule, findAttr, findKitAliasesInSvelteConfig, findKitPathsBaseInSvelteConfig, findKitPathsBaseInViteConfig, findMinifyDisabled, foldOccurrences, formatAgentReport, formatConsoleReport, formatFailedRuleWarning, formatGithubReport, formatHtmlReport, formatJsonReport, formatMarkdownReport, formatSarifReport, hasFailureAtOrAbove, headTagRule, imageRule, intOption, isMentionedAnywhere, isPenalized, isTopFragment, lineOf, linkRule, listOption, mapOption, noColorPalette, overrideMatches, parseComponentFacts, parseKitModuleFacts, parseSvelte, performanceFontPreloadCrossorigin, performanceHeavyImport, performanceIframeLoading, performanceImageDimensions, performanceImageLoadingHint, performanceLcpImage, performanceLoadWaterfall, performanceMinifyDisabled, performanceNamespaceImport, performancePreconnect, performancePreloadMissingAs, performanceRenderBlockingScript, performanceResponsiveImage, performanceSequentialAwaits, performanceStateRaw, renderAppShell, resolveKitAliases, resolveKitPathsBase, resolveRepoLocalPath, resolveRole, resolveRuleOptions, resolveRunesModuleSpecifier, runRules, safeHref, scoreBand, scoreColor, scoresByCategory, securityHandlerStateWrite, securityJavascriptUrl, securityRawHtml, securityServerModuleState, securitySharedStateImport, selectRules, seoCanonicalUrl, seoCharset, seoDescriptionLength, seoDescriptionPresence, seoDuplicateDescription, seoDuplicateTitle, seoHeadingLevelSkip, seoHreflang, seoHtmlLang, seoImageAlt, seoIndexability, seoJsonLd, seoJsonLdDateFormat, seoJsonLdDeprecatedType, seoJsonLdPlaceholder, seoJsonLdRelativeUrl, seoJsonLdRequiredProps, seoJsonLdValidity, seoOgDescription, seoOgImage, seoOgTitle, seoOgUrl, seoRobotsTxt, seoSingleH1, seoSitemapInRobots, seoSitemapXml, seoSsrDisabled, seoTitleLength, seoTitlePresence, seoTwitterCard, seoViewport, settingOptions, settingSeverity, shouldSkipRangeCheck, skippedFileWarnings, splitTokens, stripTextDirective, summarize, terminalSafe, textFromNodes, unknownDirectiveIds, validateRuleOptions, validateRuleSetting, valueFromNodes, withFailedRulesOff, withReadLimit };
|
|
@@ -4388,12 +4388,13 @@ function collectAriaElements(node, source, acc) {
|
|
|
4388
4388
|
const roleAttr = findAttr(node.attributes, "role");
|
|
4389
4389
|
const ariaAttrs = node.attributes.filter((a) => a?.type === "Attribute" && typeof a.name === "string" && a.name.toLowerCase().startsWith("aria-"));
|
|
4390
4390
|
if (roleAttr || ariaAttrs.length > 0) {
|
|
4391
|
-
const
|
|
4392
|
-
const
|
|
4393
|
-
const
|
|
4391
|
+
const tag = node.name.toLowerCase();
|
|
4392
|
+
const inputType = tag === "input" ? attrText(node.attributes, "type") : void 0;
|
|
4393
|
+
const hasList = tag === "input" && findAttr(node.attributes, "list") !== void 0;
|
|
4394
|
+
const selectKind = tag === "select" ? selectNativeRole(node.attributes) : void 0;
|
|
4394
4395
|
const hasSpread = node.attributes.some((a) => a?.type === "SpreadAttribute");
|
|
4395
4396
|
acc.push({
|
|
4396
|
-
tag
|
|
4397
|
+
tag,
|
|
4397
4398
|
line: lineOf(source, node.start),
|
|
4398
4399
|
...roleAttr ? { role: classifyAttrValue(roleAttr.value) } : {},
|
|
4399
4400
|
...inputType !== void 0 ? { inputType: inputType.toLowerCase() } : {},
|
|
@@ -8886,7 +8887,8 @@ const a11yPatternTitle = componentRule({
|
|
|
8886
8887
|
//#region src/html-spec/index.ts
|
|
8887
8888
|
/** The HTML element's spec row; `undefined` for SVG (`svg:*`) and unknown names. */
|
|
8888
8889
|
function htmlElement(tag) {
|
|
8889
|
-
|
|
8890
|
+
const key = tag.toLowerCase();
|
|
8891
|
+
return Object.hasOwn(HTML_SPEC.elements, key) ? HTML_SPEC.elements[key] : void 0;
|
|
8890
8892
|
}
|
|
8891
8893
|
/**
|
|
8892
8894
|
* Whether the element is in WHATWG's obsolete-features list — the dataset's `obsolete` flag, which
|
|
@@ -8905,7 +8907,10 @@ function isObsoleteElement(tag) {
|
|
|
8905
8907
|
* and the per-element table is where the dataset's per-attribute status lives.
|
|
8906
8908
|
*/
|
|
8907
8909
|
function elementAttr(tag, name) {
|
|
8908
|
-
|
|
8910
|
+
const attrs = htmlElement(tag)?.attributes;
|
|
8911
|
+
if (!attrs) return void 0;
|
|
8912
|
+
const key = name.toLowerCase();
|
|
8913
|
+
return Object.hasOwn(attrs, key) ? attrs[key] : void 0;
|
|
8909
8914
|
}
|
|
8910
8915
|
/**
|
|
8911
8916
|
* The dataset's `deprecated` (MDN-tracking) or `obsolete` (WHATWG) flag on this attribute for
|
|
@@ -8976,9 +8981,9 @@ function roleCandidates(e) {
|
|
|
8976
8981
|
} : void 0;
|
|
8977
8982
|
}
|
|
8978
8983
|
if (e.hasSpread) return void 0;
|
|
8979
|
-
const el = HTML_SPEC.elements[e.tag];
|
|
8984
|
+
const el = Object.hasOwn(HTML_SPEC.elements, e.tag) ? HTML_SPEC.elements[e.tag] : void 0;
|
|
8980
8985
|
if (!el) return void 0;
|
|
8981
|
-
const aria = ELEMENT_FACT_OVERRIDES[e.tag] ?? el.aria;
|
|
8986
|
+
const aria = (Object.hasOwn(ELEMENT_FACT_OVERRIDES, e.tag) ? ELEMENT_FACT_OVERRIDES[e.tag] : void 0) ?? el.aria;
|
|
8982
8987
|
const roles = [aria.implicitRole ?? false];
|
|
8983
8988
|
for (const c of Object.values(aria.conditions ?? {})) if ("implicitRole" in c) roles.push(c.implicitRole ?? false);
|
|
8984
8989
|
return {
|
|
@@ -9366,7 +9371,7 @@ function judgeContent(els, children, ancestors, childIdx) {
|
|
|
9366
9371
|
const child = els[childIdx];
|
|
9367
9372
|
for (let i = ancestors.length - 1; i >= 0; i--) {
|
|
9368
9373
|
const holder = els[ancestors[i]];
|
|
9369
|
-
const spec = HTML_SPEC.elements[holder.tag];
|
|
9374
|
+
const spec = Object.hasOwn(HTML_SPEC.elements, holder.tag) ? HTML_SPEC.elements[holder.tag] : void 0;
|
|
9370
9375
|
if (!spec?.contentModel) return void 0;
|
|
9371
9376
|
const cm = spec.contentModel;
|
|
9372
9377
|
if (cm.contents === true) return void 0;
|
|
@@ -10259,22 +10264,25 @@ function mdEscape(text) {
|
|
|
10259
10264
|
return text.replace(/\r\n|\r|\n/g, " ").replace(/<[^>]+>/g, (tag) => inlineCode(tag)).replace(/\[([^\]]*)\]\(([^)]*)\)/g, "[$1]\\($2\\)");
|
|
10260
10265
|
}
|
|
10261
10266
|
/**
|
|
10262
|
-
* Strip ANSI/OSC escape sequences and C0 control characters (except `\n`/`\t`) from a
|
|
10267
|
+
* Strip ANSI/OSC escape sequences and C0/C1 control characters (except `\n`/`\t`) from a
|
|
10263
10268
|
* string before it reaches a terminal. POSIX file/route names can contain almost any
|
|
10264
10269
|
* byte, so a hostile repo can smuggle a terminal-title rewrite, cursor move, or other
|
|
10265
10270
|
* escape-sequence trick into what looks like plain report text.
|
|
10266
10271
|
*
|
|
10267
|
-
*
|
|
10268
|
-
*
|
|
10269
|
-
*
|
|
10270
|
-
*
|
|
10271
|
-
*
|
|
10272
|
-
*
|
|
10272
|
+
* OSC and CSI sequences are pattern-matched and removed whole (payload included) — those
|
|
10273
|
+
* cover title-bar writes and cursor/screen control, the two classes with a real blast
|
|
10274
|
+
* radius. Each is matched in both its two-byte `ESC` form and its single-codepoint C1
|
|
10275
|
+
* form (U+009D OSC, U+009B CSI — C1 also interprets as `ESC ]`/`ESC [` on legacy/some
|
|
10276
|
+
* configured terminals), and OSC's terminator likewise accepts either `ESC \` or the
|
|
10277
|
+
* single-codepoint C1 ST (U+009C). Any other `ESC`/C1 byte (rarer single/two-byte forms
|
|
10278
|
+
* like reset or save-cursor) falls through to the final control sweep below, which drops
|
|
10279
|
+
* the lone control byte but — deliberately, not swallowing an adjacent legitimate
|
|
10280
|
+
* character — leaves whatever printable byte follows it as stray text.
|
|
10273
10281
|
* ponytail: doesn't special-case every Fe escape form; broaden the CSI/OSC patterns if a
|
|
10274
10282
|
* concrete non-CSI/OSC sequence turns out to matter.
|
|
10275
10283
|
*/
|
|
10276
10284
|
function terminalSafe(text) {
|
|
10277
|
-
return text.replace(
|
|
10285
|
+
return text.replace(/(?:\x1b\]|\x9d)[^\x07\x9c\x1b]*(?:\x07|\x9c|\x1b\\)?/g, "").replace(/(?:\x1b\[|\x9b)[0-?]*[ -/]*[@-~]/g, "").replace(/[\x00-\x08\x0b-\x1f\x7f-\x9f]/g, "");
|
|
10278
10286
|
}
|
|
10279
10287
|
//#endregion
|
|
10280
10288
|
//#region src/reporter/markdown.ts
|
|
@@ -10371,4 +10379,4 @@ function formatMarkdownReport(results, config, meta) {
|
|
|
10371
10379
|
return lines.join("\n");
|
|
10372
10380
|
}
|
|
10373
10381
|
//#endregion
|
|
10374
|
-
export { architectureDocLinkTarget as $,
|
|
10382
|
+
export { architectureDocLinkTarget as $, seoRobotsTxt as $n, correctnessEffectAsDerived as $t, a11yAbbrTitle as A, shouldSkipRangeCheck as An, lineOf as At, a11yAriaHiddenFocus as B, settingSeverity as Bn, securityRawHtml as Bt, a11yPermittedContents as C, seoIndexability as Cn, stripTextDirective as Ct, a11yDeprecatedAttr as D, listOption as Dn, attrValue as Dt, a11yDisallowedAriaProps as E, isMentionedAnywhere as En, attrTextOf as Et, a11yRequireDatetime as F, compileOverrides as Fn, architectureComponentSize as Ft, a11yInvalidRole as G, performancePreloadMissingAs as Gn, correctnessOrphanEffect as Gt, a11yInvalidAriaValue as H, performanceRenderBlockingScript as Hn, correctnessServerBrowserGlobal as Ht, a11yPlaceholderLabelOption as I, formatFailedRuleWarning as In, securitySharedStateImport as It, performanceSequentialAwaits as J, performanceImageLoadingHint as Jn, correctnessNonreactiveBuiltinState as Jt, performanceIframeLoading as K, linkRule as Kn, correctnessAutoplayMuted as Kt, a11yUseList as L, overrideMatches as Ln, securityServerModuleState as Lt, a11yNoAutofocus as M, validateRuleSetting as Mn, textFromNodes as Mt, a11yNoAccesskey as N, applyOverrides as Nn, valueFromNodes as Nt, a11yDeprecatedElement as O, mapOption as On, attrValueOf as Ot, a11yPositiveTabindex as P, applyRuleSeverities as Pn, architecturePropCount as Pt, performanceHeavyImport as Q, seoSitemapXml as Qn, correctnessEffectAsOnMount as Qt, a11yLabelHasControl as R, selectRules as Rn, securityHandlerStateWrite as Rt, a11yRequiredElement as S, seoTwitterCard as Sn, splitTokens as St, a11yDeprecatedAria as T, intOption as Tn, attrText as Tt, a11yRequiredAriaProps as U, performanceLcpImage as Un, correctnessBasePathNavigation as Ut, a11yInteractiveNesting as V, withFailedRulesOff as Vn, correctnessInstanceBrowserGlobal as Vt, a11yUnknownAriaAttribute as W, performanceFontPreloadCrossorigin as Wn, correctnessOrphanLifecycle as Wt, performanceMinifyDisabled as X, imageRule as Xn, correctnessPropMutation as Xt, performanceLoadWaterfall as Y, performanceImageDimensions as Yn, correctnessStalePropDerivation as Yt, performanceNamespaceImport as Z, seoHtmlLang as Zn, correctnessUnmutatedState as Zt, a11yNoMissingIdRef as _, seoJsonLdValidity as _n, IDREF_ATTRS as _t, formatJsonReport as a, seoDuplicateTitle as an, headTagRule as ar, architecturePrivateScopeImport as at, a11yDuplicateLandmark as b, seoOgUrl as bn, foldOccurrences as bt, scoresByCategory as c, seoImageAlt as cn, effectiveSeverity as cr, parseKitModuleFacts as ct, messageText as d, seoTitleLength as dn, docsUrlFor as dr, collectNamedImportAliases as dt, correctnessEachIndexKey as en, seoJsonLd as er, architectureRouteComponentImport as et, ruleMetaById as f, seoJsonLdRequiredProps as fn, isPenalized as fr, collectSuppressions as ft, a11yUnverifiedIdRef as g, seoJsonLdDeprecatedType as gn, defineConfig as gr, resolveRole as gt, explainRule as h, seoJsonLdRelativeUrl as hn, defaultProject as hr, unwrapTs as ht, buildJsonReport as i, seoDuplicateDescription as in, seoDescriptionPresence as ir, architectureUnitEntryFile as it, a11yNoDuplicateDt as j, validateRuleOptions as jn, parseSvelte as jt, a11yPatternTitle as k, resolveRuleOptions as kn, findAttr as kt, formatGithubReport as l, seoCharset as ln, hasFailureAtOrAbove as lr, resolveRepoLocalPath as lt, allRules as m, seoJsonLdDateFormat as mn, defaultConfig as mr, parseModuleProgram as mt, mdEscape as n, seoSsrDisabled as nn, seoOgImage as nr, architectureReservedDirectoryNames as nt, computeHealth as o, seoSingleH1 as on, seoTitlePresence as or, collectTopLevelBindings as ot, severityToSarifLevel as p, seoJsonLdPlaceholder as pn, CATEGORIES as pr, parseComponentFacts as pt, performanceStateRaw as q, performanceResponsiveImage as qn, correctnessCheckableBindValue as qt, terminalSafe as r, seoHeadingLevelSkip as rn, seoCanonicalUrl as rr, architectureDirectoryNaming as rt, computeScore as s, seoHreflang as sn, classify as sr, parseInMemoryExports as st, formatMarkdownReport as t, correctnessEachKey as tn, seoOgTitle as tr, architectureReservedNamePlacement as tt, SEVERITY_RANK as u, seoDescriptionLength as un, summarize as ur, resolveRunesModuleSpecifier as ut, a11yIdDuplication as v, seoSitemapInRobots as vn, LANDMARK_ROLES as vt, a11yDisallowedElement as w, performancePreconnect as wn, CHILD_NODE_KEYS as wt, a11yDoctype as x, seoOgDescription as xn, isTopFragment as xt, a11yTopLevelLandmark as y, seoViewport as yn, decodeFragmentId as yt, a11yAccessibleName as z, settingOptions as zn, securityJavascriptUrl as zt };
|