@holmdigital/engine 2.1.2 → 2.1.4
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 +2 -2
- package/dist/{chunk-HOPXYHOF.mjs → chunk-NTZZJO75.mjs} +2 -1
- package/dist/cli/index.js +3 -4
- package/dist/cli/index.mjs +5 -5
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +4 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -89,8 +89,8 @@ npx hd-a11y-scan https://example.com --json
|
|
|
89
89
|
"url": "https://example.com",
|
|
90
90
|
"timestamp": "2026-01-13T17:05:11.749Z",
|
|
91
91
|
"metadata": {
|
|
92
|
-
"engineVersion": "1.
|
|
93
|
-
"axeCoreVersion": "4.
|
|
92
|
+
"engineVersion": "2.1.3",
|
|
93
|
+
"axeCoreVersion": "4.11.1",
|
|
94
94
|
"standardsVersion": "1.2.3",
|
|
95
95
|
"scanDuration": 2891,
|
|
96
96
|
"pageTitle": "Example Domain",
|
|
@@ -371,7 +371,7 @@ var RegulatoryScanner = class {
|
|
|
371
371
|
}
|
|
372
372
|
const metadata = {
|
|
373
373
|
engineVersion: getEngineVersion(),
|
|
374
|
-
axeCoreVersion: axeCore.version || "4.
|
|
374
|
+
axeCoreVersion: axeCore.version || "4.11.1",
|
|
375
375
|
standardsVersion: getStandardsVersion(),
|
|
376
376
|
scanDuration,
|
|
377
377
|
pageTitle,
|
|
@@ -747,6 +747,7 @@ async function generateStatement(result, outputPath, lang = "en", format = "html
|
|
|
747
747
|
|
|
748
748
|
export {
|
|
749
749
|
VirtualDOMBuilder,
|
|
750
|
+
getEngineVersion,
|
|
750
751
|
RegulatoryScanner,
|
|
751
752
|
PseudoAutomationEngine,
|
|
752
753
|
generateBadgeUrl,
|
package/dist/cli/index.js
CHANGED
|
@@ -1003,7 +1003,7 @@ var RegulatoryScanner = class {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
const metadata = {
|
|
1005
1005
|
engineVersion: getEngineVersion(),
|
|
1006
|
-
axeCoreVersion: import_axe_core.default.version || "4.
|
|
1006
|
+
axeCoreVersion: import_axe_core.default.version || "4.11.1",
|
|
1007
1007
|
standardsVersion: getStandardsVersion(),
|
|
1008
1008
|
scanDuration,
|
|
1009
1009
|
pageTitle,
|
|
@@ -1697,7 +1697,6 @@ async function generateStatement(result, outputPath, lang = "en", format = "html
|
|
|
1697
1697
|
init_i18n();
|
|
1698
1698
|
|
|
1699
1699
|
// src/cli/cloud-client.ts
|
|
1700
|
-
var ENGINE_VERSION = "1.4.4";
|
|
1701
1700
|
function transformToCloudPayload(result) {
|
|
1702
1701
|
const violations = result.reports.map((report) => {
|
|
1703
1702
|
const firstNode = report.failingNodes?.[0];
|
|
@@ -1720,7 +1719,7 @@ function transformToCloudPayload(result) {
|
|
|
1720
1719
|
serious_count: result.stats.high,
|
|
1721
1720
|
moderate_count: result.stats.medium,
|
|
1722
1721
|
minor_count: result.stats.low,
|
|
1723
|
-
engine_version:
|
|
1722
|
+
engine_version: getEngineVersion(),
|
|
1724
1723
|
violations
|
|
1725
1724
|
};
|
|
1726
1725
|
}
|
|
@@ -1786,7 +1785,7 @@ function isValidUrl(urlString) {
|
|
|
1786
1785
|
}
|
|
1787
1786
|
}
|
|
1788
1787
|
var program = new import_commander.Command();
|
|
1789
|
-
program.name("hd-a11y-scan").description("HolmDigital Regulatory Scanner").version(
|
|
1788
|
+
program.name("hd-a11y-scan").description("HolmDigital Regulatory Scanner").version(getEngineVersion());
|
|
1790
1789
|
program.argument("<url>", "URL to scan").option("--lang <code>", "Language code (en, sv)").option("--ci", "Run in CI/CD mode (exit code 1 on critical failures)").option("--generate-tests", "Generate Pseudo-Automation tests").option("--json", "Output as JSON").option("--junit <path>", "Generate JUnit XML report").option("--pdf <path>", "Generate PDF report to path").option("--statement <path>", "Generate accessibility statement HTML to path").option("--format <type>", "Output format for statement (html, md)", "html").option("--viewport <size>", 'Set viewport (e.g. "mobile", "desktop", "1024x768")').option("--threshold <level>", "Severity threshold (critical, high, medium, low)").option("--api-key <key>", "API key for HolmDigital Cloud").option("--cloud-url <url>", "Cloud API URL").option("--invalid-https-cert", "Allow scanning on pages with invalid https certificate").option("--email <email>", "Contact email for accessibility statement").option("--phone <number>", "Contact phone number for accessibility statement").option("--org <name>", "Organization name for accessibility statement").option("--response-time <time>", "Expected response time for accessibility statement").option("--country <code>", "Country code for accessibility statement enforcement body").option("--publish-date <date>", "Publish date for the website (YYYY-MM-DD)").action(async (url, cliOptions) => {
|
|
1791
1790
|
const explorer = (0, import_cosmiconfig.cosmiconfig)("a11y");
|
|
1792
1791
|
const configResult = await explorer.search();
|
package/dist/cli/index.mjs
CHANGED
|
@@ -5,8 +5,9 @@ import {
|
|
|
5
5
|
generateBadgeMarkdown,
|
|
6
6
|
generateBadgeUrl,
|
|
7
7
|
generateStatement,
|
|
8
|
-
generateStatementContent
|
|
9
|
-
|
|
8
|
+
generateStatementContent,
|
|
9
|
+
getEngineVersion
|
|
10
|
+
} from "../chunk-NTZZJO75.mjs";
|
|
10
11
|
import {
|
|
11
12
|
getCurrentLang,
|
|
12
13
|
setLanguage,
|
|
@@ -335,7 +336,6 @@ async function generatePDF(htmlContent, outputPath) {
|
|
|
335
336
|
}
|
|
336
337
|
|
|
337
338
|
// src/cli/cloud-client.ts
|
|
338
|
-
var ENGINE_VERSION = "1.4.4";
|
|
339
339
|
function transformToCloudPayload(result) {
|
|
340
340
|
const violations = result.reports.map((report) => {
|
|
341
341
|
const firstNode = report.failingNodes?.[0];
|
|
@@ -358,7 +358,7 @@ function transformToCloudPayload(result) {
|
|
|
358
358
|
serious_count: result.stats.high,
|
|
359
359
|
moderate_count: result.stats.medium,
|
|
360
360
|
minor_count: result.stats.low,
|
|
361
|
-
engine_version:
|
|
361
|
+
engine_version: getEngineVersion(),
|
|
362
362
|
violations
|
|
363
363
|
};
|
|
364
364
|
}
|
|
@@ -424,7 +424,7 @@ function isValidUrl(urlString) {
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
var program = new Command();
|
|
427
|
-
program.name("hd-a11y-scan").description("HolmDigital Regulatory Scanner").version(
|
|
427
|
+
program.name("hd-a11y-scan").description("HolmDigital Regulatory Scanner").version(getEngineVersion());
|
|
428
428
|
program.argument("<url>", "URL to scan").option("--lang <code>", "Language code (en, sv)").option("--ci", "Run in CI/CD mode (exit code 1 on critical failures)").option("--generate-tests", "Generate Pseudo-Automation tests").option("--json", "Output as JSON").option("--junit <path>", "Generate JUnit XML report").option("--pdf <path>", "Generate PDF report to path").option("--statement <path>", "Generate accessibility statement HTML to path").option("--format <type>", "Output format for statement (html, md)", "html").option("--viewport <size>", 'Set viewport (e.g. "mobile", "desktop", "1024x768")').option("--threshold <level>", "Severity threshold (critical, high, medium, low)").option("--api-key <key>", "API key for HolmDigital Cloud").option("--cloud-url <url>", "Cloud API URL").option("--invalid-https-cert", "Allow scanning on pages with invalid https certificate").option("--email <email>", "Contact email for accessibility statement").option("--phone <number>", "Contact phone number for accessibility statement").option("--org <name>", "Organization name for accessibility statement").option("--response-time <time>", "Expected response time for accessibility statement").option("--country <code>", "Country code for accessibility statement enforcement body").option("--publish-date <date>", "Publish date for the website (YYYY-MM-DD)").action(async (url, cliOptions) => {
|
|
429
429
|
const explorer = cosmiconfig("a11y");
|
|
430
430
|
const configResult = await explorer.search();
|
package/dist/index.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ interface ValidationResult {
|
|
|
12
12
|
}>;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
declare function getEngineVersion(): string;
|
|
15
16
|
interface ScannerOptions {
|
|
16
17
|
url: string;
|
|
17
18
|
headless?: boolean;
|
|
@@ -163,4 +164,4 @@ interface StatementMetadata {
|
|
|
163
164
|
declare function generateStatementContent(result: ScanResult, lang?: string, format?: 'html' | 'md' | 'markdown', metadata?: StatementMetadata): Promise<string>;
|
|
164
165
|
declare function generateStatement(result: ScanResult, outputPath: string, lang?: string, format?: 'html' | 'md' | 'markdown', metadata?: StatementMetadata): Promise<void>;
|
|
165
166
|
|
|
166
|
-
export { PseudoAutomationEngine, RegulatoryScanner, type ScanMetadata, type ScanResult, type ScannerOptions, type StatementMetadata, VirtualDOMBuilder, type VirtualDOMConfig, type VirtualNode, generateStatement, generateStatementContent, getCurrentLang, setLanguage, t };
|
|
167
|
+
export { PseudoAutomationEngine, RegulatoryScanner, type ScanMetadata, type ScanResult, type ScannerOptions, type StatementMetadata, VirtualDOMBuilder, type VirtualDOMConfig, type VirtualNode, generateStatement, generateStatementContent, getCurrentLang, getEngineVersion, setLanguage, t };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ interface ValidationResult {
|
|
|
12
12
|
}>;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
declare function getEngineVersion(): string;
|
|
15
16
|
interface ScannerOptions {
|
|
16
17
|
url: string;
|
|
17
18
|
headless?: boolean;
|
|
@@ -163,4 +164,4 @@ interface StatementMetadata {
|
|
|
163
164
|
declare function generateStatementContent(result: ScanResult, lang?: string, format?: 'html' | 'md' | 'markdown', metadata?: StatementMetadata): Promise<string>;
|
|
164
165
|
declare function generateStatement(result: ScanResult, outputPath: string, lang?: string, format?: 'html' | 'md' | 'markdown', metadata?: StatementMetadata): Promise<void>;
|
|
165
166
|
|
|
166
|
-
export { PseudoAutomationEngine, RegulatoryScanner, type ScanMetadata, type ScanResult, type ScannerOptions, type StatementMetadata, VirtualDOMBuilder, type VirtualDOMConfig, type VirtualNode, generateStatement, generateStatementContent, getCurrentLang, setLanguage, t };
|
|
167
|
+
export { PseudoAutomationEngine, RegulatoryScanner, type ScanMetadata, type ScanResult, type ScannerOptions, type StatementMetadata, VirtualDOMBuilder, type VirtualDOMConfig, type VirtualNode, generateStatement, generateStatementContent, getCurrentLang, getEngineVersion, setLanguage, t };
|
package/dist/index.js
CHANGED
|
@@ -523,6 +523,7 @@ __export(index_exports, {
|
|
|
523
523
|
generateStatement: () => generateStatement,
|
|
524
524
|
generateStatementContent: () => generateStatementContent,
|
|
525
525
|
getCurrentLang: () => getCurrentLang,
|
|
526
|
+
getEngineVersion: () => getEngineVersion,
|
|
526
527
|
setLanguage: () => setLanguage,
|
|
527
528
|
t: () => t
|
|
528
529
|
});
|
|
@@ -898,7 +899,7 @@ var RegulatoryScanner = class {
|
|
|
898
899
|
}
|
|
899
900
|
const metadata = {
|
|
900
901
|
engineVersion: getEngineVersion(),
|
|
901
|
-
axeCoreVersion: import_axe_core.default.version || "4.
|
|
902
|
+
axeCoreVersion: import_axe_core.default.version || "4.11.1",
|
|
902
903
|
standardsVersion: getStandardsVersion(),
|
|
903
904
|
scanDuration,
|
|
904
905
|
pageTitle,
|
|
@@ -1277,6 +1278,7 @@ async function generateStatement(result, outputPath, lang = "en", format = "html
|
|
|
1277
1278
|
generateStatement,
|
|
1278
1279
|
generateStatementContent,
|
|
1279
1280
|
getCurrentLang,
|
|
1281
|
+
getEngineVersion,
|
|
1280
1282
|
setLanguage,
|
|
1281
1283
|
t
|
|
1282
1284
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -3,8 +3,9 @@ import {
|
|
|
3
3
|
RegulatoryScanner,
|
|
4
4
|
VirtualDOMBuilder,
|
|
5
5
|
generateStatement,
|
|
6
|
-
generateStatementContent
|
|
7
|
-
|
|
6
|
+
generateStatementContent,
|
|
7
|
+
getEngineVersion
|
|
8
|
+
} from "./chunk-NTZZJO75.mjs";
|
|
8
9
|
import {
|
|
9
10
|
getCurrentLang,
|
|
10
11
|
setLanguage,
|
|
@@ -18,6 +19,7 @@ export {
|
|
|
18
19
|
generateStatement,
|
|
19
20
|
generateStatementContent,
|
|
20
21
|
getCurrentLang,
|
|
22
|
+
getEngineVersion,
|
|
21
23
|
setLanguage,
|
|
22
24
|
t
|
|
23
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holmdigital/engine",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"author": "Holm Digital AB",
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@holmdigital/components": "^2.1.
|
|
63
|
+
"@holmdigital/components": "^2.1.1",
|
|
64
64
|
"@holmdigital/standards": "*",
|
|
65
|
-
"axe-core": "4.
|
|
65
|
+
"axe-core": "^4.11.1",
|
|
66
66
|
"chalk": "^5.3.0",
|
|
67
67
|
"commander": "^12.1.0",
|
|
68
68
|
"cosmiconfig": "^9.0.0",
|