@firestartr/cli 1.41.1-snapshot-6 → 1.42.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/build/index.js +5 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -287213,7 +287213,7 @@ function extractVirtualRefs(parsedClaim) {
|
|
287213
287213
|
if (parsedClaim.providers.github.orgPermissions === 'view' ||
|
287214
287214
|
parsedClaim.providers.github.orgPermissions === 'maintain') {
|
287215
287215
|
refsExtractor_log(`Adding virtual reference for ${parsedClaim.providers.github.org}-all`);
|
287216
|
-
virtualRefs.push(`
|
287216
|
+
virtualRefs.push(`GroupClaim-${parsedClaim.providers.github.org}-all`);
|
287217
287217
|
}
|
287218
287218
|
break;
|
287219
287219
|
}
|
@@ -287330,7 +287330,9 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
287330
287330
|
const lazy_loader_log = src_default()('firestartr:renderer:lazy_loader');
|
287331
287331
|
async function loadClaim(claimRef, org, defaults, patchClaim, loadInitializers, loadGlobals, loadOverrides, loadNormalizers, cwd, existingRefs = {}) {
|
287332
287332
|
let result = existingRefs;
|
287333
|
+
lazy_loader_log(`Load reference ${claimRef}`);
|
287333
287334
|
initVirtualClaims(org);
|
287335
|
+
lazy_loader_log(`Load reference (parts) ${claimRef.split(/-/)[0]} ${claimRef.replace(/^[^-]+-/, '')}`);
|
287334
287336
|
// cargas datos con grep
|
287335
287337
|
const claimData = await lazyGetClaim(claimRef.split(/-/)[0], claimRef.replace(/^[^-]+-/, ''), org, cwd);
|
287336
287338
|
const claim = patchClaim(catalog_common.io.fromYaml(claimData), defaults);
|
@@ -287357,6 +287359,7 @@ const LoadedClaims = {};
|
|
287357
287359
|
const VisitedClaims = {};
|
287358
287360
|
async function lazyGetClaim(kind, name, org, cwd) {
|
287359
287361
|
const indice = `${kind}-${name}`;
|
287362
|
+
lazy_loader_log(`Lazy loading ${kind}-${name} with index ${indice}`);
|
287360
287363
|
if (indice in LoadedClaims)
|
287361
287364
|
return LoadedClaims[indice];
|
287362
287365
|
if (isVirtualClaim(kind, name)) {
|
@@ -287445,6 +287448,7 @@ async function setNonVirtualClaimAdditionalData(renderedData, claim, claimRef, l
|
|
287445
287448
|
async function loadVirtualClaim(kind, name, org) {
|
287446
287449
|
const virtualClaim = getVirtualClaim(kind, name);
|
287447
287450
|
const expandedClaim = await virtualClaim.expand({ org });
|
287451
|
+
lazy_loader_log(`Loading virtual claim ${kind} ${name} ${org}`);
|
287448
287452
|
LoadedClaims[`${kind}-${name}`] = catalog_common.io.toYaml(expandedClaim);
|
287449
287453
|
VisitedClaims[`${kind}-${name}`] = 'virtual';
|
287450
287454
|
}
|