File tree 1 file changed +8
-4
lines changed
packages/util-user-agent-node/src
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- import { LoadedConfigSelectors } from "@smithy/node-config-provider" ;
2
1
import { DEFAULT_UA_APP_ID } from "@aws-sdk/middleware-user-agent" ;
3
-
2
+ import { LoadedConfigSelectors } from "@smithy/node-config-provider" ;
4
3
5
4
/**
6
5
* @internal
@@ -10,13 +9,18 @@ export const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
10
9
/**
11
10
* @internal
12
11
*/
13
- export const UA_APP_ID_INI_NAME = "sdk-ua-app-id" ;
12
+ export const UA_APP_ID_INI_NAME = "sdk_ua_app_id" ;
13
+
14
+ /**
15
+ * @deprecated
16
+ */
17
+ const UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id" ;
14
18
15
19
/**
16
20
* @internal
17
21
*/
18
22
export const NODE_APP_ID_CONFIG_OPTIONS : LoadedConfigSelectors < string | undefined > = {
19
23
environmentVariableSelector : ( env ) => env [ UA_APP_ID_ENV_NAME ] ,
20
- configFileSelector : ( profile ) => profile [ UA_APP_ID_INI_NAME ] ,
24
+ configFileSelector : ( profile ) => profile [ UA_APP_ID_INI_NAME ] ?? profile [ UA_APP_ID_INI_NAME_DEPRECATED ] ,
21
25
default : DEFAULT_UA_APP_ID ,
22
26
} ;
You can’t perform that action at this time.
0 commit comments