@firestartr/cli 1.44.0-snapshot-1 → 1.44.0-snapshot-2
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 -4
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -282293,8 +282293,9 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
282293
282293
|
|
282294
282294
|
|
282295
282295
|
|
282296
|
+
|
282296
282297
|
const lazy_loader_log = src_default()('firestartr:renderer:lazy_loader');
|
282297
|
-
async function loadClaim(claimRef, org, defaults = loadClaimDefaults(), patchClaim, loadInitializers, loadGlobals, loadOverrides, loadNormalizers, cwd, existingRefs = {}) {
|
282298
|
+
async function loadClaim(claimRef, org, defaults = loadClaimDefaults(), patchClaim = loader_patchClaim, loadInitializers, loadGlobals, loadOverrides, loadNormalizers, cwd, existingRefs = {}) {
|
282298
282299
|
let result = existingRefs;
|
282299
282300
|
lazy_loader_log(`Load reference ${claimRef}`);
|
282300
282301
|
initVirtualClaims(org);
|
@@ -282618,7 +282619,7 @@ async function loadClaims(claimsPath = config_getPath('claims')) {
|
|
282618
282619
|
await crawler_crawl(claimsPath, (entry) => {
|
282619
282620
|
return isYamlFile.test(entry);
|
282620
282621
|
}, async (entry, data) => {
|
282621
|
-
const claim =
|
282622
|
+
const claim = loader_patchClaim(catalog_common.io.fromYaml(data), defaultsClaims);
|
282622
282623
|
if (!('kind' in claim && 'name' in claim)) {
|
282623
282624
|
throw new Error(`Invalid claim file ${entry}`);
|
282624
282625
|
}
|
@@ -282655,7 +282656,7 @@ function loadClaimDefaults() {
|
|
282655
282656
|
* - The patched claim
|
282656
282657
|
*
|
282657
282658
|
*/
|
282658
|
-
function
|
282659
|
+
function loader_patchClaim(claim, defaultsClaims) {
|
282659
282660
|
if (defaultsClaims[claim.kind]) {
|
282660
282661
|
const jsonPatchOps = fast_json_patch.compare(claim, defaultsClaims[claim.kind])
|
282661
282662
|
.filter((jp) => {
|
@@ -282799,7 +282800,7 @@ async function loadClaimsList(claimRefList, claimsPath = config_getPath('claims'
|
|
282799
282800
|
};
|
282800
282801
|
const defaults = loadClaimDefaults();
|
282801
282802
|
for (const claimRef of claimRefList) {
|
282802
|
-
const renderedClaimData = await loadClaim(claimRef, getOrg(), defaults,
|
282803
|
+
const renderedClaimData = await loadClaim(claimRef, getOrg(), defaults, loader_patchClaim, loadInitializers, loadGlobals, loadOverrides, loadNormalizers, claimsPath);
|
282803
282804
|
data.renderClaims = lodash_default().merge(data.renderClaims, renderedClaimData);
|
282804
282805
|
}
|
282805
282806
|
const crClaimReferences = [];
|