eaa-kit 0.6.0 → 0.9.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 +52 -15
- package/dist/astro/index.d.ts +1 -1
- package/dist/astro/index.js +1 -1
- package/dist/audit/runners/worker.js +1 -1
- package/dist/audit-CJDCQaFY.js +2 -0
- package/dist/{audit-e_uixhPG.js → audit-J2jeLo-y.js} +170 -241
- package/dist/{baseline-BscHfFSW.js → baseline-477B1CZ_.js} +1 -1
- package/dist/baseline-D9ihb-wk.js +2 -0
- package/dist/{baseline-D2qWmUC6.js → baseline-DrFh7joZ.js} +15 -4
- package/dist/baseline-wyJsSIFQ.js +127 -0
- package/dist/cache-D4dOIuOi.js +219 -0
- package/dist/{checklist-BtgkxMEa.js → checklist-Gx2g3LFC.js} +6 -6
- package/dist/cli/index.js +103 -147
- package/dist/{collect-Cu1q9NTB.js → collect-BJYk7_pJ.js} +1 -1
- package/dist/{command-CZKp9Wi_.js → command-BGGMf4vn.js} +35 -8
- package/dist/countries-DRTBubeE.js +25 -0
- package/dist/countries-Dg0BdytB.js +156 -0
- package/dist/coverage-GvaMpV64.js +3 -0
- package/dist/{coverage-BD2_CYns.js → coverage-zdzgSKjz.js} +4 -286
- package/dist/{crawl-BHkJmUkA.js → crawl-DwdqiljK.js} +5 -3
- package/dist/criteria-CnPJKGeb.js +286 -0
- package/dist/{load-vZdV_fD1.js → define-Ctf2uOEh.js} +47 -95
- package/dist/eleventy/index.d.ts +1 -1
- package/dist/eleventy/index.js +1 -1
- package/dist/entry-CjqjrUBY.js +174 -0
- package/dist/{html-Bmh7X_sM.js → html-whingnfj.js} +9 -5
- package/dist/index.d.ts +61 -5
- package/dist/index.js +3 -2
- package/dist/init-CPbFVMuk.js +293 -0
- package/dist/jsdom-BUYuVJJm.js +3 -0
- package/dist/{jsdom-CQar6OQS.js → jsdom-CsW_xVcA.js} +11 -12
- package/dist/{json-HJDgJp09.js → json-CyLmvF5P.js} +1 -1
- package/dist/{json-PNg6BeXp.js → json-SGCgxSPT.js} +4 -3
- package/dist/load-CH-ltdlq.js +99 -0
- package/dist/load-D7lBeOsq.js +2 -0
- package/dist/nuxt/index.d.ts +1 -1
- package/dist/nuxt/index.js +1 -1
- package/dist/pages-DxY5Z0gl.js +300 -0
- package/dist/{playwright-C-miJP2b.js → playwright-ukCr_5o3.js} +1 -1
- package/dist/{pool-dkexq5xo.js → pool-B4tEUa2S.js} +6 -2
- package/dist/{project-MFrXcw1M.js → project-BLFdCbOq.js} +1 -1
- package/dist/{project-CzOnkLH6.js → project-v2PoRw70.js} +18 -1
- package/dist/{completeness-Dwq3CPB3.js → remediation-Bbs4KcX1.js} +72 -42
- package/dist/{render-CtsqR0k-.js → render-C6zYfaba.js} +69 -7
- package/dist/{result-DfUru6y_.js → result-B7_zVxAX.js} +1 -1
- package/dist/result-CRmjjoAA.js +2 -0
- package/dist/{review-CdMK2GpQ.js → review-Bz0fO9_I.js} +9 -1
- package/dist/{review-DIbOTmOM.js → review-a-2ghjQ5.js} +1 -1
- package/dist/{routes-CmdRUuOs.js → routes-CSctpS1P.js} +1 -1
- package/dist/{run-YiqyQA2b.d.ts → run-BK2blxMI.d.ts} +8 -0
- package/dist/{run-D7hdVXLA.js → run-DzVEOkiF.js} +6 -2
- package/dist/{sarif-BKvq_AUm.js → sarif-9BAgNiOa.js} +5 -3
- package/dist/site-BHMtf3q2.js +72 -0
- package/dist/start-DzOM0p6I.js +101 -0
- package/dist/statement/templates/at.de.md +14 -0
- package/dist/statement/templates/at.en.md +14 -0
- package/dist/statement/templates/be.de.md +148 -0
- package/dist/statement/templates/be.en.md +142 -0
- package/dist/statement/templates/be.fr.md +146 -0
- package/dist/statement/templates/be.nl.md +147 -0
- package/dist/statement/templates/ch.de.md +14 -0
- package/dist/statement/templates/ch.en.md +14 -0
- package/dist/statement/templates/cz.cs.md +137 -0
- package/dist/statement/templates/cz.en.md +139 -0
- package/dist/statement/templates/de.de.md +14 -0
- package/dist/statement/templates/de.en.md +14 -0
- package/dist/statement/templates/dk.da.md +141 -0
- package/dist/statement/templates/dk.en.md +141 -0
- package/dist/statement/templates/es.en.md +14 -0
- package/dist/statement/templates/es.es.md +15 -0
- package/dist/statement/templates/fi.en.md +139 -0
- package/dist/statement/templates/fi.fi.md +141 -0
- package/dist/statement/templates/fr.en.md +14 -0
- package/dist/statement/templates/fr.fr.md +15 -0
- package/dist/statement/templates/ie.en.md +144 -0
- package/dist/statement/templates/it.en.md +14 -0
- package/dist/statement/templates/it.it.md +15 -0
- package/dist/statement/templates/nl.en.md +14 -0
- package/dist/statement/templates/nl.nl.md +15 -0
- package/dist/statement/templates/pl.en.md +143 -0
- package/dist/statement/templates/pl.pl.md +144 -0
- package/dist/statement/templates/pt.en.md +142 -0
- package/dist/statement/templates/pt.pt.md +145 -0
- package/dist/statement/templates/se.en.md +139 -0
- package/dist/statement/templates/se.sv.md +142 -0
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/watch-B2RoUbo0.js +122 -0
- package/dist/webpack/index.d.ts +1 -1
- package/dist/webpack/index.js +1 -1
- package/dist/{worksheet-eUjwYLxC.js → worksheet-B_kQ1pxq.js} +3 -2
- package/package.json +4 -3
- package/dist/audit-DK2StT1_.js +0 -2
- package/dist/coverage-7bQqWNfN.js +0 -2
- package/dist/init-BjKYttxc.js +0 -119
- package/dist/jsdom-DMvU2h-f.js +0 -3
- package/dist/load-Bc_xDGAh.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import { t as ImpactLevel } from "./impact-EEB9ZXmC.js";
|
|
2
|
+
//#region src/next.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The command that gets somebody past an error.
|
|
5
|
+
*
|
|
6
|
+
* An error the reader cannot act on without opening the docs is half an error.
|
|
7
|
+
* Every error class a command can stop on carries one of these where there is a
|
|
8
|
+
* command that fixes it, and `fail` prints it under the message. That keeps
|
|
9
|
+
* "what went wrong" and "what to type" apart, so the second one can be copied
|
|
10
|
+
* as it is.
|
|
11
|
+
*
|
|
12
|
+
* Only where the fix is a command. An invalid field in a config file is fixed
|
|
13
|
+
* by editing the field, and the issues printed under that error already name
|
|
14
|
+
* it, so pointing at a command there would send somebody somewhere else.
|
|
15
|
+
*/
|
|
16
|
+
interface NextStep {
|
|
17
|
+
/** Exactly what to type. */
|
|
18
|
+
command: string;
|
|
19
|
+
/** What it does, in a few words. */
|
|
20
|
+
why: string;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
2
23
|
//#region src/schema.d.ts
|
|
3
24
|
/**
|
|
4
25
|
* The small amount of schema validation this package actually needs.
|
|
@@ -59,8 +80,11 @@ type DefaultedSchema<T> = Schema<T> & {
|
|
|
59
80
|
};
|
|
60
81
|
//#endregion
|
|
61
82
|
//#region src/config/define.d.ts
|
|
62
|
-
/**
|
|
63
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Countries with their own supervisory body and statute text. What is known
|
|
85
|
+
* about each one is in `countries.ts`.
|
|
86
|
+
*/
|
|
87
|
+
declare const COUNTRIES: readonly ['AT', 'BE', 'CH', 'CZ', 'DE', 'DK', 'ES', 'FI', 'FR', 'IE', 'IT', 'NL', 'PL', 'PT', 'SE'];
|
|
64
88
|
type Country = (typeof COUNTRIES)[number];
|
|
65
89
|
/**
|
|
66
90
|
* Languages a statement can be rendered in.
|
|
@@ -70,7 +94,7 @@ type Country = (typeof COUNTRIES)[number];
|
|
|
70
94
|
* has the language it is published in and English. `renderStatement` says which
|
|
71
95
|
* ones a country has when asked for one it does not.
|
|
72
96
|
*/
|
|
73
|
-
declare const STATEMENT_LOCALES: readonly ['de', 'en', 'es', 'fr', 'it', 'nl'];
|
|
97
|
+
declare const STATEMENT_LOCALES: readonly ['cs', 'da', 'de', 'en', 'es', 'fi', 'fr', 'it', 'nl', 'pl', 'pt', 'sv'];
|
|
74
98
|
type StatementLocale = (typeof STATEMENT_LOCALES)[number];
|
|
75
99
|
/**
|
|
76
100
|
* Wording follows the EU model statement: fully, partially, or not conformant
|
|
@@ -115,6 +139,8 @@ declare const auditSchema: Schema<ObjectOf<{
|
|
|
115
139
|
ignoreRobots: OptionalSchema<boolean>;
|
|
116
140
|
/** Where the site lists its pages, when that is not /sitemap.xml. */
|
|
117
141
|
sitemap: OptionalSchema<string>;
|
|
142
|
+
/** What to do when the entry URL redirects to another site. */
|
|
143
|
+
redirects: OptionalSchema<"ask" | "follow" | "stop">;
|
|
118
144
|
maxPages: OptionalSchema<number>;
|
|
119
145
|
/** 0 audits the entry page alone. */
|
|
120
146
|
maxDepth: OptionalSchema<number>;
|
|
@@ -146,6 +172,11 @@ declare const auditSchema: Schema<ObjectOf<{
|
|
|
146
172
|
* being described, and because a config file has no flags to negate.
|
|
147
173
|
*/
|
|
148
174
|
build: OptionalSchema<boolean>;
|
|
175
|
+
/**
|
|
176
|
+
* False is `--no-cache`: audit every page, reusing nothing an earlier run
|
|
177
|
+
* measured. Written in the positive for the same reason `build` is.
|
|
178
|
+
*/
|
|
179
|
+
cache: OptionalSchema<boolean>;
|
|
149
180
|
}>>;
|
|
150
181
|
declare const configSchema: Schema<ObjectOf<{
|
|
151
182
|
site: Schema<ObjectOf<{
|
|
@@ -198,7 +229,7 @@ declare const configSchema: Schema<ObjectOf<{
|
|
|
198
229
|
}>>;
|
|
199
230
|
enforcement: Schema<ObjectOf<{
|
|
200
231
|
/** Drives which supervisory body and statute the template names. */
|
|
201
|
-
country: Schema<"AT" | "CH" | "DE" | "ES" | "FR" | "IT" | "NL">;
|
|
232
|
+
country: Schema<"AT" | "BE" | "CH" | "CZ" | "DE" | "DK" | "ES" | "FI" | "FR" | "IE" | "IT" | "NL" | "PL" | "PT" | "SE">;
|
|
202
233
|
}>>;
|
|
203
234
|
/** Defaults for the audit commands. Nothing here reaches the statement. */
|
|
204
235
|
audit: OptionalSchema<ObjectOf<{
|
|
@@ -215,6 +246,8 @@ declare const configSchema: Schema<ObjectOf<{
|
|
|
215
246
|
ignoreRobots: OptionalSchema<boolean>;
|
|
216
247
|
/** Where the site lists its pages, when that is not /sitemap.xml. */
|
|
217
248
|
sitemap: OptionalSchema<string>;
|
|
249
|
+
/** What to do when the entry URL redirects to another site. */
|
|
250
|
+
redirects: OptionalSchema<"ask" | "follow" | "stop">;
|
|
218
251
|
maxPages: OptionalSchema<number>;
|
|
219
252
|
/** 0 audits the entry page alone. */
|
|
220
253
|
maxDepth: OptionalSchema<number>;
|
|
@@ -246,6 +279,11 @@ declare const configSchema: Schema<ObjectOf<{
|
|
|
246
279
|
* being described, and because a config file has no flags to negate.
|
|
247
280
|
*/
|
|
248
281
|
build: OptionalSchema<boolean>;
|
|
282
|
+
/**
|
|
283
|
+
* False is `--no-cache`: audit every page, reusing nothing an earlier run
|
|
284
|
+
* measured. Written in the positive for the same reason `build` is.
|
|
285
|
+
*/
|
|
286
|
+
cache: OptionalSchema<boolean>;
|
|
249
287
|
}>>;
|
|
250
288
|
}>>;
|
|
251
289
|
/**
|
|
@@ -310,8 +348,12 @@ type AuditConfig = { [K in keyof Infer<typeof auditSchema>]?: Exclude<Infer<type
|
|
|
310
348
|
declare function defineConfig(config: EaaConfigInput): EaaConfigInput;
|
|
311
349
|
declare class ConfigError extends Error {
|
|
312
350
|
readonly issues: string[];
|
|
351
|
+
/** The command that fixes it, printed under the message and the issues. */
|
|
352
|
+
readonly next?: NextStep | undefined;
|
|
313
353
|
readonly name = "ConfigError";
|
|
314
|
-
constructor(message: string, issues?: string[]
|
|
354
|
+
constructor(message: string, issues?: string[],
|
|
355
|
+
/** The command that fixes it, printed under the message and the issues. */
|
|
356
|
+
next?: NextStep | undefined);
|
|
315
357
|
}
|
|
316
358
|
/** Validate an already-loaded config object. */
|
|
317
359
|
declare function parseConfig(value: unknown, source?: string): EaaConfig;
|
|
@@ -354,7 +396,12 @@ declare function findConfigFile(cwd: string): Promise<string | undefined>;
|
|
|
354
396
|
* it — nothing is emitted at all.
|
|
355
397
|
*/
|
|
356
398
|
declare class StatementError extends Error {
|
|
399
|
+
/** The command that fixes it, printed under the message. */
|
|
400
|
+
readonly next?: NextStep | undefined;
|
|
357
401
|
readonly name = "StatementError";
|
|
402
|
+
constructor(message: string,
|
|
403
|
+
/** The command that fixes it, printed under the message. */
|
|
404
|
+
next?: NextStep | undefined);
|
|
358
405
|
}
|
|
359
406
|
//#endregion
|
|
360
407
|
//#region src/audit/review.d.ts
|
|
@@ -514,6 +561,15 @@ interface RenderStatementOptions {
|
|
|
514
561
|
* config lists. Left out, the statement says only what the config says.
|
|
515
562
|
*/
|
|
516
563
|
audit?: AuditSummary;
|
|
564
|
+
/**
|
|
565
|
+
* What a person checked, from `eaa-kit checklist`.
|
|
566
|
+
*
|
|
567
|
+
* Reaches the document as one fact — how many of WCAG's success criteria were
|
|
568
|
+
* checked by hand, and when — and never as a verdict. What a review concluded
|
|
569
|
+
* about a criterion is a claim by a person, and the place for a claim in a
|
|
570
|
+
* statement is the barrier list, which a person writes.
|
|
571
|
+
*/
|
|
572
|
+
review?: ReviewRecord;
|
|
517
573
|
}
|
|
518
574
|
interface RenderedStatement {
|
|
519
575
|
markdown: string;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
1
|
+
import { a as ISSUE_REASONS, c as configSchema, d as parseConfig, i as ConfigError, l as defineConfig, n as COMPLIANCE_STATUSES, r as COUNTRIES, s as STATEMENT_LOCALES, t as ASSESSMENT_METHODS } from "./define-Ctf2uOEh.js";
|
|
2
|
+
import { i as loadConfig, n as findConfigFile, t as CONFIG_FILENAMES } from "./load-CH-ltdlq.js";
|
|
3
|
+
import { a as summariseAuditReport, c as StatementError, i as readAuditReport, n as toHtmlBody, o as checkStatementEvidence, r as toHtmlDocument, s as refuses, t as renderStatement } from "./render-C6zYfaba.js";
|
|
3
4
|
export { ASSESSMENT_METHODS, COMPLIANCE_STATUSES, CONFIG_FILENAMES, COUNTRIES, ConfigError, ISSUE_REASONS, STATEMENT_LOCALES, StatementError, checkStatementEvidence, configSchema, defineConfig, findConfigFile, loadConfig, parseConfig, readAuditReport, refuses, renderStatement, summariseAuditReport, toHtmlBody, toHtmlDocument };
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { t as DEFAULT_FAIL_ON } from "./impact-luGCnN8F.js";
|
|
2
|
+
import { r as COUNTRIES } from "./define-Ctf2uOEh.js";
|
|
3
|
+
import { t as exists } from "./fs-BmPtmFke.js";
|
|
4
|
+
import { t as CONFIG_FILENAMES } from "./load-CH-ltdlq.js";
|
|
5
|
+
import { t as TOOL_VERSION } from "./version-B3v4rNoG.js";
|
|
6
|
+
import { n as DEFAULT_BASELINE_FILE } from "./baseline-DrFh7joZ.js";
|
|
7
|
+
import { c as nextStep, d as warn, l as note, o as fail } from "./command-BGGMf4vn.js";
|
|
8
|
+
import { i as readPackageJson, n as detectPackageManager } from "./project-v2PoRw70.js";
|
|
9
|
+
import { n as countryForLocale, r as findCountry, t as COUNTRY_INFO } from "./countries-Dg0BdytB.js";
|
|
10
|
+
import { mkdir, readFile, stat, writeFile } from "node:fs/promises";
|
|
11
|
+
import path from "node:path";
|
|
12
|
+
import pc from "picocolors";
|
|
13
|
+
import { createInterface } from "node:readline/promises";
|
|
14
|
+
//#region src/cli/setup.ts
|
|
15
|
+
/**
|
|
16
|
+
* The CI half of `eaa-kit init`: a GitHub Actions workflow written for this
|
|
17
|
+
* project rather than copied from the docs and edited until it works.
|
|
18
|
+
*
|
|
19
|
+
* Everything in it is read from the project. The package manager comes from
|
|
20
|
+
* the lockfile, the build from the `build` script, the directory from what
|
|
21
|
+
* `init` found, and the baseline from whether one was just recorded. Anything
|
|
22
|
+
* it cannot read is left to the action's own detection rather than guessed,
|
|
23
|
+
* because a workflow that fails on its first push teaches somebody to switch
|
|
24
|
+
* it off.
|
|
25
|
+
*/
|
|
26
|
+
/** Where the workflow goes, relative to the repository root. */
|
|
27
|
+
const WORKFLOW_FILE = path.join(".github", "workflows", "accessibility.yml");
|
|
28
|
+
/** The repository this project is in, found the way git finds it: upwards. */
|
|
29
|
+
async function findGitRoot(cwd) {
|
|
30
|
+
let current = path.resolve(cwd);
|
|
31
|
+
for (;;) try {
|
|
32
|
+
await stat(path.join(current, ".git"));
|
|
33
|
+
return current;
|
|
34
|
+
} catch {
|
|
35
|
+
const parent = path.dirname(current);
|
|
36
|
+
if (parent === current) return void 0;
|
|
37
|
+
current = parent;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/** The branch HEAD points at, which is the one worth auditing on push. */
|
|
41
|
+
async function currentBranch(root) {
|
|
42
|
+
try {
|
|
43
|
+
const head = await readFile(path.join(root, ".git", "HEAD"), "utf8");
|
|
44
|
+
return /^ref: refs\/heads\/(.+)$/m.exec(head)?.[1]?.trim();
|
|
45
|
+
} catch {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The workflow, as text. YAML is written by hand rather than through a
|
|
51
|
+
* library: it is one fixed shape with a few values in it, and the comments in
|
|
52
|
+
* it are the documentation somebody reads when it first fails.
|
|
53
|
+
*/
|
|
54
|
+
async function workflowFor(inputs) {
|
|
55
|
+
const pkg = await readPackageJson(inputs.cwd);
|
|
56
|
+
const manager = pkg === void 0 ? void 0 : await detectPackageManager(inputs.cwd);
|
|
57
|
+
const branch = await currentBranch(inputs.root) ?? "main";
|
|
58
|
+
const workingDirectory = toPosix(path.relative(inputs.root, inputs.cwd));
|
|
59
|
+
const directory = inputs.site === void 0 ? "" : toPosix(path.relative(inputs.cwd, inputs.site)) || ".";
|
|
60
|
+
const setup = [];
|
|
61
|
+
if (manager === "pnpm") setup.push(" - uses: pnpm/action-setup@v4", ...typeof pkg?.packageManager === "string" ? [] : [" with:", " version: 10"]);
|
|
62
|
+
if (manager === "bun") setup.push(" - uses: oven-sh/setup-bun@v2");
|
|
63
|
+
const install = manager === void 0 ? void 0 : {
|
|
64
|
+
npm: "npm ci",
|
|
65
|
+
pnpm: "pnpm install --frozen-lockfile",
|
|
66
|
+
yarn: "yarn install --frozen-lockfile",
|
|
67
|
+
bun: "bun install --frozen-lockfile"
|
|
68
|
+
}[manager];
|
|
69
|
+
const build = manager !== void 0 && pkg?.scripts?.["build"] !== void 0 ? `${manager} run build` : void 0;
|
|
70
|
+
const withLines = [
|
|
71
|
+
...workingDirectory === "" ? [] : [`working-directory: ${workingDirectory}`],
|
|
72
|
+
...install === void 0 ? [] : [`install-command: ${install}`],
|
|
73
|
+
...build === void 0 ? [] : [`build-command: ${build}`],
|
|
74
|
+
`directory: ${directory === "" ? "''" : directory}`,
|
|
75
|
+
`fail-on: ${inputs.failOn}`,
|
|
76
|
+
...inputs.baseline === void 0 ? [] : [`baseline: ${toPosix(inputs.baseline)}`]
|
|
77
|
+
].map((line) => ` ${line}`);
|
|
78
|
+
return [
|
|
79
|
+
"# Written by eaa-kit init. Audits the built site against WCAG 2.2 AA on every",
|
|
80
|
+
"# push and pull request, uploads what it finds to GitHub code scanning, and",
|
|
81
|
+
"# fails the job on barriers at or above fail-on.",
|
|
82
|
+
"#",
|
|
83
|
+
"# The inputs are documented at",
|
|
84
|
+
"# https://github.com/likeBloodMoon/eaa-kit/blob/master/docs/integrations.md#github-actions",
|
|
85
|
+
"name: Accessibility",
|
|
86
|
+
"",
|
|
87
|
+
"on:",
|
|
88
|
+
" push:",
|
|
89
|
+
` branches: [${branch}]`,
|
|
90
|
+
" pull_request:",
|
|
91
|
+
"",
|
|
92
|
+
"permissions:",
|
|
93
|
+
" contents: read",
|
|
94
|
+
" # Required by the SARIF upload to code scanning.",
|
|
95
|
+
" security-events: write",
|
|
96
|
+
"",
|
|
97
|
+
"jobs:",
|
|
98
|
+
" audit:",
|
|
99
|
+
" runs-on: ubuntu-latest",
|
|
100
|
+
" steps:",
|
|
101
|
+
" - uses: actions/checkout@v4",
|
|
102
|
+
...setup,
|
|
103
|
+
" - uses: actions/setup-node@v4",
|
|
104
|
+
" with:",
|
|
105
|
+
" node-version: 22",
|
|
106
|
+
` - uses: likeBloodMoon/eaa-kit@v${TOOL_VERSION}`,
|
|
107
|
+
" with:",
|
|
108
|
+
...withLines,
|
|
109
|
+
""
|
|
110
|
+
].join("\n");
|
|
111
|
+
}
|
|
112
|
+
function toPosix(value) {
|
|
113
|
+
return value.split(path.sep).join("/");
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/cli/init.ts
|
|
117
|
+
/**
|
|
118
|
+
* Everything the project already says about itself.
|
|
119
|
+
*
|
|
120
|
+
* A guess that is wrong is worse than an empty field somebody has to fill, so
|
|
121
|
+
* this only reads what a project states outright.
|
|
122
|
+
*/
|
|
123
|
+
async function detectDefaults(cwd) {
|
|
124
|
+
const detected = {};
|
|
125
|
+
try {
|
|
126
|
+
const pkg = JSON.parse(await readFile(path.join(cwd, "package.json"), "utf8"));
|
|
127
|
+
if (typeof pkg.name === "string" && pkg.name !== "") detected.name = pkg.name.replace(/^@[^/]+\//, "");
|
|
128
|
+
if (typeof pkg.homepage === "string" && /^https?:\/\//.test(pkg.homepage)) detected.url = pkg.homepage;
|
|
129
|
+
} catch {}
|
|
130
|
+
const site = await builtSite(cwd);
|
|
131
|
+
if (site !== void 0) {
|
|
132
|
+
const { readSiteFacts } = await import("./site-BHMtf3q2.js");
|
|
133
|
+
const facts = await readSiteFacts(site);
|
|
134
|
+
if (facts.url !== void 0) detected.url = facts.url;
|
|
135
|
+
if (facts.title !== void 0 && detected.name === void 0) detected.name = facts.title;
|
|
136
|
+
if (facts.lang !== void 0) {
|
|
137
|
+
detected.locale = facts.lang;
|
|
138
|
+
const country = countryForLocale(facts.lang);
|
|
139
|
+
if (country !== void 0) detected.country = country;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return detected;
|
|
143
|
+
}
|
|
144
|
+
/** The built site's directory, from the same search `audit` makes, without building. */
|
|
145
|
+
async function builtSite(cwd) {
|
|
146
|
+
const { autoDetectSource } = await import("./project-BLFdCbOq.js");
|
|
147
|
+
const found = await autoDetectSource(cwd, { noBuild: true });
|
|
148
|
+
await found?.cleanup?.();
|
|
149
|
+
return found?.directory;
|
|
150
|
+
}
|
|
151
|
+
/** Whether a config is already there, so init never overwrites one silently. */
|
|
152
|
+
async function existingConfig(cwd) {
|
|
153
|
+
for (const name of CONFIG_FILENAMES) if (await exists(path.join(cwd, name))) return name;
|
|
154
|
+
}
|
|
155
|
+
/** Reads answers, showing what each will be if the reader just hits enter. */
|
|
156
|
+
function terminalPrompt() {
|
|
157
|
+
const rl = createInterface({
|
|
158
|
+
input: process.stdin,
|
|
159
|
+
output: process.stderr
|
|
160
|
+
});
|
|
161
|
+
return {
|
|
162
|
+
ask: async (question, fallback) => {
|
|
163
|
+
const shown = fallback === "" ? "" : pc.dim(` (${fallback})`);
|
|
164
|
+
const answer = (await rl.question(`${question}${shown}: `)).trim();
|
|
165
|
+
return answer === "" ? fallback : answer;
|
|
166
|
+
},
|
|
167
|
+
close: () => rl.close()
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
async function runInitCommand(options = {}) {
|
|
171
|
+
const cwd = options.cwd ?? process.cwd();
|
|
172
|
+
const target = path.resolve(cwd, options.output ?? "eaa.config.json");
|
|
173
|
+
const already = await existingConfig(cwd);
|
|
174
|
+
if (already !== void 0 && !options.force) {
|
|
175
|
+
warn(`${already} already exists, and init never overwrites one without being told to.`);
|
|
176
|
+
nextStep({
|
|
177
|
+
command: "eaa-kit init --force",
|
|
178
|
+
why: `start ${already} again from scratch`
|
|
179
|
+
});
|
|
180
|
+
return { exitCode: 1 };
|
|
181
|
+
}
|
|
182
|
+
const detected = await detectDefaults(cwd);
|
|
183
|
+
const terminal = options.ask === void 0 && !options.yes && process.stdin.isTTY === true ? terminalPrompt() : void 0;
|
|
184
|
+
const rl = options.ask ?? terminal?.ask;
|
|
185
|
+
const ask = async (question, fallback) => rl === void 0 ? fallback : rl(question, fallback);
|
|
186
|
+
if (rl !== void 0) process.stderr.write(`${pc.bold("eaa-kit init")}\n${pc.dim("Everything here is a claim you are making. Press enter to take a default.\n\n")}`);
|
|
187
|
+
const name = await ask("Site name", detected.name ?? "");
|
|
188
|
+
const url = await ask("Site URL", detected.url ?? "https://example.com");
|
|
189
|
+
const country = await askCountry(ask, rl !== void 0, detected.country);
|
|
190
|
+
const locale = await ask("Language of the site", detected.locale !== void 0 && detected.country === country ? detected.locale : COUNTRY_INFO[country].siteLocale);
|
|
191
|
+
const legalName = await ask("Legal entity answerable for the site", name);
|
|
192
|
+
const email = await ask("Feedback email", "");
|
|
193
|
+
const feedbackUrl = await ask("Feedback or contact form URL (optional)", "");
|
|
194
|
+
const site = options.baseline === false ? void 0 : await builtSite(cwd);
|
|
195
|
+
const recordBaseline = site !== void 0 && isYes(await ask("Record a baseline of the barriers the site has today, so CI fails only on new ones? (y/n)", "y"));
|
|
196
|
+
const root = options.ci === false ? void 0 : await findGitRoot(cwd);
|
|
197
|
+
const workflowPath = root === void 0 ? void 0 : path.join(root, WORKFLOW_FILE);
|
|
198
|
+
const writeWorkflow = workflowPath !== void 0 && !await exists(workflowPath) && isYes(await ask("Add a GitHub Actions workflow that audits every push? (y/n)", "y"));
|
|
199
|
+
terminal?.close();
|
|
200
|
+
let baseline;
|
|
201
|
+
if (recordBaseline && site !== void 0) {
|
|
202
|
+
const { runBaselineCommand } = await import("./baseline-D9ihb-wk.js");
|
|
203
|
+
if ((await runBaselineCommand(path.relative(cwd, site) || ".", { cwd })).exitCode === 0) baseline = DEFAULT_BASELINE_FILE;
|
|
204
|
+
} else if (await exists(path.join(cwd, "eaa-baseline.json"))) baseline = DEFAULT_BASELINE_FILE;
|
|
205
|
+
const config = {
|
|
206
|
+
site: {
|
|
207
|
+
name,
|
|
208
|
+
url,
|
|
209
|
+
locale
|
|
210
|
+
},
|
|
211
|
+
provider: {
|
|
212
|
+
legalName,
|
|
213
|
+
email,
|
|
214
|
+
...feedbackUrl === "" ? {} : { feedbackUrl }
|
|
215
|
+
},
|
|
216
|
+
compliance: {
|
|
217
|
+
status: "partially-compliant",
|
|
218
|
+
assessedOn: (/* @__PURE__ */ new Date()).toISOString().slice(0, 10),
|
|
219
|
+
assessmentMethod: "self-assessment",
|
|
220
|
+
knownIssues: []
|
|
221
|
+
},
|
|
222
|
+
enforcement: { country },
|
|
223
|
+
audit: {
|
|
224
|
+
failOn: DEFAULT_FAIL_ON,
|
|
225
|
+
...baseline === void 0 ? {} : { baseline }
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
try {
|
|
229
|
+
await writeFile(target, `${JSON.stringify(config, null, 2)}\n`, "utf8");
|
|
230
|
+
} catch (cause) {
|
|
231
|
+
const reason = cause instanceof Error ? cause.message : String(cause);
|
|
232
|
+
fail(`Could not write ${path.basename(target)}: ${reason}`);
|
|
233
|
+
return { exitCode: 2 };
|
|
234
|
+
}
|
|
235
|
+
process.stderr.write(`Wrote ${path.relative(cwd, target) || path.basename(target)}\n`);
|
|
236
|
+
const missing = [name === "" ? "site.name" : void 0, email === "" ? "provider.email" : void 0].filter((field) => field !== void 0);
|
|
237
|
+
if (missing.length > 0) {
|
|
238
|
+
const [verb, pronoun] = missing.length === 1 ? ["is", "it"] : ["are", "them"];
|
|
239
|
+
warn(`${missing.join(" and ")} ${verb} empty and required. Fill ${pronoun} in before generating a statement.`);
|
|
240
|
+
}
|
|
241
|
+
note("Read it before publishing anything from it: status is partially-compliant,\nwhich is the honest default before an audit has run.");
|
|
242
|
+
if (writeWorkflow && root !== void 0 && workflowPath !== void 0) {
|
|
243
|
+
const workflow = await workflowFor({
|
|
244
|
+
cwd,
|
|
245
|
+
root,
|
|
246
|
+
...site === void 0 ? {} : { site },
|
|
247
|
+
...baseline === void 0 ? {} : { baseline },
|
|
248
|
+
failOn: DEFAULT_FAIL_ON
|
|
249
|
+
});
|
|
250
|
+
try {
|
|
251
|
+
await mkdir(path.dirname(workflowPath), { recursive: true });
|
|
252
|
+
await writeFile(workflowPath, workflow, "utf8");
|
|
253
|
+
process.stderr.write(`Wrote ${path.relative(cwd, workflowPath)}\n`);
|
|
254
|
+
} catch (cause) {
|
|
255
|
+
warn(`Could not write ${WORKFLOW_FILE}: ${cause instanceof Error ? cause.message : String(cause)}`);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
note(`\nNext: eaa-kit statement${writeWorkflow ? " · commit and push to run the workflow" : " · eaa-kit audit"}`);
|
|
259
|
+
return {
|
|
260
|
+
file: target,
|
|
261
|
+
exitCode: 0
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
function isYes(answer) {
|
|
265
|
+
return /^y(es)?$/i.test(answer.trim());
|
|
266
|
+
}
|
|
267
|
+
/** How often an answer that is not a country is asked again before giving up on it. */
|
|
268
|
+
const COUNTRY_ATTEMPTS = 3;
|
|
269
|
+
/**
|
|
270
|
+
* The country whose law the statement is written under.
|
|
271
|
+
*
|
|
272
|
+
* An answer that is not a country is asked again, with the list. It used to
|
|
273
|
+
* become Austria without a word, which is how somebody who typed `pl` got an
|
|
274
|
+
* Austrian legal document. Once the attempts run out the default is used,
|
|
275
|
+
* because a typo should not throw away every other answer, but it is said out
|
|
276
|
+
* loud, so the file is not left looking like the answer somebody gave.
|
|
277
|
+
*/
|
|
278
|
+
async function askCountry(ask, interactive, suggested) {
|
|
279
|
+
const fallback = suggested ?? "AT";
|
|
280
|
+
const choices = COUNTRIES.map((code) => `${code} ${COUNTRY_INFO[code].name}`).join(", ");
|
|
281
|
+
if (interactive) process.stderr.write(pc.dim(`Countries: ${choices}\n`));
|
|
282
|
+
let answer = "";
|
|
283
|
+
for (let attempt = 0; attempt < COUNTRY_ATTEMPTS; attempt += 1) {
|
|
284
|
+
answer = await ask("Country whose law applies", fallback);
|
|
285
|
+
const country = findCountry(answer);
|
|
286
|
+
if (country !== void 0) return country;
|
|
287
|
+
warn(`${answer} is not one of the countries a statement can be written for: ${COUNTRIES.join(", ")}`);
|
|
288
|
+
}
|
|
289
|
+
warn(`enforcement.country is set to ${fallback} because ${answer} was not recognised. Change it before generating a statement.`);
|
|
290
|
+
return fallback;
|
|
291
|
+
}
|
|
292
|
+
//#endregion
|
|
293
|
+
export { existingConfig, runInitCommand };
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as pageUrl, d as runOptions, f as shapeResults, i as blindRulesInScope, n as DEFAULT_TAGS, o as failedPage } from "./result-B7_zVxAX.js";
|
|
2
2
|
import axe from "axe-core";
|
|
3
3
|
import { Script } from "node:vm";
|
|
4
4
|
import { JSDOM, VirtualConsole } from "jsdom";
|
|
5
5
|
//#region src/audit/runners/jsdom.ts
|
|
6
6
|
/**
|
|
7
|
-
* Per-page ceiling.
|
|
8
|
-
*
|
|
9
|
-
* A soft one, and the limit is worth stating: this races axe-core against a
|
|
10
|
-
* timer, so it only fires where the work yields to the event loop. Neither
|
|
11
|
-
* jsdom's parse nor axe-core's walk of the tree does, so a document pathological
|
|
12
|
-
* enough to hold the thread runs past this unimpeded. The hard ceiling is the
|
|
13
|
-
* worker pool's, which terminates the thread; see the note on `runWorkers`.
|
|
14
|
-
*/
|
|
15
|
-
const DEFAULT_TIMEOUT_MS = DEFAULT_PAGE_TIMEOUT_MS;
|
|
16
|
-
/**
|
|
17
7
|
* Audit collected pages with axe-core inside jsdom.
|
|
18
8
|
*
|
|
19
9
|
* Pages are processed sequentially: jsdom parsing and axe-core are both
|
|
@@ -40,7 +30,7 @@ async function auditPage(page, options = {}) {
|
|
|
40
30
|
dom = createDom(page.html, url);
|
|
41
31
|
injectAxe(dom);
|
|
42
32
|
const { axe: pageAxe } = dom.window;
|
|
43
|
-
const results = await withTimeout(pageAxe.run(dom.window.document, runOptions(tags, { skipBlindRules: options.fast === true })), options.timeoutMs ??
|
|
33
|
+
const results = await withTimeout(pageAxe.run(dom.window.document, runOptions(tags, { skipBlindRules: options.fast === true })), options.timeoutMs ?? 3e4);
|
|
44
34
|
return shapeResults(results, {
|
|
45
35
|
...identity,
|
|
46
36
|
durationMs: Date.now() - startedAt,
|
|
@@ -74,6 +64,15 @@ function injectAxe(dom) {
|
|
|
74
64
|
axeScript ??= new Script(axe.source, { filename: "axe-core.js" });
|
|
75
65
|
axeScript.runInContext(dom.getInternalVMContext());
|
|
76
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* The per-page ceiling, and it is a soft one.
|
|
69
|
+
*
|
|
70
|
+
* This races axe-core against a timer, so it only fires where the work yields to
|
|
71
|
+
* the event loop. Neither jsdom's parse nor axe-core's walk of the tree does, so
|
|
72
|
+
* a document pathological enough to hold the thread runs past this unimpeded.
|
|
73
|
+
* The hard ceiling is the worker pool's, which terminates the thread; see the
|
|
74
|
+
* note on `runWorkers`.
|
|
75
|
+
*/
|
|
77
76
|
async function withTimeout(promise, ms) {
|
|
78
77
|
promise.catch(() => {});
|
|
79
78
|
let timer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as serialiseJsonReport, t as buildJsonReport } from "./json-
|
|
1
|
+
import { r as serialiseJsonReport, t as buildJsonReport } from "./json-SGCgxSPT.js";
|
|
2
2
|
export { buildJsonReport, serialiseJsonReport };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as impactLabel, i as countAtOrAbove, s as isImpactLevel } from "./impact-luGCnN8F.js";
|
|
2
2
|
import { t as TOOL_VERSION } from "./version-B3v4rNoG.js";
|
|
3
3
|
import { t as elementFingerprint } from "./fingerprint-BjYV_0F7.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { m as uniqueRuleOutcomes, u as runEngine } from "./result-B7_zVxAX.js";
|
|
5
|
+
import { t as buildCoverage } from "./coverage-zdzgSKjz.js";
|
|
6
6
|
import axe from "axe-core";
|
|
7
7
|
/**
|
|
8
8
|
* Build the machine-readable report.
|
|
@@ -104,7 +104,8 @@ function toJsonPage(audit) {
|
|
|
104
104
|
incomplete: [...audit.incomplete].sort(byRuleId).map(toJsonIncomplete),
|
|
105
105
|
passes: [...audit.passes].sort(byRuleId).map((outcome) => outcome.ruleId),
|
|
106
106
|
inapplicable: [...audit.inapplicable].sort(byRuleId).map((outcome) => outcome.ruleId),
|
|
107
|
-
error: audit.error ?? null
|
|
107
|
+
error: audit.error ?? null,
|
|
108
|
+
...audit.reused === void 0 ? {} : { reusedFrom: audit.reused.on }
|
|
108
109
|
};
|
|
109
110
|
}
|
|
110
111
|
function toJsonFinding(finding) {
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { d as parseConfig, i as ConfigError, u as parseAuditConfig } from "./define-Ctf2uOEh.js";
|
|
2
|
+
import { r as isFile } from "./fs-BmPtmFke.js";
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { pathToFileURL } from "node:url";
|
|
6
|
+
//#region src/config/load.ts
|
|
7
|
+
/** Checked in this order, first match wins. */
|
|
8
|
+
const CONFIG_FILENAMES = [
|
|
9
|
+
"eaa.config.ts",
|
|
10
|
+
"eaa.config.mts",
|
|
11
|
+
"eaa.config.js",
|
|
12
|
+
"eaa.config.mjs",
|
|
13
|
+
"eaa.config.json"
|
|
14
|
+
];
|
|
15
|
+
/**
|
|
16
|
+
* Find and load `eaa.config.{ts,mts,js,mjs,json}`.
|
|
17
|
+
*
|
|
18
|
+
* TypeScript configs are imported directly: Node strips types natively from
|
|
19
|
+
* 22.18 onwards, which is below this package's floor, so no bundler or loader
|
|
20
|
+
* dependency is needed. The failure mode that remains is a project with no
|
|
21
|
+
* package.json at all, where Node cannot tell ESM from CommonJS; the error says
|
|
22
|
+
* so rather than surfacing "Unexpected token 'export'".
|
|
23
|
+
*/
|
|
24
|
+
async function loadConfig(options = {}) {
|
|
25
|
+
const cwd = path.resolve(options.cwd ?? process.cwd());
|
|
26
|
+
const file = options.path ? path.resolve(cwd, options.path) : await findConfigFile(cwd);
|
|
27
|
+
if (!file) throw new ConfigError(`No config file found in ${cwd} or its parent directories`, CONFIG_FILENAMES.map((name) => `looked for ${name}`), {
|
|
28
|
+
command: "eaa-kit init",
|
|
29
|
+
why: "write one, filled in from what the site already states"
|
|
30
|
+
});
|
|
31
|
+
if (!await isFile(file)) throw new ConfigError(`Config file not found: ${file}`, [], {
|
|
32
|
+
command: `eaa-kit init --output ${path.relative(cwd, file) || path.basename(file)}`,
|
|
33
|
+
why: "write it there"
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
config: parseConfig(await readConfigFile(file), path.basename(file)),
|
|
37
|
+
path: file
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Find the config file and read its `audit` block, for the commands that take
|
|
42
|
+
* defaults from it.
|
|
43
|
+
*
|
|
44
|
+
* Returns undefined when there is no config file at all. That is not an error
|
|
45
|
+
* here as it is for `statement`: `eaa-kit audit` has always run against a
|
|
46
|
+
* project that has never heard of a config file, and it must keep doing so. An
|
|
47
|
+
* explicit path that is not there is still an error, because somebody named it.
|
|
48
|
+
*/
|
|
49
|
+
async function loadAuditConfig(options = {}) {
|
|
50
|
+
const cwd = path.resolve(options.cwd ?? process.cwd());
|
|
51
|
+
const file = options.path ? path.resolve(cwd, options.path) : await findConfigFile(cwd);
|
|
52
|
+
if (!file) return void 0;
|
|
53
|
+
if (!await isFile(file)) throw new ConfigError(`Config file not found: ${file}`, [], {
|
|
54
|
+
command: `eaa-kit init --output ${path.relative(cwd, file) || path.basename(file)}`,
|
|
55
|
+
why: "write it there"
|
|
56
|
+
});
|
|
57
|
+
return {
|
|
58
|
+
audit: parseAuditConfig(await readConfigFile(file), path.basename(file)),
|
|
59
|
+
path: file
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function readConfigFile(file) {
|
|
63
|
+
return file.endsWith(".json") ? importJson(file) : importModule(file);
|
|
64
|
+
}
|
|
65
|
+
/** Walks up from `cwd`, so the CLI works from a subdirectory of the project. */
|
|
66
|
+
async function findConfigFile(cwd) {
|
|
67
|
+
let directory = path.resolve(cwd);
|
|
68
|
+
while (true) {
|
|
69
|
+
for (const name of CONFIG_FILENAMES) {
|
|
70
|
+
const candidate = path.join(directory, name);
|
|
71
|
+
if (await isFile(candidate)) return candidate;
|
|
72
|
+
}
|
|
73
|
+
const parent = path.dirname(directory);
|
|
74
|
+
if (parent === directory) return void 0;
|
|
75
|
+
directory = parent;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
async function importJson(file) {
|
|
79
|
+
const raw = await readFile(file, "utf8");
|
|
80
|
+
try {
|
|
81
|
+
return JSON.parse(raw);
|
|
82
|
+
} catch (cause) {
|
|
83
|
+
throw new ConfigError(`${path.basename(file)} is not valid JSON`, [cause instanceof Error ? cause.message : String(cause)]);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async function importModule(file) {
|
|
87
|
+
let module;
|
|
88
|
+
try {
|
|
89
|
+
module = await import(`${pathToFileURL(file).href}?t=${Date.now()}`);
|
|
90
|
+
} catch (cause) {
|
|
91
|
+
const message = cause instanceof Error ? cause.message : String(cause);
|
|
92
|
+
const hint = message.includes("Unexpected token") ? "If the project has no package.json, Node cannot tell ESM from CommonJS. Add one with \"type\": \"module\", or use eaa.config.json." : message;
|
|
93
|
+
throw new ConfigError(`Could not load ${path.basename(file)}`, [hint]);
|
|
94
|
+
}
|
|
95
|
+
if (module.default === void 0) throw new ConfigError(`${path.basename(file)} has no default export`, ["Expected: export default defineConfig({ … })"]);
|
|
96
|
+
return module.default;
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { loadConfig as i, findConfigFile as n, loadAuditConfig as r, CONFIG_FILENAMES as t };
|
package/dist/nuxt/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as IntegrationOptions, t as BuildAuditError } from "../run-
|
|
1
|
+
import { n as IntegrationOptions, t as BuildAuditError } from "../run-BK2blxMI.js";
|
|
2
2
|
//#region src/nuxt/index.d.ts
|
|
3
3
|
/** The part of the Nitro instance this reads, handed over by `nitro:init`. */
|
|
4
4
|
interface NitroLike {
|
package/dist/nuxt/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as auditBuild, r as stderrLogger, t as BuildAuditError } from "../run-
|
|
1
|
+
import { n as auditBuild, r as stderrLogger, t as BuildAuditError } from "../run-DzVEOkiF.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
//#region src/nuxt/index.ts
|
|
4
4
|
function eaaKitModule(options = {}, nuxt) {
|