@accesslint/cli 0.3.1 → 0.3.2
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/dist/audit.js +1 -1
- package/dist/cli.js +1 -2
- package/package.json +1 -1
package/dist/audit.js
CHANGED
|
@@ -26,7 +26,7 @@ function ensureGlobals(window) {
|
|
|
26
26
|
}
|
|
27
27
|
function audit(html, options = {}) {
|
|
28
28
|
const config = {
|
|
29
|
-
componentMode: options.componentMode ??
|
|
29
|
+
componentMode: options.componentMode ?? isHTMLFragment(html)
|
|
30
30
|
};
|
|
31
31
|
if (options.includeAAA)
|
|
32
32
|
config.includeAAA = true;
|
package/dist/cli.js
CHANGED
|
@@ -7767,7 +7767,7 @@ function ensureGlobals(window) {
|
|
|
7767
7767
|
}
|
|
7768
7768
|
function audit(html, options = {}) {
|
|
7769
7769
|
const config = {
|
|
7770
|
-
componentMode: options.componentMode ??
|
|
7770
|
+
componentMode: options.componentMode ?? isHTMLFragment(html)
|
|
7771
7771
|
};
|
|
7772
7772
|
if (options.includeAAA)
|
|
7773
7773
|
config.includeAAA = true;
|
|
@@ -7868,7 +7868,6 @@ var main = defineCommand({
|
|
|
7868
7868
|
const disabledRules = args.disable ? args.disable.split(",").map((s2) => s2.trim()) : undefined;
|
|
7869
7869
|
const result = audit(html, {
|
|
7870
7870
|
includeAAA: args["include-aaa"],
|
|
7871
|
-
componentMode: isHTMLFragment(html),
|
|
7872
7871
|
disabledRules
|
|
7873
7872
|
});
|
|
7874
7873
|
console.log(format(result, args.format));
|