@go-to-k/cdkd 0.83.0 → 0.83.1
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/dist/cli.js +34 -1
- package/dist/cli.js.map +2 -2
- package/dist/go-to-k-cdkd-0.83.1.tgz +0 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.83.0.tgz +0 -0
package/dist/cli.js
CHANGED
|
@@ -21471,6 +21471,39 @@ var TemplateParser = class {
|
|
|
21471
21471
|
}
|
|
21472
21472
|
return;
|
|
21473
21473
|
}
|
|
21474
|
+
if ("Fn::Sub" in obj) {
|
|
21475
|
+
const subValue = obj["Fn::Sub"];
|
|
21476
|
+
let body;
|
|
21477
|
+
let mapKeys;
|
|
21478
|
+
if (typeof subValue === "string") {
|
|
21479
|
+
body = subValue;
|
|
21480
|
+
} else if (Array.isArray(subValue) && subValue.length >= 1 && typeof subValue[0] === "string") {
|
|
21481
|
+
body = subValue[0];
|
|
21482
|
+
const variables = subValue[1];
|
|
21483
|
+
if (variables && typeof variables === "object" && !Array.isArray(variables)) {
|
|
21484
|
+
const varMap = variables;
|
|
21485
|
+
mapKeys = new Set(Object.keys(varMap));
|
|
21486
|
+
Object.values(varMap).forEach((v) => this.extractRefsFromValue(v, dependencies));
|
|
21487
|
+
}
|
|
21488
|
+
}
|
|
21489
|
+
if (body !== void 0) {
|
|
21490
|
+
for (const match of body.matchAll(/\$\{([^}]+)\}/g)) {
|
|
21491
|
+
const placeholder = match[1];
|
|
21492
|
+
if (!placeholder)
|
|
21493
|
+
continue;
|
|
21494
|
+
const dot = placeholder.indexOf(".");
|
|
21495
|
+
const name = dot >= 0 ? placeholder.slice(0, dot) : placeholder;
|
|
21496
|
+
if (!name)
|
|
21497
|
+
continue;
|
|
21498
|
+
if (name.startsWith("AWS::"))
|
|
21499
|
+
continue;
|
|
21500
|
+
if (mapKeys?.has(name))
|
|
21501
|
+
continue;
|
|
21502
|
+
dependencies.add(name);
|
|
21503
|
+
}
|
|
21504
|
+
}
|
|
21505
|
+
return;
|
|
21506
|
+
}
|
|
21474
21507
|
Object.values(obj).forEach((v) => this.extractRefsFromValue(v, dependencies));
|
|
21475
21508
|
}
|
|
21476
21509
|
/**
|
|
@@ -78975,7 +79008,7 @@ function reorderArgs(argv) {
|
|
|
78975
79008
|
}
|
|
78976
79009
|
async function main() {
|
|
78977
79010
|
const program = new Command17();
|
|
78978
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.83.
|
|
79011
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.83.1");
|
|
78979
79012
|
program.addCommand(createBootstrapCommand());
|
|
78980
79013
|
program.addCommand(createSynthCommand());
|
|
78981
79014
|
program.addCommand(createListCommand());
|