@aws-sdk/middleware-user-agent 3.774.0 → 3.775.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 +4 -4
- package/dist-es/configurations.js +4 -4
- package/package.json +7 -7
package/dist-cjs/index.js
CHANGED
|
@@ -41,9 +41,9 @@ function isValidUserAgentAppId(appId) {
|
|
|
41
41
|
__name(isValidUserAgentAppId, "isValidUserAgentAppId");
|
|
42
42
|
function resolveUserAgentConfig(input) {
|
|
43
43
|
const normalizedAppIdProvider = (0, import_core.normalizeProvider)(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
customUserAgent: typeof
|
|
44
|
+
const { customUserAgent } = input;
|
|
45
|
+
return Object.assign(input, {
|
|
46
|
+
customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
|
|
47
47
|
userAgentAppId: /* @__PURE__ */ __name(async () => {
|
|
48
48
|
const appId = await normalizedAppIdProvider();
|
|
49
49
|
if (!isValidUserAgentAppId(appId)) {
|
|
@@ -56,7 +56,7 @@ function resolveUserAgentConfig(input) {
|
|
|
56
56
|
}
|
|
57
57
|
return appId;
|
|
58
58
|
}, "userAgentAppId")
|
|
59
|
-
};
|
|
59
|
+
});
|
|
60
60
|
}
|
|
61
61
|
__name(resolveUserAgentConfig, "resolveUserAgentConfig");
|
|
62
62
|
|
|
@@ -8,9 +8,9 @@ function isValidUserAgentAppId(appId) {
|
|
|
8
8
|
}
|
|
9
9
|
export function resolveUserAgentConfig(input) {
|
|
10
10
|
const normalizedAppIdProvider = normalizeProvider(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
customUserAgent: typeof
|
|
11
|
+
const { customUserAgent } = input;
|
|
12
|
+
return Object.assign(input, {
|
|
13
|
+
customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent,
|
|
14
14
|
userAgentAppId: async () => {
|
|
15
15
|
const appId = await normalizedAppIdProvider();
|
|
16
16
|
if (!isValidUserAgentAppId(appId)) {
|
|
@@ -24,5 +24,5 @@ export function resolveUserAgentConfig(input) {
|
|
|
24
24
|
}
|
|
25
25
|
return appId;
|
|
26
26
|
},
|
|
27
|
-
};
|
|
27
|
+
});
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.775.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/core": "3.
|
|
28
|
-
"@aws-sdk/types": "3.
|
|
29
|
-
"@aws-sdk/util-endpoints": "3.
|
|
30
|
-
"@smithy/core": "^3.
|
|
31
|
-
"@smithy/protocol-http": "^5.0
|
|
32
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@aws-sdk/core": "3.775.0",
|
|
28
|
+
"@aws-sdk/types": "3.775.0",
|
|
29
|
+
"@aws-sdk/util-endpoints": "3.775.0",
|
|
30
|
+
"@smithy/core": "^3.2.0",
|
|
31
|
+
"@smithy/protocol-http": "^5.1.0",
|
|
32
|
+
"@smithy/types": "^4.2.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|