From 9e9883310cbbd5bdffc20692e027d0c3142c0fd0 Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 9 Oct 2024 15:52:30 +0000 Subject: [PATCH] chore: try lowering concurrency --- packages/middleware-user-agent/src/check-features.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/middleware-user-agent/src/check-features.ts b/packages/middleware-user-agent/src/check-features.ts index 0e3b6ed61812b..c01bd60ce9ed3 100644 --- a/packages/middleware-user-agent/src/check-features.ts +++ b/packages/middleware-user-agent/src/check-features.ts @@ -76,7 +76,9 @@ export async function checkFeatures( } } - const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity; + // TODO: later version of @smithy/types has explicit typing for this. + const identity = (context.__smithy_context?.selectedHttpAuthScheme as any)?.identity; + if ((identity as AttributedAwsCredentialIdentity).$source) { const credentials = identity as AttributedAwsCredentialIdentity; if (credentials.accountId) {