@holmdigital/engine 2.5.1 → 2.5.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 +5 -3
- package/dist/{chunk-KOTT5C66.mjs → chunk-E6DOZWW2.mjs} +3 -2
- package/dist/cli/index.js +3 -2
- package/dist/cli/index.mjs +1 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,8 +21,8 @@ For a comprehensive guide on CLI flags, CI/CD integration, and configuration fil
|
|
|
21
21
|
|
|
22
22
|
## Features
|
|
23
23
|
|
|
24
|
-
- **Regulatory Mapping**: Maps technical failures to EU laws (EN 301 549, EAA), international laws (Australian DDA), and **U.S. ADA (Title II state/local, Title III private sector) + Section 508 (federal agencies)**.
|
|
25
|
-
- **Sector-Aware US Routing**: `--country US --sector public` references **ADA Title II + Section 508** (DOJ enforcement); `--sector private` references **ADA Title III** (DOJ enforcement).
|
|
24
|
+
- **Regulatory Mapping**: Maps technical failures to EU laws (EN 301 549, EAA), international laws (Australian DDA), and **U.S. ADA (Title II state/local, Title III private sector) + Section 508 (federal agencies) + HHS Section 504 (HHS-funded healthcare/research)**.
|
|
25
|
+
- **Sector-Aware US Routing**: `--country US --sector public` references **ADA Title II + Section 508** (DOJ enforcement); `--sector private` references **ADA Title III + HHS Section 504** (DOJ + HHS OCR enforcement) — covering both general public-accommodations exposure and HHS-funded healthcare obligations in a single statement.
|
|
26
26
|
- **HTML Structure Validation**: Built-in `html-validate` checks to prevent false positives/negatives.
|
|
27
27
|
- **Internationalization (i18n)**:
|
|
28
28
|
- **CLI output**: 9 locale files (`en`, `sv`, `no`, `fi`, `da`, `de`, `fr`, `es`, `nl`) + 4 English aliases (`en-gb`, `en-us`, `en-ca`, `en-au`) that fall back to `en`.
|
|
@@ -98,8 +98,10 @@ npx hd-a11y-scan https://example.com --light --json
|
|
|
98
98
|
# U.S. state/local government statement (ADA Title II + Section 508, DOJ)
|
|
99
99
|
npx hd-a11y-scan https://example.gov --country US --sector public --statement statement.md --lang en-us
|
|
100
100
|
|
|
101
|
-
# U.S. private sector
|
|
101
|
+
# U.S. private sector statement (ADA Title III + HHS Section 504, DOJ + HHS OCR)
|
|
102
|
+
# Covers general "public accommodation" exposure AND HHS-funded healthcare obligations
|
|
102
103
|
npx hd-a11y-scan https://shop.example.com --country US --sector private --statement statement.md --lang en-us
|
|
104
|
+
npx hd-a11y-scan https://hospital.example.com --country US --sector private --statement statement.md --lang en-us
|
|
103
105
|
```
|
|
104
106
|
|
|
105
107
|
## 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.5.
|
|
141
|
+
return "2.5.2";
|
|
142
142
|
}
|
|
143
143
|
function getStandardsVersion() {
|
|
144
144
|
try {
|
|
@@ -823,7 +823,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
823
823
|
const s508 = usLaws.find((l) => l.id === "us-508");
|
|
824
824
|
return s508 ? `${adaLaw.fullName} (${adaLaw.law}) & ${s508.fullName} (${s508.law})` : `${adaLaw.fullName} (${adaLaw.law})`;
|
|
825
825
|
}
|
|
826
|
-
|
|
826
|
+
const hhs504 = usLaws.find((l) => l.euFramework === "REHAB" && l.scope === "private");
|
|
827
|
+
return hhs504 ? `${adaLaw.fullName} (${adaLaw.law}) & ${hhs504.fullName} (${hhs504.law})` : `${adaLaw.fullName} (${adaLaw.law})`;
|
|
827
828
|
}
|
|
828
829
|
}
|
|
829
830
|
const law = getNationalLawByFramework(sector === "private" ? "EAA" : "WAD", country);
|
package/dist/cli/index.js
CHANGED
|
@@ -783,7 +783,7 @@ var HtmlValidator = class {
|
|
|
783
783
|
// src/core/regulatory-scanner.ts
|
|
784
784
|
var import_node_fs = require("fs");
|
|
785
785
|
function getEngineVersion() {
|
|
786
|
-
return "2.5.
|
|
786
|
+
return "2.5.2";
|
|
787
787
|
}
|
|
788
788
|
function getStandardsVersion() {
|
|
789
789
|
try {
|
|
@@ -1811,7 +1811,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1811
1811
|
const s508 = usLaws.find((l) => l.id === "us-508");
|
|
1812
1812
|
return s508 ? `${adaLaw.fullName} (${adaLaw.law}) & ${s508.fullName} (${s508.law})` : `${adaLaw.fullName} (${adaLaw.law})`;
|
|
1813
1813
|
}
|
|
1814
|
-
|
|
1814
|
+
const hhs504 = usLaws.find((l) => l.euFramework === "REHAB" && l.scope === "private");
|
|
1815
|
+
return hhs504 ? `${adaLaw.fullName} (${adaLaw.law}) & ${hhs504.fullName} (${hhs504.law})` : `${adaLaw.fullName} (${adaLaw.law})`;
|
|
1815
1816
|
}
|
|
1816
1817
|
}
|
|
1817
1818
|
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country);
|
package/dist/cli/index.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -677,7 +677,7 @@ var HtmlValidator = class {
|
|
|
677
677
|
// src/core/regulatory-scanner.ts
|
|
678
678
|
var import_node_fs = require("fs");
|
|
679
679
|
function getEngineVersion() {
|
|
680
|
-
return "2.5.
|
|
680
|
+
return "2.5.2";
|
|
681
681
|
}
|
|
682
682
|
function getStandardsVersion() {
|
|
683
683
|
try {
|
|
@@ -1363,7 +1363,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1363
1363
|
const s508 = usLaws.find((l) => l.id === "us-508");
|
|
1364
1364
|
return s508 ? `${adaLaw.fullName} (${adaLaw.law}) & ${s508.fullName} (${s508.law})` : `${adaLaw.fullName} (${adaLaw.law})`;
|
|
1365
1365
|
}
|
|
1366
|
-
|
|
1366
|
+
const hhs504 = usLaws.find((l) => l.euFramework === "REHAB" && l.scope === "private");
|
|
1367
|
+
return hhs504 ? `${adaLaw.fullName} (${adaLaw.law}) & ${hhs504.fullName} (${hhs504.law})` : `${adaLaw.fullName} (${adaLaw.law})`;
|
|
1367
1368
|
}
|
|
1368
1369
|
}
|
|
1369
1370
|
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country);
|
package/dist/index.mjs
CHANGED