Skip to content

Commit fa53244

Browse files
authored
Skip adding unsupported comment for config customUserAgent (#855)
1 parent f2100df commit fa53244

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.changeset/brown-badgers-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"aws-sdk-js-codemod": patch
3+
---
4+
5+
Skip adding unsupported comment for config customUserAgent
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import AWS from "aws-sdk";
2+
3+
const config = new AWS.Config({
4+
customUserAgent: "MyApp/1.0.0"
5+
});
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const config = {
2+
customUserAgent: "MyApp/1.0.0"
3+
};

src/transforms/v2-to-v3/config/AWS_CONFIG_KEY_MAP.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const AWS_CONFIG_KEY_MAP: Record<string, AwsConfigKeyStatus> = {
2626
newKeyName: "credentials",
2727
description: "The credentials in JS SDK v3 accepts providers.",
2828
},
29+
customUserAgent: {},
2930
endpoint: {},
3031
endpointCacheSize: {},
3132
endpointDiscoveryEnabled: {},

0 commit comments

Comments
 (0)