@wcag-audit/cli 1.0.0-alpha.3 → 1.0.0-alpha.4
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/package.json +1 -1
- package/src/cli.js +1 -1
- package/src/commands/doctor.js +1 -1
- package/src/commands/init.js +1 -1
- package/src/commands/scan.js +1 -1
- package/src/license/log-usage.js +1 -1
- package/src/license/validate.js +1 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -18,7 +18,7 @@ const program = new Command();
|
|
|
18
18
|
program
|
|
19
19
|
.name("wcag-audit")
|
|
20
20
|
.description("WCAG 2.1/2.2 auditor for web projects — with AI-ready fixes for Cursor / Claude Code / Windsurf.")
|
|
21
|
-
.version("1.0.0-alpha.
|
|
21
|
+
.version("1.0.0-alpha.4");
|
|
22
22
|
|
|
23
23
|
// ── init ─────────────────────────────────────────────────────────
|
|
24
24
|
program
|
package/src/commands/doctor.js
CHANGED
|
@@ -5,7 +5,7 @@ import { readGlobalConfig } from "../config/global.js";
|
|
|
5
5
|
import { validateLicense } from "../license/validate.js";
|
|
6
6
|
import { detectFramework } from "../discovery/registry.js";
|
|
7
7
|
|
|
8
|
-
const CLI_VERSION = "1.0.0-alpha.
|
|
8
|
+
const CLI_VERSION = "1.0.0-alpha.4";
|
|
9
9
|
|
|
10
10
|
export async function runDoctor({ cwd = process.cwd(), log = console.log } = {}) {
|
|
11
11
|
const checks = [];
|
package/src/commands/init.js
CHANGED
|
@@ -3,7 +3,7 @@ import { randomUUID } from "crypto";
|
|
|
3
3
|
import { validateLicense } from "../license/validate.js";
|
|
4
4
|
import { writeGlobalConfig } from "../config/global.js";
|
|
5
5
|
|
|
6
|
-
const CLI_VERSION = "1.0.0-alpha.
|
|
6
|
+
const CLI_VERSION = "1.0.0-alpha.4";
|
|
7
7
|
|
|
8
8
|
// runInit can be called two ways:
|
|
9
9
|
// 1. Interactive (no answers) — uses enquirer to prompt
|
package/src/commands/scan.js
CHANGED
|
@@ -17,7 +17,7 @@ import { renderCursorRules } from "../output/cursor-rules.js";
|
|
|
17
17
|
import { upsertAgentsMd } from "../output/agents-md.js";
|
|
18
18
|
import { hashContent, readCacheEntry, writeCacheEntry } from "../cache/route-cache.js";
|
|
19
19
|
|
|
20
|
-
const CLI_VERSION = "1.0.0-alpha.
|
|
20
|
+
const CLI_VERSION = "1.0.0-alpha.4";
|
|
21
21
|
|
|
22
22
|
export async function runScan({
|
|
23
23
|
cwd = process.cwd(),
|
package/src/license/log-usage.js
CHANGED
package/src/license/validate.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const LICENSE_KEY_RE = /^WCAG-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}$/;
|
|
2
2
|
|
|
3
|
-
const DEFAULT_API_URL = "https://
|
|
3
|
+
const DEFAULT_API_URL = "https://wcagaudit.io/api/v1/license/validate";
|
|
4
4
|
|
|
5
5
|
export function isValidLicenseFormat(key) {
|
|
6
6
|
return typeof key === "string" && LICENSE_KEY_RE.test(key);
|