aria-ease 6.4.5 → 6.4.8
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 +12 -2
- package/bin/cli.cjs +4 -5
- package/bin/cli.js +1 -3
- package/bin/{test-BIYP2TGX.js → test-WICJJ62P.js} +4 -3
- package/dist/index.cjs +4 -3
- package/dist/index.js +4 -3
- package/dist/src/utils/test/index.cjs +4 -3
- package/dist/src/utils/test/index.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -823,17 +823,27 @@ jobs:
|
|
|
823
823
|
# ⬆️ If audit fails, workflow stops here
|
|
824
824
|
|
|
825
825
|
- name: Run component contract tests
|
|
826
|
-
run:
|
|
826
|
+
run: |
|
|
827
|
+
set -o pipefail
|
|
828
|
+
npm run test 2>&1 | tee component-contract-test-output.txt
|
|
827
829
|
# ⬆️ If interaction tests fail, workflow stops here
|
|
828
830
|
|
|
829
831
|
- name: Upload audit reports
|
|
830
|
-
if:
|
|
832
|
+
if: failure()
|
|
831
833
|
uses: actions/upload-artifact@v4
|
|
832
834
|
with:
|
|
833
835
|
name: accessibility-reports
|
|
834
836
|
path: accessibility-reports/
|
|
835
837
|
retention-days: 30
|
|
836
838
|
|
|
839
|
+
- name: Upload component contract tests report
|
|
840
|
+
if: failure()
|
|
841
|
+
uses: actions/upload-artifact@v4
|
|
842
|
+
with:
|
|
843
|
+
name: component-contract-test-output
|
|
844
|
+
path: component-contract-test-output.txt
|
|
845
|
+
retention-days: 30
|
|
846
|
+
|
|
837
847
|
deploy:
|
|
838
848
|
needs: accessibility-checks # ⬅️ This is the key
|
|
839
849
|
runs-on: ubuntu-latest
|
package/bin/cli.cjs
CHANGED
|
@@ -1545,9 +1545,10 @@ var init_test2 = __esm({
|
|
|
1545
1545
|
} catch (badgeError) {
|
|
1546
1546
|
console.error("Warning: Could not display badge prompt:", badgeError);
|
|
1547
1547
|
}
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1548
|
+
process.exit(0);
|
|
1549
|
+
} else {
|
|
1550
|
+
const exitCode = error?.code || 1;
|
|
1551
|
+
process.exit(exitCode);
|
|
1551
1552
|
}
|
|
1552
1553
|
}
|
|
1553
1554
|
);
|
|
@@ -1795,8 +1796,6 @@ program.command("audit").description("Run axe-core powered accessibility audit o
|
|
|
1795
1796
|
console.log(import_chalk2.default.yellow(` ${totalViolations} violation${totalViolations !== 1 ? "s" : ""} detected across ${allResults.length} page${allResults.length !== 1 ? "s" : ""}.`));
|
|
1796
1797
|
console.log(import_chalk2.default.gray(` Review the generated report for details.
|
|
1797
1798
|
`));
|
|
1798
|
-
displayBadgeInfo("audit");
|
|
1799
|
-
await promptAddBadge("audit", process.cwd());
|
|
1800
1799
|
console.log(import_chalk2.default.dim("\n" + "\u2500".repeat(60)));
|
|
1801
1800
|
console.log(import_chalk2.default.cyan("\u{1F499} Found aria-ease helpful?"));
|
|
1802
1801
|
console.log(import_chalk2.default.white(" \u2022 Star us on GitHub: ") + import_chalk2.default.blue.underline("https://github.com/aria-ease/aria-ease"));
|
package/bin/cli.js
CHANGED
|
@@ -229,8 +229,6 @@ program.command("audit").description("Run axe-core powered accessibility audit o
|
|
|
229
229
|
console.log(chalk.yellow(` ${totalViolations} violation${totalViolations !== 1 ? "s" : ""} detected across ${allResults.length} page${allResults.length !== 1 ? "s" : ""}.`));
|
|
230
230
|
console.log(chalk.gray(` Review the generated report for details.
|
|
231
231
|
`));
|
|
232
|
-
displayBadgeInfo("audit");
|
|
233
|
-
await promptAddBadge("audit", process.cwd());
|
|
234
232
|
console.log(chalk.dim("\n" + "\u2500".repeat(60)));
|
|
235
233
|
console.log(chalk.cyan("\u{1F499} Found aria-ease helpful?"));
|
|
236
234
|
console.log(chalk.white(" \u2022 Star us on GitHub: ") + chalk.blue.underline("https://github.com/aria-ease/aria-ease"));
|
|
@@ -239,7 +237,7 @@ program.command("audit").description("Run axe-core powered accessibility audit o
|
|
|
239
237
|
process.exit(1);
|
|
240
238
|
});
|
|
241
239
|
program.command("test").description("Run core a11y accessibility standard tests on UI components").action(async () => {
|
|
242
|
-
const { runTest } = await import("./test-
|
|
240
|
+
const { runTest } = await import("./test-WICJJ62P.js");
|
|
243
241
|
runTest();
|
|
244
242
|
});
|
|
245
243
|
program.command("help").description("Display help information").action(() => {
|
|
@@ -199,9 +199,10 @@ if (typeof window === "undefined") {
|
|
|
199
199
|
} catch (badgeError) {
|
|
200
200
|
console.error("Warning: Could not display badge prompt:", badgeError);
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
process.exit(0);
|
|
203
|
+
} else {
|
|
204
|
+
const exitCode = error?.code || 1;
|
|
205
|
+
process.exit(exitCode);
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
208
|
);
|
package/dist/index.cjs
CHANGED
|
@@ -2722,9 +2722,10 @@ if (typeof window === "undefined") {
|
|
|
2722
2722
|
} catch (badgeError) {
|
|
2723
2723
|
console.error("Warning: Could not display badge prompt:", badgeError);
|
|
2724
2724
|
}
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2725
|
+
process.exit(0);
|
|
2726
|
+
} else {
|
|
2727
|
+
const exitCode = error?.code || 1;
|
|
2728
|
+
process.exit(exitCode);
|
|
2728
2729
|
}
|
|
2729
2730
|
}
|
|
2730
2731
|
);
|
package/dist/index.js
CHANGED
|
@@ -1624,9 +1624,10 @@ if (typeof window === "undefined") {
|
|
|
1624
1624
|
} catch (badgeError) {
|
|
1625
1625
|
console.error("Warning: Could not display badge prompt:", badgeError);
|
|
1626
1626
|
}
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1627
|
+
process.exit(0);
|
|
1628
|
+
} else {
|
|
1629
|
+
const exitCode = error?.code || 1;
|
|
1630
|
+
process.exit(exitCode);
|
|
1630
1631
|
}
|
|
1631
1632
|
}
|
|
1632
1633
|
);
|
|
@@ -1245,9 +1245,10 @@ if (typeof window === "undefined") {
|
|
|
1245
1245
|
} catch (badgeError) {
|
|
1246
1246
|
console.error("Warning: Could not display badge prompt:", badgeError);
|
|
1247
1247
|
}
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1248
|
+
process.exit(0);
|
|
1249
|
+
} else {
|
|
1250
|
+
const exitCode = error?.code || 1;
|
|
1251
|
+
process.exit(exitCode);
|
|
1251
1252
|
}
|
|
1252
1253
|
}
|
|
1253
1254
|
);
|
|
@@ -191,9 +191,10 @@ if (typeof window === "undefined") {
|
|
|
191
191
|
} catch (badgeError) {
|
|
192
192
|
console.error("Warning: Could not display badge prompt:", badgeError);
|
|
193
193
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
process.exit(0);
|
|
195
|
+
} else {
|
|
196
|
+
const exitCode = error?.code || 1;
|
|
197
|
+
process.exit(exitCode);
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
200
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aria-ease",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.8",
|
|
4
4
|
"description": "Accessibility infrastructure for the entire frontend engineering lifecycle. Build accessible patterns, run automated audits, verify component interactions, and gate deployments — all in one system.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"type": "module",
|