@holmdigital/engine 2.3.0 → 2.3.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/README.md +7 -0
- package/dist/{chunk-IOEDG67O.mjs → chunk-2TQMD2NR.mjs} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
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
|
package/dist/cli/index.js
CHANGED
package/dist/cli/index.mjs
CHANGED
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holmdigital/engine",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
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",
|