@cdk8s/awscdk-resolver 0.0.224 → 0.0.226
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/index.js +610 -478
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormationClient.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +81 -54
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +3 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-cloudformation/package.json +44 -44
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +57 -42
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +8 -8
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +15 -5
- package/node_modules/@aws-sdk/client-sso/package.json +40 -40
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +295 -92
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +58 -28
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +42 -42
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +115 -104
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +16 -16
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-sts/package.json +42 -42
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +18 -22
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +3 -4
- package/node_modules/@aws-sdk/core/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-http/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +12 -17
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +16 -16
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +11 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +15 -15
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -5
- package/node_modules/@aws-sdk/credential-provider-process/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +5 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +9 -9
- package/node_modules/@aws-sdk/middleware-host-header/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +13 -17
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -9
- package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +5 -7
- package/node_modules/@aws-sdk/token-providers/package.json +9 -9
- package/node_modules/@aws-sdk/types/package.json +4 -4
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -8
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +8 -6
- package/node_modules/@smithy/abort-controller/package.json +3 -3
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +8 -12
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/package.json +6 -6
- package/node_modules/@smithy/core/dist-cjs/index.js +19 -16
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +1 -0
- package/node_modules/@smithy/core/package.json +10 -10
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +10 -11
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +8 -9
- package/node_modules/@smithy/fetch-http-handler/package.json +9 -6
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +4 -3
- package/node_modules/@smithy/hash-node/package.json +6 -6
- package/node_modules/@smithy/invalid-dependency/package.json +5 -2
- package/node_modules/@smithy/is-array-buffer/package.json +5 -4
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +7 -9
- package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +18 -17
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +1 -2
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +4 -12
- package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +3 -0
- package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/MiddlewareStack.d.ts +3 -0
- package/node_modules/@smithy/middleware-stack/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +9 -0
- package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts +9 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromStatic.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/package.json +6 -6
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +36 -36
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/package.json +7 -7
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +16 -14
- package/node_modules/@smithy/property-provider/package.json +3 -3
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +16 -12
- package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +0 -2
- package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +3 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +13 -0
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -2
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +3 -1
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +13 -0
- package/node_modules/@smithy/protocol-http/package.json +3 -3
- package/node_modules/@smithy/querystring-builder/package.json +4 -4
- package/node_modules/@smithy/querystring-parser/package.json +3 -3
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +4 -14
- package/node_modules/@smithy/service-error-classification/package.json +3 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +2 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +7 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +3 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +2 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +7 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +3 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +6 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +6 -3
- package/node_modules/@smithy/shared-ini-file-loader/package.json +4 -4
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +16 -14
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +9 -0
- package/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts +13 -9
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/prepareRequest.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +9 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/credentialDerivation.d.ts +13 -9
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalHeaders.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getPayloadHash.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/package.json +9 -9
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +27 -21
- package/node_modules/@smithy/smithy-client/package.json +9 -9
- package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/client.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/connection/config.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/connection/pool.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/encode.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +9 -0
- package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +30 -0
- package/node_modules/@smithy/types/dist-types/eventStream.d.ts +31 -2
- package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +3 -2
- package/node_modules/@smithy/types/dist-types/http.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +2 -1
- package/node_modules/@smithy/types/dist-types/transfer.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +9 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +30 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +31 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +3 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +8 -0
- package/node_modules/@smithy/types/package.json +2 -2
- package/node_modules/@smithy/url-parser/package.json +6 -3
- package/node_modules/@smithy/util-base64/package.json +8 -7
- package/node_modules/@smithy/util-body-length-browser/package.json +7 -3
- package/node_modules/@smithy/util-body-length-node/package.json +6 -5
- package/node_modules/@smithy/util-buffer-from/package.json +7 -6
- package/node_modules/@smithy/util-config-provider/package.json +6 -5
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -6
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -9
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +13 -15
- package/node_modules/@smithy/util-endpoints/package.json +5 -5
- package/node_modules/@smithy/util-hex-encoding/package.json +5 -4
- package/node_modules/@smithy/util-middleware/package.json +4 -4
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +27 -21
- package/node_modules/@smithy/util-retry/package.json +5 -5
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +4 -3
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +1 -0
- package/node_modules/@smithy/util-stream/package.json +10 -10
- package/node_modules/@smithy/util-uri-escape/package.json +5 -4
- package/node_modules/@smithy/util-utf8/package.json +6 -5
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +4 -6
- package/node_modules/@smithy/util-waiter/package.json +4 -4
- package/package.json +3 -3
@@ -45,14 +45,13 @@ function resolveUserAgentConfig(input) {
|
|
45
45
|
...input,
|
46
46
|
customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent,
|
47
47
|
userAgentAppId: async () => {
|
48
|
-
var _a, _b;
|
49
48
|
const appId = await normalizedAppIdProvider();
|
50
49
|
if (!isValidUserAgentAppId(appId)) {
|
51
|
-
const logger =
|
50
|
+
const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger;
|
52
51
|
if (typeof appId !== "string") {
|
53
|
-
logger
|
52
|
+
logger?.warn("userAgentAppId must be a string or undefined.");
|
54
53
|
} else if (appId.length > 50) {
|
55
|
-
logger
|
54
|
+
logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.");
|
56
55
|
}
|
57
56
|
}
|
58
57
|
return appId;
|
@@ -69,15 +68,14 @@ var import_protocol_http = require("@smithy/protocol-http");
|
|
69
68
|
var import_core2 = require("@aws-sdk/core");
|
70
69
|
var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
71
70
|
async function checkFeatures(context, config, args) {
|
72
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
73
71
|
const request = args.request;
|
74
|
-
if (
|
72
|
+
if (request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") {
|
75
73
|
(0, import_core2.setFeature)(context, "PROTOCOL_RPC_V2_CBOR", "M");
|
76
74
|
}
|
77
75
|
if (typeof config.retryStrategy === "function") {
|
78
76
|
const retryStrategy = await config.retryStrategy();
|
79
77
|
if (typeof retryStrategy.acquireInitialRetryToken === "function") {
|
80
|
-
if (
|
78
|
+
if (retryStrategy.constructor?.name?.includes("Adaptive")) {
|
81
79
|
(0, import_core2.setFeature)(context, "RETRY_MODE_ADAPTIVE", "F");
|
82
80
|
} else {
|
83
81
|
(0, import_core2.setFeature)(context, "RETRY_MODE_STANDARD", "E");
|
@@ -88,10 +86,10 @@ async function checkFeatures(context, config, args) {
|
|
88
86
|
}
|
89
87
|
if (typeof config.accountIdEndpointMode === "function") {
|
90
88
|
const endpointV2 = context.endpointV2;
|
91
|
-
if (String(
|
89
|
+
if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) {
|
92
90
|
(0, import_core2.setFeature)(context, "ACCOUNT_ID_ENDPOINT", "O");
|
93
91
|
}
|
94
|
-
switch (await
|
92
|
+
switch (await config.accountIdEndpointMode?.()) {
|
95
93
|
case "disabled":
|
96
94
|
(0, import_core2.setFeature)(context, "ACCOUNT_ID_MODE_DISABLED", "Q");
|
97
95
|
break;
|
@@ -103,8 +101,8 @@ async function checkFeatures(context, config, args) {
|
|
103
101
|
break;
|
104
102
|
}
|
105
103
|
}
|
106
|
-
const identity =
|
107
|
-
if (identity
|
104
|
+
const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity;
|
105
|
+
if (identity?.$source) {
|
108
106
|
const credentials = identity;
|
109
107
|
if (credentials.accountId) {
|
110
108
|
(0, import_core2.setFeature)(context, "RESOLVED_ACCOUNT_ID", "T");
|
@@ -147,22 +145,21 @@ __name(encodeFeatures, "encodeFeatures");
|
|
147
145
|
|
148
146
|
// src/user-agent-middleware.ts
|
149
147
|
var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {
|
150
|
-
var _a, _b, _c, _d;
|
151
148
|
const { request } = args;
|
152
149
|
if (!import_protocol_http.HttpRequest.isInstance(request)) {
|
153
150
|
return next(args);
|
154
151
|
}
|
155
152
|
const { headers } = request;
|
156
|
-
const userAgent =
|
153
|
+
const userAgent = context?.userAgent?.map(escapeUserAgent) || [];
|
157
154
|
const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent);
|
158
155
|
await checkFeatures(context, options, args);
|
159
156
|
const awsContext = context;
|
160
157
|
defaultUserAgent.push(
|
161
158
|
`m/${encodeFeatures(
|
162
|
-
Object.assign({},
|
159
|
+
Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features)
|
163
160
|
)}`
|
164
161
|
);
|
165
|
-
const customUserAgent =
|
162
|
+
const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];
|
166
163
|
const appId = await options.userAgentAppId();
|
167
164
|
if (appId) {
|
168
165
|
defaultUserAgent.push(escapeUserAgent([`app/${appId}`]));
|
@@ -187,9 +184,8 @@ var userAgentMiddleware = /* @__PURE__ */ __name((options) => (next, context) =>
|
|
187
184
|
});
|
188
185
|
}, "userAgentMiddleware");
|
189
186
|
var escapeUserAgent = /* @__PURE__ */ __name((userAgentPair) => {
|
190
|
-
var _a;
|
191
187
|
const name = userAgentPair[0].split(UA_NAME_SEPARATOR).map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR);
|
192
|
-
const version =
|
188
|
+
const version = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR);
|
193
189
|
const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR);
|
194
190
|
const prefix = name.substring(0, prefixSeparatorIndex);
|
195
191
|
let uaName = name.substring(prefixSeparatorIndex + 1);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.723.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": "^
|
31
|
-
"@smithy/protocol-http": "^
|
32
|
-
"@smithy/types": "^
|
27
|
+
"@aws-sdk/core": "3.723.0",
|
28
|
+
"@aws-sdk/types": "3.723.0",
|
29
|
+
"@aws-sdk/util-endpoints": "3.723.0",
|
30
|
+
"@smithy/core": "^3.0.0",
|
31
|
+
"@smithy/protocol-http": "^5.0.0",
|
32
|
+
"@smithy/types": "^4.0.0",
|
33
33
|
"tslib": "^2.6.2"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
@@ -37,10 +37,10 @@
|
|
37
37
|
"concurrently": "7.0.0",
|
38
38
|
"downlevel-dts": "0.10.1",
|
39
39
|
"rimraf": "3.0.2",
|
40
|
-
"typescript": "~
|
40
|
+
"typescript": "~5.2.2"
|
41
41
|
},
|
42
42
|
"engines": {
|
43
|
-
"node": ">=
|
43
|
+
"node": ">=18.0.0"
|
44
44
|
},
|
45
45
|
"typesVersions": {
|
46
46
|
"<4.0": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/region-config-resolver",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.723.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 region-config-resolver",
|
@@ -22,11 +22,11 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
26
|
-
"@smithy/node-config-provider": "^
|
27
|
-
"@smithy/types": "^
|
28
|
-
"@smithy/util-config-provider": "^
|
29
|
-
"@smithy/util-middleware": "^
|
25
|
+
"@aws-sdk/types": "3.723.0",
|
26
|
+
"@smithy/node-config-provider": "^4.0.0",
|
27
|
+
"@smithy/types": "^4.0.0",
|
28
|
+
"@smithy/util-config-provider": "^4.0.0",
|
29
|
+
"@smithy/util-middleware": "^4.0.0",
|
30
30
|
"tslib": "^2.6.2"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
@@ -35,10 +35,10 @@
|
|
35
35
|
"downlevel-dts": "0.10.1",
|
36
36
|
"jest": "28.1.1",
|
37
37
|
"rimraf": "3.0.2",
|
38
|
-
"typescript": "~
|
38
|
+
"typescript": "~5.2.2"
|
39
39
|
},
|
40
40
|
"engines": {
|
41
|
-
"node": ">=
|
41
|
+
"node": ">=18.0.0"
|
42
42
|
},
|
43
43
|
"typesVersions": {
|
44
44
|
"<4.0": {
|
@@ -47,12 +47,11 @@ var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the
|
|
47
47
|
|
48
48
|
// src/getSsoOidcClient.ts
|
49
49
|
var getSsoOidcClient = /* @__PURE__ */ __name(async (ssoRegion, init = {}) => {
|
50
|
-
var _a, _b, _c;
|
51
50
|
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/client-sso-oidc")));
|
52
51
|
const ssoOidcClient = new SSOOIDCClient(
|
53
52
|
Object.assign({}, init.clientConfig ?? {}, {
|
54
|
-
region: ssoRegion ??
|
55
|
-
logger:
|
53
|
+
region: ssoRegion ?? init.clientConfig?.region,
|
54
|
+
logger: init.clientConfig?.logger ?? init.parentClientConfig?.logger
|
56
55
|
})
|
57
56
|
);
|
58
57
|
return ssoOidcClient;
|
@@ -104,7 +103,6 @@ var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
|
|
104
103
|
// src/fromSso.ts
|
105
104
|
var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
|
106
105
|
var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => {
|
107
|
-
var _a;
|
108
106
|
const init = {
|
109
107
|
..._init,
|
110
108
|
parentClientConfig: {
|
@@ -112,10 +110,10 @@ var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig
|
|
112
110
|
..._init.parentClientConfig
|
113
111
|
}
|
114
112
|
};
|
115
|
-
|
113
|
+
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
116
114
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
117
115
|
const profileName = (0, import_shared_ini_file_loader.getProfileName)({
|
118
|
-
profile: init.profile ??
|
116
|
+
profile: init.profile ?? callerClientConfig?.profile
|
119
117
|
});
|
120
118
|
const profile = profiles[profileName];
|
121
119
|
if (!profile) {
|
@@ -193,7 +191,7 @@ var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig
|
|
193
191
|
// src/fromStatic.ts
|
194
192
|
|
195
193
|
var fromStatic = /* @__PURE__ */ __name(({ token, logger }) => async () => {
|
196
|
-
logger
|
194
|
+
logger?.debug("@aws-sdk/token-providers - fromStatic");
|
197
195
|
if (!token || !token.token) {
|
198
196
|
throw new import_property_provider.TokenProviderError(`Please pass a valid token to fromStatic`, false);
|
199
197
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/token-providers",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.723.0",
|
4
4
|
"description": "A collection of token providers",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -27,26 +27,26 @@
|
|
27
27
|
},
|
28
28
|
"license": "Apache-2.0",
|
29
29
|
"dependencies": {
|
30
|
-
"@aws-sdk/types": "3.
|
31
|
-
"@smithy/property-provider": "^
|
32
|
-
"@smithy/shared-ini-file-loader": "^
|
33
|
-
"@smithy/types": "^
|
30
|
+
"@aws-sdk/types": "3.723.0",
|
31
|
+
"@smithy/property-provider": "^4.0.0",
|
32
|
+
"@smithy/shared-ini-file-loader": "^4.0.0",
|
33
|
+
"@smithy/types": "^4.0.0",
|
34
34
|
"tslib": "^2.6.2"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"@tsconfig/recommended": "1.0.1",
|
38
|
-
"@types/node": "^
|
38
|
+
"@types/node": "^18.19.69",
|
39
39
|
"concurrently": "7.0.0",
|
40
40
|
"downlevel-dts": "0.10.1",
|
41
41
|
"rimraf": "3.0.2",
|
42
|
-
"typescript": "~
|
42
|
+
"typescript": "~5.2.2"
|
43
43
|
},
|
44
44
|
"peerDependencies": {
|
45
|
-
"@aws-sdk/client-sso-oidc": "^3.
|
45
|
+
"@aws-sdk/client-sso-oidc": "^3.723.0"
|
46
46
|
},
|
47
47
|
"types": "./dist-types/index.d.ts",
|
48
48
|
"engines": {
|
49
|
-
"node": ">=
|
49
|
+
"node": ">=18.0.0"
|
50
50
|
},
|
51
51
|
"typesVersions": {
|
52
52
|
"<4.0": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/types",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.723.0",
|
4
4
|
"main": "./dist-cjs/index.js",
|
5
5
|
"module": "./dist-es/index.js",
|
6
6
|
"types": "./dist-types/index.d.ts",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"engines": {
|
25
|
-
"node": ">=
|
25
|
+
"node": ">=18.0.0"
|
26
26
|
},
|
27
27
|
"typesVersions": {
|
28
28
|
"<4.0": {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"directory": "packages/types"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
-
"@smithy/types": "^
|
44
|
+
"@smithy/types": "^4.0.0",
|
45
45
|
"tslib": "^2.6.2"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"concurrently": "7.0.0",
|
50
50
|
"downlevel-dts": "0.10.1",
|
51
51
|
"rimraf": "3.0.2",
|
52
|
-
"typescript": "~
|
52
|
+
"typescript": "~5.2.2"
|
53
53
|
},
|
54
54
|
"browser": {},
|
55
55
|
"react-native": {}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.723.0",
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -24,13 +24,13 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-sdk/types": "3.
|
28
|
-
"@smithy/types": "^
|
29
|
-
"@smithy/util-endpoints": "^
|
27
|
+
"@aws-sdk/types": "3.723.0",
|
28
|
+
"@smithy/types": "^4.0.0",
|
29
|
+
"@smithy/util-endpoints": "^3.0.0",
|
30
30
|
"tslib": "^2.6.2"
|
31
31
|
},
|
32
32
|
"engines": {
|
33
|
-
"node": ">=
|
33
|
+
"node": ">=18.0.0"
|
34
34
|
},
|
35
35
|
"typesVersions": {
|
36
36
|
"<4.0": {
|
@@ -53,6 +53,6 @@
|
|
53
53
|
"concurrently": "7.0.0",
|
54
54
|
"downlevel-dts": "0.10.1",
|
55
55
|
"rimraf": "3.0.2",
|
56
|
-
"typescript": "~
|
56
|
+
"typescript": "~5.2.2"
|
57
57
|
}
|
58
58
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-locate-window",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.723.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-locate-window",
|
@@ -22,17 +22,17 @@
|
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
24
|
"@tsconfig/recommended": "1.0.1",
|
25
|
-
"@types/node": "^
|
25
|
+
"@types/node": "^18.19.69",
|
26
26
|
"concurrently": "7.0.0",
|
27
27
|
"downlevel-dts": "0.10.1",
|
28
28
|
"rimraf": "3.0.2",
|
29
|
-
"typescript": "~
|
29
|
+
"typescript": "~5.2.2"
|
30
30
|
},
|
31
31
|
"main": "./dist-cjs/index.js",
|
32
32
|
"module": "./dist-es/index.js",
|
33
33
|
"types": "./dist-types/index.d.ts",
|
34
34
|
"engines": {
|
35
|
-
"node": ">=
|
35
|
+
"node": ">=18.0.0"
|
36
36
|
},
|
37
37
|
"typesVersions": {
|
38
38
|
"<4.0": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.723.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",
|
@@ -23,8 +23,8 @@
|
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"react-native": "dist-es/index.native.js",
|
25
25
|
"dependencies": {
|
26
|
-
"@aws-sdk/types": "3.
|
27
|
-
"@smithy/types": "^
|
26
|
+
"@aws-sdk/types": "3.723.0",
|
27
|
+
"@smithy/types": "^4.0.0",
|
28
28
|
"bowser": "^2.11.0",
|
29
29
|
"tslib": "^2.6.2"
|
30
30
|
},
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"concurrently": "7.0.0",
|
34
34
|
"downlevel-dts": "0.10.1",
|
35
35
|
"rimraf": "3.0.2",
|
36
|
-
"typescript": "~
|
36
|
+
"typescript": "~5.2.2"
|
37
37
|
},
|
38
38
|
"typesVersions": {
|
39
39
|
"<4.0": {
|
@@ -50,7 +50,6 @@ var isCrtAvailable = /* @__PURE__ */ __name(() => {
|
|
50
50
|
// src/defaultUserAgent.ts
|
51
51
|
var createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, clientVersion }) => {
|
52
52
|
return async (config) => {
|
53
|
-
var _a;
|
54
53
|
const sections = [
|
55
54
|
// sdk-metadata
|
56
55
|
["aws-sdk-js", clientVersion],
|
@@ -73,7 +72,7 @@ var createDefaultUserAgentProvider = /* @__PURE__ */ __name(({ serviceId, client
|
|
73
72
|
if (import_process.env.AWS_EXECUTION_ENV) {
|
74
73
|
sections.push([`exec-env/${import_process.env.AWS_EXECUTION_ENV}`]);
|
75
74
|
}
|
76
|
-
const appId = await
|
75
|
+
const appId = await config?.userAgentAppId?.();
|
77
76
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
78
77
|
return resolvedUserAgent;
|
79
78
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.723.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",
|
@@ -21,19 +21,19 @@
|
|
21
21
|
},
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"dependencies": {
|
24
|
-
"@aws-sdk/middleware-user-agent": "3.
|
25
|
-
"@aws-sdk/types": "3.
|
26
|
-
"@smithy/node-config-provider": "^
|
27
|
-
"@smithy/types": "^
|
24
|
+
"@aws-sdk/middleware-user-agent": "3.723.0",
|
25
|
+
"@aws-sdk/types": "3.723.0",
|
26
|
+
"@smithy/node-config-provider": "^4.0.0",
|
27
|
+
"@smithy/types": "^4.0.0",
|
28
28
|
"tslib": "^2.6.2"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"@tsconfig/recommended": "1.0.1",
|
32
|
-
"@types/node": "^
|
32
|
+
"@types/node": "^18.19.69",
|
33
33
|
"concurrently": "7.0.0",
|
34
34
|
"downlevel-dts": "0.10.1",
|
35
35
|
"rimraf": "3.0.2",
|
36
|
-
"typescript": "~
|
36
|
+
"typescript": "~5.2.2"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
39
39
|
"aws-crt": ">=1.0.0"
|
@@ -44,7 +44,7 @@
|
|
44
44
|
}
|
45
45
|
},
|
46
46
|
"engines": {
|
47
|
-
"node": ">=
|
47
|
+
"node": ">=18.0.0"
|
48
48
|
},
|
49
49
|
"typesVersions": {
|
50
50
|
"<4.0": {
|
@@ -33,7 +33,7 @@ module.exports = __toCommonJS(src_exports);
|
|
33
33
|
|
34
34
|
// src/AbortSignal.ts
|
35
35
|
var import_types = require("@smithy/types");
|
36
|
-
var
|
36
|
+
var AbortSignal = class {
|
37
37
|
constructor() {
|
38
38
|
this.onabort = null;
|
39
39
|
this._aborted = false;
|
@@ -42,6 +42,9 @@ var _AbortSignal = class _AbortSignal {
|
|
42
42
|
writable: true
|
43
43
|
});
|
44
44
|
}
|
45
|
+
static {
|
46
|
+
__name(this, "AbortSignal");
|
47
|
+
}
|
45
48
|
/**
|
46
49
|
* Whether the associated operation has already been cancelled.
|
47
50
|
*/
|
@@ -59,20 +62,19 @@ var _AbortSignal = class _AbortSignal {
|
|
59
62
|
}
|
60
63
|
}
|
61
64
|
};
|
62
|
-
__name(_AbortSignal, "AbortSignal");
|
63
|
-
var AbortSignal = _AbortSignal;
|
64
65
|
|
65
66
|
// src/AbortController.ts
|
66
|
-
var
|
67
|
+
var AbortController = class {
|
67
68
|
constructor() {
|
68
69
|
this.signal = new AbortSignal();
|
69
70
|
}
|
71
|
+
static {
|
72
|
+
__name(this, "AbortController");
|
73
|
+
}
|
70
74
|
abort() {
|
71
75
|
this.signal.abort();
|
72
76
|
}
|
73
77
|
};
|
74
|
-
__name(_AbortController, "AbortController");
|
75
|
-
var AbortController = _AbortController;
|
76
78
|
// Annotate the CommonJS export names for ESM import in node:
|
77
79
|
|
78
80
|
0 && (module.exports = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/abort-controller",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"description": "A simple abort controller library",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -25,11 +25,11 @@
|
|
25
25
|
},
|
26
26
|
"license": "Apache-2.0",
|
27
27
|
"dependencies": {
|
28
|
-
"@smithy/types": "^
|
28
|
+
"@smithy/types": "^4.0.0",
|
29
29
|
"tslib": "^2.6.2"
|
30
30
|
},
|
31
31
|
"engines": {
|
32
|
-
"node": ">=
|
32
|
+
"node": ">=18.0.0"
|
33
33
|
},
|
34
34
|
"typesVersions": {
|
35
35
|
"<4.0": {
|
@@ -153,12 +153,9 @@ var resolveRegionConfig = /* @__PURE__ */ __name((input) => {
|
|
153
153
|
}, "resolveRegionConfig");
|
154
154
|
|
155
155
|
// src/regionInfo/getHostnameFromVariants.ts
|
156
|
-
var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) =>
|
157
|
-
|
158
|
-
|
159
|
-
({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack")
|
160
|
-
)) == null ? void 0 : _a.hostname;
|
161
|
-
}, "getHostnameFromVariants");
|
156
|
+
var getHostnameFromVariants = /* @__PURE__ */ __name((variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find(
|
157
|
+
({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack")
|
158
|
+
)?.hostname, "getHostnameFromVariants");
|
162
159
|
|
163
160
|
// src/regionInfo/getResolvedHostname.ts
|
164
161
|
var getResolvedHostname = /* @__PURE__ */ __name((resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0, "getResolvedHostname");
|
@@ -187,18 +184,17 @@ var getRegionInfo = /* @__PURE__ */ __name((region, {
|
|
187
184
|
regionHash,
|
188
185
|
partitionHash
|
189
186
|
}) => {
|
190
|
-
var _a, _b, _c, _d, _e;
|
191
187
|
const partition = getResolvedPartition(region, { partitionHash });
|
192
|
-
const resolvedRegion = region in regionHash ? region :
|
188
|
+
const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
|
193
189
|
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
194
|
-
const regionHostname = getHostnameFromVariants(
|
195
|
-
const partitionHostname = getHostnameFromVariants(
|
190
|
+
const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
|
191
|
+
const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
|
196
192
|
const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname });
|
197
193
|
if (hostname === void 0) {
|
198
194
|
throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`);
|
199
195
|
}
|
200
196
|
const signingRegion = getResolvedSigningRegion(hostname, {
|
201
|
-
signingRegion:
|
197
|
+
signingRegion: regionHash[resolvedRegion]?.signingRegion,
|
202
198
|
regionRegex: partitionHash[partition].regionRegex,
|
203
199
|
useFipsEndpoint
|
204
200
|
});
|
@@ -207,7 +203,7 @@ var getRegionInfo = /* @__PURE__ */ __name((region, {
|
|
207
203
|
signingService,
|
208
204
|
hostname,
|
209
205
|
...signingRegion && { signingRegion },
|
210
|
-
...
|
206
|
+
...regionHash[resolvedRegion]?.signingService && {
|
211
207
|
signingService: regionHash[resolvedRegion].signingService
|
212
208
|
}
|
213
209
|
};
|
package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts
CHANGED
@@ -17,6 +17,9 @@ export interface EndpointsInputConfig {
|
|
17
17
|
*/
|
18
18
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
19
19
|
}
|
20
|
+
/**
|
21
|
+
* @internal
|
22
|
+
*/
|
20
23
|
interface PreviouslyResolved {
|
21
24
|
regionInfoProvider: RegionInfoProvider;
|
22
25
|
urlParser: UrlParser;
|
@@ -44,7 +47,7 @@ export interface EndpointsResolvedConfig extends Required<EndpointsInputConfig>
|
|
44
47
|
/**
|
45
48
|
* @internal
|
46
49
|
*
|
47
|
-
* @deprecated endpoints rulesets use
|
50
|
+
* @deprecated endpoints rulesets use \@smithy/middleware-endpoint resolveEndpointConfig.
|
48
51
|
* All generated clients should migrate to Endpoints 2.0 endpointRuleSet traits.
|
49
52
|
*/
|
50
53
|
export declare const resolveEndpointsConfig: <T>(input: T & EndpointsInputConfig & PreviouslyResolved) => T & EndpointsResolvedConfig;
|
@@ -17,6 +17,9 @@ export interface EndpointsInputConfig {
|
|
17
17
|
*/
|
18
18
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
19
19
|
}
|
20
|
+
/**
|
21
|
+
* @internal
|
22
|
+
*/
|
20
23
|
interface PreviouslyResolved {
|
21
24
|
regionInfoProvider: RegionInfoProvider;
|
22
25
|
urlParser: UrlParser;
|
@@ -44,7 +47,7 @@ export interface EndpointsResolvedConfig extends Required<EndpointsInputConfig>
|
|
44
47
|
/**
|
45
48
|
* @internal
|
46
49
|
*
|
47
|
-
* @deprecated endpoints rulesets use
|
50
|
+
* @deprecated endpoints rulesets use \@smithy/middleware-endpoint resolveEndpointConfig.
|
48
51
|
* All generated clients should migrate to Endpoints 2.0 endpointRuleSet traits.
|
49
52
|
*/
|
50
53
|
export declare const resolveEndpointsConfig: <T>(input: T & EndpointsInputConfig & PreviouslyResolved) => T & EndpointsResolvedConfig;
|