driftdetect 0.2.3 → 0.3.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/dist/bin/drift.js +15 -1
- package/dist/bin/drift.js.map +1 -1
- package/dist/commands/boundaries.d.ts.map +1 -0
- package/dist/commands/boundaries.js +602 -0
- package/dist/commands/boundaries.js.map +1 -0
- package/dist/commands/dna/export.d.ts.map +1 -0
- package/dist/commands/dna/export.js +91 -0
- package/dist/commands/dna/export.js.map +1 -0
- package/dist/commands/dna/gene.d.ts.map +1 -0
- package/dist/commands/dna/gene.js +96 -0
- package/dist/commands/dna/gene.js.map +1 -0
- package/dist/commands/dna/index.d.ts.map +1 -0
- package/dist/commands/dna/index.js +25 -0
- package/dist/commands/dna/index.js.map +1 -0
- package/dist/commands/dna/mutations.d.ts.map +1 -0
- package/dist/commands/dna/mutations.js +111 -0
- package/dist/commands/dna/mutations.js.map +1 -0
- package/dist/commands/dna/playbook.d.ts.map +1 -0
- package/dist/commands/dna/playbook.js +67 -0
- package/dist/commands/dna/playbook.js.map +1 -0
- package/dist/commands/dna/scan.d.ts.map +1 -0
- package/dist/commands/dna/scan.js +117 -0
- package/dist/commands/dna/scan.js.map +1 -0
- package/dist/commands/dna/status.d.ts.map +1 -0
- package/dist/commands/dna/status.js +106 -0
- package/dist/commands/dna/status.js.map +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +4 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/parser.d.ts.map +1 -0
- package/dist/commands/parser.js +521 -0
- package/dist/commands/parser.js.map +1 -0
- package/dist/commands/scan.d.ts.map +1 -1
- package/dist/commands/scan.js +118 -3
- package/dist/commands/scan.js.map +1 -1
- package/dist/commands/trends.d.ts.map +1 -0
- package/dist/commands/trends.js +115 -0
- package/dist/commands/trends.js.map +1 -0
- package/dist/commands/watch.js +2 -2
- package/dist/commands/watch.js.map +1 -1
- package/dist/services/boundary-scanner.d.ts.map +1 -0
- package/dist/services/boundary-scanner.js +374 -0
- package/dist/services/boundary-scanner.js.map +1 -0
- package/dist/services/contract-scanner.d.ts.map +1 -1
- package/dist/services/contract-scanner.js +49 -1
- package/dist/services/contract-scanner.js.map +1 -1
- package/dist/services/scanner-service.d.ts.map +1 -1
- package/dist/services/scanner-service.js +32 -1
- package/dist/services/scanner-service.js.map +1 -1
- package/package.json +4 -4
- package/dist/bin/drift.d.ts +0 -11
- package/dist/commands/approve.d.ts +0 -18
- package/dist/commands/check.d.ts +0 -39
- package/dist/commands/dashboard.d.ts +0 -16
- package/dist/commands/export.d.ts +0 -16
- package/dist/commands/files.d.ts +0 -15
- package/dist/commands/ignore.d.ts +0 -18
- package/dist/commands/index.d.ts +0 -18
- package/dist/commands/init.d.ts +0 -19
- package/dist/commands/report.d.ts +0 -20
- package/dist/commands/scan.d.ts +0 -29
- package/dist/commands/status.d.ts +0 -18
- package/dist/commands/watch.d.ts +0 -13
- package/dist/commands/where.d.ts +0 -15
- package/dist/git/hooks.d.ts +0 -108
- package/dist/git/index.d.ts +0 -6
- package/dist/git/staged-files.d.ts +0 -41
- package/dist/index.d.ts +0 -17
- package/dist/reporters/github-reporter.d.ts +0 -13
- package/dist/reporters/gitlab-reporter.d.ts +0 -16
- package/dist/reporters/index.d.ts +0 -9
- package/dist/reporters/json-reporter.d.ts +0 -13
- package/dist/reporters/text-reporter.d.ts +0 -13
- package/dist/reporters/types.d.ts +0 -42
- package/dist/services/contract-scanner.d.ts +0 -35
- package/dist/services/scanner-service.d.ts +0 -166
- package/dist/types/index.d.ts +0 -24
- package/dist/ui/index.d.ts +0 -11
- package/dist/ui/progress.d.ts +0 -115
- package/dist/ui/prompts.d.ts +0 -91
- package/dist/ui/spinner.d.ts +0 -109
- package/dist/ui/table.d.ts +0 -118
package/dist/ui/table.d.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Table - Table formatting for output
|
|
3
|
-
*
|
|
4
|
-
* Provides formatted table output for CLI results.
|
|
5
|
-
*
|
|
6
|
-
* @requirements 29.1
|
|
7
|
-
*/
|
|
8
|
-
import Table from 'cli-table3';
|
|
9
|
-
import type { Severity } from 'driftdetect-core';
|
|
10
|
-
/**
|
|
11
|
-
* Table style presets
|
|
12
|
-
*/
|
|
13
|
-
export type TableStyle = 'default' | 'compact' | 'borderless' | 'minimal';
|
|
14
|
-
/**
|
|
15
|
-
* Table configuration options
|
|
16
|
-
*/
|
|
17
|
-
export interface TableOptions {
|
|
18
|
-
/** Table headers */
|
|
19
|
-
head?: string[];
|
|
20
|
-
/** Column widths */
|
|
21
|
-
colWidths?: number[];
|
|
22
|
-
/** Column alignments */
|
|
23
|
-
colAligns?: Array<'left' | 'center' | 'right'>;
|
|
24
|
-
/** Table style preset */
|
|
25
|
-
style?: TableStyle;
|
|
26
|
-
/** Word wrap long content */
|
|
27
|
-
wordWrap?: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Create a formatted table
|
|
31
|
-
*/
|
|
32
|
-
export declare function createTable(options?: TableOptions): Table.Table;
|
|
33
|
-
/**
|
|
34
|
-
* Format a severity value with color
|
|
35
|
-
*/
|
|
36
|
-
export declare function formatSeverity(severity: Severity): string;
|
|
37
|
-
/**
|
|
38
|
-
* Format a confidence score with color
|
|
39
|
-
*/
|
|
40
|
-
export declare function formatConfidence(confidence: number): string;
|
|
41
|
-
/**
|
|
42
|
-
* Format a count with color based on value
|
|
43
|
-
*/
|
|
44
|
-
export declare function formatCount(count: number, threshold?: number): string;
|
|
45
|
-
/**
|
|
46
|
-
* Format a file path (truncate if too long)
|
|
47
|
-
*/
|
|
48
|
-
export declare function formatPath(path: string, maxLength?: number): string;
|
|
49
|
-
/**
|
|
50
|
-
* Pattern table row data
|
|
51
|
-
*/
|
|
52
|
-
export interface PatternRow {
|
|
53
|
-
id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
category: string;
|
|
56
|
-
confidence: number;
|
|
57
|
-
locations: number;
|
|
58
|
-
outliers: number;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Create a patterns table
|
|
62
|
-
*/
|
|
63
|
-
export declare function createPatternsTable(patterns: PatternRow[]): string;
|
|
64
|
-
/**
|
|
65
|
-
* Violation table row data
|
|
66
|
-
*/
|
|
67
|
-
export interface ViolationRow {
|
|
68
|
-
severity: Severity;
|
|
69
|
-
file: string;
|
|
70
|
-
line: number;
|
|
71
|
-
message: string;
|
|
72
|
-
pattern: string;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Create a violations table
|
|
76
|
-
*/
|
|
77
|
-
export declare function createViolationsTable(violations: ViolationRow[]): string;
|
|
78
|
-
/**
|
|
79
|
-
* Summary table row data
|
|
80
|
-
*/
|
|
81
|
-
export interface SummaryRow {
|
|
82
|
-
label: string;
|
|
83
|
-
value: string | number;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Create a summary table
|
|
87
|
-
*/
|
|
88
|
-
export declare function createSummaryTable(rows: SummaryRow[]): string;
|
|
89
|
-
/**
|
|
90
|
-
* Status summary data
|
|
91
|
-
*/
|
|
92
|
-
export interface StatusSummary {
|
|
93
|
-
totalPatterns: number;
|
|
94
|
-
approvedPatterns: number;
|
|
95
|
-
discoveredPatterns: number;
|
|
96
|
-
ignoredPatterns: number;
|
|
97
|
-
totalViolations: number;
|
|
98
|
-
errors: number;
|
|
99
|
-
warnings: number;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Create a status summary table
|
|
103
|
-
*/
|
|
104
|
-
export declare function createStatusTable(summary: StatusSummary): string;
|
|
105
|
-
/**
|
|
106
|
-
* Category breakdown data
|
|
107
|
-
*/
|
|
108
|
-
export interface CategoryBreakdown {
|
|
109
|
-
category: string;
|
|
110
|
-
patterns: number;
|
|
111
|
-
violations: number;
|
|
112
|
-
coverage: number;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Create a category breakdown table
|
|
116
|
-
*/
|
|
117
|
-
export declare function createCategoryTable(categories: CategoryBreakdown[]): string;
|
|
118
|
-
//# sourceMappingURL=table.d.ts.map
|