prodlint 0.8.1 → 0.9.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/index.d.ts CHANGED
@@ -50,7 +50,7 @@ interface CategoryScore {
50
50
  score: number;
51
51
  findingCount: number;
52
52
  }
53
- interface ScanResult {
53
+ interface ScanResult$1 {
54
54
  version: string;
55
55
  scannedPath: string;
56
56
  filesScanned: number;
@@ -69,18 +69,20 @@ interface ScanOptions {
69
69
  ignore?: string[];
70
70
  }
71
71
 
72
- declare function scan(options: ScanOptions): Promise<ScanResult>;
72
+ declare function scan(options: ScanOptions): Promise<ScanResult$1>;
73
73
 
74
74
  declare const rules: Rule[];
75
75
 
76
76
  type CheckStatus = "pass" | "fail" | "warn" | "info";
77
77
  type CheckSeverity = "critical" | "high" | "medium" | "low";
78
+ type CheckMaturity = "established" | "emerging";
78
79
  interface ScanCheck {
79
80
  id: string;
80
81
  name: string;
81
82
  description: string;
82
83
  status: CheckStatus;
83
84
  severity: CheckSeverity;
85
+ maturity: CheckMaturity;
84
86
  points: number;
85
87
  maxPoints: number;
86
88
  details?: string;
@@ -99,7 +101,7 @@ interface CheckContext {
99
101
  html: string | null;
100
102
  loadTimeMs: number | null;
101
103
  }
102
- interface WebScanResult {
104
+ interface ScanResult {
103
105
  url: string;
104
106
  domain: string;
105
107
  scannedAt: string;
@@ -114,6 +116,6 @@ interface WebScanResult {
114
116
  };
115
117
  }
116
118
 
117
- declare function runWebScan(targetUrl: string): Promise<WebScanResult>;
119
+ declare function runWebScan(targetUrl: string): Promise<ScanResult>;
118
120
 
119
- export { type Category, type CategoryScore, type FileContext, type Finding, type ProjectContext, type Rule, type ScanOptions, type ScanResult, type Severity, type CheckContext as WebCheckContext, type ScanCheck as WebScanCheck, type WebScanResult, rules, runWebScan, scan };
121
+ export { type Category, type CategoryScore, type FileContext, type Finding, type ProjectContext, type Rule, type ScanOptions, type ScanResult$1 as ScanResult, type Severity, type CheckContext as WebCheckContext, type ScanCheck as WebScanCheck, type ScanResult as WebScanResult, rules, runWebScan, scan };