@aws-sdk/util-user-agent-node 3.709.0 → 3.712.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js
CHANGED
|
@@ -83,10 +83,11 @@ var defaultUserAgent = createDefaultUserAgentProvider;
|
|
|
83
83
|
// src/nodeAppIdConfigOptions.ts
|
|
84
84
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
85
85
|
var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
86
|
-
var UA_APP_ID_INI_NAME = "
|
|
86
|
+
var UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
87
|
+
var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
|
|
87
88
|
var NODE_APP_ID_CONFIG_OPTIONS = {
|
|
88
89
|
environmentVariableSelector: (env2) => env2[UA_APP_ID_ENV_NAME],
|
|
89
|
-
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
|
90
|
+
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
90
91
|
default: import_middleware_user_agent.DEFAULT_UA_APP_ID
|
|
91
92
|
};
|
|
92
93
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { DEFAULT_UA_APP_ID } from "@aws-sdk/middleware-user-agent";
|
|
2
2
|
export const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
3
|
-
export const UA_APP_ID_INI_NAME = "
|
|
3
|
+
export const UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
4
|
+
const UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
|
|
4
5
|
export const NODE_APP_ID_CONFIG_OPTIONS = {
|
|
5
6
|
environmentVariableSelector: (env) => env[UA_APP_ID_ENV_NAME],
|
|
6
|
-
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
|
7
|
+
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
7
8
|
default: DEFAULT_UA_APP_ID,
|
|
8
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
|
2
2
|
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
|
3
|
-
export declare const UA_APP_ID_INI_NAME = "
|
|
3
|
+
export declare const UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
4
4
|
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<
|
|
5
5
|
string | undefined
|
|
6
6
|
>;
|
package/package.json
CHANGED