@firestartr/cli 2.7.0-snapshot-14 → 2.7.0-snapshot-16
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
|
@@ -285421,6 +285421,9 @@ class FeaturesOverrider extends OverriderPatches {
|
|
|
285421
285421
|
identify() {
|
|
285422
285422
|
return `feature/${featureName}`;
|
|
285423
285423
|
},
|
|
285424
|
+
applicable() {
|
|
285425
|
+
return { applicableProviders: ['catalog', 'github'] };
|
|
285426
|
+
},
|
|
285424
285427
|
async post(cr) {
|
|
285425
285428
|
return utils_renderFeature(featureName, featureVersion, renderedFeatureConfig, cr, claim.name);
|
|
285426
285429
|
},
|
|
@@ -285431,8 +285434,12 @@ class FeaturesOverrider extends OverriderPatches {
|
|
|
285431
285434
|
return true;
|
|
285432
285435
|
},
|
|
285433
285436
|
async apply(cr) {
|
|
285437
|
+
if (!renderedFeatureConfig) {
|
|
285438
|
+
logger.warn(`Feature ${featureName}: renderedFeatureConfig is null, skipping post-patch`);
|
|
285439
|
+
return cr;
|
|
285440
|
+
}
|
|
285434
285441
|
const provider = helperCTX(this).provider;
|
|
285435
|
-
const jsonPatches = renderedFeatureConfig.patches[provider] || [];
|
|
285442
|
+
const jsonPatches = renderedFeatureConfig.patches?.[provider] || [];
|
|
285436
285443
|
fast_json_patch_default().applyPatch(cr, jsonPatches);
|
|
285437
285444
|
return cr;
|
|
285438
285445
|
},
|
|
@@ -290875,6 +290882,12 @@ async function runRenderer(globalsPath, initializersPath, claimsPath, crsPath, c
|
|
|
290875
290882
|
setPath('claimsDefaults', claimsDefaults);
|
|
290876
290883
|
setRenamesEnabled(renamesEnabled);
|
|
290877
290884
|
setExcludedPaths(excludedPaths);
|
|
290885
|
+
if (!repositoryUrl) {
|
|
290886
|
+
const org = process.env['ORG'];
|
|
290887
|
+
if (org) {
|
|
290888
|
+
repositoryUrl = `https://github.com/${org}/claims`;
|
|
290889
|
+
}
|
|
290890
|
+
}
|
|
290878
290891
|
setRepositoryUrl(repositoryUrl);
|
|
290879
290892
|
setDefaultBranch(defaultBranch ?? 'main');
|
|
290880
290893
|
const catalogApp = new lib.App({
|
|
@@ -304504,7 +304517,7 @@ const crs_analyzerSubcommand = {
|
|
|
304504
304517
|
};
|
|
304505
304518
|
|
|
304506
304519
|
;// CONCATENATED MODULE: ./package.json
|
|
304507
|
-
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-
|
|
304520
|
+
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-16"}');
|
|
304508
304521
|
;// CONCATENATED MODULE: ../../package.json
|
|
304509
304522
|
const package_namespaceObject_1 = {"i8":"2.6.4"};
|
|
304510
304523
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|
|
@@ -16,6 +16,9 @@ export declare class FeaturesOverrider extends OverriderPatches {
|
|
|
16
16
|
validate(_cr: any): boolean;
|
|
17
17
|
apply(cr: any): Promise<any>;
|
|
18
18
|
identify(): string;
|
|
19
|
+
applicable(): {
|
|
20
|
+
applicableProviders: string[];
|
|
21
|
+
};
|
|
19
22
|
post(cr: any): Promise<import("../claims/github/repositoryFeature").IGithubRepositoryFeatureClaim>;
|
|
20
23
|
isPostPatch?: undefined;
|
|
21
24
|
} | {
|