@firestartr/cli 1.42.1-snapshot-2 → 1.42.1-snapshot-3
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
@@ -287185,7 +287185,6 @@ function extractRefs(renderClaims, kind) {
|
|
287185
287185
|
function extractAllRefs(claimData) {
|
287186
287186
|
const refs = getClaimReferences(claimData);
|
287187
287187
|
const parsedClaim = yaml_dist.parse(claimData);
|
287188
|
-
refs.push(...extractVirtualRefs(parsedClaim));
|
287189
287188
|
switch (parsedClaim.kind) {
|
287190
287189
|
case 'TFWorkspaceClaim': {
|
287191
287190
|
const tfWorkspaceRefs = getTfWorkspacesRefs(parsedClaim.providers.terraform.values);
|
@@ -287206,20 +287205,6 @@ function extractAllRefs(claimData) {
|
|
287206
287205
|
}
|
287207
287206
|
return [...new Set(refs)];
|
287208
287207
|
}
|
287209
|
-
function extractVirtualRefs(parsedClaim) {
|
287210
|
-
const virtualRefs = [];
|
287211
|
-
switch (parsedClaim.kind) {
|
287212
|
-
case 'ComponentClaim': {
|
287213
|
-
if (parsedClaim.providers.github.orgPermissions === 'view' ||
|
287214
|
-
parsedClaim.providers.github.orgPermissions === 'maintain') {
|
287215
|
-
refsExtractor_log(`Adding virtual reference for ${parsedClaim.providers.github.org}-all`);
|
287216
|
-
virtualRefs.push(`group:${parsedClaim.providers.github.org}-all`);
|
287217
|
-
}
|
287218
|
-
break;
|
287219
|
-
}
|
287220
|
-
}
|
287221
|
-
return virtualRefs;
|
287222
|
-
}
|
287223
287208
|
function getGroupParentRef(parent, references = []) {
|
287224
287209
|
if (!parent)
|
287225
287210
|
return [];
|
@@ -287330,7 +287315,6 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
287330
287315
|
const lazy_loader_log = src_default()('firestartr:renderer:lazy_loader');
|
287331
287316
|
async function loadClaim(claimRef, org, defaults, patchClaim, loadInitializers, loadGlobals, loadOverrides, loadNormalizers, cwd, existingRefs = {}) {
|
287332
287317
|
let result = existingRefs;
|
287333
|
-
lazy_loader_log(`Load reference ${claimRef}`);
|
287334
287318
|
initVirtualClaims(org);
|
287335
287319
|
// cargas datos con grep
|
287336
287320
|
const claimData = await lazyGetClaim(claimRef.split(/-/)[0], claimRef.replace(/^[^-]+-/, ''), org, cwd);
|
@@ -287358,7 +287342,6 @@ const LoadedClaims = {};
|
|
287358
287342
|
const VisitedClaims = {};
|
287359
287343
|
async function lazyGetClaim(kind, name, org, cwd) {
|
287360
287344
|
const indice = `${kind}-${name}`;
|
287361
|
-
lazy_loader_log(`Lazy loading ${kind}-${name} with index ${indice}`);
|
287362
287345
|
if (indice in LoadedClaims)
|
287363
287346
|
return LoadedClaims[indice];
|
287364
287347
|
if (isVirtualClaim(kind, name)) {
|
@@ -287447,7 +287430,6 @@ async function setNonVirtualClaimAdditionalData(renderedData, claim, claimRef, l
|
|
287447
287430
|
async function loadVirtualClaim(kind, name, org) {
|
287448
287431
|
const virtualClaim = getVirtualClaim(kind, name);
|
287449
287432
|
const expandedClaim = await virtualClaim.expand({ org });
|
287450
|
-
lazy_loader_log(`Loading virtual claim ${kind} ${name} ${org}`);
|
287451
287433
|
LoadedClaims[`${kind}-${name}`] = catalog_common.io.toYaml(expandedClaim);
|
287452
287434
|
VisitedClaims[`${kind}-${name}`] = 'virtual';
|
287453
287435
|
}
|
@@ -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: Record<string, never> | {
|
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
|
+
};
|
455
|
+
committer: Record<string, never> | {
|
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
|
+
};
|
479
479
|
parents: {
|
480
480
|
sha: string;
|
481
481
|
url: string;
|