@go-to-k/cdkd 0.90.0 → 0.91.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 +47 -4
- package/dist/cli.js.map +2 -2
- package/dist/go-to-k-cdkd-0.91.1.tgz +0 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.90.0.tgz +0 -0
package/dist/cli.js
CHANGED
|
@@ -21504,6 +21504,28 @@ var TemplateParser = class {
|
|
|
21504
21504
|
}
|
|
21505
21505
|
return;
|
|
21506
21506
|
}
|
|
21507
|
+
if ("Fn::Join" in obj) {
|
|
21508
|
+
const joinValue = obj["Fn::Join"];
|
|
21509
|
+
if (Array.isArray(joinValue) && joinValue.length >= 2) {
|
|
21510
|
+
this.extractRefsFromValue(joinValue[1], dependencies);
|
|
21511
|
+
}
|
|
21512
|
+
return;
|
|
21513
|
+
}
|
|
21514
|
+
if ("Fn::Select" in obj) {
|
|
21515
|
+
const selectValue = obj["Fn::Select"];
|
|
21516
|
+
if (Array.isArray(selectValue) && selectValue.length >= 2) {
|
|
21517
|
+
this.extractRefsFromValue(selectValue[0], dependencies);
|
|
21518
|
+
this.extractRefsFromValue(selectValue[1], dependencies);
|
|
21519
|
+
}
|
|
21520
|
+
return;
|
|
21521
|
+
}
|
|
21522
|
+
if ("Fn::Split" in obj) {
|
|
21523
|
+
const splitValue = obj["Fn::Split"];
|
|
21524
|
+
if (Array.isArray(splitValue) && splitValue.length >= 2) {
|
|
21525
|
+
this.extractRefsFromValue(splitValue[1], dependencies);
|
|
21526
|
+
}
|
|
21527
|
+
return;
|
|
21528
|
+
}
|
|
21507
21529
|
Object.values(obj).forEach((v) => this.extractRefsFromValue(v, dependencies));
|
|
21508
21530
|
}
|
|
21509
21531
|
/**
|
|
@@ -70139,7 +70161,7 @@ async function loadStateForStack(stackName, synthRegion, opts) {
|
|
|
70139
70161
|
logger.debug(`${prefix}: loaded state for ${stackName} (${targetRegion})`);
|
|
70140
70162
|
return { state: stateData.state, region: targetRegion };
|
|
70141
70163
|
} finally {
|
|
70142
|
-
|
|
70164
|
+
resetAwsClients();
|
|
70143
70165
|
}
|
|
70144
70166
|
}
|
|
70145
70167
|
|
|
@@ -78108,10 +78130,31 @@ function buildDependencyGraph(containers) {
|
|
|
78108
78130
|
return g;
|
|
78109
78131
|
}
|
|
78110
78132
|
function topoSort(g, containers) {
|
|
78111
|
-
const
|
|
78133
|
+
const depth = /* @__PURE__ */ new Map();
|
|
78134
|
+
const computeDepth = (name) => {
|
|
78135
|
+
const cached = depth.get(name);
|
|
78136
|
+
if (cached !== void 0)
|
|
78137
|
+
return cached;
|
|
78138
|
+
let max = -1;
|
|
78139
|
+
const successors = g.successors(name) ?? [];
|
|
78140
|
+
for (const s of successors) {
|
|
78141
|
+
const d = computeDepth(s);
|
|
78142
|
+
if (d > max)
|
|
78143
|
+
max = d;
|
|
78144
|
+
}
|
|
78145
|
+
const result = max + 1;
|
|
78146
|
+
depth.set(name, result);
|
|
78147
|
+
return result;
|
|
78148
|
+
};
|
|
78149
|
+
for (const node of g.nodes())
|
|
78150
|
+
computeDepth(node);
|
|
78112
78151
|
const byPosition = /* @__PURE__ */ new Map();
|
|
78113
78152
|
containers.forEach((c, idx) => byPosition.set(c.name, idx));
|
|
78114
|
-
return
|
|
78153
|
+
return containers.map((c) => c.name).filter((n) => depth.has(n)).sort((a, b) => {
|
|
78154
|
+
const da = depth.get(a);
|
|
78155
|
+
const db = depth.get(b);
|
|
78156
|
+
if (da !== db)
|
|
78157
|
+
return da - db;
|
|
78115
78158
|
return (byPosition.get(a) ?? 0) - (byPosition.get(b) ?? 0);
|
|
78116
78159
|
});
|
|
78117
78160
|
}
|
|
@@ -80243,7 +80286,7 @@ function reorderArgs(argv) {
|
|
|
80243
80286
|
}
|
|
80244
80287
|
async function main() {
|
|
80245
80288
|
const program = new Command18();
|
|
80246
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
80289
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.91.1");
|
|
80247
80290
|
program.addCommand(createBootstrapCommand());
|
|
80248
80291
|
program.addCommand(createSynthCommand());
|
|
80249
80292
|
program.addCommand(createListCommand());
|