@go-to-k/cdkd 0.50.12 → 0.50.13

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 CHANGED
@@ -12008,11 +12008,11 @@ var S3BucketProvider = class {
12008
12008
  this.logger.debug(`Applied EventBridge notification to bucket ${bucketName}`);
12009
12009
  }
12010
12010
  const corsConfig = properties["CorsConfiguration"];
12011
- if (corsConfig?.CorsRules) {
12011
+ if (corsConfig?.CorsRules && Array.isArray(corsConfig.CorsRules) && corsConfig.CorsRules.length > 0) {
12012
12012
  await this.applyCorsConfiguration(bucketName, corsConfig);
12013
12013
  }
12014
12014
  const lifecycleConfig = properties["LifecycleConfiguration"];
12015
- if (lifecycleConfig?.Rules) {
12015
+ if (lifecycleConfig?.Rules && Array.isArray(lifecycleConfig.Rules) && lifecycleConfig.Rules.length > 0) {
12016
12016
  await this.applyLifecycleConfiguration(bucketName, lifecycleConfig);
12017
12017
  }
12018
12018
  const publicAccessBlock = properties["PublicAccessBlockConfiguration"];
@@ -12020,7 +12020,7 @@ var S3BucketProvider = class {
12020
12020
  await this.applyPublicAccessBlockConfiguration(bucketName, publicAccessBlock);
12021
12021
  }
12022
12022
  const bucketEncryption = properties["BucketEncryption"];
12023
- if (bucketEncryption?.ServerSideEncryptionConfiguration) {
12023
+ if (bucketEncryption?.ServerSideEncryptionConfiguration && Array.isArray(bucketEncryption.ServerSideEncryptionConfiguration) && bucketEncryption.ServerSideEncryptionConfiguration.length > 0) {
12024
12024
  await this.applyBucketEncryption(bucketName, bucketEncryption);
12025
12025
  }
12026
12026
  const loggingConfig = properties["LoggingConfiguration"];
@@ -12281,11 +12281,12 @@ var S3BucketProvider = class {
12281
12281
  }
12282
12282
  try {
12283
12283
  const resp = await this.s3Client.send(new GetBucketTaggingCommand({ Bucket: physicalId }));
12284
- const tags = normalizeAwsTagsToCfn(resp.TagSet);
12285
- result["Tags"] = tags;
12284
+ result["Tags"] = normalizeAwsTagsToCfn(resp.TagSet);
12286
12285
  } catch (err) {
12287
12286
  const e = err;
12288
- if (e.name !== "NoSuchTagSet") {
12287
+ if (e.name === "NoSuchTagSet") {
12288
+ result["Tags"] = [];
12289
+ } else {
12289
12290
  throw err;
12290
12291
  }
12291
12292
  }
@@ -43889,7 +43890,7 @@ function reorderArgs(argv) {
43889
43890
  }
43890
43891
  async function main() {
43891
43892
  const program = new Command14();
43892
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.50.12");
43893
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.50.13");
43893
43894
  program.addCommand(createBootstrapCommand());
43894
43895
  program.addCommand(createSynthCommand());
43895
43896
  program.addCommand(createListCommand());