@mavogel/awscdk-rootmail 0.0.157 → 0.0.159
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 +7 -7
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +14 -14
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-route-53/package.json +15 -15
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +38 -25
- package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +2 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/models/models_0.js +4 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/protocols/Aws_restXml.js +5 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +11 -10
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +98 -80
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +95 -21
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +7 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +11 -12
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +14 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +8 -3
- package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-s3/package.json +22 -22
- package/node_modules/@aws-sdk/client-ses/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-ses/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-ses/package.json +14 -14
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js +1 -0
- package/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/node_modules/@aws-sdk/client-ssm/package.json +14 -14
- 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 +11 -11
- 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 +13 -13
- 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 +13 -13
- 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 +2 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-route53/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-ssec/package.json +2 -2
- 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 +4 -3
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- 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 +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- 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 +2 -2
- 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 +3 -2
- package/package.json +9 -9
|
@@ -22,9 +22,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
22
22
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
23
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
24
24
|
region: string | import("@smithy/types").Provider<any>;
|
|
25
|
-
defaultUserAgentProvider:
|
|
26
|
-
import("@
|
|
27
|
-
>;
|
|
25
|
+
defaultUserAgentProvider: (
|
|
26
|
+
config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
27
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
28
28
|
credentialDefaultProvider: (
|
|
29
29
|
input: any
|
|
30
30
|
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
38
38
|
import("@smithy/smithy-client").DefaultsMode
|
|
39
39
|
>;
|
|
40
40
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
41
|
+
userAgentAppId?:
|
|
42
|
+
| string
|
|
43
|
+
| import("@smithy/types").Provider<string | undefined>
|
|
44
|
+
| undefined;
|
|
41
45
|
retryStrategy?:
|
|
42
46
|
| import("@smithy/types").RetryStrategy
|
|
43
47
|
| import("@smithy/types").RetryStrategyV2
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.664.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
25
|
+
"@aws-sdk/client-sso-oidc": "3.664.0",
|
|
26
|
+
"@aws-sdk/core": "3.664.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.664.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.664.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.664.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.664.0",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.664.0",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "3.664.0",
|
|
33
|
+
"@aws-sdk/types": "3.664.0",
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.664.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "3.664.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.664.0",
|
|
37
37
|
"@smithy/config-resolver": "^3.0.9",
|
|
38
38
|
"@smithy/core": "^2.4.7",
|
|
39
39
|
"@smithy/fetch-http-handler": "^3.2.9",
|
|
@@ -21,7 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/submodules/client/index.ts
|
|
22
22
|
var client_exports = {};
|
|
23
23
|
__export(client_exports, {
|
|
24
|
-
emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion
|
|
24
|
+
emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
|
|
25
|
+
setFeature: () => setFeature
|
|
25
26
|
});
|
|
26
27
|
module.exports = __toCommonJS(client_exports);
|
|
27
28
|
|
|
@@ -41,7 +42,21 @@ More information can be found at: https://a.co/74kJMmI`
|
|
|
41
42
|
);
|
|
42
43
|
}
|
|
43
44
|
}, "emitWarningIfUnsupportedVersion");
|
|
45
|
+
|
|
46
|
+
// src/submodules/client/setFeature.ts
|
|
47
|
+
function setFeature(context, feature, value) {
|
|
48
|
+
if (!context.__aws_sdk_context) {
|
|
49
|
+
context.__aws_sdk_context = {
|
|
50
|
+
features: {}
|
|
51
|
+
};
|
|
52
|
+
} else if (!context.__aws_sdk_context.features) {
|
|
53
|
+
context.__aws_sdk_context.features = {};
|
|
54
|
+
}
|
|
55
|
+
context.__aws_sdk_context.features[feature] = value;
|
|
56
|
+
}
|
|
57
|
+
__name(setFeature, "setFeature");
|
|
44
58
|
// Annotate the CommonJS export names for ESM import in node:
|
|
45
59
|
0 && (module.exports = {
|
|
46
|
-
emitWarningIfUnsupportedVersion
|
|
60
|
+
emitWarningIfUnsupportedVersion,
|
|
61
|
+
setFeature
|
|
47
62
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function setFeature(context, feature, value) {
|
|
2
|
+
if (!context.__aws_sdk_context) {
|
|
3
|
+
context.__aws_sdk_context = {
|
|
4
|
+
features: {},
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
else if (!context.__aws_sdk_context.features) {
|
|
8
|
+
context.__aws_sdk_context.features = {};
|
|
9
|
+
}
|
|
10
|
+
context.__aws_sdk_context.features[feature] = value;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AwsHandlerExecutionContext, AwsSdkFeatures } from "@aws-sdk/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
* Indicates to the request context that a given feature is active.
|
|
5
|
+
*
|
|
6
|
+
* @param context - handler execution context.
|
|
7
|
+
* @param feature - readable name of feature.
|
|
8
|
+
* @param value - encoding value of feature. This is required because the
|
|
9
|
+
* specification asks the SDK not to include a runtime lookup of all
|
|
10
|
+
* the feature identifiers.
|
|
11
|
+
*/
|
|
12
|
+
export declare function setFeature<F extends keyof AwsSdkFeatures>(context: AwsHandlerExecutionContext, feature: F, value: AwsSdkFeatures[F]): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.664.0",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"license": "Apache-2.0",
|
|
81
81
|
"dependencies": {
|
|
82
|
+
"@aws-sdk/types": "3.664.0",
|
|
82
83
|
"@smithy/core": "^2.4.7",
|
|
83
84
|
"@smithy/node-config-provider": "^3.1.8",
|
|
84
85
|
"@smithy/property-provider": "^3.1.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.664.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/types": "3.664.0",
|
|
28
28
|
"@smithy/property-provider": "^3.1.7",
|
|
29
29
|
"@smithy/types": "^3.5.0",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.664.0",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
29
|
+
"@aws-sdk/types": "3.664.0",
|
|
30
30
|
"@smithy/fetch-http-handler": "^3.2.9",
|
|
31
31
|
"@smithy/node-http-handler": "^3.2.4",
|
|
32
32
|
"@smithy/property-provider": "^3.1.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.664.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
28
|
-
"@aws-sdk/credential-provider-http": "3.
|
|
29
|
-
"@aws-sdk/credential-provider-process": "3.
|
|
30
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
31
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/credential-provider-env": "3.664.0",
|
|
28
|
+
"@aws-sdk/credential-provider-http": "3.664.0",
|
|
29
|
+
"@aws-sdk/credential-provider-process": "3.664.0",
|
|
30
|
+
"@aws-sdk/credential-provider-sso": "3.664.0",
|
|
31
|
+
"@aws-sdk/credential-provider-web-identity": "3.664.0",
|
|
32
|
+
"@aws-sdk/types": "3.664.0",
|
|
33
33
|
"@smithy/credential-provider-imds": "^3.2.4",
|
|
34
34
|
"@smithy/property-provider": "^3.1.7",
|
|
35
35
|
"@smithy/shared-ini-file-loader": "^3.1.8",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "~4.9.5"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@aws-sdk/client-sts": "^3.
|
|
48
|
+
"@aws-sdk/client-sts": "^3.664.0"
|
|
49
49
|
},
|
|
50
50
|
"types": "./dist-types/index.d.ts",
|
|
51
51
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.664.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/credential-provider-env": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-http": "3.
|
|
33
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
34
|
-
"@aws-sdk/credential-provider-process": "3.
|
|
35
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
36
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
37
|
-
"@aws-sdk/types": "3.
|
|
31
|
+
"@aws-sdk/credential-provider-env": "3.664.0",
|
|
32
|
+
"@aws-sdk/credential-provider-http": "3.664.0",
|
|
33
|
+
"@aws-sdk/credential-provider-ini": "3.664.0",
|
|
34
|
+
"@aws-sdk/credential-provider-process": "3.664.0",
|
|
35
|
+
"@aws-sdk/credential-provider-sso": "3.664.0",
|
|
36
|
+
"@aws-sdk/credential-provider-web-identity": "3.664.0",
|
|
37
|
+
"@aws-sdk/types": "3.664.0",
|
|
38
38
|
"@smithy/credential-provider-imds": "^3.2.4",
|
|
39
39
|
"@smithy/property-provider": "^3.1.7",
|
|
40
40
|
"@smithy/shared-ini-file-loader": "^3.1.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.664.0",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/types": "3.664.0",
|
|
28
28
|
"@smithy/property-provider": "^3.1.7",
|
|
29
29
|
"@smithy/shared-ini-file-loader": "^3.1.8",
|
|
30
30
|
"@smithy/types": "^3.5.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.664.0",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/client-sso": "3.
|
|
28
|
-
"@aws-sdk/token-providers": "3.
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/client-sso": "3.664.0",
|
|
28
|
+
"@aws-sdk/token-providers": "3.664.0",
|
|
29
|
+
"@aws-sdk/types": "3.664.0",
|
|
30
30
|
"@smithy/property-provider": "^3.1.7",
|
|
31
31
|
"@smithy/shared-ini-file-loader": "^3.1.8",
|
|
32
32
|
"@smithy/types": "^3.5.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.664.0",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@aws-sdk/types": "3.
|
|
35
|
+
"@aws-sdk/types": "3.664.0",
|
|
36
36
|
"@smithy/property-provider": "^3.1.7",
|
|
37
37
|
"@smithy/types": "^3.5.0",
|
|
38
38
|
"tslib": "^2.6.2"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "~4.9.5"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@aws-sdk/client-sts": "^3.
|
|
49
|
+
"@aws-sdk/client-sts": "^3.664.0"
|
|
50
50
|
},
|
|
51
51
|
"types": "./dist-types/index.d.ts",
|
|
52
52
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-bucket-endpoint",
|
|
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 middleware-bucket-endpoint",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
|
25
25
|
"@aws-sdk/util-arn-parser": "3.568.0",
|
|
26
26
|
"@smithy/node-config-provider": "^3.1.8",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-expect-continue",
|
|
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 middleware-expect-continue",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
|
25
25
|
"@smithy/protocol-http": "^4.1.4",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-flexible-checksums",
|
|
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 middleware-flexible-checksums",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-crypto/crc32": "5.2.0",
|
|
32
32
|
"@aws-crypto/crc32c": "5.2.0",
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
33
|
+
"@aws-sdk/types": "3.664.0",
|
|
34
34
|
"@smithy/is-array-buffer": "^3.0.0",
|
|
35
35
|
"@smithy/node-config-provider": "^3.1.8",
|
|
36
36
|
"@smithy/protocol-http": "^4.1.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-host-header",
|
|
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 middleware-host-header",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
|
25
25
|
"@smithy/protocol-http": "^4.1.4",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-location-constraint",
|
|
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 middleware-location-constraint",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
|
25
25
|
"@smithy/types": "^3.5.0",
|
|
26
26
|
"tslib": "^2.6.2"
|
|
27
27
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
|
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 middleware-logger",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"module": "./dist-es/index.js",
|
|
23
23
|
"types": "./dist-types/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/types": "3.664.0",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
|
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 middleware-recursion-detection",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
|
25
25
|
"@smithy/protocol-http": "^4.1.4",
|
|
26
26
|
"@smithy/types": "^3.5.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-route53",
|
|
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 middleware-sdk-route53",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
|
25
25
|
"@smithy/types": "^3.5.0",
|
|
26
26
|
"tslib": "^2.6.2"
|
|
27
27
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
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 middleware-sdk-s3",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/core": "3.664.0",
|
|
27
|
+
"@aws-sdk/types": "3.664.0",
|
|
28
28
|
"@aws-sdk/util-arn-parser": "3.568.0",
|
|
29
29
|
"@smithy/core": "^2.4.7",
|
|
30
30
|
"@smithy/node-config-provider": "^3.1.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-ssec",
|
|
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 middleware-ssec",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/types": "3.664.0",
|
|
25
25
|
"@smithy/types": "^3.5.0",
|
|
26
26
|
"tslib": "^2.6.2"
|
|
27
27
|
},
|
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
|
+
DEFAULT_UA_APP_ID: () => DEFAULT_UA_APP_ID,
|
|
24
25
|
getUserAgentMiddlewareOptions: () => getUserAgentMiddlewareOptions,
|
|
25
26
|
getUserAgentPlugin: () => getUserAgentPlugin,
|
|
26
27
|
resolveUserAgentConfig: () => resolveUserAgentConfig,
|
|
@@ -29,10 +30,33 @@ __export(src_exports, {
|
|
|
29
30
|
module.exports = __toCommonJS(src_exports);
|
|
30
31
|
|
|
31
32
|
// src/configurations.ts
|
|
33
|
+
var import_core = require("@smithy/core");
|
|
34
|
+
var DEFAULT_UA_APP_ID = void 0;
|
|
35
|
+
function isValidUserAgentAppId(appId) {
|
|
36
|
+
if (appId === void 0) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
return typeof appId === "string" && appId.length <= 50;
|
|
40
|
+
}
|
|
41
|
+
__name(isValidUserAgentAppId, "isValidUserAgentAppId");
|
|
32
42
|
function resolveUserAgentConfig(input) {
|
|
43
|
+
const normalizedAppIdProvider = (0, import_core.normalizeProvider)(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
|
|
33
44
|
return {
|
|
34
45
|
...input,
|
|
35
|
-
customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent
|
|
46
|
+
customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent,
|
|
47
|
+
userAgentAppId: async () => {
|
|
48
|
+
var _a, _b;
|
|
49
|
+
const appId = await normalizedAppIdProvider();
|
|
50
|
+
if (!isValidUserAgentAppId(appId)) {
|
|
51
|
+
const logger = ((_b = (_a = input.logger) == null ? void 0 : _a.constructor) == null ? void 0 : _b.name) === "NoOpLogger" || !input.logger ? console : input.logger;
|
|
52
|
+
if (typeof appId !== "string") {
|
|
53
|
+
logger == null ? void 0 : logger.warn("userAgentAppId must be a string or undefined.");
|
|
54
|
+
} else if (appId.length > 50) {
|
|
55
|
+
logger == null ? void 0 : logger.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return appId;
|
|
59
|
+
}
|
|
36
60
|
};
|
|
37
61
|
}
|
|
38
62
|
__name(resolveUserAgentConfig, "resolveUserAgentConfig");
|
|
@@ -50,16 +74,47 @@ var UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;
|
|
|
50
74
|
var UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;
|
|
51
75
|
var UA_ESCAPE_CHAR = "-";
|
|
52
76
|
|
|
77
|
+
// src/encode-features.ts
|
|
78
|
+
var BYTE_LIMIT = 1024;
|
|
79
|
+
function encodeFeatures(features) {
|
|
80
|
+
let buffer = "";
|
|
81
|
+
for (const key in features) {
|
|
82
|
+
const val = features[key];
|
|
83
|
+
if (buffer.length + val.length + 1 <= BYTE_LIMIT) {
|
|
84
|
+
if (buffer.length) {
|
|
85
|
+
buffer += "," + val;
|
|
86
|
+
} else {
|
|
87
|
+
buffer += val;
|
|
88
|
+
}
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
return buffer;
|
|
94
|
+
}
|
|
95
|
+
__name(encodeFeatures, "encodeFeatures");
|
|
96
|
+
|
|
53
97
|
// src/user-agent-middleware.ts
|
|
54
98
|
var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {
|
|
55
|
-
var _a, _b;
|
|
99
|
+
var _a, _b, _c, _d;
|
|
56
100
|
const { request } = args;
|
|
57
|
-
if (!import_protocol_http.HttpRequest.isInstance(request))
|
|
101
|
+
if (!import_protocol_http.HttpRequest.isInstance(request)) {
|
|
58
102
|
return next(args);
|
|
103
|
+
}
|
|
59
104
|
const { headers } = request;
|
|
60
105
|
const userAgent = ((_a = context == null ? void 0 : context.userAgent) == null ? void 0 : _a.map(escapeUserAgent)) || [];
|
|
61
106
|
const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
|
|
62
|
-
const
|
|
107
|
+
const awsContext = context;
|
|
108
|
+
defaultUserAgent.push(
|
|
109
|
+
`m/${encodeFeatures(
|
|
110
|
+
Object.assign({}, (_b = context.__smithy_context) == null ? void 0 : _b.features, (_c = awsContext.__aws_sdk_context) == null ? void 0 : _c.features)
|
|
111
|
+
)}`
|
|
112
|
+
);
|
|
113
|
+
const customUserAgent = ((_d = options == null ? void 0 : options.customUserAgent) == null ? void 0 : _d.map(escapeUserAgent)) || [];
|
|
114
|
+
const appId = await options.userAgentAppId();
|
|
115
|
+
if (appId) {
|
|
116
|
+
defaultUserAgent.push(escapeUserAgent([`app/${appId}`]));
|
|
117
|
+
}
|
|
63
118
|
const prefix = (0, import_util_endpoints.getUserAgentPrefix)();
|
|
64
119
|
const sdkUserAgentValue = (prefix ? [prefix] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(SPACE);
|
|
65
120
|
const normalUAValue = [
|
|
@@ -115,6 +170,7 @@ var getUserAgentPlugin = /* @__PURE__ */ __name((config) => ({
|
|
|
115
170
|
// Annotate the CommonJS export names for ESM import in node:
|
|
116
171
|
|
|
117
172
|
0 && (module.exports = {
|
|
173
|
+
DEFAULT_UA_APP_ID,
|
|
118
174
|
resolveUserAgentConfig,
|
|
119
175
|
userAgentMiddleware,
|
|
120
176
|
getUserAgentMiddlewareOptions,
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
+
import { normalizeProvider } from "@smithy/core";
|
|
2
|
+
export const DEFAULT_UA_APP_ID = undefined;
|
|
3
|
+
function isValidUserAgentAppId(appId) {
|
|
4
|
+
if (appId === undefined) {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
return typeof appId === "string" && appId.length <= 50;
|
|
8
|
+
}
|
|
1
9
|
export function resolveUserAgentConfig(input) {
|
|
10
|
+
const normalizedAppIdProvider = normalizeProvider(input.userAgentAppId ?? DEFAULT_UA_APP_ID);
|
|
2
11
|
return {
|
|
3
12
|
...input,
|
|
4
13
|
customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent,
|
|
14
|
+
userAgentAppId: async () => {
|
|
15
|
+
const appId = await normalizedAppIdProvider();
|
|
16
|
+
if (!isValidUserAgentAppId(appId)) {
|
|
17
|
+
const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
|
|
18
|
+
if (typeof appId !== "string") {
|
|
19
|
+
logger?.warn("userAgentAppId must be a string or undefined.");
|
|
20
|
+
}
|
|
21
|
+
else if (appId.length > 50) {
|
|
22
|
+
logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return appId;
|
|
26
|
+
},
|
|
5
27
|
};
|
|
6
28
|
}
|