@holmdigital/engine 1.4.11 → 1.4.12

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 CHANGED
@@ -78,9 +78,9 @@ npx hd-a11y-scan https://example.com --json
78
78
  "url": "https://example.com",
79
79
  "timestamp": "2026-01-13T17:05:11.749Z",
80
80
  "metadata": {
81
- "engineVersion": "1.4.6",
81
+ "engineVersion": "1.4.12",
82
82
  "axeCoreVersion": "4.10.2",
83
- "standardsVersion": "1.2.2",
83
+ "standardsVersion": "1.2.3",
84
84
  "scanDuration": 2891,
85
85
  "pageTitle": "Example Domain",
86
86
  "pageLanguage": "en"
@@ -1,7 +1,3 @@
1
- import {
2
- __require
3
- } from "./chunk-BKI2FFUX.mjs";
4
-
5
1
  // src/core/virtual-dom.ts
6
2
  var VirtualDOMBuilder = class {
7
3
  page;
@@ -93,6 +89,7 @@ var VirtualDOMBuilder = class {
93
89
  };
94
90
 
95
91
  // src/core/regulatory-scanner.ts
92
+ import axeCore from "axe-core";
96
93
  import puppeteer from "puppeteer";
97
94
 
98
95
  // src/core/html-validator.ts
@@ -250,13 +247,13 @@ var RegulatoryScanner = class {
250
247
  return page;
251
248
  }
252
249
  async injectAxe(page) {
253
- const axeSource = __require("axe-core").source;
250
+ const axeSource = axeCore.source;
254
251
  await page.evaluate(axeSource);
255
252
  }
256
253
  async enrichResults(axeResults) {
257
254
  const reports = [];
258
255
  const { searchRulesByTags, generateRegulatoryReport } = await import("@holmdigital/standards");
259
- const { getCurrentLang } = await import("./i18n-M6ATDHUS.mjs");
256
+ const { getCurrentLang } = await import("./i18n-WJLEZT5A.mjs");
260
257
  const lang = getCurrentLang();
261
258
  for (const violation of axeResults.violations) {
262
259
  let report = generateRegulatoryReport(violation.id, lang);
@@ -342,7 +339,6 @@ var RegulatoryScanner = class {
342
339
  complianceStatus = stats.total > 0 ? "FAIL" : "PASS";
343
340
  break;
344
341
  }
345
- const axeCore = __require("axe-core");
346
342
  const metadata = {
347
343
  engineVersion: "1.4.7",
348
344
  axeCoreVersion: axeCore.version || "4.10.2",
@@ -1,10 +1,3 @@
1
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
- }) : x)(function(x) {
4
- if (typeof require !== "undefined") return require.apply(this, arguments);
5
- throw Error('Dynamic require of "' + x + '" is not supported');
6
- });
7
-
8
1
  // src/locales/en.json
9
2
  var en_default = {
10
3
  cli: {
@@ -280,7 +273,6 @@ function getCurrentLang() {
280
273
  }
281
274
 
282
275
  export {
283
- __require,
284
276
  setLanguage,
285
277
  t,
286
278
  getCurrentLang
package/dist/cli/index.js CHANGED
@@ -358,6 +358,7 @@ var import_chalk = __toESM(require("chalk"));
358
358
  var import_ora = __toESM(require("ora"));
359
359
 
360
360
  // src/core/regulatory-scanner.ts
361
+ var import_axe_core = __toESM(require("axe-core"));
361
362
  var import_puppeteer = __toESM(require("puppeteer"));
362
363
 
363
364
  // src/core/virtual-dom.ts
@@ -605,7 +606,7 @@ var RegulatoryScanner = class {
605
606
  return page;
606
607
  }
607
608
  async injectAxe(page) {
608
- const axeSource = require("axe-core").source;
609
+ const axeSource = import_axe_core.default.source;
609
610
  await page.evaluate(axeSource);
610
611
  }
611
612
  async enrichResults(axeResults) {
@@ -697,10 +698,9 @@ var RegulatoryScanner = class {
697
698
  complianceStatus = stats.total > 0 ? "FAIL" : "PASS";
698
699
  break;
699
700
  }
700
- const axeCore = require("axe-core");
701
701
  const metadata = {
702
702
  engineVersion: "1.4.7",
703
- axeCoreVersion: axeCore.version || "4.10.2",
703
+ axeCoreVersion: import_axe_core.default.version || "4.10.2",
704
704
  standardsVersion: "1.2.2",
705
705
  scanDuration,
706
706
  pageTitle,
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  PseudoAutomationEngine,
4
4
  RegulatoryScanner
5
- } from "../chunk-WZSPSYDS.mjs";
5
+ } from "../chunk-FFTRXRZU.mjs";
6
6
  import {
7
7
  getCurrentLang,
8
8
  setLanguage,
9
9
  t
10
- } from "../chunk-BKI2FFUX.mjs";
10
+ } from "../chunk-YWRTSIUX.mjs";
11
11
 
12
12
  // src/cli/index.ts
13
13
  import { Command } from "commander";
@@ -2,7 +2,7 @@ import {
2
2
  getCurrentLang,
3
3
  setLanguage,
4
4
  t
5
- } from "./chunk-BKI2FFUX.mjs";
5
+ } from "./chunk-YWRTSIUX.mjs";
6
6
  export {
7
7
  getCurrentLang,
8
8
  setLanguage,
package/dist/index.js CHANGED
@@ -365,6 +365,7 @@ __export(index_exports, {
365
365
  module.exports = __toCommonJS(index_exports);
366
366
 
367
367
  // src/core/regulatory-scanner.ts
368
+ var import_axe_core = __toESM(require("axe-core"));
368
369
  var import_puppeteer = __toESM(require("puppeteer"));
369
370
 
370
371
  // src/core/virtual-dom.ts
@@ -612,7 +613,7 @@ var RegulatoryScanner = class {
612
613
  return page;
613
614
  }
614
615
  async injectAxe(page) {
615
- const axeSource = require("axe-core").source;
616
+ const axeSource = import_axe_core.default.source;
616
617
  await page.evaluate(axeSource);
617
618
  }
618
619
  async enrichResults(axeResults) {
@@ -704,10 +705,9 @@ var RegulatoryScanner = class {
704
705
  complianceStatus = stats.total > 0 ? "FAIL" : "PASS";
705
706
  break;
706
707
  }
707
- const axeCore = require("axe-core");
708
708
  const metadata = {
709
709
  engineVersion: "1.4.7",
710
- axeCoreVersion: axeCore.version || "4.10.2",
710
+ axeCoreVersion: import_axe_core.default.version || "4.10.2",
711
711
  standardsVersion: "1.2.2",
712
712
  scanDuration,
713
713
  pageTitle,
package/dist/index.mjs CHANGED
@@ -2,12 +2,12 @@ import {
2
2
  PseudoAutomationEngine,
3
3
  RegulatoryScanner,
4
4
  VirtualDOMBuilder
5
- } from "./chunk-WZSPSYDS.mjs";
5
+ } from "./chunk-FFTRXRZU.mjs";
6
6
  import {
7
7
  getCurrentLang,
8
8
  setLanguage,
9
9
  t
10
- } from "./chunk-BKI2FFUX.mjs";
10
+ } from "./chunk-YWRTSIUX.mjs";
11
11
  export {
12
12
  PseudoAutomationEngine,
13
13
  RegulatoryScanner,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holmdigital/engine",
3
- "version": "1.4.11",
3
+ "version": "1.4.12",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -34,8 +34,9 @@
34
34
  "build": "tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean",
35
35
  "dev": "tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --watch",
36
36
  "test": "vitest",
37
+ "test:ci": "vitest run",
37
38
  "test:integration": "vitest run --config vitest.integration.config.ts",
38
- "lint": "eslint src --ext .ts",
39
+ "lint": "eslint src",
39
40
  "prepublishOnly": "npm run build"
40
41
  },
41
42
  "keywords": [
@@ -76,4 +77,4 @@
76
77
  "typescript": "^5.7.2",
77
78
  "vitest": "^4.0.16"
78
79
  }
79
- }
80
+ }