chore: Update dist

This commit is contained in:
GitHub Actions 2025-08-20 02:51:17 +00:00 committed by kellertk
commit fcf6a5e397

6
dist/index.js generated vendored
View file

@ -207,7 +207,11 @@ async function assumeRole(params) {
PolicyArns: managedSessionPolicies?.length ? managedSessionPolicies : undefined,
};
const keys = Object.keys(commonAssumeRoleParams);
keys.forEach((k) => commonAssumeRoleParams[k] === undefined && delete commonAssumeRoleParams[k]);
keys.forEach((k) => {
if (commonAssumeRoleParams[k] === undefined) {
delete commonAssumeRoleParams[k];
}
});
// Instantiate STS client
const stsClient = credentialsClient.stsClient;
// Assume role using one of three methods