@go-to-k/cdkd 0.230.24 → 0.230.25
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 +7 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1445,7 +1445,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1445
1445
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1446
1446
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1447
1447
|
function getCdkdVersion() {
|
|
1448
|
-
return "0.230.
|
|
1448
|
+
return "0.230.25";
|
|
1449
1449
|
}
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -8040,7 +8040,9 @@ var LambdaFunctionProvider = class {
|
|
|
8040
8040
|
}
|
|
8041
8041
|
const newCode = properties["Code"];
|
|
8042
8042
|
const oldCode = previousProperties["Code"];
|
|
8043
|
-
|
|
8043
|
+
const normalizeArchitectures = (v) => Array.isArray(v) && v.length > 0 ? v : ["x86_64"];
|
|
8044
|
+
const architecturesChanged = JSON.stringify(normalizeArchitectures(properties["Architectures"])) !== JSON.stringify(normalizeArchitectures(previousProperties["Architectures"]));
|
|
8045
|
+
if (newCode && (architecturesChanged || JSON.stringify(newCode) !== JSON.stringify(oldCode))) {
|
|
8044
8046
|
const builtCode = this.buildCode(newCode, properties["Runtime"]);
|
|
8045
8047
|
const codeParams = {
|
|
8046
8048
|
FunctionName: physicalId,
|
|
@@ -8048,7 +8050,8 @@ var LambdaFunctionProvider = class {
|
|
|
8048
8050
|
S3Key: builtCode.S3Key,
|
|
8049
8051
|
S3ObjectVersion: builtCode.S3ObjectVersion,
|
|
8050
8052
|
ZipFile: builtCode.ZipFile,
|
|
8051
|
-
ImageUri: builtCode.ImageUri
|
|
8053
|
+
ImageUri: builtCode.ImageUri,
|
|
8054
|
+
Architectures: architecturesChanged ? normalizeArchitectures(properties["Architectures"]) : void 0
|
|
8052
8055
|
};
|
|
8053
8056
|
await this.lambdaClient.send(new UpdateFunctionCodeCommand(codeParams));
|
|
8054
8057
|
this.logger.debug(`Updated code for Lambda function ${physicalId}`);
|
|
@@ -55409,7 +55412,7 @@ function reorderArgs(argv) {
|
|
|
55409
55412
|
async function main() {
|
|
55410
55413
|
installPipeCloseHandler();
|
|
55411
55414
|
const program = new Command();
|
|
55412
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.
|
|
55415
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.230.25");
|
|
55413
55416
|
program.addCommand(createBootstrapCommand());
|
|
55414
55417
|
program.addCommand(createSynthCommand());
|
|
55415
55418
|
program.addCommand(createListCommand());
|