eaa-kit 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -4
- package/dist/astro/index.d.ts +0 -9
- package/dist/astro/index.js +1 -1
- package/dist/audit-CqrR9pIO.js +2 -0
- package/dist/{audit-6gbV0Zjd.js → audit-D4gju2BT.js} +507 -140
- package/dist/{baseline-Itspu3-Y.js → baseline-CV_3lbER.js} +1 -1
- package/dist/{baseline-DQTnNlc4.js → baseline-CgBmzFTr.js} +16 -16
- package/dist/cli/index.js +54 -34
- package/dist/crawl-CtJbMNNb.js +254 -0
- package/dist/index.d.ts +155 -65
- package/dist/index.js +2 -1
- package/dist/init-DRKIdpK1.js +110 -0
- package/dist/{json-1ESNIiHY.js → json-C9xS1PNC.js} +3 -1
- package/dist/load-sCkKsvGQ.js +192 -0
- package/dist/{playwright-BfWuTG_u.js → playwright-DWux49V3.js} +4 -4
- package/dist/project-CiyzKQud.js +258 -0
- package/dist/{render-K9KxDDSA.js → render-BO0nVrrZ.js} +21 -208
- package/dist/routes-BxbSZKXC.js +123 -0
- package/dist/schema-CMZ8ItGk.js +192 -0
- package/package.json +4 -5
- package/dist/audit-VtuUOuyX.js +0 -2
package/README.md
CHANGED
|
@@ -8,8 +8,9 @@ European Accessibility Act (in force since 28 June 2025), the BFSG in Germany an
|
|
|
8
8
|
in Austria.
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
npx eaa-kit audit
|
|
12
|
-
npx eaa-kit
|
|
11
|
+
npx eaa-kit audit # WCAG 2.2 AA report; finds your build itself
|
|
12
|
+
npx eaa-kit init # write an eaa.config.json
|
|
13
|
+
npx eaa-kit statement # Barrierefreiheitserklärung from that config
|
|
13
14
|
```
|
|
14
15
|
|
|
15
16
|
> **Not legal advice.** eaa-kit reports what an automated engine can and cannot determine
|
|
@@ -22,8 +23,9 @@ npx eaa-kit statement # Barrierefreiheitserklärung from eaa.config
|
|
|
22
23
|
pnpm add -D eaa-kit # npm i -D eaa-kit
|
|
23
24
|
```
|
|
24
25
|
|
|
25
|
-
Node 22.22 or newer. jsdom, which the browserless engine is built on,
|
|
26
|
-
|
|
26
|
+
Node 22.22, 24.15 or 26 and newer. jsdom, which the browserless engine is built on,
|
|
27
|
+
supports only the even-numbered release lines, so the odd-numbered ones (23, 25) are not
|
|
28
|
+
supported here either.
|
|
27
29
|
|
|
28
30
|
## What it does
|
|
29
31
|
|
|
@@ -36,6 +38,13 @@ rules that need layout and CSS.
|
|
|
36
38
|
eaa-kit audit ./dist --fail-on serious
|
|
37
39
|
```
|
|
38
40
|
|
|
41
|
+
Sites that render on a server and never write HTML to disk — Next.js without a static
|
|
42
|
+
export, Nuxt, SvelteKit, anything behind a CMS — are audited running instead:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
eaa-kit audit --url http://localhost:3000
|
|
46
|
+
```
|
|
47
|
+
|
|
39
48
|
**Writes the statement.** A Barrierefreiheitserklärung from one config file, in German or
|
|
40
49
|
English, as Markdown or HTML, naming the statute and supervisory body of Austria,
|
|
41
50
|
Switzerland or Germany — and optionally listing the barriers a real audit found.
|
package/dist/astro/index.d.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { t as ImpactLevel } from "../impact-EEB9ZXmC.js";
|
|
2
2
|
//#region src/cli/audit.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* The engines and the machine-readable reporters are imported where they are
|
|
5
|
-
* used, not at the top of the file.
|
|
6
|
-
*
|
|
7
|
-
* jsdom costs 630 ms to load and axe-core another 94 ms, and a static import
|
|
8
|
-
* here charges that to every invocation — `eaa-kit statement`, `--help` and a
|
|
9
|
-
* mistyped flag included, none of which parse a single page. The audit path
|
|
10
|
-
* pays the same cost either way, a few milliseconds later.
|
|
11
|
-
*/
|
|
12
3
|
declare const OUTPUT_FORMATS: readonly ['console', 'json', 'sarif', 'html'];
|
|
13
4
|
type OutputFormat = (typeof OUTPUT_FORMATS)[number];
|
|
14
5
|
//#endregion
|
package/dist/astro/index.js
CHANGED
|
@@ -18,7 +18,7 @@ function eaaKit(options = {}) {
|
|
|
18
18
|
logger.info("skipped (enabled: false)");
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
const { runAuditCommand } = await import("../audit-
|
|
21
|
+
const { runAuditCommand } = await import("../audit-CqrR9pIO.js");
|
|
22
22
|
const { exitCode } = await runAuditCommand(fileURLToPath(dir), {
|
|
23
23
|
...options.failOn ? { failOn: options.failOn } : {},
|
|
24
24
|
...options.include ? { include: options.include } : {},
|