@firestartr/cli 1.45.0-snapshot-8 → 1.45.0-snapshot-10
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
@@ -271641,7 +271641,6 @@ async function crawlWithExclusions(dir, filter, exec, excludedPaths = []) {
|
|
271641
271641
|
}, exec);
|
271642
271642
|
}
|
271643
271643
|
catch (err) {
|
271644
|
-
console.log(err);
|
271645
271644
|
throw `Crawling with exclusions: ${dir}: ${err}`;
|
271646
271645
|
}
|
271647
271646
|
}
|
@@ -271667,7 +271666,6 @@ async function crawler_crawl(dir, filter, exec) {
|
|
271667
271666
|
});
|
271668
271667
|
}
|
271669
271668
|
catch (err) {
|
271670
|
-
console.log(err);
|
271671
271669
|
throw `Crawling ${dir}: ${err}`;
|
271672
271670
|
}
|
271673
271671
|
}
|
@@ -271728,14 +271726,13 @@ async function crawlDirectory(dirEnt, exec) {
|
|
271728
271726
|
for (const entry of entries) {
|
271729
271727
|
const testDir = await isDir(entry);
|
271730
271728
|
if (testDir) {
|
271731
|
-
slurps.push(crawlDirectory(entry, exec));
|
271729
|
+
slurps.push(() => crawlDirectory(entry, exec));
|
271732
271730
|
}
|
271733
271731
|
else {
|
271734
|
-
slurps.push(slurpFile(entry, exec));
|
271732
|
+
slurps.push(() => slurpFile(entry, exec));
|
271735
271733
|
}
|
271736
271734
|
}
|
271737
|
-
return Promise.all(slurps).catch((err) => {
|
271738
|
-
console.error(err);
|
271735
|
+
return Promise.all(slurps.map((f) => f())).catch((err) => {
|
271739
271736
|
throw `crawlDirectory: ${err} on ${dirEnt}`;
|
271740
271737
|
});
|
271741
271738
|
}
|
@@ -274223,8 +274220,13 @@ async function loadClaims(claimsPath = config_getPath('claims')) {
|
|
274223
274220
|
if (!('kind' in claim && 'name' in claim)) {
|
274224
274221
|
throw new Error(`Invalid claim file ${entry}`);
|
274225
274222
|
}
|
274226
|
-
|
274227
|
-
|
274223
|
+
try {
|
274224
|
+
validateClaim(claim, base[`${claim.kind}Schema`]);
|
274225
|
+
await optionalValidation(claim);
|
274226
|
+
}
|
274227
|
+
catch (err) {
|
274228
|
+
throw new Error(`Validating ${claim.kind + '-' + claim.name}: ${JSON.stringify(err, null, 2)}`);
|
274229
|
+
}
|
274228
274230
|
if (result[`${claim.kind}-${claim.name}`]) {
|
274229
274231
|
throw new Error(`Duplicate claim ${claim.kind}-${claim.name}`);
|
274230
274232
|
}
|
@@ -279975,7 +279977,13 @@ async function runRenderer(globalsPath, initializersPath, claimsPath, crsPath, c
|
|
279975
279977
|
if (claimRefs) {
|
279976
279978
|
claimRefsList = claimRefs.replace(/\s/g, '').split(',');
|
279977
279979
|
}
|
279978
|
-
|
279980
|
+
try {
|
279981
|
+
await renderer_render(catalogApp, firestartrApp, validateReferentialIntegrity === 'enabled' ? true : false, claimRefsList);
|
279982
|
+
}
|
279983
|
+
catch (error) {
|
279984
|
+
console.log(`Rendering the system: \n ${error}`);
|
279985
|
+
process.exit(1);
|
279986
|
+
}
|
279979
279987
|
catalogApp.synth();
|
279980
279988
|
firestartrApp.synth();
|
279981
279989
|
}
|
@@ -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;
|