@go-to-k/cdkd 0.50.0 → 0.50.2

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.
Binary file
package/dist/index.js CHANGED
@@ -8285,9 +8285,7 @@ var IAMRoleProvider = class {
8285
8285
  const result = {};
8286
8286
  if (role.RoleName !== void 0)
8287
8287
  result["RoleName"] = role.RoleName;
8288
- if (role.Description !== void 0 && role.Description !== "") {
8289
- result["Description"] = role.Description;
8290
- }
8288
+ result["Description"] = role.Description ?? "";
8291
8289
  if (role.MaxSessionDuration !== void 0) {
8292
8290
  result["MaxSessionDuration"] = role.MaxSessionDuration;
8293
8291
  }
@@ -8310,8 +8308,7 @@ var IAMRoleProvider = class {
8310
8308
  new ListAttachedRolePoliciesCommand({ RoleName: physicalId })
8311
8309
  );
8312
8310
  const arns = (attached.AttachedPolicies ?? []).map((p) => p.PolicyArn).filter((arn) => !!arn);
8313
- if (arns.length > 0)
8314
- result["ManagedPolicyArns"] = arns;
8311
+ result["ManagedPolicyArns"] = arns;
8315
8312
  } catch (err) {
8316
8313
  if (!(err instanceof NoSuchEntityException))
8317
8314
  throw err;