@holmdigital/engine 2.3.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -67,6 +67,7 @@ npx hd-a11y-scan <url> [options]
67
67
  | `--invalid-https-cert` | Allow scanning sites with invalid/self-signed HTTPS certificates ⚠️ |
68
68
  | `--api-key <key>` | API Key for HolmDigital Cloud |
69
69
  | `--cloud-url <url>` | Custom Cloud API Endpoint (default: cloud.holmdigital.se) |
70
+ | `--light` | Fast score-only mode — skips HTML validation and detailed legal mapping |
70
71
 
71
72
  ### 🏆 Accessibility Badge
72
73
  If your site achieves a **100% score**, the CLI will generate a [Shields.io](https://shields.io/) badge that you can add to your project's README:
@@ -84,6 +85,12 @@ npx hd-a11y-scan https://example.com --ci --threshold critical
84
85
 
85
86
  # Full JSON output with metadata
86
87
  npx hd-a11y-scan https://example.com --json
88
+
89
+ # Quick score check (ideal for APIs and dashboards)
90
+ npx hd-a11y-scan https://example.com --light
91
+
92
+ # Light scan with JSON output (perfect for scan-server integration)
93
+ npx hd-a11y-scan https://example.com --light --json
87
94
  ```
88
95
 
89
96
  ## JSON Output
@@ -138,7 +138,7 @@ var HtmlValidator = class {
138
138
  // src/core/regulatory-scanner.ts
139
139
  import { readFileSync } from "fs";
140
140
  function getEngineVersion() {
141
- return "2.3.0";
141
+ return "2.3.2";
142
142
  }
143
143
  function getStandardsVersion() {
144
144
  try {
package/dist/cli/index.js CHANGED
@@ -782,7 +782,7 @@ var HtmlValidator = class {
782
782
  // src/core/regulatory-scanner.ts
783
783
  var import_node_fs = require("fs");
784
784
  function getEngineVersion() {
785
- return "2.3.0";
785
+ return "2.3.2";
786
786
  }
787
787
  function getStandardsVersion() {
788
788
  try {
@@ -7,7 +7,7 @@ import {
7
7
  generateStatement,
8
8
  generateStatementContent,
9
9
  getEngineVersion
10
- } from "../chunk-IOEDG67O.mjs";
10
+ } from "../chunk-W7FF74PN.mjs";
11
11
  import {
12
12
  getCurrentLang,
13
13
  setLanguage,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "title": "Accessibility of {<website>}",
3
- "intro": "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with the accessibility regulations, any known accessibility issues, and how you can report problems so that we can fix them.",
3
+ "intro": "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with {<national_law>}, any known accessibility issues, and how you can report problems so that we can fix them.",
4
4
  "sections": [
5
5
  {
6
6
  "id": "how-accessible",
@@ -10,25 +10,25 @@
10
10
  {
11
11
  "id": "what-to-do",
12
12
  "title": "What to do if you can’t access parts of this website?",
13
- "content": "If you need content from this website that is not accessible for you, but is not within the scope of the accessibility regulations as described below, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us in the following ways:\n\n* email {<email address>}\n* call {<telephone number>}]"
13
+ "content": "If you need content from this website that is not accessible for you, but is not within the scope of {<national_law>} as described below, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us in the following ways:\n\n* email {<email address>}\n* call {<telephone number>}]"
14
14
  },
15
15
  {
16
16
  "id": "reporting",
17
17
  "title": "Reporting accessibility problems with this website",
18
- "content": "We’re always looking to improve the accessibility of this website. If you find any problems that aren’t listed on this page or if we’re not meeting the requirements of the accessibility regulations, contact us and let us know about the problem."
18
+ "content": "We’re always looking to improve the accessibility of this website. If you find any problems that aren’t listed on this page or if we’re not meeting the requirements of {<national_law>}, contact us and let us know about the problem."
19
19
  },
20
20
  {
21
21
  "id": "enforcement",
22
22
  "title": "Enforcement procedure",
23
- "content": "The {<enforcement_body>} is responsible for enforcing the web accessibility regulations. If you experience accessibility issues on our website, you can submit a complaint to {<enforcement_body>}.\n\nYou can also submit a complaint to {<enforcement_body>} if you think that our assessment of what constitutes a disproportionate burden should be reviewed, if you think that our accessibility statement is inadequate, or it you think that your request for excluded content in an accessible format has not been handled correctly."
23
+ "content": "The {<enforcement_body>} is responsible for enforcing {<national_law>}. If you experience accessibility issues on our website, you can submit a complaint to {<enforcement_body>}.\n\nYou can also submit a complaint to {<enforcement_body>} if you think that our assessment of what constitutes a disproportionate burden should be reviewed, if you think that our accessibility statement is inadequate, or if you think that your request for excluded content in an accessible format has not been handled correctly."
24
24
  },
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Technical information about this website’s accessibility",
28
- "content": "{This website is fully compliant with the accessibility regulations./This website is partially compliant with the accessibility regulations, due to the non-compliances listed below./This website is not compliant with the accessibility regulations. The non-accessible sections are listed below.}"
28
+ "content": "{This website is fully compliant with {<national_law>}./This website is partially compliant with {<national_law>}, due to the non-compliances listed below./This website is not compliant with {<national_law>}. The non-accessible sections are listed below.}"
29
29
  },
30
30
  {
31
- "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with the accessibility regulations**\n\n{<issues>}\n]"
31
+ "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with {<national_law>}**\n\n{<issues>}\n]"
32
32
  },
33
33
  {
34
34
  "id": "testing",
@@ -25,7 +25,7 @@
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Información técnica sobre la accesibilidad del sitio web",
28
- "content": "{Este sitio web es plenamente conforme./Este sitio web es parcialmente conforme debido a las deficiencias descritas a continuación./Este sitio web no es conforme.}"
28
+ "content": "{Este sitio web es plenamente conforme con {<national_law>}./Este sitio web es parcialmente conforme con {<national_law>} debido a las deficiencias descritas a continuación./Este sitio web no es conforme con {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
@@ -20,12 +20,12 @@
20
20
  {
21
21
  "id": "enforcement",
22
22
  "title": "Voies de recours",
23
- "content": "Le {<enforcement_body>} est responsable du contrôle de la conformité aux exigences d'accessibilité. Si vous ne recevez pas de réponse satisfaisante à votre signalement, vous pouvez contacter {<enforcement_body>}.\n\nVous pouvez également déposer une plainte auprès de {<enforcement_body>} si vous estimez que notre évaluation de la charge disproportionnée doit être revue, si vous constatez des défauts dans notre déclaration d'accessibilité ou si vous estimez que nous n'avons pas traité correctement votre demande de mise en accessibilité."
23
+ "content": "Le {<enforcement_body>} est responsable du contrôle de la conformité aux exigences de {<national_law>}. Si vous ne recevez pas de réponse satisfaisante à votre signalement, vous pouvez contacter {<enforcement_body>}.\n\nVous pouvez également déposer une plainte auprès de {<enforcement_body>} si vous estimez que notre évaluation de la charge disproportionnée doit être revue, si vous constatez des défauts dans notre déclaration d'accessibilité ou si vous estimez que nous n'avons pas traité correctement votre demande de mise en accessibilité."
24
24
  },
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Informations techniques sur l'accessibilité du site",
28
- "content": "{Ce site est totalement conforme./Ce site est partiellement conforme en raison des défauts décrits ci-dessous./Ce site n'est pas conforme.}"
28
+ "content": "{Ce site est totalement conforme avec {<national_law>}./Ce site est partiellement conforme avec {<national_law>} en raison des défauts décrits ci-dessous./Ce site n'est pas conforme avec {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
@@ -25,7 +25,7 @@
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Informazioni tecniche sull'accessibilità del sito web",
28
- "content": "{Questo sito web è pienamente conforme./Questo sito web è parzialmente conforme a causa delle carenze descritte di seguito./Questo sito web non è conforme.}"
28
+ "content": "{Questo sito web è pienamente conforme a {<national_law>}./Questo sito web è parzialmente conforme a {<national_law>} a causa delle carenze descritte di seguito./Questo sito web non è conforme a {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
@@ -25,7 +25,7 @@
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Informacje techniczne o dostępności strony internetowej",
28
- "content": "{Ta strona internetowa jest w pełni zgodna./Ta strona internetowa jest częściowo zgodna z powodu niedociągnięć opisanych poniżej./Ta strona internetowa nie jest zgodna.}"
28
+ "content": "{Ta strona internetowa jest w pełni zgodna z {<national_law>}./Ta strona internetowa jest częściowo zgodna z {<national_law>} z powodu niedociągnięć opisanych poniżej./Ta strona internetowa nie jest zgodna z {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
@@ -25,7 +25,7 @@
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Informações técnicas sobre a acessibilidade do sítio web",
28
- "content": "{Este sítio web está totalmente em conformidade./Este sítio web está parcialmente em conformidade devido às deficiências descritas abaixo./Este sítio web não está em conformidade.}"
28
+ "content": "{Este sítio web está totalmente em conformidade com {<national_law>}./Este sítio web está parcialmente em conformidade com {<national_law>} devido às deficiências descritas abaixo./Este sítio web não está em conformidade com {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
package/dist/index.js CHANGED
@@ -676,7 +676,7 @@ var HtmlValidator = class {
676
676
  // src/core/regulatory-scanner.ts
677
677
  var import_node_fs = require("fs");
678
678
  function getEngineVersion() {
679
- return "2.3.0";
679
+ return "2.3.2";
680
680
  }
681
681
  function getStandardsVersion() {
682
682
  try {
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  generateStatement,
6
6
  generateStatementContent,
7
7
  getEngineVersion
8
- } from "./chunk-IOEDG67O.mjs";
8
+ } from "./chunk-W7FF74PN.mjs";
9
9
  import {
10
10
  getCurrentLang,
11
11
  setLanguage,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "title": "Accessibility of {<website>}",
3
- "intro": "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with the accessibility regulations, any known accessibility issues, and how you can report problems so that we can fix them.",
3
+ "intro": "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with {<national_law>}, any known accessibility issues, and how you can report problems so that we can fix them.",
4
4
  "sections": [
5
5
  {
6
6
  "id": "how-accessible",
@@ -10,25 +10,25 @@
10
10
  {
11
11
  "id": "what-to-do",
12
12
  "title": "What to do if you can’t access parts of this website?",
13
- "content": "If you need content from this website that is not accessible for you, but is not within the scope of the accessibility regulations as described below, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us in the following ways:\n\n* email {<email address>}\n* call {<telephone number>}]"
13
+ "content": "If you need content from this website that is not accessible for you, but is not within the scope of {<national_law>} as described below, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us in the following ways:\n\n* email {<email address>}\n* call {<telephone number>}]"
14
14
  },
15
15
  {
16
16
  "id": "reporting",
17
17
  "title": "Reporting accessibility problems with this website",
18
- "content": "We’re always looking to improve the accessibility of this website. If you find any problems that aren’t listed on this page or if we’re not meeting the requirements of the accessibility regulations, contact us and let us know about the problem."
18
+ "content": "We’re always looking to improve the accessibility of this website. If you find any problems that aren’t listed on this page or if we’re not meeting the requirements of {<national_law>}, contact us and let us know about the problem."
19
19
  },
20
20
  {
21
21
  "id": "enforcement",
22
22
  "title": "Enforcement procedure",
23
- "content": "The {<enforcement_body>} is responsible for enforcing the web accessibility regulations. If you experience accessibility issues on our website, you can submit a complaint to {<enforcement_body>}.\n\nYou can also submit a complaint to {<enforcement_body>} if you think that our assessment of what constitutes a disproportionate burden should be reviewed, if you think that our accessibility statement is inadequate, or it you think that your request for excluded content in an accessible format has not been handled correctly."
23
+ "content": "The {<enforcement_body>} is responsible for enforcing {<national_law>}. If you experience accessibility issues on our website, you can submit a complaint to {<enforcement_body>}.\n\nYou can also submit a complaint to {<enforcement_body>} if you think that our assessment of what constitutes a disproportionate burden should be reviewed, if you think that our accessibility statement is inadequate, or if you think that your request for excluded content in an accessible format has not been handled correctly."
24
24
  },
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Technical information about this website’s accessibility",
28
- "content": "{This website is fully compliant with the accessibility regulations./This website is partially compliant with the accessibility regulations, due to the non-compliances listed below./This website is not compliant with the accessibility regulations. The non-accessible sections are listed below.}"
28
+ "content": "{This website is fully compliant with {<national_law>}./This website is partially compliant with {<national_law>}, due to the non-compliances listed below./This website is not compliant with {<national_law>}. The non-accessible sections are listed below.}"
29
29
  },
30
30
  {
31
- "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with the accessibility regulations**\n\n{<issues>}\n]"
31
+ "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with {<national_law>}**\n\n{<issues>}\n]"
32
32
  },
33
33
  {
34
34
  "id": "testing",
@@ -25,7 +25,7 @@
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Información técnica sobre la accesibilidad del sitio web",
28
- "content": "{Este sitio web es plenamente conforme./Este sitio web es parcialmente conforme debido a las deficiencias descritas a continuación./Este sitio web no es conforme.}"
28
+ "content": "{Este sitio web es plenamente conforme con {<national_law>}./Este sitio web es parcialmente conforme con {<national_law>} debido a las deficiencias descritas a continuación./Este sitio web no es conforme con {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
@@ -20,12 +20,12 @@
20
20
  {
21
21
  "id": "enforcement",
22
22
  "title": "Voies de recours",
23
- "content": "Le {<enforcement_body>} est responsable du contrôle de la conformité aux exigences d'accessibilité. Si vous ne recevez pas de réponse satisfaisante à votre signalement, vous pouvez contacter {<enforcement_body>}.\n\nVous pouvez également déposer une plainte auprès de {<enforcement_body>} si vous estimez que notre évaluation de la charge disproportionnée doit être revue, si vous constatez des défauts dans notre déclaration d'accessibilité ou si vous estimez que nous n'avons pas traité correctement votre demande de mise en accessibilité."
23
+ "content": "Le {<enforcement_body>} est responsable du contrôle de la conformité aux exigences de {<national_law>}. Si vous ne recevez pas de réponse satisfaisante à votre signalement, vous pouvez contacter {<enforcement_body>}.\n\nVous pouvez également déposer une plainte auprès de {<enforcement_body>} si vous estimez que notre évaluation de la charge disproportionnée doit être revue, si vous constatez des défauts dans notre déclaration d'accessibilité ou si vous estimez que nous n'avons pas traité correctement votre demande de mise en accessibilité."
24
24
  },
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Informations techniques sur l'accessibilité du site",
28
- "content": "{Ce site est totalement conforme./Ce site est partiellement conforme en raison des défauts décrits ci-dessous./Ce site n'est pas conforme.}"
28
+ "content": "{Ce site est totalement conforme avec {<national_law>}./Ce site est partiellement conforme avec {<national_law>} en raison des défauts décrits ci-dessous./Ce site n'est pas conforme avec {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
@@ -25,7 +25,7 @@
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Informazioni tecniche sull'accessibilità del sito web",
28
- "content": "{Questo sito web è pienamente conforme./Questo sito web è parzialmente conforme a causa delle carenze descritte di seguito./Questo sito web non è conforme.}"
28
+ "content": "{Questo sito web è pienamente conforme a {<national_law>}./Questo sito web è parzialmente conforme a {<national_law>} a causa delle carenze descritte di seguito./Questo sito web non è conforme a {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
@@ -25,7 +25,7 @@
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Informacje techniczne o dostępności strony internetowej",
28
- "content": "{Ta strona internetowa jest w pełni zgodna./Ta strona internetowa jest częściowo zgodna z powodu niedociągnięć opisanych poniżej./Ta strona internetowa nie jest zgodna.}"
28
+ "content": "{Ta strona internetowa jest w pełni zgodna z {<national_law>}./Ta strona internetowa jest częściowo zgodna z {<national_law>} z powodu niedociągnięć opisanych poniżej./Ta strona internetowa nie jest zgodna z {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
@@ -25,7 +25,7 @@
25
25
  {
26
26
  "id": "technical",
27
27
  "title": "Informações técnicas sobre a acessibilidade do sítio web",
28
- "content": "{Este sítio web está totalmente em conformidade./Este sítio web está parcialmente em conformidade devido às deficiências descritas abaixo./Este sítio web não está em conformidade.}"
28
+ "content": "{Este sítio web está totalmente em conformidade com {<national_law>}./Este sítio web está parcialmente em conformidade com {<national_law>} devido às deficiências descritas abaixo./Este sítio web não está em conformidade com {<national_law>}.}"
29
29
  },
30
30
  {
31
31
  "id": "testing",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holmdigital/engine",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -69,15 +69,15 @@
69
69
  "html-validate": "10.4.0",
70
70
  "ora": "^8.1.1",
71
71
  "puppeteer": "23.10.4",
72
- "react": "^18.3.1",
73
- "react-dom": "^18.3.1",
72
+ "react": "^18.3.1 || ^19.0.0",
73
+ "react-dom": "^18.3.1 || ^19.0.0",
74
74
  "ws": "^8.18.0"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/cosmiconfig": "^5.0.3",
78
78
  "@types/node": "^22.10.2",
79
- "@types/react": "^18.3.1",
80
- "@types/react-dom": "^18.3.1",
79
+ "@types/react": "^18.3.1 || ^19.0.0",
80
+ "@types/react-dom": "^18.3.1 || ^19.0.0",
81
81
  "@types/ws": "^8.5.13",
82
82
  "tsup": "^8.3.5",
83
83
  "typescript": "^5.7.2",