Skip to content

Commit

Permalink
Skip adding unsupported comment for config customUserAgent (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Apr 11, 2024
1 parent f2100df commit fa53244
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-badgers-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"aws-sdk-js-codemod": patch
---

Skip adding unsupported comment for config customUserAgent
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import AWS from "aws-sdk";

const config = new AWS.Config({
customUserAgent: "MyApp/1.0.0"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = {
customUserAgent: "MyApp/1.0.0"
};
1 change: 1 addition & 0 deletions src/transforms/v2-to-v3/config/AWS_CONFIG_KEY_MAP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const AWS_CONFIG_KEY_MAP: Record<string, AwsConfigKeyStatus> = {
newKeyName: "credentials",
description: "The credentials in JS SDK v3 accepts providers.",
},
customUserAgent: {},
endpoint: {},
endpointCacheSize: {},
endpointDiscoveryEnabled: {},
Expand Down

0 comments on commit fa53244

Please sign in to comment.