cdk-insights 1.34.0 → 1.37.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/analysis/templateLevel/checks/crossResourceAntiPatterns/staleCrossRegionFlagCheck.d.ts +3 -0
- package/dist/analysis/templateLevel/checks/crossResourceAntiPatterns/staleCrossRegionFlagCheck.test.d.ts +1 -0
- package/dist/analysis/templateLevel/helpers/findStaleCrossRegionFlag.d.ts +13 -0
- package/dist/analysis/templateLevel/helpers/findStaleCrossRegionFlag.test.d.ts +1 -0
- package/dist/analysis/templateLevel/helpers/levenshtein.d.ts +2 -0
- package/dist/analysis/templateLevel/helpers/levenshtein.test.d.ts +1 -0
- package/dist/entry.js +182 -181
- package/dist/helpers/cache/fileBasedCache.d.ts +3 -0
- package/dist/helpers/cache/fileBasedCacheDisk.test.d.ts +1 -0
- package/dist/index.js +118 -117
- package/dist/shared/ciDetection.d.ts +13 -0
- package/dist/shared/ciDetection.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/analysis/templateLevel/checks/crossResourceAntiPatterns/staleCrossRegionFlagCheck.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction } from '../../../../types/analysis.types';
|
|
2
|
+
export declare const __resetStaleCrossRegionFlagLatchForTest: () => void;
|
|
3
|
+
export declare const checkStaleCrossRegionFlag: (_template: CloudFormationStack, createFinding: CreateFindingFunction) => AnalysisResults;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface StaleFlagMatch {
|
|
2
|
+
filePath: string;
|
|
3
|
+
line: number;
|
|
4
|
+
/** The exact matched substring, useful for the finding message. */
|
|
5
|
+
excerpt: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Search the user's project for the legacy CDK Stack prop
|
|
9
|
+
* `crossRegionReferences: true`. Returns the first match found, or null
|
|
10
|
+
* when nothing is detected. Search is bounded to `bin/`, `lib/`, `src/`
|
|
11
|
+
* (if they exist) and stops at the first hit.
|
|
12
|
+
*/
|
|
13
|
+
export declare const findStaleCrossRegionFlag: (projectRoot: string, searchDirs?: string[]) => StaleFlagMatch | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|