@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
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-endpoint",
|
@@ -24,13 +24,13 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@smithy/core": "^
|
28
|
-
"@smithy/middleware-serde": "^
|
29
|
-
"@smithy/node-config-provider": "^
|
30
|
-
"@smithy/shared-ini-file-loader": "^
|
31
|
-
"@smithy/types": "^
|
32
|
-
"@smithy/url-parser": "^
|
33
|
-
"@smithy/util-middleware": "^
|
27
|
+
"@smithy/core": "^3.0.0",
|
28
|
+
"@smithy/middleware-serde": "^4.0.0",
|
29
|
+
"@smithy/node-config-provider": "^4.0.0",
|
30
|
+
"@smithy/shared-ini-file-loader": "^4.0.0",
|
31
|
+
"@smithy/types": "^4.0.0",
|
32
|
+
"@smithy/url-parser": "^4.0.0",
|
33
|
+
"@smithy/util-middleware": "^4.0.0",
|
34
34
|
"tslib": "^2.6.2"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"typedoc": "0.23.23"
|
41
41
|
},
|
42
42
|
"engines": {
|
43
|
-
"node": ">=
|
43
|
+
"node": ">=18.0.0"
|
44
44
|
},
|
45
45
|
"typesVersions": {
|
46
46
|
"<4.0": {
|
@@ -54,9 +54,9 @@ var import_uuid = require("uuid");
|
|
54
54
|
var import_util_retry = require("@smithy/util-retry");
|
55
55
|
var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => {
|
56
56
|
const MAX_CAPACITY = initialRetryTokens;
|
57
|
-
const noRetryIncrement =
|
58
|
-
const retryCost =
|
59
|
-
const timeoutRetryCost =
|
57
|
+
const noRetryIncrement = options?.noRetryIncrement ?? import_util_retry.NO_RETRY_INCREMENT;
|
58
|
+
const retryCost = options?.retryCost ?? import_util_retry.RETRY_COST;
|
59
|
+
const timeoutRetryCost = options?.timeoutRetryCost ?? import_util_retry.TIMEOUT_RETRY_COST;
|
60
60
|
let availableCapacity = initialRetryTokens;
|
61
61
|
const getCapacityAmount = /* @__PURE__ */ __name((error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost, "getCapacityAmount");
|
62
62
|
const hasRetryTokens = /* @__PURE__ */ __name((error) => getCapacityAmount(error) <= availableCapacity, "hasRetryTokens");
|
@@ -104,13 +104,16 @@ var asSdkError = /* @__PURE__ */ __name((error) => {
|
|
104
104
|
}, "asSdkError");
|
105
105
|
|
106
106
|
// src/StandardRetryStrategy.ts
|
107
|
-
var
|
107
|
+
var StandardRetryStrategy = class {
|
108
108
|
constructor(maxAttemptsProvider, options) {
|
109
109
|
this.maxAttemptsProvider = maxAttemptsProvider;
|
110
110
|
this.mode = import_util_retry.RETRY_MODES.STANDARD;
|
111
|
-
this.retryDecider =
|
112
|
-
this.delayDecider =
|
113
|
-
this.retryQuota =
|
111
|
+
this.retryDecider = options?.retryDecider ?? defaultRetryDecider;
|
112
|
+
this.delayDecider = options?.delayDecider ?? defaultDelayDecider;
|
113
|
+
this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(import_util_retry.INITIAL_RETRY_TOKENS);
|
114
|
+
}
|
115
|
+
static {
|
116
|
+
__name(this, "StandardRetryStrategy");
|
114
117
|
}
|
115
118
|
shouldRetry(error, attempts, maxAttempts) {
|
116
119
|
return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error);
|
@@ -138,11 +141,11 @@ var _StandardRetryStrategy = class _StandardRetryStrategy {
|
|
138
141
|
if (import_protocol_http.HttpRequest.isInstance(request)) {
|
139
142
|
request.headers[import_util_retry.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
|
140
143
|
}
|
141
|
-
if (options
|
144
|
+
if (options?.beforeRequest) {
|
142
145
|
await options.beforeRequest();
|
143
146
|
}
|
144
147
|
const { response, output } = await next(args);
|
145
|
-
if (options
|
148
|
+
if (options?.afterRequest) {
|
146
149
|
options.afterRequest(response);
|
147
150
|
}
|
148
151
|
this.retryQuota.releaseRetryTokens(retryTokenAmount);
|
@@ -174,8 +177,6 @@ var _StandardRetryStrategy = class _StandardRetryStrategy {
|
|
174
177
|
}
|
175
178
|
}
|
176
179
|
};
|
177
|
-
__name(_StandardRetryStrategy, "StandardRetryStrategy");
|
178
|
-
var StandardRetryStrategy = _StandardRetryStrategy;
|
179
180
|
var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => {
|
180
181
|
if (!import_protocol_http.HttpResponse.isInstance(response))
|
181
182
|
return;
|
@@ -191,7 +192,10 @@ var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => {
|
|
191
192
|
}, "getDelayFromRetryAfterHeader");
|
192
193
|
|
193
194
|
// src/AdaptiveRetryStrategy.ts
|
194
|
-
var
|
195
|
+
var AdaptiveRetryStrategy = class extends StandardRetryStrategy {
|
196
|
+
static {
|
197
|
+
__name(this, "AdaptiveRetryStrategy");
|
198
|
+
}
|
195
199
|
constructor(maxAttemptsProvider, options) {
|
196
200
|
const { rateLimiter, ...superOptions } = options ?? {};
|
197
201
|
super(maxAttemptsProvider, superOptions);
|
@@ -209,8 +213,6 @@ var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy extends StandardRetryS
|
|
209
213
|
});
|
210
214
|
}
|
211
215
|
};
|
212
|
-
__name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy");
|
213
|
-
var AdaptiveRetryStrategy = _AdaptiveRetryStrategy;
|
214
216
|
|
215
217
|
// src/configurations.ts
|
216
218
|
var import_util_middleware = require("@smithy/util-middleware");
|
@@ -298,7 +300,6 @@ var import_smithy_client = require("@smithy/smithy-client");
|
|
298
300
|
|
299
301
|
var import_isStreamingPayload = require("./isStreamingPayload/isStreamingPayload");
|
300
302
|
var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => async (args) => {
|
301
|
-
var _a;
|
302
303
|
let retryStrategy = await options.retryStrategy();
|
303
304
|
const maxAttempts = await options.maxAttempts();
|
304
305
|
if (isRetryStrategyV2(retryStrategy)) {
|
@@ -326,7 +327,7 @@ var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => asy
|
|
326
327
|
const retryErrorInfo = getRetryErrorInfo(e);
|
327
328
|
lastError = asSdkError(e);
|
328
329
|
if (isRequest && (0, import_isStreamingPayload.isStreamingPayload)(request)) {
|
329
|
-
(
|
330
|
+
(context.logger instanceof import_smithy_client.NoOpLogger ? console : context.logger)?.warn(
|
330
331
|
"An error was encountered in a non-retryable streaming request."
|
331
332
|
);
|
332
333
|
throw lastError;
|
@@ -349,7 +350,7 @@ var retryMiddleware = /* @__PURE__ */ __name((options) => (next, context) => asy
|
|
349
350
|
}
|
350
351
|
} else {
|
351
352
|
retryStrategy = retryStrategy;
|
352
|
-
if (retryStrategy
|
353
|
+
if (retryStrategy?.mode)
|
353
354
|
context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]];
|
354
355
|
return retryStrategy.retry(next, args);
|
355
356
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-retry",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
@@ -33,13 +33,13 @@
|
|
33
33
|
},
|
34
34
|
"license": "Apache-2.0",
|
35
35
|
"dependencies": {
|
36
|
-
"@smithy/node-config-provider": "^
|
37
|
-
"@smithy/protocol-http": "^
|
38
|
-
"@smithy/service-error-classification": "^
|
39
|
-
"@smithy/smithy-client": "^
|
40
|
-
"@smithy/types": "^
|
41
|
-
"@smithy/util-middleware": "^
|
42
|
-
"@smithy/util-retry": "^
|
36
|
+
"@smithy/node-config-provider": "^4.0.0",
|
37
|
+
"@smithy/protocol-http": "^5.0.0",
|
38
|
+
"@smithy/service-error-classification": "^4.0.0",
|
39
|
+
"@smithy/smithy-client": "^4.0.0",
|
40
|
+
"@smithy/types": "^4.0.0",
|
41
|
+
"@smithy/util-middleware": "^4.0.0",
|
42
|
+
"@smithy/util-retry": "^4.0.0",
|
43
43
|
"tslib": "^2.6.2",
|
44
44
|
"uuid": "^9.0.1"
|
45
45
|
},
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"typedoc": "0.23.23"
|
53
53
|
},
|
54
54
|
"engines": {
|
55
|
-
"node": ">=
|
55
|
+
"node": ">=18.0.0"
|
56
56
|
},
|
57
57
|
"typesVersions": {
|
58
58
|
"<4.0": {
|
@@ -56,8 +56,7 @@ var deserializerMiddleware = /* @__PURE__ */ __name((options, deserializer) => (
|
|
56
56
|
|
57
57
|
// src/serializerMiddleware.ts
|
58
58
|
var serializerMiddleware = /* @__PURE__ */ __name((options, serializer) => (next, context) => async (args) => {
|
59
|
-
|
60
|
-
const endpoint = ((_a = context.endpointV2) == null ? void 0 : _a.url) && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint;
|
59
|
+
const endpoint = context.endpointV2?.url && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint;
|
61
60
|
if (!endpoint) {
|
62
61
|
throw new Error("No valid endpoint provider available.");
|
63
62
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-serde",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-serde",
|
@@ -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": {
|
@@ -82,14 +82,13 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
82
82
|
return isRemoved;
|
83
83
|
}, "removeByReference");
|
84
84
|
const cloneTo = /* @__PURE__ */ __name((toStack) => {
|
85
|
-
var _a;
|
86
85
|
absoluteEntries.forEach((entry) => {
|
87
86
|
toStack.add(entry.middleware, { ...entry });
|
88
87
|
});
|
89
88
|
relativeEntries.forEach((entry) => {
|
90
89
|
toStack.addRelativeTo(entry.middleware, { ...entry });
|
91
90
|
});
|
92
|
-
|
91
|
+
toStack.identifyOnResolve?.(stack.identifyOnResolve());
|
93
92
|
return toStack;
|
94
93
|
}, "cloneTo");
|
95
94
|
const expandRelativeMiddlewareList = /* @__PURE__ */ __name((from) => {
|
@@ -181,10 +180,7 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
181
180
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
182
181
|
for (const alias of aliases) {
|
183
182
|
const toOverrideIndex = absoluteEntries.findIndex(
|
184
|
-
(entry2) =>
|
185
|
-
var _a;
|
186
|
-
return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias));
|
187
|
-
}
|
183
|
+
(entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)
|
188
184
|
);
|
189
185
|
if (toOverrideIndex === -1) {
|
190
186
|
continue;
|
@@ -217,10 +213,7 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
217
213
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
218
214
|
for (const alias of aliases) {
|
219
215
|
const toOverrideIndex = relativeEntries.findIndex(
|
220
|
-
(entry2) =>
|
221
|
-
var _a;
|
222
|
-
return entry2.name === alias || ((_a = entry2.aliases) == null ? void 0 : _a.some((a) => a === alias));
|
223
|
-
}
|
216
|
+
(entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)
|
224
217
|
);
|
225
218
|
if (toOverrideIndex === -1) {
|
226
219
|
continue;
|
@@ -269,11 +262,10 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
269
262
|
return isRemoved;
|
270
263
|
},
|
271
264
|
concat: (from) => {
|
272
|
-
var _a;
|
273
265
|
const cloned = cloneTo(constructStack());
|
274
266
|
cloned.use(from);
|
275
267
|
cloned.identifyOnResolve(
|
276
|
-
identifyOnResolve || cloned.identifyOnResolve() || (
|
268
|
+
identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false)
|
277
269
|
);
|
278
270
|
return cloned;
|
279
271
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-stack",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"description": "Provides a means for composing multiple middleware functions into a single handler",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"module": "./dist-es/index.js",
|
27
27
|
"types": "./dist-types/index.d.ts",
|
28
28
|
"dependencies": {
|
29
|
-
"@smithy/types": "^
|
29
|
+
"@smithy/types": "^4.0.0",
|
30
30
|
"tslib": "^2.6.2"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
@@ -36,7 +36,7 @@
|
|
36
36
|
"typedoc": "0.23.23"
|
37
37
|
},
|
38
38
|
"engines": {
|
39
|
-
"node": ">=
|
39
|
+
"node": ">=18.0.0"
|
40
40
|
},
|
41
41
|
"typesVersions": {
|
42
42
|
"<4.0": {
|
@@ -2,7 +2,13 @@ import { Provider } from "@smithy/types";
|
|
2
2
|
import { GetterFromEnv } from "./fromEnv";
|
3
3
|
import { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
|
4
4
|
import { FromStaticConfig } from "./fromStatic";
|
5
|
+
/**
|
6
|
+
* @internal
|
7
|
+
*/
|
5
8
|
export type LocalConfigOptions = SharedConfigInit;
|
9
|
+
/**
|
10
|
+
* @internal
|
11
|
+
*/
|
6
12
|
export interface LoadedConfigSelectors<T> {
|
7
13
|
/**
|
8
14
|
* A getter function getting the config values from all the environment
|
@@ -19,4 +25,7 @@ export interface LoadedConfigSelectors<T> {
|
|
19
25
|
*/
|
20
26
|
default: FromStaticConfig<T>;
|
21
27
|
}
|
28
|
+
/**
|
29
|
+
* @internal
|
30
|
+
*/
|
22
31
|
export declare const loadConfig: <T = string>({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors<T>, configuration?: LocalConfigOptions) => Provider<T>;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
2
2
|
import { ParsedIniData, Profile, Provider } from "@smithy/types";
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
3
6
|
export interface SharedConfigInit extends SourceProfileInit {
|
4
7
|
/**
|
5
8
|
* The preferred shared ini file to load the config. "config" option refers to
|
@@ -8,8 +11,12 @@ export interface SharedConfigInit extends SourceProfileInit {
|
|
8
11
|
*/
|
9
12
|
preferredFile?: "config" | "credentials";
|
10
13
|
}
|
14
|
+
/**
|
15
|
+
* @internal
|
16
|
+
*/
|
11
17
|
export type GetterFromConfig<T> = (profile: Profile, configFile?: ParsedIniData) => T | undefined;
|
12
18
|
/**
|
13
19
|
* Get config value from the shared config files with inferred profile name.
|
20
|
+
* @internal
|
14
21
|
*/
|
15
22
|
export declare const fromSharedConfigFiles: <T = string>(configSelector: GetterFromConfig<T>, { preferredFile, ...init }?: SharedConfigInit) => Provider<T>;
|
@@ -2,7 +2,13 @@ import { Provider } from "@smithy/types";
|
|
2
2
|
import { GetterFromEnv } from "./fromEnv";
|
3
3
|
import { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
|
4
4
|
import { FromStaticConfig } from "./fromStatic";
|
5
|
+
/**
|
6
|
+
* @internal
|
7
|
+
*/
|
5
8
|
export type LocalConfigOptions = SharedConfigInit;
|
9
|
+
/**
|
10
|
+
* @internal
|
11
|
+
*/
|
6
12
|
export interface LoadedConfigSelectors<T> {
|
7
13
|
/**
|
8
14
|
* A getter function getting the config values from all the environment
|
@@ -19,4 +25,7 @@ export interface LoadedConfigSelectors<T> {
|
|
19
25
|
*/
|
20
26
|
default: FromStaticConfig<T>;
|
21
27
|
}
|
28
|
+
/**
|
29
|
+
* @internal
|
30
|
+
*/
|
22
31
|
export declare const loadConfig: <T = string>({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors<T>, configuration?: LocalConfigOptions) => Provider<T>;
|
package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
2
2
|
import { ParsedIniData, Profile, Provider } from "@smithy/types";
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
3
6
|
export interface SharedConfigInit extends SourceProfileInit {
|
4
7
|
/**
|
5
8
|
* The preferred shared ini file to load the config. "config" option refers to
|
@@ -8,8 +11,12 @@ export interface SharedConfigInit extends SourceProfileInit {
|
|
8
11
|
*/
|
9
12
|
preferredFile?: "config" | "credentials";
|
10
13
|
}
|
14
|
+
/**
|
15
|
+
* @internal
|
16
|
+
*/
|
11
17
|
export type GetterFromConfig<T> = (profile: Profile, configFile?: ParsedIniData) => T | undefined;
|
12
18
|
/**
|
13
19
|
* Get config value from the shared config files with inferred profile name.
|
20
|
+
* @internal
|
14
21
|
*/
|
15
22
|
export declare const fromSharedConfigFiles: <T = string>(configSelector: GetterFromConfig<T>, { preferredFile, ...init }?: SharedConfigInit) => Provider<T>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/node-config-provider",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
@@ -25,20 +25,20 @@
|
|
25
25
|
"module": "./dist-es/index.js",
|
26
26
|
"types": "./dist-types/index.d.ts",
|
27
27
|
"dependencies": {
|
28
|
-
"@smithy/property-provider": "^
|
29
|
-
"@smithy/shared-ini-file-loader": "^
|
30
|
-
"@smithy/types": "^
|
28
|
+
"@smithy/property-provider": "^4.0.0",
|
29
|
+
"@smithy/shared-ini-file-loader": "^4.0.0",
|
30
|
+
"@smithy/types": "^4.0.0",
|
31
31
|
"tslib": "^2.6.2"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
|
-
"@types/node": "^
|
34
|
+
"@types/node": "^18.11.9",
|
35
35
|
"concurrently": "7.0.0",
|
36
36
|
"downlevel-dts": "0.10.1",
|
37
37
|
"rimraf": "3.0.2",
|
38
38
|
"typedoc": "0.23.23"
|
39
39
|
},
|
40
40
|
"engines": {
|
41
|
-
"node": ">=
|
41
|
+
"node": ">=18.0.0"
|
42
42
|
},
|
43
43
|
"typesVersions": {
|
44
44
|
"<4.0": {
|