@holmdigital/engine 2.1.3 → 2.1.5
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-H5MBYTT7.mjs → chunk-SJF3O7SK.mjs} +7 -5
- package/dist/cli/index.js +8 -5
- package/dist/cli/index.mjs +1 -1
- package/dist/index.js +8 -5
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
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,
|
|
@@ -503,11 +503,13 @@ import { AccessibilityStatement } from "@holmdigital/components";
|
|
|
503
503
|
import { ENFORCEMENT_BODIES } from "@holmdigital/standards";
|
|
504
504
|
import fs from "fs/promises";
|
|
505
505
|
import path from "path";
|
|
506
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
507
|
+
var __dirname_esm = typeof __dirname === "undefined" ? path.dirname(fileURLToPath2(import.meta.url)) : __dirname;
|
|
506
508
|
async function generateStatementContent(result, lang = "en", format = "html", metadata) {
|
|
507
509
|
let template;
|
|
508
510
|
const possibleTemplatePaths = [
|
|
509
|
-
path.join(
|
|
510
|
-
path.join(
|
|
511
|
+
path.join(__dirname_esm, "templates", `${lang}.json`),
|
|
512
|
+
path.join(__dirname_esm, "../src/reporting/templates", `${lang}.json`),
|
|
511
513
|
path.join(process.cwd(), "packages/engine/src/reporting/templates", `${lang}.json`)
|
|
512
514
|
];
|
|
513
515
|
let loaded = false;
|
|
@@ -523,8 +525,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
523
525
|
}
|
|
524
526
|
if (!loaded) {
|
|
525
527
|
const fallbackPaths = [
|
|
526
|
-
path.join(
|
|
527
|
-
path.join(
|
|
528
|
+
path.join(__dirname_esm, "templates", "en.json"),
|
|
529
|
+
path.join(__dirname_esm, "../src/reporting/templates", "en.json"),
|
|
528
530
|
path.join(process.cwd(), "packages/engine/src/reporting/templates", "en.json")
|
|
529
531
|
];
|
|
530
532
|
for (const p of fallbackPaths) {
|
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,
|
|
@@ -1451,11 +1451,14 @@ var import_components = require("@holmdigital/components");
|
|
|
1451
1451
|
var import_standards = require("@holmdigital/standards");
|
|
1452
1452
|
var import_promises = __toESM(require("fs/promises"));
|
|
1453
1453
|
var import_path = __toESM(require("path"));
|
|
1454
|
+
var import_node_url2 = require("url");
|
|
1455
|
+
var import_meta2 = {};
|
|
1456
|
+
var __dirname_esm = typeof __dirname === "undefined" ? import_path.default.dirname((0, import_node_url2.fileURLToPath)(import_meta2.url)) : __dirname;
|
|
1454
1457
|
async function generateStatementContent(result, lang = "en", format = "html", metadata) {
|
|
1455
1458
|
let template;
|
|
1456
1459
|
const possibleTemplatePaths = [
|
|
1457
|
-
import_path.default.join(
|
|
1458
|
-
import_path.default.join(
|
|
1460
|
+
import_path.default.join(__dirname_esm, "templates", `${lang}.json`),
|
|
1461
|
+
import_path.default.join(__dirname_esm, "../src/reporting/templates", `${lang}.json`),
|
|
1459
1462
|
import_path.default.join(process.cwd(), "packages/engine/src/reporting/templates", `${lang}.json`)
|
|
1460
1463
|
];
|
|
1461
1464
|
let loaded = false;
|
|
@@ -1471,8 +1474,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1471
1474
|
}
|
|
1472
1475
|
if (!loaded) {
|
|
1473
1476
|
const fallbackPaths = [
|
|
1474
|
-
import_path.default.join(
|
|
1475
|
-
import_path.default.join(
|
|
1477
|
+
import_path.default.join(__dirname_esm, "templates", "en.json"),
|
|
1478
|
+
import_path.default.join(__dirname_esm, "../src/reporting/templates", "en.json"),
|
|
1476
1479
|
import_path.default.join(process.cwd(), "packages/engine/src/reporting/templates", "en.json")
|
|
1477
1480
|
];
|
|
1478
1481
|
for (const p of fallbackPaths) {
|
package/dist/cli/index.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -899,7 +899,7 @@ var RegulatoryScanner = class {
|
|
|
899
899
|
}
|
|
900
900
|
const metadata = {
|
|
901
901
|
engineVersion: getEngineVersion(),
|
|
902
|
-
axeCoreVersion: import_axe_core.default.version || "4.
|
|
902
|
+
axeCoreVersion: import_axe_core.default.version || "4.11.1",
|
|
903
903
|
standardsVersion: getStandardsVersion(),
|
|
904
904
|
scanDuration,
|
|
905
905
|
pageTitle,
|
|
@@ -1017,6 +1017,7 @@ var import_components = require("@holmdigital/components");
|
|
|
1017
1017
|
var import_standards = require("@holmdigital/standards");
|
|
1018
1018
|
var import_promises = __toESM(require("fs/promises"));
|
|
1019
1019
|
var import_path = __toESM(require("path"));
|
|
1020
|
+
var import_node_url2 = require("url");
|
|
1020
1021
|
|
|
1021
1022
|
// src/reporting/badge-generator.ts
|
|
1022
1023
|
var BADGE_COLOR = "00703C";
|
|
@@ -1029,11 +1030,13 @@ function generateBadgeUrl(score) {
|
|
|
1029
1030
|
}
|
|
1030
1031
|
|
|
1031
1032
|
// src/reporting/statement-generator.ts
|
|
1033
|
+
var import_meta2 = {};
|
|
1034
|
+
var __dirname_esm = typeof __dirname === "undefined" ? import_path.default.dirname((0, import_node_url2.fileURLToPath)(import_meta2.url)) : __dirname;
|
|
1032
1035
|
async function generateStatementContent(result, lang = "en", format = "html", metadata) {
|
|
1033
1036
|
let template;
|
|
1034
1037
|
const possibleTemplatePaths = [
|
|
1035
|
-
import_path.default.join(
|
|
1036
|
-
import_path.default.join(
|
|
1038
|
+
import_path.default.join(__dirname_esm, "templates", `${lang}.json`),
|
|
1039
|
+
import_path.default.join(__dirname_esm, "../src/reporting/templates", `${lang}.json`),
|
|
1037
1040
|
import_path.default.join(process.cwd(), "packages/engine/src/reporting/templates", `${lang}.json`)
|
|
1038
1041
|
];
|
|
1039
1042
|
let loaded = false;
|
|
@@ -1049,8 +1052,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1049
1052
|
}
|
|
1050
1053
|
if (!loaded) {
|
|
1051
1054
|
const fallbackPaths = [
|
|
1052
|
-
import_path.default.join(
|
|
1053
|
-
import_path.default.join(
|
|
1055
|
+
import_path.default.join(__dirname_esm, "templates", "en.json"),
|
|
1056
|
+
import_path.default.join(__dirname_esm, "../src/reporting/templates", "en.json"),
|
|
1054
1057
|
import_path.default.join(process.cwd(), "packages/engine/src/reporting/templates", "en.json")
|
|
1055
1058
|
];
|
|
1056
1059
|
for (const p of fallbackPaths) {
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holmdigital/engine",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
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",
|