@holmdigital/engine 3.2.0 → 3.3.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/dist/{chunk-D66R3ESC.mjs → chunk-56LAC5FY.mjs} +23 -9
- package/dist/{chunk-RNCZ2GNY.mjs → chunk-DSZ7B2IH.mjs} +63 -18
- package/dist/cli/index.js +182 -26
- package/dist/cli/index.mjs +75 -6
- package/dist/{i18n-7RPBNX7F.mjs → i18n-MS2YJU4L.mjs} +1 -1
- package/dist/index.d.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +83 -24
- package/dist/index.mjs +2 -2
- package/dist/{junit-generator-5DTJ7YEU.mjs → junit-generator-B6HW7DCD.mjs} +22 -0
- package/dist/{plain-report-QLJTGX5L.mjs → plain-report-V5ZUHISZ.mjs} +7 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -78,7 +78,9 @@ var init_en = __esm({
|
|
|
78
78
|
noscript_no_fallback: "No <noscript> fallback was found.",
|
|
79
79
|
noscript_impact: "This rarely affects the people who turned JavaScript off, but the people whose scripts never arrived: a weak mobile network, a corporate proxy, a browser extension that misbehaves, a timeout. They get an empty page instead of a slow one.",
|
|
80
80
|
noscript_advisory: "Recommendation, not a legal requirement. No WCAG success criterion requires a page to work without JavaScript, so this does not affect the compliance score.",
|
|
81
|
-
badge_withheld: "100/100 with no findings. The robustness check is not clean, so we do not generate a shareable badge."
|
|
81
|
+
badge_withheld: "100/100 with no findings. The robustness check is not clean, so we do not generate a shareable badge.",
|
|
82
|
+
inconclusive_headline: "\u26A0\uFE0F Could not scan the real content",
|
|
83
|
+
inconclusive_detail: 'The page looked like a wait / redirect / bot-challenge page (interstitial), so this result does not reflect the real site. An honest "could not measure" is safer than a misleading score. Try a higher --wait-for-hydration <ms>, or open the URL in a browser to check.'
|
|
82
84
|
},
|
|
83
85
|
report: {
|
|
84
86
|
title: "Accessibility Report - {url}",
|
|
@@ -94,7 +96,9 @@ var init_en = __esm({
|
|
|
94
96
|
needs_review_note: "axe-core could not determine these automatically \u2014 verify them manually. They are not counted in the totals above.",
|
|
95
97
|
prescriptive_fix: "\u{1F4A1} Prescriptive Fix",
|
|
96
98
|
use: "Use",
|
|
97
|
-
footer: "Generated by @holmdigital/engine v{version} \u2022 Standards: WCAG 2.1 AA, EN 301 549, DOS-lagen"
|
|
99
|
+
footer: "Generated by @holmdigital/engine v{version} \u2022 Standards: WCAG 2.1 AA, EN 301 549, DOS-lagen",
|
|
100
|
+
inconclusive_title: "We could not scan the real page",
|
|
101
|
+
inconclusive_detail: "The page looked like a wait, redirect, or verification screen (for example a bot check or an interstitial), so the engine measured that screen instead of your site. Nothing here reflects your real content. Try again with a higher --wait-for-hydration value, and if it persists, open the address in a browser to confirm the site loads."
|
|
98
102
|
},
|
|
99
103
|
plain: {
|
|
100
104
|
what_happens: "What happens:",
|
|
@@ -112,6 +116,7 @@ var init_en = __esm({
|
|
|
112
116
|
intro_unit_plural: "issues",
|
|
113
117
|
closing: "Start at the top. The items highest up cost you the most customers.",
|
|
114
118
|
empty_state: "No barriers found this time.",
|
|
119
|
+
inconclusive: 'We could not read your real page this time. It looked like a waiting or verification screen (for example a "please wait" message or a bot check), so there is nothing reliable to report yet. Please try again \u2014 and if it keeps happening, open your website in a normal browser to make sure it loads.',
|
|
115
120
|
report_title: "Accessibility report for {url}",
|
|
116
121
|
report_tagline: "Accessibility report",
|
|
117
122
|
attribution: "Report generated by HolmDigital Engine, part of the HolmDigital accessibility ecosystem.",
|
|
@@ -164,7 +169,9 @@ var init_sv = __esm({
|
|
|
164
169
|
noscript_no_fallback: "Ingen <noscript>-fallback hittades.",
|
|
165
170
|
noscript_impact: "Det drabbar s\xE4llan den som valt bort JavaScript, utan den vars skript aldrig kom fram: d\xE5ligt mobiln\xE4t, en f\xF6retagsproxy, ett webbl\xE4sartill\xE4gg som kr\xE5nglar, en timeout. De f\xE5r en tom sida i st\xE4llet f\xF6r en l\xE5ngsam.",
|
|
166
171
|
noscript_advisory: "Rekommendation, inte ett lagkrav. Inget WCAG-kriterium kr\xE4ver att en sida fungerar utan JavaScript, s\xE5 detta p\xE5verkar inte konformansscoren.",
|
|
167
|
-
badge_withheld: "100/100 utan anm\xE4rkning. Robusthetskontrollen \xE4r inte ren, s\xE5 vi genererar ingen delbar badge."
|
|
172
|
+
badge_withheld: "100/100 utan anm\xE4rkning. Robusthetskontrollen \xE4r inte ren, s\xE5 vi genererar ingen delbar badge.",
|
|
173
|
+
inconclusive_headline: "\u26A0\uFE0F Kunde inte skanna det riktiga inneh\xE5llet",
|
|
174
|
+
inconclusive_detail: 'Sidan s\xE5g ut som en v\xE4nta-/omdirigerings-/bot-challenge-sida (interstitial), s\xE5 resultatet g\xE4ller inte den riktiga sajten. Ett \xE4rligt "kunde inte m\xE4ta" \xE4r b\xE4ttre \xE4n en vilseledande score. Prova ett h\xF6gre --wait-for-hydration <ms>, eller \xF6ppna adressen i en webbl\xE4sare och kontrollera.'
|
|
168
175
|
},
|
|
169
176
|
report: {
|
|
170
177
|
title: "Tillg\xE4nglighetsrapport - {url}",
|
|
@@ -180,7 +187,9 @@ var init_sv = __esm({
|
|
|
180
187
|
needs_review_note: "axe-core kunde inte avg\xF6ra dessa automatiskt \u2014 kontrollera dem manuellt. De r\xE4knas inte in i summorna ovan.",
|
|
181
188
|
prescriptive_fix: "\u{1F4A1} Preskriptiv L\xF6sning",
|
|
182
189
|
use: "Anv\xE4nd",
|
|
183
|
-
footer: "Genererad av @holmdigital/engine v{version} \u2022 Standarder: WCAG 2.1 AA, EN 301 549, DOS-lagen"
|
|
190
|
+
footer: "Genererad av @holmdigital/engine v{version} \u2022 Standarder: WCAG 2.1 AA, EN 301 549, DOS-lagen",
|
|
191
|
+
inconclusive_title: "Vi kunde inte skanna den riktiga sidan",
|
|
192
|
+
inconclusive_detail: "Sidan s\xE5g ut som en v\xE4nta-, omdirigerings- eller verifieringssk\xE4rm (t.ex. en bot-kontroll eller en interstitial), s\xE5 motorn m\xE4tte den sk\xE4rmen i st\xE4llet f\xF6r din sajt. Inget h\xE4r speglar ditt riktiga inneh\xE5ll. Prova igen med ett h\xF6gre --wait-for-hydration-v\xE4rde, och om det kvarst\xE5r, \xF6ppna adressen i en webbl\xE4sare f\xF6r att bekr\xE4fta att sajten laddar."
|
|
184
193
|
},
|
|
185
194
|
plain: {
|
|
186
195
|
what_happens: "Vad som h\xE4nder:",
|
|
@@ -198,6 +207,7 @@ var init_sv = __esm({
|
|
|
198
207
|
intro_unit_plural: "hinder",
|
|
199
208
|
closing: "B\xF6rja uppifr\xE5n. Punkterna h\xF6gst upp kostar dig mest kunder.",
|
|
200
209
|
empty_state: "Vi hittade inga hinder den h\xE4r g\xE5ngen.",
|
|
210
|
+
inconclusive: 'Vi kunde inte l\xE4sa din riktiga sida den h\xE4r g\xE5ngen. Det s\xE5g ut som en v\xE4nta- eller verifieringssk\xE4rm (t.ex. ett "v\xE4nligen v\xE4nta"-meddelande eller en bot-kontroll), s\xE5 det finns inget tillf\xF6rlitligt att rapportera \xE4nnu. Prova igen \u2014 och om det forts\xE4tter, \xF6ppna din webbplats i en vanlig webbl\xE4sare och kontrollera att den laddar.',
|
|
201
211
|
report_title: "Tillg\xE4nglighetsrapport f\xF6r {url}",
|
|
202
212
|
report_tagline: "Tillg\xE4nglighetsrapport",
|
|
203
213
|
attribution: "Rapporten genererades av HolmDigital Engine, en del av HolmDigitals ekosystem f\xF6r tillg\xE4nglighet.",
|
|
@@ -250,7 +260,9 @@ var init_de = __esm({
|
|
|
250
260
|
noscript_no_fallback: "Es wurde kein <noscript>-Fallback gefunden.",
|
|
251
261
|
noscript_impact: "Das trifft selten die Menschen, die JavaScript abgeschaltet haben, sondern die Menschen, deren Skripte nie ankamen: ein schwaches Mobilfunknetz, ein Firmenproxy, eine st\xF6rende Browsererweiterung, ein Timeout. Sie bekommen eine leere Seite statt einer langsamen.",
|
|
252
262
|
noscript_advisory: "Empfehlung, keine gesetzliche Anforderung. Kein WCAG-Erfolgskriterium verlangt, dass eine Seite ohne JavaScript funktioniert. Dies beeinflusst daher den Konformit\xE4tswert nicht.",
|
|
253
|
-
badge_withheld: "100/100 ohne Befund. Die Robustheitspr\xFCfung ist nicht sauber, deshalb erzeugen wir kein teilbares Badge."
|
|
263
|
+
badge_withheld: "100/100 ohne Befund. Die Robustheitspr\xFCfung ist nicht sauber, deshalb erzeugen wir kein teilbares Badge.",
|
|
264
|
+
inconclusive_headline: "\u26A0\uFE0F Der eigentliche Inhalt konnte nicht gepr\xFCft werden",
|
|
265
|
+
inconclusive_detail: 'Die Seite sah aus wie eine Warte-/Weiterleitungs-/Bot-Challenge-Seite (Interstitial), daher spiegelt dieses Ergebnis nicht die echte Website wider. Ein ehrliches "nicht messbar" ist besser als eine irref\xFChrende Bewertung. Versuchen Sie einen h\xF6heren Wert f\xFCr --wait-for-hydration <ms> oder \xF6ffnen Sie die URL im Browser zur Kontrolle.'
|
|
254
266
|
},
|
|
255
267
|
report: {
|
|
256
268
|
title: "Barrierefreiheitsbericht - {url}",
|
|
@@ -266,7 +278,9 @@ var init_de = __esm({
|
|
|
266
278
|
needs_review_note: "axe-core konnte diese nicht automatisch bestimmen \u2014 bitte manuell pr\xFCfen. Sie werden oben nicht mitgez\xE4hlt.",
|
|
267
279
|
prescriptive_fix: "\u{1F4A1} Vorschriftsm\xE4\xDFige L\xF6sung",
|
|
268
280
|
use: "Verwenden",
|
|
269
|
-
footer: "Generiert von @holmdigital/engine v{version} \u2022 Standards: WCAG 2.1 AA, EN 301 549, BITV 2.0"
|
|
281
|
+
footer: "Generiert von @holmdigital/engine v{version} \u2022 Standards: WCAG 2.1 AA, EN 301 549, BITV 2.0",
|
|
282
|
+
inconclusive_title: "Die eigentliche Seite konnte nicht gepr\xFCft werden",
|
|
283
|
+
inconclusive_detail: "Die Seite sah aus wie ein Warte-, Weiterleitungs- oder Verifizierungsbildschirm (zum Beispiel eine Bot-Pr\xFCfung oder ein Interstitial), daher hat die Engine diesen Bildschirm statt Ihrer Website gemessen. Nichts hier spiegelt Ihren echten Inhalt wider. Versuchen Sie es erneut mit einem h\xF6heren --wait-for-hydration-Wert, und wenn es weiterhin auftritt, \xF6ffnen Sie die Adresse im Browser, um zu best\xE4tigen, dass die Website l\xE4dt."
|
|
270
284
|
},
|
|
271
285
|
plain: {
|
|
272
286
|
what_happens: "What happens:",
|
|
@@ -284,6 +298,7 @@ var init_de = __esm({
|
|
|
284
298
|
intro_unit_plural: "issues",
|
|
285
299
|
closing: "Start at the top. The items highest up cost you the most customers.",
|
|
286
300
|
empty_state: "No barriers found this time.",
|
|
301
|
+
inconclusive: 'Wir konnten Ihre eigentliche Seite diesmal nicht lesen. Sie sah aus wie ein Warte- oder Verifizierungsbildschirm (zum Beispiel eine "Bitte warten"-Meldung oder eine Bot-Pr\xFCfung), daher gibt es noch nichts Verl\xE4ssliches zu berichten. Bitte versuchen Sie es erneut \u2014 und wenn es weiterhin auftritt, \xF6ffnen Sie Ihre Website in einem normalen Browser, um sicherzustellen, dass sie l\xE4dt.',
|
|
287
302
|
report_title: "Accessibility report for {url}",
|
|
288
303
|
report_tagline: "Accessibility report",
|
|
289
304
|
attribution: "Report generated by HolmDigital Engine, part of the HolmDigital accessibility ecosystem.",
|
|
@@ -336,7 +351,9 @@ var init_fr = __esm({
|
|
|
336
351
|
noscript_no_fallback: "Aucune solution de repli <noscript> n'a \xE9t\xE9 trouv\xE9e.",
|
|
337
352
|
noscript_impact: "Cela touche rarement les personnes qui ont d\xE9sactiv\xE9 JavaScript, mais celles dont les scripts ne sont jamais arriv\xE9s : un r\xE9seau mobile faible, un proxy d'entreprise, une extension de navigateur d\xE9faillante, un d\xE9lai d\xE9pass\xE9. Elles obtiennent une page vide au lieu d'une page lente.",
|
|
338
353
|
noscript_advisory: "Recommandation, pas une obligation l\xE9gale. Aucun crit\xE8re de succ\xE8s WCAG n'exige qu'une page fonctionne sans JavaScript. Cela n'affecte donc pas le score de conformit\xE9.",
|
|
339
|
-
badge_withheld: "100/100 sans r\xE9serve. Le contr\xF4le de robustesse n'est pas propre, nous ne g\xE9n\xE9rons donc pas de badge partageable."
|
|
354
|
+
badge_withheld: "100/100 sans r\xE9serve. Le contr\xF4le de robustesse n'est pas propre, nous ne g\xE9n\xE9rons donc pas de badge partageable.",
|
|
355
|
+
inconclusive_headline: "\u26A0\uFE0F Impossible d'analyser le vrai contenu",
|
|
356
|
+
inconclusive_detail: "La page ressemblait \xE0 une page d'attente / de redirection / de challenge anti-bot (interstitiel), donc ce r\xE9sultat ne refl\xE8te pas le vrai site. Un honn\xEAte \xAB mesure impossible \xBB vaut mieux qu'un score trompeur. Essayez une valeur --wait-for-hydration <ms> plus \xE9lev\xE9e, ou ouvrez l'URL dans un navigateur pour v\xE9rifier."
|
|
340
357
|
},
|
|
341
358
|
report: {
|
|
342
359
|
title: "Rapport d'Accessibilit\xE9 - {url}",
|
|
@@ -352,7 +369,9 @@ var init_fr = __esm({
|
|
|
352
369
|
needs_review_note: "axe-core n'a pas pu les d\xE9terminer automatiquement \u2014 v\xE9rifiez-les manuellement. Ils ne sont pas compt\xE9s dans les totaux ci-dessus.",
|
|
353
370
|
prescriptive_fix: "\u{1F4A1} Solution Prescriptive",
|
|
354
371
|
use: "Utiliser",
|
|
355
|
-
footer: "G\xE9n\xE9r\xE9 par @holmdigital/engine v{version} \u2022 Standards : WCAG 2.1 AA, EN 301 549, RGAA"
|
|
372
|
+
footer: "G\xE9n\xE9r\xE9 par @holmdigital/engine v{version} \u2022 Standards : WCAG 2.1 AA, EN 301 549, RGAA",
|
|
373
|
+
inconclusive_title: "Nous n'avons pas pu analyser la vraie page",
|
|
374
|
+
inconclusive_detail: "La page ressemblait \xE0 un \xE9cran d'attente, de redirection ou de v\xE9rification (par exemple un contr\xF4le anti-bot ou un interstitiel), donc le moteur a mesur\xE9 cet \xE9cran au lieu de votre site. Rien ici ne refl\xE8te votre vrai contenu. R\xE9essayez avec une valeur --wait-for-hydration plus \xE9lev\xE9e, et si cela persiste, ouvrez l'adresse dans un navigateur pour confirmer que le site se charge."
|
|
356
375
|
},
|
|
357
376
|
plain: {
|
|
358
377
|
what_happens: "What happens:",
|
|
@@ -370,6 +389,7 @@ var init_fr = __esm({
|
|
|
370
389
|
intro_unit_plural: "issues",
|
|
371
390
|
closing: "Start at the top. The items highest up cost you the most customers.",
|
|
372
391
|
empty_state: "No barriers found this time.",
|
|
392
|
+
inconclusive: "Nous n'avons pas pu lire votre vraie page cette fois. Elle ressemblait \xE0 un \xE9cran d'attente ou de v\xE9rification (par exemple un message \xAB veuillez patienter \xBB ou un contr\xF4le anti-bot), il n'y a donc encore rien de fiable \xE0 signaler. Veuillez r\xE9essayer \u2014 et si cela se reproduit, ouvrez votre site dans un navigateur normal pour vous assurer qu'il se charge.",
|
|
373
393
|
report_title: "Accessibility report for {url}",
|
|
374
394
|
report_tagline: "Accessibility report",
|
|
375
395
|
attribution: "Report generated by HolmDigital Engine, part of the HolmDigital accessibility ecosystem.",
|
|
@@ -422,7 +442,9 @@ var init_es = __esm({
|
|
|
422
442
|
noscript_no_fallback: "No se encontr\xF3 ninguna alternativa <noscript>.",
|
|
423
443
|
noscript_impact: "Rara vez afecta a quien ha desactivado JavaScript, sino a quien nunca recibi\xF3 los scripts: una red m\xF3vil deficiente, un proxy corporativo, una extensi\xF3n del navegador que falla, un tiempo de espera agotado. Ven una p\xE1gina vac\xEDa en lugar de una lenta.",
|
|
424
444
|
noscript_advisory: "Recomendaci\xF3n, no un requisito legal. Ning\xFAn criterio de conformidad de las WCAG exige que una p\xE1gina funcione sin JavaScript, por lo que esto no afecta a la puntuaci\xF3n de conformidad.",
|
|
425
|
-
badge_withheld: "100/100 sin observaciones. La comprobaci\xF3n de robustez no est\xE1 limpia, por lo que no generamos una insignia compartible."
|
|
445
|
+
badge_withheld: "100/100 sin observaciones. La comprobaci\xF3n de robustez no est\xE1 limpia, por lo que no generamos una insignia compartible.",
|
|
446
|
+
inconclusive_headline: "\u26A0\uFE0F No se pudo escanear el contenido real",
|
|
447
|
+
inconclusive_detail: "La p\xE1gina parec\xEDa una p\xE1gina de espera / redirecci\xF3n / desaf\xEDo anti-bot (interstitial), por lo que este resultado no refleja el sitio real. Un honesto \xABno se pudo medir\xBB es mejor que una puntuaci\xF3n enga\xF1osa. Prueba un valor de --wait-for-hydration <ms> m\xE1s alto, o abre la URL en un navegador para comprobarlo."
|
|
426
448
|
},
|
|
427
449
|
report: {
|
|
428
450
|
title: "Informe de Accesibilidad - {url}",
|
|
@@ -438,7 +460,9 @@ var init_es = __esm({
|
|
|
438
460
|
needs_review_note: "axe-core no pudo determinarlos autom\xE1ticamente \u2014 verif\xEDcalos manualmente. No se cuentan en los totales anteriores.",
|
|
439
461
|
prescriptive_fix: "\u{1F4A1} Soluci\xF3n Prescriptiva",
|
|
440
462
|
use: "Usar",
|
|
441
|
-
footer: "Generado por @holmdigital/engine v{version} \u2022 Est\xE1ndares: WCAG 2.1 AA, EN 301 549, UNE 139803"
|
|
463
|
+
footer: "Generado por @holmdigital/engine v{version} \u2022 Est\xE1ndares: WCAG 2.1 AA, EN 301 549, UNE 139803",
|
|
464
|
+
inconclusive_title: "No pudimos escanear la p\xE1gina real",
|
|
465
|
+
inconclusive_detail: "La p\xE1gina parec\xEDa una pantalla de espera, redirecci\xF3n o verificaci\xF3n (por ejemplo, una comprobaci\xF3n anti-bot o un interstitial), por lo que el motor midi\xF3 esa pantalla en lugar de tu sitio. Nada aqu\xED refleja tu contenido real. Vuelve a intentarlo con un valor de --wait-for-hydration m\xE1s alto y, si persiste, abre la direcci\xF3n en un navegador para confirmar que el sitio carga."
|
|
442
466
|
},
|
|
443
467
|
plain: {
|
|
444
468
|
what_happens: "What happens:",
|
|
@@ -456,6 +480,7 @@ var init_es = __esm({
|
|
|
456
480
|
intro_unit_plural: "issues",
|
|
457
481
|
closing: "Start at the top. The items highest up cost you the most customers.",
|
|
458
482
|
empty_state: "No barriers found this time.",
|
|
483
|
+
inconclusive: "No pudimos leer tu p\xE1gina real esta vez. Parec\xEDa una pantalla de espera o verificaci\xF3n (por ejemplo, un mensaje de \xABespera por favor\xBB o una comprobaci\xF3n anti-bot), as\xED que todav\xEDa no hay nada fiable que informar. Int\xE9ntalo de nuevo y, si sigue ocurriendo, abre tu sitio web en un navegador normal para asegurarte de que carga.",
|
|
459
484
|
report_title: "Accessibility report for {url}",
|
|
460
485
|
report_tagline: "Accessibility report",
|
|
461
486
|
attribution: "Report generated by HolmDigital Engine, part of the HolmDigital accessibility ecosystem.",
|
|
@@ -508,7 +533,9 @@ var init_fi = __esm({
|
|
|
508
533
|
noscript_no_fallback: "<noscript>-varasis\xE4lt\xF6\xE4 ei l\xF6ytynyt.",
|
|
509
534
|
noscript_impact: "T\xE4m\xE4 koskee harvoin niit\xE4, jotka ovat kytkeneet JavaScriptin pois. Se koskee niit\xE4, joiden skriptit eiv\xE4t koskaan tulleet perille: heikko mobiiliverkko, yrityksen v\xE4lityspalvelin, h\xE4irik\xF6iv\xE4 selainlaajennus, aikakatkaisu. He saavat tyhj\xE4n sivun hitaan sivun sijaan.",
|
|
510
535
|
noscript_advisory: "Suositus, ei lakis\xE4\xE4teinen vaatimus. Mik\xE4\xE4n WCAG-onnistumiskriteeri ei edellyt\xE4, ett\xE4 sivu toimii ilman JavaScripti\xE4, joten t\xE4m\xE4 ei vaikuta vaatimustenmukaisuuspisteisiin.",
|
|
511
|
-
badge_withheld: "100/100 ilman huomautuksia. Robustiustarkistus ei ole puhdas, joten emme luo jaettavaa merkki\xE4."
|
|
536
|
+
badge_withheld: "100/100 ilman huomautuksia. Robustiustarkistus ei ole puhdas, joten emme luo jaettavaa merkki\xE4.",
|
|
537
|
+
inconclusive_headline: "\u26A0\uFE0F Todellista sis\xE4lt\xF6\xE4 ei voitu skannata",
|
|
538
|
+
inconclusive_detail: 'Sivu n\xE4ytti odotus-/uudelleenohjaus-/bottihaastesivulta (interstitial), joten t\xE4m\xE4 tulos ei kuvaa todellista sivustoa. Rehellinen "ei voitu mitata" on parempi kuin harhaanjohtava pistem\xE4\xE4r\xE4. Kokeile suurempaa --wait-for-hydration <ms> -arvoa tai avaa URL-osoite selaimessa tarkistaaksesi.'
|
|
512
539
|
},
|
|
513
540
|
report: {
|
|
514
541
|
title: "Saavutettavuusraportti - {url}",
|
|
@@ -524,7 +551,9 @@ var init_fi = __esm({
|
|
|
524
551
|
needs_review_note: "axe-core ei voinut m\xE4\xE4ritt\xE4\xE4 n\xE4it\xE4 automaattisesti \u2014 tarkista ne manuaalisesti. Niit\xE4 ei lasketa yll\xE4 oleviin summiin.",
|
|
525
552
|
prescriptive_fix: "\u{1F4A1} Ehdotettu korjaus",
|
|
526
553
|
use: "K\xE4yt\xE4",
|
|
527
|
-
footer: "Luonut @holmdigital/engine v{version} \u2022 Standardit: WCAG 2.1 AA, EN 301 549, Digipalvelulaki"
|
|
554
|
+
footer: "Luonut @holmdigital/engine v{version} \u2022 Standardit: WCAG 2.1 AA, EN 301 549, Digipalvelulaki",
|
|
555
|
+
inconclusive_title: "Emme voineet skannata todellista sivua",
|
|
556
|
+
inconclusive_detail: "Sivu n\xE4ytti odotus-, uudelleenohjaus- tai vahvistusn\xE4yt\xF6lt\xE4 (esimerkiksi bottitarkistus tai interstitial), joten moottori mittasi kyseisen n\xE4yt\xF6n sivustosi sijaan. Mik\xE4\xE4n t\xE4ss\xE4 ei kuvaa todellista sis\xE4lt\xF6\xE4si. Yrit\xE4 uudelleen suuremmalla --wait-for-hydration-arvolla, ja jos ongelma jatkuu, avaa osoite selaimessa varmistaaksesi, ett\xE4 sivusto latautuu."
|
|
528
557
|
},
|
|
529
558
|
plain: {
|
|
530
559
|
what_happens: "What happens:",
|
|
@@ -542,6 +571,7 @@ var init_fi = __esm({
|
|
|
542
571
|
intro_unit_plural: "issues",
|
|
543
572
|
closing: "Start at the top. The items highest up cost you the most customers.",
|
|
544
573
|
empty_state: "No barriers found this time.",
|
|
574
|
+
inconclusive: 'Emme voineet lukea todellista sivuasi t\xE4ll\xE4 kertaa. Se n\xE4ytti odotus- tai vahvistusn\xE4yt\xF6lt\xE4 (esimerkiksi "odota hetki" -viesti tai bottitarkistus), joten mit\xE4\xE4n luotettavaa ei ole viel\xE4 raportoitavaa. Yrit\xE4 uudelleen \u2014 ja jos ongelma toistuu, avaa sivustosi tavallisessa selaimessa varmistaaksesi, ett\xE4 se latautuu.',
|
|
545
575
|
report_title: "Accessibility report for {url}",
|
|
546
576
|
report_tagline: "Accessibility report",
|
|
547
577
|
attribution: "Report generated by HolmDigital Engine, part of the HolmDigital accessibility ecosystem.",
|
|
@@ -594,7 +624,9 @@ var init_dk = __esm({
|
|
|
594
624
|
noscript_no_fallback: "Der blev ikke fundet nogen <noscript>-fallback.",
|
|
595
625
|
noscript_impact: "Det rammer sj\xE6ldent dem, der har sl\xE5et JavaScript fra, men dem, hvis scripts aldrig n\xE5ede frem: d\xE5rligt mobilnet, en virksomhedsproxy, en browserudvidelse der driller, en timeout. De f\xE5r en tom side i stedet for en langsom.",
|
|
596
626
|
noscript_advisory: "Anbefaling, ikke et lovkrav. Intet WCAG-succeskriterium kr\xE6ver, at en side fungerer uden JavaScript, s\xE5 dette p\xE5virker ikke konformitetsscoren.",
|
|
597
|
-
badge_withheld: "100/100 uden anm\xE6rkninger. Robusthedstjekket er ikke rent, s\xE5 vi genererer ikke et delbart badge."
|
|
627
|
+
badge_withheld: "100/100 uden anm\xE6rkninger. Robusthedstjekket er ikke rent, s\xE5 vi genererer ikke et delbart badge.",
|
|
628
|
+
inconclusive_headline: "\u26A0\uFE0F Kunne ikke scanne det rigtige indhold",
|
|
629
|
+
inconclusive_detail: `Siden lignede en vente-/omdirigerings-/bot-challenge-side (interstitial), s\xE5 dette resultat afspejler ikke det rigtige websted. Et \xE6rligt "kunne ikke m\xE5le" er bedre end en misvisende score. Pr\xF8v en h\xF8jere --wait-for-hydration <ms>, eller \xE5bn URL'en i en browser for at kontrollere.`
|
|
598
630
|
},
|
|
599
631
|
report: {
|
|
600
632
|
title: "Tilg\xE6ngelighedsrapport - {url}",
|
|
@@ -610,7 +642,9 @@ var init_dk = __esm({
|
|
|
610
642
|
needs_review_note: "axe-core kunne ikke afg\xF8re disse automatisk \u2014 kontroll\xE9r dem manuelt. De t\xE6lles ikke med i totalerne ovenfor.",
|
|
611
643
|
prescriptive_fix: "\u{1F4A1} Foresl\xE5et L\xF8sning",
|
|
612
644
|
use: "Brug",
|
|
613
|
-
footer: "Genereret af @holmdigital/engine v{version} \u2022 Standarder: WCAG 2.1 AA, EN 301 549, Lov om tilg\xE6ngelighed"
|
|
645
|
+
footer: "Genereret af @holmdigital/engine v{version} \u2022 Standarder: WCAG 2.1 AA, EN 301 549, Lov om tilg\xE6ngelighed",
|
|
646
|
+
inconclusive_title: "Vi kunne ikke scanne den rigtige side",
|
|
647
|
+
inconclusive_detail: "Siden lignede en vente-, omdirigerings- eller verifikationssk\xE6rm (for eksempel et bot-tjek eller en interstitial), s\xE5 motoren m\xE5lte den sk\xE6rm i stedet for dit websted. Intet her afspejler dit rigtige indhold. Pr\xF8v igen med en h\xF8jere --wait-for-hydration-v\xE6rdi, og hvis det forts\xE6tter, \xE5bn adressen i en browser for at bekr\xE6fte, at webstedet indl\xE6ses."
|
|
614
648
|
},
|
|
615
649
|
plain: {
|
|
616
650
|
what_happens: "What happens:",
|
|
@@ -628,6 +662,7 @@ var init_dk = __esm({
|
|
|
628
662
|
intro_unit_plural: "issues",
|
|
629
663
|
closing: "Start at the top. The items highest up cost you the most customers.",
|
|
630
664
|
empty_state: "No barriers found this time.",
|
|
665
|
+
inconclusive: 'Vi kunne ikke l\xE6se din rigtige side denne gang. Den lignede en vente- eller verifikationssk\xE6rm (for eksempel en "vent venligst"-besked eller et bot-tjek), s\xE5 der er endnu intet p\xE5lideligt at rapportere. Pr\xF8v igen \u2014 og hvis det bliver ved, \xE5bn dit websted i en almindelig browser for at sikre, at det indl\xE6ses.',
|
|
631
666
|
report_title: "Accessibility report for {url}",
|
|
632
667
|
report_tagline: "Accessibility report",
|
|
633
668
|
attribution: "Report generated by HolmDigital Engine, part of the HolmDigital accessibility ecosystem.",
|
|
@@ -680,7 +715,9 @@ var init_no = __esm({
|
|
|
680
715
|
noscript_no_fallback: "Ingen <noscript>-fallback ble funnet.",
|
|
681
716
|
noscript_impact: "Det rammer sjelden den som har sl\xE5tt av JavaScript, men den som aldri fikk skriptene: d\xE5rlig mobilnett, en bedriftsproxy, en nettleserutvidelse som svikter, et tidsavbrudd. De f\xE5r en tom side i stedet for en treg.",
|
|
682
717
|
noscript_advisory: "Anbefaling, ikke et lovkrav. Ingen WCAG-suksesskriterier krever at en side fungerer uten JavaScript, s\xE5 dette p\xE5virker ikke samsvarsscoren.",
|
|
683
|
-
badge_withheld: "100/100 uten anmerkninger. Robusthetssjekken er ikke ren, s\xE5 vi genererer ikke et delbart badge."
|
|
718
|
+
badge_withheld: "100/100 uten anmerkninger. Robusthetssjekken er ikke ren, s\xE5 vi genererer ikke et delbart badge.",
|
|
719
|
+
inconclusive_headline: "\u26A0\uFE0F Kunne ikke skanne det virkelige innholdet",
|
|
720
|
+
inconclusive_detail: 'Siden s\xE5 ut som en vente-/omdirigerings-/bot-challenge-side (interstitial), s\xE5 dette resultatet gjenspeiler ikke det virkelige nettstedet. Et \xE6rlig "kunne ikke m\xE5le" er bedre enn en villedende score. Pr\xF8v en h\xF8yere --wait-for-hydration <ms>, eller \xE5pne URL-en i en nettleser for \xE5 kontrollere.'
|
|
684
721
|
},
|
|
685
722
|
report: {
|
|
686
723
|
title: "Tilgjengelighetsrapport - {url}",
|
|
@@ -696,7 +733,9 @@ var init_no = __esm({
|
|
|
696
733
|
needs_review_note: "axe-core kunne ikke avgj\xF8re disse automatisk \u2014 kontroller dem manuelt. De telles ikke med i totalene ovenfor.",
|
|
697
734
|
prescriptive_fix: "\u{1F4A1} Foresl\xE5tt L\xF8sning",
|
|
698
735
|
use: "Bruk",
|
|
699
|
-
footer: "Generert av @holmdigital/engine v{version} \u2022 Standarder: WCAG 2.1 AA, EN 301 549, Uu-tilsynet"
|
|
736
|
+
footer: "Generert av @holmdigital/engine v{version} \u2022 Standarder: WCAG 2.1 AA, EN 301 549, Uu-tilsynet",
|
|
737
|
+
inconclusive_title: "Vi kunne ikke skanne den virkelige siden",
|
|
738
|
+
inconclusive_detail: "Siden s\xE5 ut som en vente-, omdirigerings- eller verifiseringsskjerm (for eksempel en bot-sjekk eller en interstitial), s\xE5 motoren m\xE5lte den skjermen i stedet for nettstedet ditt. Ingenting her gjenspeiler ditt virkelige innhold. Pr\xF8v igjen med en h\xF8yere --wait-for-hydration-verdi, og hvis det vedvarer, \xE5pne adressen i en nettleser for \xE5 bekrefte at nettstedet lastes."
|
|
700
739
|
},
|
|
701
740
|
plain: {
|
|
702
741
|
what_happens: "What happens:",
|
|
@@ -714,6 +753,7 @@ var init_no = __esm({
|
|
|
714
753
|
intro_unit_plural: "issues",
|
|
715
754
|
closing: "Start at the top. The items highest up cost you the most customers.",
|
|
716
755
|
empty_state: "No barriers found this time.",
|
|
756
|
+
inconclusive: 'Vi kunne ikke lese den virkelige siden din denne gangen. Den s\xE5 ut som en vente- eller verifiseringsskjerm (for eksempel en "vennligst vent"-melding eller en bot-sjekk), s\xE5 det er enn\xE5 ingenting p\xE5litelig \xE5 rapportere. Pr\xF8v igjen \u2014 og hvis det fortsetter, \xE5pne nettstedet ditt i en vanlig nettleser for \xE5 sikre at det lastes.',
|
|
717
757
|
report_title: "Accessibility report for {url}",
|
|
718
758
|
report_tagline: "Accessibility report",
|
|
719
759
|
attribution: "Report generated by HolmDigital Engine, part of the HolmDigital accessibility ecosystem.",
|
|
@@ -766,7 +806,9 @@ var init_nl = __esm({
|
|
|
766
806
|
noscript_no_fallback: "Er is geen <noscript>-fallback gevonden.",
|
|
767
807
|
noscript_impact: "Dit treft zelden de mensen die JavaScript hebben uitgezet, maar de mensen bij wie de scripts nooit aankwamen: een zwak mobiel netwerk, een bedrijfsproxy, een browserextensie die hapert, een time-out. Zij krijgen een lege pagina in plaats van een trage.",
|
|
768
808
|
noscript_advisory: "Aanbeveling, geen wettelijke vereiste. Geen enkel WCAG-succescriterium vereist dat een pagina zonder JavaScript werkt. Dit heeft dus geen invloed op de conformiteitsscore.",
|
|
769
|
-
badge_withheld: "100/100 zonder bevindingen. De robuustheidscontrole is niet schoon, dus we genereren geen deelbare badge."
|
|
809
|
+
badge_withheld: "100/100 zonder bevindingen. De robuustheidscontrole is niet schoon, dus we genereren geen deelbare badge.",
|
|
810
|
+
inconclusive_headline: "\u26A0\uFE0F Kon de echte inhoud niet scannen",
|
|
811
|
+
inconclusive_detail: 'De pagina zag eruit als een wacht-/omleidings-/bot-challenge-pagina (interstitial), dus dit resultaat weerspiegelt niet de echte site. Een eerlijk "kon niet meten" is beter dan een misleidende score. Probeer een hogere --wait-for-hydration <ms>, of open de URL in een browser om te controleren.'
|
|
770
812
|
},
|
|
771
813
|
report: {
|
|
772
814
|
title: "Toegankelijkheidsrapport - {url}",
|
|
@@ -782,7 +824,9 @@ var init_nl = __esm({
|
|
|
782
824
|
needs_review_note: "axe-core kon deze niet automatisch bepalen \u2014 controleer ze handmatig. Ze worden hierboven niet meegeteld.",
|
|
783
825
|
prescriptive_fix: "\u{1F4A1} Voorgeschreven oplossing",
|
|
784
826
|
use: "Gebruik",
|
|
785
|
-
footer: "Gegenereerd door @holmdigital/engine v{version} \u2022 Standaarden: WCAG 2.1 AA, EN 301 549, Besluit digitale toegankelijkheid overheid"
|
|
827
|
+
footer: "Gegenereerd door @holmdigital/engine v{version} \u2022 Standaarden: WCAG 2.1 AA, EN 301 549, Besluit digitale toegankelijkheid overheid",
|
|
828
|
+
inconclusive_title: "We konden de echte pagina niet scannen",
|
|
829
|
+
inconclusive_detail: "De pagina zag eruit als een wacht-, omleidings- of verificatiescherm (bijvoorbeeld een botcontrole of een interstitial), dus de engine heeft dat scherm gemeten in plaats van uw site. Niets hier weerspiegelt uw echte inhoud. Probeer het opnieuw met een hogere --wait-for-hydration-waarde, en als het aanhoudt, open het adres in een browser om te bevestigen dat de site laadt."
|
|
786
830
|
},
|
|
787
831
|
plain: {
|
|
788
832
|
what_happens: "What happens:",
|
|
@@ -800,6 +844,7 @@ var init_nl = __esm({
|
|
|
800
844
|
intro_unit_plural: "issues",
|
|
801
845
|
closing: "Start at the top. The items highest up cost you the most customers.",
|
|
802
846
|
empty_state: "No barriers found this time.",
|
|
847
|
+
inconclusive: 'We konden uw echte pagina deze keer niet lezen. Het zag eruit als een wacht- of verificatiescherm (bijvoorbeeld een "even geduld"-melding of een botcontrole), dus er is nog niets betrouwbaars te melden. Probeer het opnieuw \u2014 en als het blijft gebeuren, open uw website in een gewone browser om te controleren of deze laadt.',
|
|
803
848
|
report_title: "Accessibility report for {url}",
|
|
804
849
|
report_tagline: "Accessibility report",
|
|
805
850
|
attribution: "Report generated by HolmDigital Engine, part of the HolmDigital accessibility ecosystem.",
|
|
@@ -1016,6 +1061,12 @@ function renderPlainReport(result, lang = "en", plainFallbackFrom) {
|
|
|
1016
1061
|
console.log(import_chalk.default.yellow(t("plain.gate_fallback", { lang: languageDisplayName(plainFallbackFrom) })));
|
|
1017
1062
|
console.log("");
|
|
1018
1063
|
}
|
|
1064
|
+
if (result.complianceStatus === "INCONCLUSIVE") {
|
|
1065
|
+
console.log(t("plain.inconclusive"));
|
|
1066
|
+
console.log("");
|
|
1067
|
+
console.log(t("plain.attribution"));
|
|
1068
|
+
return;
|
|
1069
|
+
}
|
|
1019
1070
|
const violations = violationsOf(result.reports);
|
|
1020
1071
|
const needsReview = needsReviewOf(result.reports);
|
|
1021
1072
|
if (violations.length === 0 && needsReview.length === 0) {
|
|
@@ -1160,6 +1211,28 @@ function generateJUnitXML(result) {
|
|
|
1160
1211
|
const { url, reports, stats, metadata } = result;
|
|
1161
1212
|
const duration = metadata.scanDuration;
|
|
1162
1213
|
const timestamp = result.timestamp;
|
|
1214
|
+
if (result.complianceStatus === "INCONCLUSIVE") {
|
|
1215
|
+
const msg = escapeXML(
|
|
1216
|
+
`Scan inconclusive: the page looked like a wait/redirect/bot-challenge page (interstitial), so the real content was not assessed. Try a higher --wait-for-hydration. Page title: ${metadata.pageTitle || "N/A"}`
|
|
1217
|
+
);
|
|
1218
|
+
return [
|
|
1219
|
+
`<?xml version="1.0" encoding="UTF-8"?>`,
|
|
1220
|
+
`<testsuites name="HolmDigital Accessibility Scan" time="${duration / 1e3}" tests="1" failures="0" errors="1">`,
|
|
1221
|
+
` <testsuite name="${escapeXML(url)}" tests="1" failures="0" skipped="0" errors="1" time="${duration / 1e3}" timestamp="${timestamp}">`,
|
|
1222
|
+
` <properties>`,
|
|
1223
|
+
` <property name="engineVersion" value="${escapeXML(metadata.engineVersion)}"/>`,
|
|
1224
|
+
` <property name="standardsVersion" value="${escapeXML(metadata.standardsVersion)}"/>`,
|
|
1225
|
+
` <property name="pageTitle" value="${escapeXML(metadata.pageTitle || "N/A")}"/>`,
|
|
1226
|
+
` <property name="complianceStatus" value="INCONCLUSIVE"/>`,
|
|
1227
|
+
` <property name="interstitialSuspected" value="true"/>`,
|
|
1228
|
+
` </properties>`,
|
|
1229
|
+
` <testcase name="Accessibility scan" classname="Accessibility.Inconclusive" time="${duration / 1e3}">`,
|
|
1230
|
+
` <error message="${msg}" type="inconclusive"/>`,
|
|
1231
|
+
` </testcase>`,
|
|
1232
|
+
` </testsuite>`,
|
|
1233
|
+
`</testsuites>`
|
|
1234
|
+
].join("\n");
|
|
1235
|
+
}
|
|
1163
1236
|
const violations = violationsOf(reports);
|
|
1164
1237
|
const needsReview = needsReviewOf(reports);
|
|
1165
1238
|
const totalTests = stats.passed + stats.total + stats.needsReview;
|
|
@@ -1502,7 +1575,7 @@ function isInterstitialPage(pageTitle, hasMetaRefresh, bodyTextLength) {
|
|
|
1502
1575
|
return false;
|
|
1503
1576
|
}
|
|
1504
1577
|
function getEngineVersion() {
|
|
1505
|
-
return "3.
|
|
1578
|
+
return "3.3.0";
|
|
1506
1579
|
}
|
|
1507
1580
|
function getStandardsVersion() {
|
|
1508
1581
|
try {
|
|
@@ -1645,11 +1718,13 @@ var RegulatoryScanner = class {
|
|
|
1645
1718
|
}
|
|
1646
1719
|
const scanDuration = Date.now() - startTime;
|
|
1647
1720
|
const result = this.generateResultPackage(allReports, passedCount, scanDuration, pageTitle, pageLanguage, interstitialSuspected);
|
|
1648
|
-
if (
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1721
|
+
if (result.complianceStatus !== "INCONCLUSIVE") {
|
|
1722
|
+
if (htmlValidation) {
|
|
1723
|
+
result.htmlValidation = htmlValidation;
|
|
1724
|
+
}
|
|
1725
|
+
if (noScript) {
|
|
1726
|
+
result.noScript = noScript;
|
|
1727
|
+
}
|
|
1653
1728
|
}
|
|
1654
1729
|
return result;
|
|
1655
1730
|
} finally {
|
|
@@ -1992,6 +2067,18 @@ var RegulatoryScanner = class {
|
|
|
1992
2067
|
// inte får ett nytt fält på nej-fallet.
|
|
1993
2068
|
...interstitialSuspected ? { interstitialSuspected: true } : {}
|
|
1994
2069
|
};
|
|
2070
|
+
if (interstitialSuspected) {
|
|
2071
|
+
return {
|
|
2072
|
+
url: this.options.url,
|
|
2073
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2074
|
+
metadata,
|
|
2075
|
+
reports: [],
|
|
2076
|
+
stats: { passed: 0, critical: 0, high: 0, medium: 0, low: 0, total: 0, needsReview: 0 },
|
|
2077
|
+
score: 0,
|
|
2078
|
+
complianceStatus: "INCONCLUSIVE",
|
|
2079
|
+
legalSummary: { wadApplicable: 0, eaaApplicable: 0, eaaDeadlineViolations: 0 }
|
|
2080
|
+
};
|
|
2081
|
+
}
|
|
1995
2082
|
const reportsWithContext = scored.filter((r) => r.legalContext);
|
|
1996
2083
|
const legalSummary = {
|
|
1997
2084
|
wadApplicable: reportsWithContext.filter(
|
|
@@ -2195,7 +2282,43 @@ function renderNoScriptSection(result) {
|
|
|
2195
2282
|
</section>
|
|
2196
2283
|
`;
|
|
2197
2284
|
}
|
|
2285
|
+
function inconclusiveReportHTML(result) {
|
|
2286
|
+
return `<!DOCTYPE html>
|
|
2287
|
+
<html lang="${getCurrentLang()}">
|
|
2288
|
+
<head>
|
|
2289
|
+
<meta charset="utf-8" />
|
|
2290
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
2291
|
+
<title>${t("report.title", { url: result.url })}</title>
|
|
2292
|
+
<style>
|
|
2293
|
+
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8fafc; color: #0f172a; margin: 0; padding: 3rem 1.5rem; }
|
|
2294
|
+
.wrap { max-width: 640px; margin: 0 auto; }
|
|
2295
|
+
.brand { font-weight: 700; color: #0369a1; margin-bottom: 2rem; }
|
|
2296
|
+
.card { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 2rem; }
|
|
2297
|
+
.icon { font-size: 2rem; }
|
|
2298
|
+
h1 { font-size: 1.35rem; margin: 0.5rem 0 1rem; color: #92400e; }
|
|
2299
|
+
p { line-height: 1.6; color: #334155; }
|
|
2300
|
+
.page-title { margin-top: 1.5rem; font-size: 0.85rem; color: #64748b; word-break: break-all; }
|
|
2301
|
+
.footer { text-align: center; color: #94a3b8; font-size: 0.75rem; margin-top: 2rem; }
|
|
2302
|
+
</style>
|
|
2303
|
+
</head>
|
|
2304
|
+
<body>
|
|
2305
|
+
<div class="wrap">
|
|
2306
|
+
<div class="brand">@HolmDigital/engine</div>
|
|
2307
|
+
<div class="card">
|
|
2308
|
+
<div class="icon">\u26A0\uFE0F</div>
|
|
2309
|
+
<h1>${t("report.inconclusive_title")}</h1>
|
|
2310
|
+
<p>${t("report.inconclusive_detail")}</p>
|
|
2311
|
+
<div class="page-title">${t("report.scan_target", { url: result.url })}<br/>${escapeHtml(result.metadata.pageTitle || "N/A")}</div>
|
|
2312
|
+
</div>
|
|
2313
|
+
<div class="footer">${t("report.footer", { version: getEngineVersion() })}</div>
|
|
2314
|
+
</div>
|
|
2315
|
+
</body>
|
|
2316
|
+
</html>`;
|
|
2317
|
+
}
|
|
2198
2318
|
function generateReportHTML(result, sector = "public", audience = "developer", plainFallbackFrom) {
|
|
2319
|
+
if (result.complianceStatus === "INCONCLUSIVE") {
|
|
2320
|
+
return inconclusiveReportHTML(result);
|
|
2321
|
+
}
|
|
2199
2322
|
if (audience === "plain") {
|
|
2200
2323
|
return generatePlainReportHTML(result, plainFallbackFrom);
|
|
2201
2324
|
}
|
|
@@ -3371,6 +3494,12 @@ function transformToCloudPayload(result) {
|
|
|
3371
3494
|
};
|
|
3372
3495
|
}
|
|
3373
3496
|
async function sendToCloud(config, result) {
|
|
3497
|
+
if (result.complianceStatus === "INCONCLUSIVE") {
|
|
3498
|
+
return {
|
|
3499
|
+
success: false,
|
|
3500
|
+
error: "Scan inconclusive (interstitial/wait page) \u2014 not uploaded; no real content was assessed."
|
|
3501
|
+
};
|
|
3502
|
+
}
|
|
3374
3503
|
const payload = transformToCloudPayload(result);
|
|
3375
3504
|
const endpoint = `${config.cloudUrl.replace(/\/$/, "")}/api/v1/ingest`;
|
|
3376
3505
|
try {
|
|
@@ -3550,7 +3679,10 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
3550
3679
|
await generatePDF(html, options.pdf);
|
|
3551
3680
|
if (spinner) spinner.succeed(t("cli.pdf_saved", { path: options.pdf }));
|
|
3552
3681
|
}
|
|
3553
|
-
if (options.statement) {
|
|
3682
|
+
if (options.statement && result.complianceStatus === "INCONCLUSIVE") {
|
|
3683
|
+
if (spinner) spinner.warn("Skipping accessibility statement \u2014 scan inconclusive (interstitial/wait page); the real content was not assessed.");
|
|
3684
|
+
else if (!options.json) console.error(import_chalk2.default.yellow("Skipping accessibility statement \u2014 scan inconclusive; real content not assessed."));
|
|
3685
|
+
} else if (options.statement) {
|
|
3554
3686
|
if (spinner) spinner.start(t("cli.generating_statement", { path: options.statement }));
|
|
3555
3687
|
const metadata = {
|
|
3556
3688
|
contactEmail: options.email,
|
|
@@ -3600,6 +3732,19 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
3600
3732
|
console.log(JSON.stringify(lightResult, null, 2));
|
|
3601
3733
|
} else if (options.json) {
|
|
3602
3734
|
console.log(JSON.stringify(result, null, 2));
|
|
3735
|
+
} else if (result.complianceStatus === "INCONCLUSIVE") {
|
|
3736
|
+
if (options.audience === "plain") {
|
|
3737
|
+
const { renderPlainReport: renderPlainReport2 } = await Promise.resolve().then(() => (init_plain_report(), plain_report_exports));
|
|
3738
|
+
renderPlainReport2(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom);
|
|
3739
|
+
} else {
|
|
3740
|
+
console.log("");
|
|
3741
|
+
console.log(import_chalk2.default.yellow.bold(t("cli.inconclusive_headline")));
|
|
3742
|
+
console.log(import_chalk2.default.yellow(t("cli.inconclusive_detail")));
|
|
3743
|
+
if (result.metadata.pageTitle) {
|
|
3744
|
+
console.log(import_chalk2.default.gray(` (${result.metadata.pageTitle})`));
|
|
3745
|
+
}
|
|
3746
|
+
console.log("");
|
|
3747
|
+
}
|
|
3603
3748
|
} else if (options.light) {
|
|
3604
3749
|
const scoreColor = result.score >= 90 ? import_chalk2.default.green : result.score >= 70 ? import_chalk2.default.yellow : import_chalk2.default.red;
|
|
3605
3750
|
const statusColor = result.complianceStatus === "PASS" ? import_chalk2.default.green : import_chalk2.default.red;
|
|
@@ -3751,6 +3896,9 @@ ${t("cli.badge_withheld")}`));
|
|
|
3751
3896
|
const { generateGitHubActionsAnnotations: generateGitHubActionsAnnotations2 } = await Promise.resolve().then(() => (init_github_actions(), github_actions_exports));
|
|
3752
3897
|
generateGitHubActionsAnnotations2(result.reports);
|
|
3753
3898
|
}
|
|
3899
|
+
if (options.ci && result.complianceStatus === "INCONCLUSIVE") {
|
|
3900
|
+
console.log("::warning::Accessibility scan inconclusive \u2014 the page looked like an interstitial/wait/bot-challenge page, so the real content was not assessed. Try a higher --wait-for-hydration.");
|
|
3901
|
+
}
|
|
3754
3902
|
if (options.junit) {
|
|
3755
3903
|
const { generateJUnitXML: generateJUnitXML2 } = await Promise.resolve().then(() => (init_junit_generator(), junit_generator_exports));
|
|
3756
3904
|
const fs2 = await import("fs/promises");
|
|
@@ -3759,11 +3907,19 @@ ${t("cli.badge_withheld")}`));
|
|
|
3759
3907
|
if (spinner) spinner.succeed(t("cli.junit_saved", { path: options.junit }));
|
|
3760
3908
|
else if (!options.json) console.log(import_chalk2.default.green(`\u2713 JUnit report saved to ${options.junit}`));
|
|
3761
3909
|
}
|
|
3910
|
+
if (options.ci && result.complianceStatus === "INCONCLUSIVE") {
|
|
3911
|
+
if (!options.json) console.error(import_chalk2.default.yellow("\nCI/CD: scan inconclusive \u2014 real content not assessed (interstitial/wait page). Not treated as a pass."));
|
|
3912
|
+
process.exit(1);
|
|
3913
|
+
}
|
|
3762
3914
|
if (options.ci && result.stats.critical > 0) {
|
|
3763
3915
|
if (!options.json) console.error(import_chalk2.default.red(t("cli.critical_failure")));
|
|
3764
3916
|
process.exit(1);
|
|
3765
3917
|
}
|
|
3766
|
-
if (options.apiKey) {
|
|
3918
|
+
if (options.apiKey && result.complianceStatus === "INCONCLUSIVE") {
|
|
3919
|
+
if (!options.json) {
|
|
3920
|
+
console.log(import_chalk2.default.yellow("Skipping cloud upload \u2014 scan inconclusive (interstitial/wait page), nothing real to ingest."));
|
|
3921
|
+
}
|
|
3922
|
+
} else if (options.apiKey) {
|
|
3767
3923
|
const cloudSpinner = !options.json ? (0, import_ora.default)("Uploading results to HolmDigital Cloud...").start() : null;
|
|
3768
3924
|
const cloudConfig = {
|
|
3769
3925
|
apiKey: options.apiKey,
|
package/dist/cli/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
generateStatementContent,
|
|
9
9
|
getEngineVersion,
|
|
10
10
|
isBadgeWithheldByRobustness
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-56LAC5FY.mjs";
|
|
12
12
|
import {
|
|
13
13
|
groupReportsByRule,
|
|
14
14
|
impactBreakdown,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getCurrentLang,
|
|
21
21
|
setLanguage,
|
|
22
22
|
t
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-DSZ7B2IH.mjs";
|
|
24
24
|
import {
|
|
25
25
|
needsReviewOf,
|
|
26
26
|
violationsOf
|
|
@@ -105,7 +105,43 @@ function renderNoScriptSection(result) {
|
|
|
105
105
|
</section>
|
|
106
106
|
`;
|
|
107
107
|
}
|
|
108
|
+
function inconclusiveReportHTML(result) {
|
|
109
|
+
return `<!DOCTYPE html>
|
|
110
|
+
<html lang="${getCurrentLang()}">
|
|
111
|
+
<head>
|
|
112
|
+
<meta charset="utf-8" />
|
|
113
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
114
|
+
<title>${t("report.title", { url: result.url })}</title>
|
|
115
|
+
<style>
|
|
116
|
+
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f8fafc; color: #0f172a; margin: 0; padding: 3rem 1.5rem; }
|
|
117
|
+
.wrap { max-width: 640px; margin: 0 auto; }
|
|
118
|
+
.brand { font-weight: 700; color: #0369a1; margin-bottom: 2rem; }
|
|
119
|
+
.card { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 2rem; }
|
|
120
|
+
.icon { font-size: 2rem; }
|
|
121
|
+
h1 { font-size: 1.35rem; margin: 0.5rem 0 1rem; color: #92400e; }
|
|
122
|
+
p { line-height: 1.6; color: #334155; }
|
|
123
|
+
.page-title { margin-top: 1.5rem; font-size: 0.85rem; color: #64748b; word-break: break-all; }
|
|
124
|
+
.footer { text-align: center; color: #94a3b8; font-size: 0.75rem; margin-top: 2rem; }
|
|
125
|
+
</style>
|
|
126
|
+
</head>
|
|
127
|
+
<body>
|
|
128
|
+
<div class="wrap">
|
|
129
|
+
<div class="brand">@HolmDigital/engine</div>
|
|
130
|
+
<div class="card">
|
|
131
|
+
<div class="icon">\u26A0\uFE0F</div>
|
|
132
|
+
<h1>${t("report.inconclusive_title")}</h1>
|
|
133
|
+
<p>${t("report.inconclusive_detail")}</p>
|
|
134
|
+
<div class="page-title">${t("report.scan_target", { url: result.url })}<br/>${escapeHtml(result.metadata.pageTitle || "N/A")}</div>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="footer">${t("report.footer", { version: getEngineVersion() })}</div>
|
|
137
|
+
</div>
|
|
138
|
+
</body>
|
|
139
|
+
</html>`;
|
|
140
|
+
}
|
|
108
141
|
function generateReportHTML(result, sector = "public", audience = "developer", plainFallbackFrom) {
|
|
142
|
+
if (result.complianceStatus === "INCONCLUSIVE") {
|
|
143
|
+
return inconclusiveReportHTML(result);
|
|
144
|
+
}
|
|
109
145
|
if (audience === "plain") {
|
|
110
146
|
return generatePlainReportHTML(result, plainFallbackFrom);
|
|
111
147
|
}
|
|
@@ -902,6 +938,12 @@ function transformToCloudPayload(result) {
|
|
|
902
938
|
};
|
|
903
939
|
}
|
|
904
940
|
async function sendToCloud(config, result) {
|
|
941
|
+
if (result.complianceStatus === "INCONCLUSIVE") {
|
|
942
|
+
return {
|
|
943
|
+
success: false,
|
|
944
|
+
error: "Scan inconclusive (interstitial/wait page) \u2014 not uploaded; no real content was assessed."
|
|
945
|
+
};
|
|
946
|
+
}
|
|
905
947
|
const payload = transformToCloudPayload(result);
|
|
906
948
|
const endpoint = `${config.cloudUrl.replace(/\/$/, "")}/api/v1/ingest`;
|
|
907
949
|
try {
|
|
@@ -1081,7 +1123,10 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
1081
1123
|
await generatePDF(html, options.pdf);
|
|
1082
1124
|
if (spinner) spinner.succeed(t("cli.pdf_saved", { path: options.pdf }));
|
|
1083
1125
|
}
|
|
1084
|
-
if (options.statement) {
|
|
1126
|
+
if (options.statement && result.complianceStatus === "INCONCLUSIVE") {
|
|
1127
|
+
if (spinner) spinner.warn("Skipping accessibility statement \u2014 scan inconclusive (interstitial/wait page); the real content was not assessed.");
|
|
1128
|
+
else if (!options.json) console.error(chalk.yellow("Skipping accessibility statement \u2014 scan inconclusive; real content not assessed."));
|
|
1129
|
+
} else if (options.statement) {
|
|
1085
1130
|
if (spinner) spinner.start(t("cli.generating_statement", { path: options.statement }));
|
|
1086
1131
|
const metadata = {
|
|
1087
1132
|
contactEmail: options.email,
|
|
@@ -1131,6 +1176,19 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
1131
1176
|
console.log(JSON.stringify(lightResult, null, 2));
|
|
1132
1177
|
} else if (options.json) {
|
|
1133
1178
|
console.log(JSON.stringify(result, null, 2));
|
|
1179
|
+
} else if (result.complianceStatus === "INCONCLUSIVE") {
|
|
1180
|
+
if (options.audience === "plain") {
|
|
1181
|
+
const { renderPlainReport } = await import("../plain-report-V5ZUHISZ.mjs");
|
|
1182
|
+
renderPlainReport(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom);
|
|
1183
|
+
} else {
|
|
1184
|
+
console.log("");
|
|
1185
|
+
console.log(chalk.yellow.bold(t("cli.inconclusive_headline")));
|
|
1186
|
+
console.log(chalk.yellow(t("cli.inconclusive_detail")));
|
|
1187
|
+
if (result.metadata.pageTitle) {
|
|
1188
|
+
console.log(chalk.gray(` (${result.metadata.pageTitle})`));
|
|
1189
|
+
}
|
|
1190
|
+
console.log("");
|
|
1191
|
+
}
|
|
1134
1192
|
} else if (options.light) {
|
|
1135
1193
|
const scoreColor = result.score >= 90 ? chalk.green : result.score >= 70 ? chalk.yellow : chalk.red;
|
|
1136
1194
|
const statusColor = result.complianceStatus === "PASS" ? chalk.green : chalk.red;
|
|
@@ -1152,7 +1210,7 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
|
|
|
1152
1210
|
console.log(chalk.gray(`
|
|
1153
1211
|
Scan: ${result.metadata.scanDuration}ms | ${result.metadata.engineVersion}`));
|
|
1154
1212
|
} else if (options.audience === "plain") {
|
|
1155
|
-
const { renderPlainReport } = await import("../plain-report-
|
|
1213
|
+
const { renderPlainReport } = await import("../plain-report-V5ZUHISZ.mjs");
|
|
1156
1214
|
renderPlainReport(result, plainFallbackFrom ? "en" : options.lang, plainFallbackFrom);
|
|
1157
1215
|
} else {
|
|
1158
1216
|
const violations = violationsOf(result.reports);
|
|
@@ -1282,19 +1340,30 @@ ${t("cli.badge_withheld")}`));
|
|
|
1282
1340
|
const { generateGitHubActionsAnnotations } = await import("../github-actions-PIV5JU2C.mjs");
|
|
1283
1341
|
generateGitHubActionsAnnotations(result.reports);
|
|
1284
1342
|
}
|
|
1343
|
+
if (options.ci && result.complianceStatus === "INCONCLUSIVE") {
|
|
1344
|
+
console.log("::warning::Accessibility scan inconclusive \u2014 the page looked like an interstitial/wait/bot-challenge page, so the real content was not assessed. Try a higher --wait-for-hydration.");
|
|
1345
|
+
}
|
|
1285
1346
|
if (options.junit) {
|
|
1286
|
-
const { generateJUnitXML } = await import("../junit-generator-
|
|
1347
|
+
const { generateJUnitXML } = await import("../junit-generator-B6HW7DCD.mjs");
|
|
1287
1348
|
const fs = await import("fs/promises");
|
|
1288
1349
|
const xml = generateJUnitXML(result);
|
|
1289
1350
|
await fs.writeFile(options.junit, xml);
|
|
1290
1351
|
if (spinner) spinner.succeed(t("cli.junit_saved", { path: options.junit }));
|
|
1291
1352
|
else if (!options.json) console.log(chalk.green(`\u2713 JUnit report saved to ${options.junit}`));
|
|
1292
1353
|
}
|
|
1354
|
+
if (options.ci && result.complianceStatus === "INCONCLUSIVE") {
|
|
1355
|
+
if (!options.json) console.error(chalk.yellow("\nCI/CD: scan inconclusive \u2014 real content not assessed (interstitial/wait page). Not treated as a pass."));
|
|
1356
|
+
process.exit(1);
|
|
1357
|
+
}
|
|
1293
1358
|
if (options.ci && result.stats.critical > 0) {
|
|
1294
1359
|
if (!options.json) console.error(chalk.red(t("cli.critical_failure")));
|
|
1295
1360
|
process.exit(1);
|
|
1296
1361
|
}
|
|
1297
|
-
if (options.apiKey) {
|
|
1362
|
+
if (options.apiKey && result.complianceStatus === "INCONCLUSIVE") {
|
|
1363
|
+
if (!options.json) {
|
|
1364
|
+
console.log(chalk.yellow("Skipping cloud upload \u2014 scan inconclusive (interstitial/wait page), nothing real to ingest."));
|
|
1365
|
+
}
|
|
1366
|
+
} else if (options.apiKey) {
|
|
1298
1367
|
const cloudSpinner = !options.json ? ora("Uploading results to HolmDigital Cloud...").start() : null;
|
|
1299
1368
|
const cloudConfig = {
|
|
1300
1369
|
apiKey: options.apiKey,
|