@firestartr/cli 2.7.0-snapshot-14 → 2.7.0-snapshot-15
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
|
},
|
|
@@ -304504,7 +304511,7 @@ const crs_analyzerSubcommand = {
|
|
|
304504
304511
|
};
|
|
304505
304512
|
|
|
304506
304513
|
;// CONCATENATED MODULE: ./package.json
|
|
304507
|
-
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-
|
|
304514
|
+
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-15"}');
|
|
304508
304515
|
;// CONCATENATED MODULE: ../../package.json
|
|
304509
304516
|
const package_namespaceObject_1 = {"i8":"2.6.4"};
|
|
304510
304517
|
;// 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
|
} | {
|