theaccessible-audit-ci 0.2.0 → 0.2.1
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/artifact.d.ts +1 -1
- package/dist/cli.js +8 -8
- package/dist/exit-codes.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/output.d.ts +1 -1
- package/dist/poll.d.ts +1 -1
- package/package.json +1 -1
package/dist/artifact.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { Command } from 'commander';
|
|
3
3
|
import { readFileSync } from 'node:fs';
|
|
4
4
|
import { resolve } from 'node:path';
|
|
5
|
-
import { prepareBuildArtifact } from './artifact';
|
|
6
|
-
import { ApiClient, ApiError } from './api-client';
|
|
7
|
-
import { loadConfig, ConfigError } from './config';
|
|
8
|
-
import { decideExitCode, ExitCode } from './exit-codes';
|
|
9
|
-
import { humanSummary, writeOutputs } from './output';
|
|
10
|
-
import { pollUntilComplete } from './poll';
|
|
11
|
-
import { detectGitContext } from './git';
|
|
5
|
+
import { prepareBuildArtifact } from './artifact.js';
|
|
6
|
+
import { ApiClient, ApiError } from './api-client.js';
|
|
7
|
+
import { loadConfig, ConfigError } from './config.js';
|
|
8
|
+
import { decideExitCode, ExitCode } from './exit-codes.js';
|
|
9
|
+
import { humanSummary, writeOutputs } from './output.js';
|
|
10
|
+
import { pollUntilComplete } from './poll.js';
|
|
11
|
+
import { detectGitContext } from './git.js';
|
|
12
12
|
const program = new Command();
|
|
13
13
|
function getApiKey() {
|
|
14
14
|
const key = process.env.THEACCESSIBLE_API_KEY;
|
|
@@ -29,7 +29,7 @@ function maskKey(k) {
|
|
|
29
29
|
program
|
|
30
30
|
.name('theaccessible')
|
|
31
31
|
.description('TheAccessible CI/CD audit CLI')
|
|
32
|
-
.version('0.1
|
|
32
|
+
.version('0.2.1');
|
|
33
33
|
program
|
|
34
34
|
.command('audit')
|
|
35
35
|
.argument('[target]', 'Target name from .theaccessible.yml (default: first target)')
|
package/dist/exit-codes.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const ExitCode: {
|
|
|
4
4
|
readonly TOOL_ERROR: 2;
|
|
5
5
|
};
|
|
6
6
|
export type ExitCodeValue = (typeof ExitCode)[keyof typeof ExitCode];
|
|
7
|
-
import type { Config } from './config';
|
|
7
|
+
import type { Config } from './config.js';
|
|
8
8
|
export interface GateInputs {
|
|
9
9
|
grade: 'A' | 'B' | 'C' | 'D' | 'F';
|
|
10
10
|
newCriticalIssues: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ApiClient, type AuditJobResponse, type AuditRequest } from './api-client';
|
|
2
|
-
export { loadConfig, ConfigSchema, type Config } from './config';
|
|
3
|
-
export { ExitCode, decideExitCode } from './exit-codes';
|
|
4
|
-
export { humanSummary, writeOutputs } from './output';
|
|
5
|
-
export { pollUntilComplete } from './poll';
|
|
1
|
+
export { ApiClient, type AuditJobResponse, type AuditRequest } from './api-client.js';
|
|
2
|
+
export { loadConfig, ConfigSchema, type Config } from './config.js';
|
|
3
|
+
export { ExitCode, decideExitCode } from './exit-codes.js';
|
|
4
|
+
export { humanSummary, writeOutputs } from './output.js';
|
|
5
|
+
export { pollUntilComplete } from './poll.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ApiClient } from './api-client';
|
|
2
|
-
export { loadConfig, ConfigSchema } from './config';
|
|
3
|
-
export { ExitCode, decideExitCode } from './exit-codes';
|
|
4
|
-
export { humanSummary, writeOutputs } from './output';
|
|
5
|
-
export { pollUntilComplete } from './poll';
|
|
1
|
+
export { ApiClient } from './api-client.js';
|
|
2
|
+
export { loadConfig, ConfigSchema } from './config.js';
|
|
3
|
+
export { ExitCode, decideExitCode } from './exit-codes.js';
|
|
4
|
+
export { humanSummary, writeOutputs } from './output.js';
|
|
5
|
+
export { pollUntilComplete } from './poll.js';
|
package/dist/output.d.ts
CHANGED
package/dist/poll.d.ts
CHANGED