From e7f92936053d4cbc30f4df958e4f23216c52cf19 Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 31 Jul 2024 20:53:33 +0000 Subject: [PATCH] chore(id-auth-sra): set command instance ref on smithy context --- .changeset/hip-cycles-buy.md | 5 +++++ packages/smithy-client/src/command.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/hip-cycles-buy.md diff --git a/.changeset/hip-cycles-buy.md b/.changeset/hip-cycles-buy.md new file mode 100644 index 00000000000..d91f14b6b00 --- /dev/null +++ b/.changeset/hip-cycles-buy.md @@ -0,0 +1,5 @@ +--- +"@smithy/smithy-client": patch +--- + +add command instance ref to smithy context diff --git a/packages/smithy-client/src/command.ts b/packages/smithy-client/src/command.ts index 290972b30c2..b100c8233e1 100644 --- a/packages/smithy-client/src/command.ts +++ b/packages/smithy-client/src/command.ts @@ -82,6 +82,7 @@ export abstract class Command< inputFilterSensitiveLog, outputFilterSensitiveLog, [SMITHY_CONTEXT_KEY]: { + commandInstance: this, ...smithyContext, }, ...additionalContext,