@cdk8s/awscdk-resolver 0.0.176 → 0.0.178
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-cloudformation/package.json +36 -36
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +34 -34
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-sts/package.json +34 -34
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +17 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +11 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/setFeature.d.ts +12 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -0
- package/node_modules/@aws-sdk/core/package.json +10 -9
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +60 -4
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +22 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/encode-features.js +18 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +9 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +14 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/encode-features.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts +5 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/encode-features.d.ts +2 -0
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts +2 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +2 -1
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -5
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/dist-es/feature-ids.js +1 -0
- package/node_modules/@aws-sdk/types/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +54 -0
- package/node_modules/@aws-sdk/types/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +12 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +51 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +7 -0
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +6 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.native.js +1 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +6 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.native.js +1 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +4 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +6 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +46 -39
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js +29 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js +2 -39
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +23 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/index.d.ts +2 -20
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/nodeAppIdConfigOptions.d.ts +13 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/defaultUserAgent.d.ts +21 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/index.d.ts +2 -12
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/nodeAppIdConfigOptions.d.ts +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -4
- package/package.json +3 -3
@@ -0,0 +1,51 @@
|
|
1
|
+
export type AwsSdkFeatures = Partial<{
|
2
|
+
RESOURCE_MODEL: "A";
|
3
|
+
WAITER: "B";
|
4
|
+
PAGINATOR: "C";
|
5
|
+
RETRY_MODE_LEGACY: "D";
|
6
|
+
RETRY_MODE_STANDARD: "E";
|
7
|
+
RETRY_MODE_ADAPTIVE: "F";
|
8
|
+
S3_EXPRESS_BUCKET: "J";
|
9
|
+
S3_ACCESS_GRANTS: "K";
|
10
|
+
GZIP_REQUEST_COMPRESSION: "L";
|
11
|
+
PROTOCOL_RPC_V2_CBOR: "M";
|
12
|
+
ENDPOINT_OVERRIDE: "N";
|
13
|
+
ACCOUNT_ID_ENDPOINT: "O";
|
14
|
+
ACCOUNT_ID_MODE_PREFERRED: "P";
|
15
|
+
ACCOUNT_ID_MODE_DISABLED: "Q";
|
16
|
+
ACCOUNT_ID_MODE_REQUIRED: "R";
|
17
|
+
SIGV4A_SIGNING: "S";
|
18
|
+
RESOLVED_ACCOUNT_ID: "T";
|
19
|
+
FLEXIBLE_CHECKSUMS_REQ_CRC32: "U";
|
20
|
+
FLEXIBLE_CHECKSUMS_REQ_CRC32C: "V";
|
21
|
+
FLEXIBLE_CHECKSUMS_REQ_CRC64: "W";
|
22
|
+
FLEXIBLE_CHECKSUMS_REQ_SHA1: "X";
|
23
|
+
FLEXIBLE_CHECKSUMS_REQ_SHA256: "Y";
|
24
|
+
FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED: "Z";
|
25
|
+
FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED: "a";
|
26
|
+
FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED: "b";
|
27
|
+
FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED: "c";
|
28
|
+
DDB_MAPPER: "d";
|
29
|
+
CREDENTIALS_CODE: "e";
|
30
|
+
CREDENTIALS_ENV_VARS: "g";
|
31
|
+
CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN: "h";
|
32
|
+
CREDENTIALS_STS_ASSUME_ROLE: "i";
|
33
|
+
CREDENTIALS_STS_ASSUME_ROLE_SAML: "j";
|
34
|
+
CREDENTIALS_STS_ASSUME_ROLE_WEB_ID: "k";
|
35
|
+
CREDENTIALS_STS_FEDERATION_TOKEN: "l";
|
36
|
+
CREDENTIALS_STS_SESSION_TOKEN: "m";
|
37
|
+
CREDENTIALS_PROFILE: "n";
|
38
|
+
CREDENTIALS_PROFILE_SOURCE_PROFILE: "o";
|
39
|
+
CREDENTIALS_PROFILE_NAMED_PROVIDER: "p";
|
40
|
+
CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN: "q";
|
41
|
+
CREDENTIALS_PROFILE_SSO: "r";
|
42
|
+
CREDENTIALS_SSO: "s";
|
43
|
+
CREDENTIALS_PROFILE_SSO_LEGACY: "t";
|
44
|
+
CREDENTIALS_SSO_LEGACY: "u";
|
45
|
+
CREDENTIALS_PROFILE_PROCESS: "v";
|
46
|
+
CREDENTIALS_PROCESS: "w";
|
47
|
+
CREDENTIALS_BOTO2_CONFIG_FILE: "x";
|
48
|
+
CREDENTIALS_AWS_SDK_STORE: "y";
|
49
|
+
CREDENTIALS_HTTP: "z";
|
50
|
+
CREDENTIALS_IMDS: "0";
|
51
|
+
}>;
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import { HandlerExecutionContext } from "@smithy/types";
|
2
|
+
import { AwsSdkFeatures } from "./feature-ids";
|
1
3
|
export {
|
2
4
|
AbsoluteLocation,
|
3
5
|
BuildHandler,
|
@@ -38,3 +40,8 @@ export {
|
|
38
40
|
Step,
|
39
41
|
Terminalware,
|
40
42
|
} from "@smithy/types";
|
43
|
+
export interface AwsHandlerExecutionContext extends HandlerExecutionContext {
|
44
|
+
__aws_sdk_context?: {
|
45
|
+
features?: AwsSdkFeatures;
|
46
|
+
};
|
47
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/types",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.664.0",
|
4
4
|
"main": "./dist-cjs/index.js",
|
5
5
|
"module": "./dist-es/index.js",
|
6
6
|
"types": "./dist-types/index.d.ts",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"directory": "packages/types"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
-
"@smithy/types": "^3.
|
44
|
+
"@smithy/types": "^3.5.0",
|
45
45
|
"tslib": "^2.6.2"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.664.0",
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -22,9 +22,9 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
26
|
-
"@smithy/types": "^3.
|
27
|
-
"@smithy/util-endpoints": "^2.1.
|
25
|
+
"@aws-sdk/types": "3.664.0",
|
26
|
+
"@smithy/types": "^3.5.0",
|
27
|
+
"@smithy/util-endpoints": "^2.1.3",
|
28
28
|
"tslib": "^2.6.2"
|
29
29
|
},
|
30
30
|
"engines": {
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultUserAgent = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const bowser_1 = tslib_1.__importDefault(require("bowser"));
|
6
|
-
const defaultUserAgent = ({ serviceId, clientVersion }) => async () => {
|
6
|
+
const defaultUserAgent = ({ serviceId, clientVersion }) => async (config) => {
|
7
7
|
const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent
|
8
8
|
? bowser_1.default.parse(window.navigator.userAgent)
|
9
9
|
: undefined;
|
10
10
|
const sections = [
|
11
11
|
["aws-sdk-js", clientVersion],
|
12
|
-
["ua", "2.
|
12
|
+
["ua", "2.1"],
|
13
13
|
[`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version],
|
14
14
|
["lang/js"],
|
15
15
|
["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`],
|
@@ -17,6 +17,10 @@ const defaultUserAgent = ({ serviceId, clientVersion }) => async () => {
|
|
17
17
|
if (serviceId) {
|
18
18
|
sections.push([`api/${serviceId}`, clientVersion]);
|
19
19
|
}
|
20
|
+
const appId = await config?.userAgentAppId?.();
|
21
|
+
if (appId) {
|
22
|
+
sections.push([`app/${appId}`]);
|
23
|
+
}
|
20
24
|
return sections;
|
21
25
|
};
|
22
26
|
exports.defaultUserAgent = defaultUserAgent;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import bowser from "bowser";
|
2
|
-
export const defaultUserAgent = ({ serviceId, clientVersion }) => async () => {
|
2
|
+
export const defaultUserAgent = ({ serviceId, clientVersion }) => async (config) => {
|
3
3
|
const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent
|
4
4
|
? bowser.parse(window.navigator.userAgent)
|
5
5
|
: undefined;
|
6
6
|
const sections = [
|
7
7
|
["aws-sdk-js", clientVersion],
|
8
|
-
["ua", "2.
|
8
|
+
["ua", "2.1"],
|
9
9
|
[`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version],
|
10
10
|
["lang/js"],
|
11
11
|
["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`],
|
@@ -13,5 +13,9 @@ export const defaultUserAgent = ({ serviceId, clientVersion }) => async () => {
|
|
13
13
|
if (serviceId) {
|
14
14
|
sections.push([`api/${serviceId}`, clientVersion]);
|
15
15
|
}
|
16
|
+
const appId = await config?.userAgentAppId?.();
|
17
|
+
if (appId) {
|
18
|
+
sections.push([`app/${appId}`]);
|
19
|
+
}
|
16
20
|
return sections;
|
17
21
|
};
|
@@ -1,9 +1,12 @@
|
|
1
1
|
import { Provider, UserAgent } from "@smithy/types";
|
2
2
|
import { DefaultUserAgentOptions } from "./configurations";
|
3
|
+
export interface PreviouslyResolved {
|
4
|
+
userAgentAppId: Provider<string | undefined>;
|
5
|
+
}
|
3
6
|
/**
|
4
7
|
* @internal
|
5
8
|
*
|
6
9
|
* Default provider to the user agent in browsers. It's a best effort to infer
|
7
10
|
* the device information. It uses bowser library to detect the browser and version
|
8
11
|
*/
|
9
|
-
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) =>
|
12
|
+
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config: PreviouslyResolved) => Promise<UserAgent>;
|
@@ -1,6 +1,11 @@
|
|
1
1
|
import { Provider, UserAgent } from "@smithy/types";
|
2
2
|
import { DefaultUserAgentOptions } from "./configurations";
|
3
|
+
export interface PreviouslyResolved {
|
4
|
+
userAgentAppId: Provider<string | undefined>;
|
5
|
+
}
|
3
6
|
export declare const defaultUserAgent: ({
|
4
7
|
serviceId,
|
5
8
|
clientVersion,
|
6
|
-
}: DefaultUserAgentOptions) =>
|
9
|
+
}: DefaultUserAgentOptions) => (
|
10
|
+
config: PreviouslyResolved
|
11
|
+
) => Promise<UserAgent>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.664.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 util-user-agent-browser",
|
@@ -22,8 +22,8 @@
|
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"react-native": "dist-es/index.native.js",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
26
|
-
"@smithy/types": "^3.
|
25
|
+
"@aws-sdk/types": "3.664.0",
|
26
|
+
"@smithy/types": "^3.5.0",
|
27
27
|
"bowser": "^2.11.0",
|
28
28
|
"tslib": "^2.6.2"
|
29
29
|
},
|
@@ -21,13 +21,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
21
21
|
// src/index.ts
|
22
22
|
var src_exports = {};
|
23
23
|
__export(src_exports, {
|
24
|
+
NODE_APP_ID_CONFIG_OPTIONS: () => NODE_APP_ID_CONFIG_OPTIONS,
|
24
25
|
UA_APP_ID_ENV_NAME: () => UA_APP_ID_ENV_NAME,
|
25
26
|
UA_APP_ID_INI_NAME: () => UA_APP_ID_INI_NAME,
|
27
|
+
createDefaultUserAgentProvider: () => createDefaultUserAgentProvider,
|
26
28
|
crtAvailability: () => crtAvailability,
|
27
29
|
defaultUserAgent: () => defaultUserAgent
|
28
30
|
});
|
29
31
|
module.exports = __toCommonJS(src_exports);
|
30
|
-
|
32
|
+
|
33
|
+
// src/defaultUserAgent.ts
|
31
34
|
var import_os = require("os");
|
32
35
|
var import_process = require("process");
|
33
36
|
|
@@ -44,52 +47,56 @@ var isCrtAvailable = /* @__PURE__ */ __name(() => {
|
|
44
47
|
return null;
|
45
48
|
}, "isCrtAvailable");
|
46
49
|
|
47
|
-
// src/
|
48
|
-
var
|
49
|
-
|
50
|
-
var
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
}
|
67
|
-
if (serviceId) {
|
68
|
-
sections.push([`api/${serviceId}`, clientVersion]);
|
69
|
-
}
|
70
|
-
if (import_process.env.AWS_EXECUTION_ENV) {
|
71
|
-
sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]);
|
72
|
-
}
|
73
|
-
const appIdPromise = (0, import_node_config_provider.loadConfig)({
|
74
|
-
environmentVariableSelector: (env2) => env2[UA_APP_ID_ENV_NAME],
|
75
|
-
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
76
|
-
default: void 0
|
77
|
-
})();
|
78
|
-
let resolvedUserAgent = void 0;
|
79
|
-
return async () => {
|
80
|
-
if (!resolvedUserAgent) {
|
81
|
-
const appId = await appIdPromise;
|
82
|
-
resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
50
|
+
// src/defaultUserAgent.ts
|
51
|
+
var createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => {
|
52
|
+
return async (config) => {
|
53
|
+
var _a;
|
54
|
+
const sections = [
|
55
|
+
// sdk-metadata
|
56
|
+
["aws-sdk-js", clientVersion],
|
57
|
+
// ua-metadata
|
58
|
+
["ua", "2.1"],
|
59
|
+
// os-metadata
|
60
|
+
[`os/${(0, import_os.platform)()}`, (0, import_os.release)()],
|
61
|
+
// language-metadata
|
62
|
+
// ECMAScript edition doesn't matter in JS, so no version needed.
|
63
|
+
["lang/js"],
|
64
|
+
["md/nodejs", `${import_process.versions.node}`]
|
65
|
+
];
|
66
|
+
const crtAvailable = isCrtAvailable();
|
67
|
+
if (crtAvailable) {
|
68
|
+
sections.push(crtAvailable);
|
83
69
|
}
|
70
|
+
if (serviceId) {
|
71
|
+
sections.push([`api/${serviceId}`, clientVersion]);
|
72
|
+
}
|
73
|
+
if (import_process.env.AWS_EXECUTION_ENV) {
|
74
|
+
sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]);
|
75
|
+
}
|
76
|
+
const appId = await ((_a = config == null ? void 0 : config.userAgentAppId) == null ? void 0 : _a.call(config));
|
77
|
+
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
84
78
|
return resolvedUserAgent;
|
85
79
|
};
|
86
|
-
}, "
|
80
|
+
}, "createDefaultUserAgentProvider");
|
81
|
+
var defaultUserAgent = createDefaultUserAgentProvider;
|
82
|
+
|
83
|
+
// src/nodeAppIdConfigOptions.ts
|
84
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
85
|
+
var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
86
|
+
var UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
87
|
+
var NODE_APP_ID_CONFIG_OPTIONS = {
|
88
|
+
environmentVariableSelector: (env2) => env2[UA_APP_ID_ENV_NAME],
|
89
|
+
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
90
|
+
default: import_middleware_user_agent.DEFAULT_UA_APP_ID
|
91
|
+
};
|
87
92
|
// Annotate the CommonJS export names for ESM import in node:
|
88
93
|
|
89
94
|
0 && (module.exports = {
|
90
95
|
crtAvailability,
|
96
|
+
createDefaultUserAgentProvider,
|
97
|
+
defaultUserAgent,
|
91
98
|
UA_APP_ID_ENV_NAME,
|
92
99
|
UA_APP_ID_INI_NAME,
|
93
|
-
|
100
|
+
NODE_APP_ID_CONFIG_OPTIONS
|
94
101
|
});
|
95
102
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { platform, release } from "os";
|
2
|
+
import { env, versions } from "process";
|
3
|
+
import { isCrtAvailable } from "./is-crt-available";
|
4
|
+
export { crtAvailability } from "./crt-availability";
|
5
|
+
export const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
|
6
|
+
return async (config) => {
|
7
|
+
const sections = [
|
8
|
+
["aws-sdk-js", clientVersion],
|
9
|
+
["ua", "2.1"],
|
10
|
+
[`os/${platform()}`, release()],
|
11
|
+
["lang/js"],
|
12
|
+
["md/nodejs", `${versions.node}`],
|
13
|
+
];
|
14
|
+
const crtAvailable = isCrtAvailable();
|
15
|
+
if (crtAvailable) {
|
16
|
+
sections.push(crtAvailable);
|
17
|
+
}
|
18
|
+
if (serviceId) {
|
19
|
+
sections.push([`api/${serviceId}`, clientVersion]);
|
20
|
+
}
|
21
|
+
if (env.AWS_EXECUTION_ENV) {
|
22
|
+
sections.push([`exec-env/${env.AWS_EXECUTION_ENV}`]);
|
23
|
+
}
|
24
|
+
const appId = await config?.userAgentAppId?.();
|
25
|
+
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
26
|
+
return resolvedUserAgent;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export const defaultUserAgent = createDefaultUserAgentProvider;
|
@@ -1,39 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { env, versions } from "process";
|
4
|
-
import { isCrtAvailable } from "./is-crt-available";
|
5
|
-
export { crtAvailability } from "./crt-availability";
|
6
|
-
export const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
7
|
-
export const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
8
|
-
export const defaultUserAgent = ({ serviceId, clientVersion }) => {
|
9
|
-
const sections = [
|
10
|
-
["aws-sdk-js", clientVersion],
|
11
|
-
["ua", "2.0"],
|
12
|
-
[`os/${platform()}`, release()],
|
13
|
-
["lang/js"],
|
14
|
-
["md/nodejs", `${versions.node}`],
|
15
|
-
];
|
16
|
-
const crtAvailable = isCrtAvailable();
|
17
|
-
if (crtAvailable) {
|
18
|
-
sections.push(crtAvailable);
|
19
|
-
}
|
20
|
-
if (serviceId) {
|
21
|
-
sections.push([`api/${serviceId}`, clientVersion]);
|
22
|
-
}
|
23
|
-
if (env.AWS_EXECUTION_ENV) {
|
24
|
-
sections.push([`exec-env/${env.AWS_EXECUTION_ENV}`]);
|
25
|
-
}
|
26
|
-
const appIdPromise = loadConfig({
|
27
|
-
environmentVariableSelector: (env) => env[UA_APP_ID_ENV_NAME],
|
28
|
-
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
29
|
-
default: undefined,
|
30
|
-
})();
|
31
|
-
let resolvedUserAgent = undefined;
|
32
|
-
return async () => {
|
33
|
-
if (!resolvedUserAgent) {
|
34
|
-
const appId = await appIdPromise;
|
35
|
-
resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
36
|
-
}
|
37
|
-
return resolvedUserAgent;
|
38
|
-
};
|
39
|
-
};
|
1
|
+
export * from "./defaultUserAgent";
|
2
|
+
export * from "./nodeAppIdConfigOptions";
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { DEFAULT_UA_APP_ID } from "@aws-sdk/middleware-user-agent";
|
2
|
+
export const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
3
|
+
export const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
4
|
+
export const NODE_APP_ID_CONFIG_OPTIONS = {
|
5
|
+
environmentVariableSelector: (env) => env[UA_APP_ID_ENV_NAME],
|
6
|
+
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME],
|
7
|
+
default: DEFAULT_UA_APP_ID,
|
8
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Provider, UserAgent } from "@smithy/types";
|
2
|
+
export { crtAvailability } from "./crt-availability";
|
3
|
+
export interface DefaultUserAgentOptions {
|
4
|
+
serviceId?: string;
|
5
|
+
clientVersion: string;
|
6
|
+
}
|
7
|
+
export interface PreviouslyResolved {
|
8
|
+
userAgentAppId: Provider<string | undefined>;
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* @internal
|
12
|
+
*
|
13
|
+
* Collect metrics from runtime to put into user agent.
|
14
|
+
*/
|
15
|
+
export declare const createDefaultUserAgentProvider: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
* @internal
|
19
|
+
*
|
20
|
+
* @deprecated use createDefaultUserAgentProvider
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => (config?: PreviouslyResolved) => Promise<UserAgent>;
|
@@ -1,20 +1,2 @@
|
|
1
|
-
|
2
|
-
export
|
3
|
-
/**
|
4
|
-
* @internal
|
5
|
-
*/
|
6
|
-
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
7
|
-
/**
|
8
|
-
* @internal
|
9
|
-
*/
|
10
|
-
export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
11
|
-
interface DefaultUserAgentOptions {
|
12
|
-
serviceId?: string;
|
13
|
-
clientVersion: string;
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* @internal
|
17
|
-
*
|
18
|
-
* Collect metrics from runtime to put into user agent.
|
19
|
-
*/
|
20
|
-
export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider<UserAgent>;
|
1
|
+
export * from "./defaultUserAgent";
|
2
|
+
export * from "./nodeAppIdConfigOptions";
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
2
|
+
/**
|
3
|
+
* @internal
|
4
|
+
*/
|
5
|
+
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
6
|
+
/**
|
7
|
+
* @internal
|
8
|
+
*/
|
9
|
+
export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
10
|
+
/**
|
11
|
+
* @internal
|
12
|
+
*/
|
13
|
+
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<string | undefined>;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Provider, UserAgent } from "@smithy/types";
|
2
|
+
export { crtAvailability } from "./crt-availability";
|
3
|
+
export interface DefaultUserAgentOptions {
|
4
|
+
serviceId?: string;
|
5
|
+
clientVersion: string;
|
6
|
+
}
|
7
|
+
export interface PreviouslyResolved {
|
8
|
+
userAgentAppId: Provider<string | undefined>;
|
9
|
+
}
|
10
|
+
export declare const createDefaultUserAgentProvider: ({
|
11
|
+
serviceId,
|
12
|
+
clientVersion,
|
13
|
+
}: DefaultUserAgentOptions) => (
|
14
|
+
config?: PreviouslyResolved
|
15
|
+
) => Promise<UserAgent>;
|
16
|
+
export declare const defaultUserAgent: ({
|
17
|
+
serviceId,
|
18
|
+
clientVersion,
|
19
|
+
}: DefaultUserAgentOptions) => (
|
20
|
+
config?: PreviouslyResolved
|
21
|
+
) => Promise<UserAgent>;
|
@@ -1,12 +1,2 @@
|
|
1
|
-
|
2
|
-
export
|
3
|
-
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
4
|
-
export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
5
|
-
interface DefaultUserAgentOptions {
|
6
|
-
serviceId?: string;
|
7
|
-
clientVersion: string;
|
8
|
-
}
|
9
|
-
export declare const defaultUserAgent: ({
|
10
|
-
serviceId,
|
11
|
-
clientVersion,
|
12
|
-
}: DefaultUserAgentOptions) => Provider<UserAgent>;
|
1
|
+
export * from "./defaultUserAgent";
|
2
|
+
export * from "./nodeAppIdConfigOptions";
|
package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/nodeAppIdConfigOptions.d.ts
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
2
|
+
export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
|
3
|
+
export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id";
|
4
|
+
export declare const NODE_APP_ID_CONFIG_OPTIONS: LoadedConfigSelectors<
|
5
|
+
string | undefined
|
6
|
+
>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.664.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 util-user-agent-node",
|
@@ -20,9 +20,10 @@
|
|
20
20
|
},
|
21
21
|
"license": "Apache-2.0",
|
22
22
|
"dependencies": {
|
23
|
-
"@aws-sdk/
|
24
|
-
"@
|
25
|
-
"@smithy/
|
23
|
+
"@aws-sdk/middleware-user-agent": "3.664.0",
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
25
|
+
"@smithy/node-config-provider": "^3.1.8",
|
26
|
+
"@smithy/types": "^3.5.0",
|
26
27
|
"tslib": "^2.6.2"
|
27
28
|
},
|
28
29
|
"devDependencies": {
|
package/package.json
CHANGED
@@ -51,7 +51,7 @@
|
|
51
51
|
"aws-cdk": "^2.160.0",
|
52
52
|
"aws-cdk-lib": "2.109.0",
|
53
53
|
"cdk8s": "2.68.91",
|
54
|
-
"cdk8s-cli": "^2.198.
|
54
|
+
"cdk8s-cli": "^2.198.235",
|
55
55
|
"commit-and-tag-version": "^12",
|
56
56
|
"constructs": "10.3.0",
|
57
57
|
"eslint": "^8",
|
@@ -76,7 +76,7 @@
|
|
76
76
|
"constructs": "^10.3.0"
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
|
-
"@aws-sdk/client-cloudformation": "^3.
|
79
|
+
"@aws-sdk/client-cloudformation": "^3.664.0"
|
80
80
|
},
|
81
81
|
"bundledDependencies": [
|
82
82
|
"@aws-sdk/client-cloudformation"
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"publishConfig": {
|
93
93
|
"access": "public"
|
94
94
|
},
|
95
|
-
"version": "0.0.
|
95
|
+
"version": "0.0.178",
|
96
96
|
"jest": {
|
97
97
|
"coverageProvider": "v8",
|
98
98
|
"testMatch": [
|