@firestartr/cli 1.59.0-snapshot-14 → 1.59.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
CHANGED
|
@@ -366104,7 +366104,7 @@ function importedsRefsWalker(renderClaim) {
|
|
|
366104
366104
|
// the property can be another object, an array, or a primitive value
|
|
366105
366105
|
// has a function to resolve
|
|
366106
366106
|
// has to be an array of functions with
|
|
366107
|
-
// the following signature: (solver:
|
|
366107
|
+
// the following signature: (solver: (type: string, value: string) => Promise<string>) => Promise<void>
|
|
366108
366108
|
const symbolsToResolve = [];
|
|
366109
366109
|
walk(renderClaim.claim, symbolsToResolve, renderClaim);
|
|
366110
366110
|
return symbolsToResolve;
|
|
@@ -366132,15 +366132,15 @@ function walkObject(obj, symbolsToResolve, renderClaim) {
|
|
|
366132
366132
|
continue;
|
|
366133
366133
|
}
|
|
366134
366134
|
const type = match.groups?.type;
|
|
366135
|
-
const
|
|
366135
|
+
const capturedKey = key;
|
|
366136
366136
|
if (type) {
|
|
366137
366137
|
cdk8s_renderer_src_logger.info(`Found an imported-ref in the claim with key ${key} and value ${value}. This will be resolved later.`);
|
|
366138
366138
|
symbolsToResolve.push(async (solver) => {
|
|
366139
|
-
const resolvedValue = await solver(type, match.groups?.value);
|
|
366139
|
+
const resolvedValue = await solver(type, match.groups?.value ?? '');
|
|
366140
366140
|
cdk8s_renderer_src_logger.info(`Resolved imported-ref with key ${key} and value ${value} to ${resolvedValue} in path ${renderClaim.claimPath}`);
|
|
366141
|
-
obj[
|
|
366141
|
+
obj[capturedKey] = resolvedValue;
|
|
366142
366142
|
if (!renderClaim.claimPath) {
|
|
366143
|
-
throw new Error(
|
|
366143
|
+
throw new Error(`claimPath is required to write the claim after resolving imported refs in ${capturedKey}`);
|
|
366144
366144
|
}
|
|
366145
366145
|
await catalog_common.io.writeClaim(renderClaim.claim, renderClaim.claimPath);
|
|
366146
366146
|
});
|
|
@@ -366162,12 +366162,15 @@ function walkArray(arr, symbolsToResolve, renderClaim) {
|
|
|
366162
366162
|
cdk8s_renderer_src_logger.info(`Found an imported-ref in the claim with value ${value}. This will be resolved later.`);
|
|
366163
366163
|
const type = match.groups?.type;
|
|
366164
366164
|
if (type) {
|
|
366165
|
-
const
|
|
366165
|
+
const capturedIndex = i;
|
|
366166
366166
|
symbolsToResolve.push(async (solver) => {
|
|
366167
|
-
const resolvedValue = await solver(type, match.groups?.value);
|
|
366167
|
+
const resolvedValue = await solver(type, match.groups?.value ?? '');
|
|
366168
366168
|
cdk8s_renderer_src_logger.info(`Resolved imported-ref with value ${value} to ${resolvedValue} in path ${renderClaim.claimPath}`);
|
|
366169
|
-
arr[
|
|
366170
|
-
|
|
366169
|
+
arr[capturedIndex] = resolvedValue;
|
|
366170
|
+
if (!renderClaim.claimPath) {
|
|
366171
|
+
throw new Error(`claimPath is required to write the claim after resolving imported refs in ${capturedIndex}`);
|
|
366172
|
+
}
|
|
366173
|
+
await catalog_common.io.writeClaim(renderClaim.claim, renderClaim.claimPath);
|
|
366171
366174
|
});
|
|
366172
366175
|
}
|
|
366173
366176
|
}
|
|
@@ -370408,7 +370411,7 @@ function provisionCodeowners(scope, repo, branchDefault, fsGithubRepository) {
|
|
|
370408
370411
|
const config = {
|
|
370409
370412
|
dependsOn: [repo, branchDefault],
|
|
370410
370413
|
branch: fsGithubRepository.spec.repo.defaultBranch,
|
|
370411
|
-
commitMessage: '
|
|
370414
|
+
commitMessage: 'ci: provision CODEOWNERS file',
|
|
370412
370415
|
content: fsGithubRepository.spec.repo.codeowners,
|
|
370413
370416
|
file: '.github/CODEOWNERS',
|
|
370414
370417
|
overwriteOnCreate: true,
|
|
@@ -370714,7 +370717,7 @@ function provisionFeatureFiles(scope, feature) {
|
|
|
370714
370717
|
: {};
|
|
370715
370718
|
const repoConfig = {
|
|
370716
370719
|
branch: file.targetBranch || defaultBranchName,
|
|
370717
|
-
commitMessage: `
|
|
370720
|
+
commitMessage: `ci: ${feature.spec.type} ${feature.spec.version}`,
|
|
370718
370721
|
content: cdktf_lib.Fn.base64decode(file.content),
|
|
370719
370722
|
file: file.path,
|
|
370720
370723
|
repository: feature.resolveRef(feature.spec.repositoryTarget.ref),
|
|
@@ -376749,9 +376752,9 @@ const crs_analyzerSubcommand = {
|
|
|
376749
376752
|
};
|
|
376750
376753
|
|
|
376751
376754
|
;// CONCATENATED MODULE: ./package.json
|
|
376752
|
-
const package_namespaceObject =
|
|
376755
|
+
const package_namespaceObject = {"i8":"1.59.0"};
|
|
376753
376756
|
;// CONCATENATED MODULE: ../../package.json
|
|
376754
|
-
const package_namespaceObject_1 = {"i8":"1.
|
|
376757
|
+
const package_namespaceObject_1 = {"i8":"1.59.0"};
|
|
376755
376758
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|
|
376756
376759
|
|
|
376757
376760
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RenderClaimData } from './types';
|
|
2
|
-
type SymbolResolver = (
|
|
2
|
+
type SymbolResolver = (solver: (type: string, value: string) => Promise<string>) => Promise<void>;
|
|
3
3
|
export declare function importedsRefsWalker(renderClaim: RenderClaimData): SymbolResolver[];
|
|
4
4
|
export {};
|