@aws-sdk/util-user-agent-node 3.54.1 → 3.55.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/CHANGELOG.md +8 -0
- package/dist-cjs/index.js +3 -3
- package/dist-es/index.js +5 -5
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/util-user-agent-node
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/util-user-agent-node
|
package/dist-cjs/index.js
CHANGED
|
@@ -10,11 +10,11 @@ exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
|
|
10
10
|
const defaultUserAgent = ({ serviceId, clientVersion }) => {
|
|
11
11
|
const sections = [
|
|
12
12
|
["aws-sdk-js", clientVersion],
|
|
13
|
-
[`os/${os_1.platform()}`, os_1.release()],
|
|
13
|
+
[`os/${(0, os_1.platform)()}`, (0, os_1.release)()],
|
|
14
14
|
["lang/js"],
|
|
15
15
|
["md/nodejs", `${process_1.versions.node}`],
|
|
16
16
|
];
|
|
17
|
-
const crtAvailable = is_crt_available_1.isCrtAvailable();
|
|
17
|
+
const crtAvailable = (0, is_crt_available_1.isCrtAvailable)();
|
|
18
18
|
if (crtAvailable) {
|
|
19
19
|
sections.push(crtAvailable);
|
|
20
20
|
}
|
|
@@ -24,7 +24,7 @@ const defaultUserAgent = ({ serviceId, clientVersion }) => {
|
|
|
24
24
|
if (process_1.env.AWS_EXECUTION_ENV) {
|
|
25
25
|
sections.push([`exec-env/${process_1.env.AWS_EXECUTION_ENV}`]);
|
|
26
26
|
}
|
|
27
|
-
const appIdPromise = node_config_provider_1.loadConfig({
|
|
27
|
+
const appIdPromise = (0, node_config_provider_1.loadConfig)({
|
|
28
28
|
environmentVariableSelector: (env) => env[exports.UA_APP_ID_ENV_NAME],
|
|
29
29
|
configFileSelector: (profile) => profile[exports.UA_APP_ID_INI_NAME],
|
|
30
30
|
default: undefined,
|
package/dist-es/index.js
CHANGED
|
@@ -9,19 +9,19 @@ export var defaultUserAgent = function (_a) {
|
|
|
9
9
|
var serviceId = _a.serviceId, clientVersion = _a.clientVersion;
|
|
10
10
|
var sections = [
|
|
11
11
|
["aws-sdk-js", clientVersion],
|
|
12
|
-
["os/"
|
|
12
|
+
["os/".concat(platform()), release()],
|
|
13
13
|
["lang/js"],
|
|
14
|
-
["md/nodejs", ""
|
|
14
|
+
["md/nodejs", "".concat(versions.node)],
|
|
15
15
|
];
|
|
16
16
|
var crtAvailable = isCrtAvailable();
|
|
17
17
|
if (crtAvailable) {
|
|
18
18
|
sections.push(crtAvailable);
|
|
19
19
|
}
|
|
20
20
|
if (serviceId) {
|
|
21
|
-
sections.push(["api/"
|
|
21
|
+
sections.push(["api/".concat(serviceId), clientVersion]);
|
|
22
22
|
}
|
|
23
23
|
if (env.AWS_EXECUTION_ENV) {
|
|
24
|
-
sections.push(["exec-env/"
|
|
24
|
+
sections.push(["exec-env/".concat(env.AWS_EXECUTION_ENV)]);
|
|
25
25
|
}
|
|
26
26
|
var appIdPromise = loadConfig({
|
|
27
27
|
environmentVariableSelector: function (env) { return env[UA_APP_ID_ENV_NAME]; },
|
|
@@ -38,7 +38,7 @@ export var defaultUserAgent = function (_a) {
|
|
|
38
38
|
return [4, appIdPromise];
|
|
39
39
|
case 1:
|
|
40
40
|
appId = _a.sent();
|
|
41
|
-
resolvedUserAgent = appId ? __spreadArray(__spreadArray([], __read(sections)), [["app/"
|
|
41
|
+
resolvedUserAgent = appId ? __spreadArray(__spreadArray([], __read(sections), false), [["app/".concat(appId)]], false) : __spreadArray([], __read(sections), false);
|
|
42
42
|
_a.label = 2;
|
|
43
43
|
case 2: return [2, resolvedUserAgent];
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.55.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-sdk/node-config-provider": "3.
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
24
|
-
"tslib": "^2.3.
|
|
22
|
+
"@aws-sdk/node-config-provider": "3.55.0",
|
|
23
|
+
"@aws-sdk/types": "3.55.0",
|
|
24
|
+
"tslib": "^2.3.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@aws-sdk/protocol-http": "3.
|
|
27
|
+
"@aws-sdk/protocol-http": "3.55.0",
|
|
28
28
|
"@tsconfig/recommended": "1.0.1",
|
|
29
29
|
"@types/node": "^10.0.0",
|
|
30
30
|
"concurrently": "7.0.0",
|
|
31
31
|
"downlevel-dts": "0.7.0",
|
|
32
32
|
"rimraf": "3.0.2",
|
|
33
33
|
"typedoc": "0.19.2",
|
|
34
|
-
"typescript": "~4.
|
|
34
|
+
"typescript": "~4.6.2"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">= 12.0.0"
|