@firestartr/cli 1.41.1-SNAPSHOT → 1.41.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/build/index.js
CHANGED
@@ -285899,7 +285899,7 @@ class FirestartrAllClaim {
|
|
285899
285899
|
},
|
285900
285900
|
};
|
285901
285901
|
}
|
285902
|
-
async expand(
|
285902
|
+
async expand(config = {}) {
|
285903
285903
|
const { org } = config;
|
285904
285904
|
const groupClaim = {
|
285905
285905
|
kind: 'GroupClaim',
|
@@ -287329,7 +287329,7 @@ async function loadClaim(claimRef, org, defaults, patchClaim, loadInitializers,
|
|
287329
287329
|
result = await setNonVirtualClaimAdditionalData(result, claim, claimRef, loadInitializers, loadGlobals, loadOverrides, loadNormalizers);
|
287330
287330
|
}
|
287331
287331
|
const claimKind = claim.kind;
|
287332
|
-
const references = extractAllRefs(
|
287332
|
+
const references = extractAllRefs(catalog_common.io.toYaml(claim));
|
287333
287333
|
for (const ref of references) {
|
287334
287334
|
if (!result[ref]) {
|
287335
287335
|
const resolvedReferences = await loadClaim(ref, org, defaults, patchClaim, loadInitializers, loadGlobals, loadOverrides, loadNormalizers, cwd, result);
|
@@ -287429,7 +287429,7 @@ async function setNonVirtualClaimAdditionalData(renderedData, claim, claimRef, l
|
|
287429
287429
|
}
|
287430
287430
|
async function loadVirtualClaim(kind, name, org) {
|
287431
287431
|
const virtualClaim = getVirtualClaim(kind, name);
|
287432
|
-
const expandedClaim = await virtualClaim.expand({
|
287432
|
+
const expandedClaim = await virtualClaim.expand({ org });
|
287433
287433
|
LoadedClaims[`${kind}-${name}`] = catalog_common.io.toYaml(expandedClaim);
|
287434
287434
|
VisitedClaims[`${kind}-${name}`] = 'virtual';
|
287435
287435
|
}
|
@@ -287774,26 +287774,10 @@ async function loadAll() {
|
|
287774
287774
|
})
|
287775
287775
|
.then(async () => {
|
287776
287776
|
for (const virtualClaim of virtualClaims) {
|
287777
|
-
const expandedClaim = await virtualClaim.expand(
|
287778
|
-
|
287779
|
-
|
287780
|
-
|
287781
|
-
context: {
|
287782
|
-
backend: {
|
287783
|
-
ref: {
|
287784
|
-
kind: 'FirestartrProviderConfig',
|
287785
|
-
name: 'firestartr-terraform-state',
|
287786
|
-
},
|
287787
|
-
},
|
287788
|
-
provider: {
|
287789
|
-
ref: {
|
287790
|
-
kind: 'FirestartrProviderConfig',
|
287791
|
-
name: 'github-app',
|
287792
|
-
},
|
287793
|
-
},
|
287794
|
-
},
|
287795
|
-
},
|
287796
|
-
};
|
287777
|
+
const expandedClaim = await virtualClaim.expand({
|
287778
|
+
org: getOrg(),
|
287779
|
+
});
|
287780
|
+
const defaultConfig = virtualClaim.getDefaultConfig();
|
287797
287781
|
const renderClaim = {
|
287798
287782
|
claim: expandedClaim,
|
287799
287783
|
claimPath: 'virtual',
|
@@ -4,11 +4,12 @@ export declare function initVirtualClaims(org: string): void;
|
|
4
4
|
export declare function isVirtualClaim(kind: string, name: string): boolean;
|
5
5
|
export declare function getVirtualClaim(kind: string, name: string): any;
|
6
6
|
export interface IVirtualClaim {
|
7
|
-
expand(
|
7
|
+
expand(config?: any): Promise<IClaim>;
|
8
|
+
getDefaultConfig(): any;
|
8
9
|
}
|
9
10
|
export declare class FirestartrAllClaim implements IVirtualClaim {
|
10
11
|
DEFAULT_CONFIG: any;
|
11
|
-
expand(
|
12
|
+
expand(config?: any): Promise<IClaim>;
|
12
13
|
expandMembers(renderClaims: RenderClaims): string[];
|
13
14
|
getDefaultConfig(): any;
|
14
15
|
}
|
@@ -428,7 +428,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
428
428
|
verified_at: string;
|
429
429
|
};
|
430
430
|
};
|
431
|
-
author:
|
431
|
+
author: {
|
432
432
|
name?: string;
|
433
433
|
email?: string;
|
434
434
|
login: string;
|
@@ -451,8 +451,8 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
451
451
|
site_admin: boolean;
|
452
452
|
starred_at?: string;
|
453
453
|
user_view_type?: string;
|
454
|
-
}
|
455
|
-
committer:
|
454
|
+
} | Record<string, never>;
|
455
|
+
committer: {
|
456
456
|
name?: string;
|
457
457
|
email?: string;
|
458
458
|
login: string;
|
@@ -475,7 +475,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
475
475
|
site_admin: boolean;
|
476
476
|
starred_at?: string;
|
477
477
|
user_view_type?: string;
|
478
|
-
}
|
478
|
+
} | Record<string, never>;
|
479
479
|
parents: {
|
480
480
|
sha: string;
|
481
481
|
url: string;
|