@cdklabs/cdk-ecs-codedeploy 0.0.360 → 0.0.362
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/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +865 -701
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeployClient.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/models/models_0.js +220 -220
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-codedeploy/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/dist-types/fromStatic.d.ts +1 -0
- 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 +37 -10
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +27 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +6 -4
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +6 -4
- 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/dist-types/resolveEndpointConfig.d.ts +4 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +4 -1
- 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 -24
- package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +0 -3
- package/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts +0 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/exceptions.d.ts +0 -1
- 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/dist-types/headStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +2 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +2 -1
- 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/config-resolver",
|
|
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 config-resolver",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/node-config-provider": "^
|
|
28
|
-
"@smithy/types": "^
|
|
29
|
-
"@smithy/util-config-provider": "^
|
|
30
|
-
"@smithy/util-middleware": "^
|
|
27
|
+
"@smithy/node-config-provider": "^4.0.0",
|
|
28
|
+
"@smithy/types": "^4.0.0",
|
|
29
|
+
"@smithy/util-config-provider": "^4.0.0",
|
|
30
|
+
"@smithy/util-middleware": "^4.0.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"typedoc": "0.23.23"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
40
|
+
"node": ">=18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"typesVersions": {
|
|
43
43
|
"<4.0": {
|
|
@@ -60,7 +60,6 @@ function convertHttpAuthSchemesToMap(httpAuthSchemes) {
|
|
|
60
60
|
}
|
|
61
61
|
__name(convertHttpAuthSchemesToMap, "convertHttpAuthSchemesToMap");
|
|
62
62
|
var httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config, mwOptions) => (next, context) => async (args) => {
|
|
63
|
-
var _a;
|
|
64
63
|
const options = config.httpAuthSchemeProvider(
|
|
65
64
|
await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input)
|
|
66
65
|
);
|
|
@@ -78,7 +77,7 @@ var httpAuthSchemeMiddleware = /* @__PURE__ */ __name((config, mwOptions) => (ne
|
|
|
78
77
|
failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
|
|
79
78
|
continue;
|
|
80
79
|
}
|
|
81
|
-
const { identityProperties = {}, signingProperties = {} } =
|
|
80
|
+
const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
|
|
82
81
|
option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
|
|
83
82
|
option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
|
|
84
83
|
smithyContext.selectedHttpAuthScheme = {
|
|
@@ -254,7 +253,7 @@ function setFeature(context, feature, value) {
|
|
|
254
253
|
__name(setFeature, "setFeature");
|
|
255
254
|
|
|
256
255
|
// src/util-identity-and-auth/DefaultIdentityProviderConfig.ts
|
|
257
|
-
var
|
|
256
|
+
var DefaultIdentityProviderConfig = class {
|
|
258
257
|
/**
|
|
259
258
|
* Creates an IdentityProviderConfig with a record of scheme IDs to identity providers.
|
|
260
259
|
*
|
|
@@ -268,17 +267,21 @@ var _DefaultIdentityProviderConfig = class _DefaultIdentityProviderConfig {
|
|
|
268
267
|
}
|
|
269
268
|
}
|
|
270
269
|
}
|
|
270
|
+
static {
|
|
271
|
+
__name(this, "DefaultIdentityProviderConfig");
|
|
272
|
+
}
|
|
271
273
|
getIdentityProvider(schemeId) {
|
|
272
274
|
return this.authSchemes.get(schemeId);
|
|
273
275
|
}
|
|
274
276
|
};
|
|
275
|
-
__name(_DefaultIdentityProviderConfig, "DefaultIdentityProviderConfig");
|
|
276
|
-
var DefaultIdentityProviderConfig = _DefaultIdentityProviderConfig;
|
|
277
277
|
|
|
278
278
|
// src/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.ts
|
|
279
279
|
|
|
280
280
|
|
|
281
|
-
var
|
|
281
|
+
var HttpApiKeyAuthSigner = class {
|
|
282
|
+
static {
|
|
283
|
+
__name(this, "HttpApiKeyAuthSigner");
|
|
284
|
+
}
|
|
282
285
|
async sign(httpRequest, identity, signingProperties) {
|
|
283
286
|
if (!signingProperties) {
|
|
284
287
|
throw new Error(
|
|
@@ -307,12 +310,13 @@ var _HttpApiKeyAuthSigner = class _HttpApiKeyAuthSigner {
|
|
|
307
310
|
return clonedRequest;
|
|
308
311
|
}
|
|
309
312
|
};
|
|
310
|
-
__name(_HttpApiKeyAuthSigner, "HttpApiKeyAuthSigner");
|
|
311
|
-
var HttpApiKeyAuthSigner = _HttpApiKeyAuthSigner;
|
|
312
313
|
|
|
313
314
|
// src/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.ts
|
|
314
315
|
|
|
315
|
-
var
|
|
316
|
+
var HttpBearerAuthSigner = class {
|
|
317
|
+
static {
|
|
318
|
+
__name(this, "HttpBearerAuthSigner");
|
|
319
|
+
}
|
|
316
320
|
async sign(httpRequest, identity, signingProperties) {
|
|
317
321
|
const clonedRequest = import_protocol_http.HttpRequest.clone(httpRequest);
|
|
318
322
|
if (!identity.token) {
|
|
@@ -322,17 +326,16 @@ var _HttpBearerAuthSigner = class _HttpBearerAuthSigner {
|
|
|
322
326
|
return clonedRequest;
|
|
323
327
|
}
|
|
324
328
|
};
|
|
325
|
-
__name(_HttpBearerAuthSigner, "HttpBearerAuthSigner");
|
|
326
|
-
var HttpBearerAuthSigner = _HttpBearerAuthSigner;
|
|
327
329
|
|
|
328
330
|
// src/util-identity-and-auth/httpAuthSchemes/noAuth.ts
|
|
329
|
-
var
|
|
331
|
+
var NoAuthSigner = class {
|
|
332
|
+
static {
|
|
333
|
+
__name(this, "NoAuthSigner");
|
|
334
|
+
}
|
|
330
335
|
async sign(httpRequest, identity, signingProperties) {
|
|
331
336
|
return httpRequest;
|
|
332
337
|
}
|
|
333
338
|
};
|
|
334
|
-
__name(_NoAuthSigner, "NoAuthSigner");
|
|
335
|
-
var NoAuthSigner = _NoAuthSigner;
|
|
336
339
|
|
|
337
340
|
// src/util-identity-and-auth/memoizeIdentityProvider.ts
|
|
338
341
|
var createIsIdentityExpiredFunction = /* @__PURE__ */ __name((expirationMs) => (identity) => doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs, "createIsIdentityExpiredFunction");
|
|
@@ -363,14 +366,14 @@ var memoizeIdentityProvider = /* @__PURE__ */ __name((provider, isExpired, requi
|
|
|
363
366
|
}, "coalesceProvider");
|
|
364
367
|
if (isExpired === void 0) {
|
|
365
368
|
return async (options) => {
|
|
366
|
-
if (!hasResult ||
|
|
369
|
+
if (!hasResult || options?.forceRefresh) {
|
|
367
370
|
resolved = await coalesceProvider(options);
|
|
368
371
|
}
|
|
369
372
|
return resolved;
|
|
370
373
|
};
|
|
371
374
|
}
|
|
372
375
|
return async (options) => {
|
|
373
|
-
if (!hasResult ||
|
|
376
|
+
if (!hasResult || options?.forceRefresh) {
|
|
374
377
|
resolved = await coalesceProvider(options);
|
|
375
378
|
}
|
|
376
379
|
if (isConstant) {
|
|
@@ -164,8 +164,7 @@ function decode(at, to) {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
function bytesToUtf8(bytes, at, to) {
|
|
167
|
-
|
|
168
|
-
if (USE_BUFFER && ((_a = bytes.constructor) == null ? void 0 : _a.name) === "Buffer") {
|
|
167
|
+
if (USE_BUFFER && bytes.constructor?.name === "Buffer") {
|
|
169
168
|
return bytes.toString("utf-8", at, to);
|
|
170
169
|
}
|
|
171
170
|
if (textDecoder) {
|
|
@@ -492,7 +491,6 @@ function encodeHeader(major, value) {
|
|
|
492
491
|
}
|
|
493
492
|
}
|
|
494
493
|
function encode(_input) {
|
|
495
|
-
var _a;
|
|
496
494
|
const encodeStack = [_input];
|
|
497
495
|
while (encodeStack.length) {
|
|
498
496
|
const input = encodeStack.pop();
|
|
@@ -602,7 +600,7 @@ function encode(_input) {
|
|
|
602
600
|
encodeHeader(majorMap, keys.length);
|
|
603
601
|
continue;
|
|
604
602
|
}
|
|
605
|
-
throw new Error(`data type ${
|
|
603
|
+
throw new Error(`data type ${input?.constructor?.name ?? typeof input} not compatible for encoding.`);
|
|
606
604
|
}
|
|
607
605
|
}
|
|
608
606
|
|
|
@@ -112,7 +112,7 @@ var RequestBuilder = class {
|
|
|
112
112
|
*/
|
|
113
113
|
bp(uriLabel) {
|
|
114
114
|
this.resolvePathStack.push((basePath) => {
|
|
115
|
-
this.path = `${
|
|
115
|
+
this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel;
|
|
116
116
|
});
|
|
117
117
|
return this;
|
|
118
118
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
},
|
|
55
55
|
"license": "Apache-2.0",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@smithy/middleware-serde": "^
|
|
58
|
-
"@smithy/protocol-http": "^
|
|
59
|
-
"@smithy/types": "^
|
|
60
|
-
"@smithy/util-body-length-browser": "^
|
|
61
|
-
"@smithy/util-middleware": "^
|
|
62
|
-
"@smithy/util-stream": "^
|
|
63
|
-
"@smithy/util-utf8": "^
|
|
57
|
+
"@smithy/middleware-serde": "^4.0.0",
|
|
58
|
+
"@smithy/protocol-http": "^5.0.0",
|
|
59
|
+
"@smithy/types": "^4.0.0",
|
|
60
|
+
"@smithy/util-body-length-browser": "^4.0.0",
|
|
61
|
+
"@smithy/util-middleware": "^4.0.0",
|
|
62
|
+
"@smithy/util-stream": "^4.0.0",
|
|
63
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
64
64
|
"tslib": "^2.6.2"
|
|
65
65
|
},
|
|
66
66
|
"engines": {
|
|
67
|
-
"node": ">=
|
|
67
|
+
"node": ">=18.0.0"
|
|
68
68
|
},
|
|
69
69
|
"typesVersions": {
|
|
70
70
|
"<4.0": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"directory": "packages/core"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@types/node": "^
|
|
90
|
+
"@types/node": "^18.11.9",
|
|
91
91
|
"concurrently": "7.0.0",
|
|
92
92
|
"downlevel-dts": "0.10.1",
|
|
93
93
|
"json-bigint": "^1.0.0",
|
|
@@ -44,13 +44,12 @@ var import_buffer = require("buffer");
|
|
|
44
44
|
var import_http = require("http");
|
|
45
45
|
function httpRequest(options) {
|
|
46
46
|
return new Promise((resolve, reject) => {
|
|
47
|
-
var _a;
|
|
48
47
|
const req = (0, import_http.request)({
|
|
49
48
|
method: "GET",
|
|
50
49
|
...options,
|
|
51
50
|
// Node.js http module doesn't accept hostname with square brackets
|
|
52
51
|
// Refs: https://github.com/nodejs/node/issues/39738
|
|
53
|
-
hostname:
|
|
52
|
+
hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
|
|
54
53
|
});
|
|
55
54
|
req.on("error", (err) => {
|
|
56
55
|
reject(Object.assign(new import_property_provider.ProviderError("Unable to connect to instance metadata service"), err));
|
|
@@ -189,16 +188,17 @@ var getCmdsUri = /* @__PURE__ */ __name(async ({ logger }) => {
|
|
|
189
188
|
|
|
190
189
|
// src/error/InstanceMetadataV1FallbackError.ts
|
|
191
190
|
|
|
192
|
-
var
|
|
191
|
+
var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends import_property_provider.CredentialsProviderError {
|
|
193
192
|
constructor(message, tryNextLink = true) {
|
|
194
193
|
super(message, tryNextLink);
|
|
195
194
|
this.tryNextLink = tryNextLink;
|
|
196
195
|
this.name = "InstanceMetadataV1FallbackError";
|
|
197
196
|
Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);
|
|
198
197
|
}
|
|
198
|
+
static {
|
|
199
|
+
__name(this, "InstanceMetadataV1FallbackError");
|
|
200
|
+
}
|
|
199
201
|
};
|
|
200
|
-
__name(_InstanceMetadataV1FallbackError, "InstanceMetadataV1FallbackError");
|
|
201
|
-
var InstanceMetadataV1FallbackError = _InstanceMetadataV1FallbackError;
|
|
202
202
|
|
|
203
203
|
// src/utils/getInstanceMetadataEndpoint.ts
|
|
204
204
|
var import_node_config_provider = require("@smithy/node-config-provider");
|
|
@@ -272,7 +272,7 @@ For more information, please visit: ` + STATIC_STABILITY_DOC_URL
|
|
|
272
272
|
|
|
273
273
|
// src/utils/staticStabilityProvider.ts
|
|
274
274
|
var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => {
|
|
275
|
-
const logger =
|
|
275
|
+
const logger = options?.logger || console;
|
|
276
276
|
let pastCredentials;
|
|
277
277
|
return async () => {
|
|
278
278
|
let credentials;
|
|
@@ -306,8 +306,7 @@ var getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {
|
|
|
306
306
|
const { logger, profile } = init;
|
|
307
307
|
const { timeout, maxRetries } = providerConfigFromInit(init);
|
|
308
308
|
const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => {
|
|
309
|
-
|
|
310
|
-
const isImdsV1Fallback = disableFetchToken || ((_a = options.headers) == null ? void 0 : _a[X_AWS_EC2_METADATA_TOKEN]) == null;
|
|
309
|
+
const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
|
|
311
310
|
if (isImdsV1Fallback) {
|
|
312
311
|
let fallbackBlockedFromProfile = false;
|
|
313
312
|
let fallbackBlockedFromProcessEnv = false;
|
|
@@ -378,21 +377,21 @@ var getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {
|
|
|
378
377
|
return async () => {
|
|
379
378
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
380
379
|
if (disableFetchToken) {
|
|
381
|
-
logger
|
|
380
|
+
logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
|
|
382
381
|
return getCredentials(maxRetries, { ...endpoint, timeout });
|
|
383
382
|
} else {
|
|
384
383
|
let token;
|
|
385
384
|
try {
|
|
386
385
|
token = (await getMetadataToken({ ...endpoint, timeout })).toString();
|
|
387
386
|
} catch (error) {
|
|
388
|
-
if (
|
|
387
|
+
if (error?.statusCode === 400) {
|
|
389
388
|
throw Object.assign(error, {
|
|
390
389
|
message: "EC2 Metadata token request returned error"
|
|
391
390
|
});
|
|
392
391
|
} else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) {
|
|
393
392
|
disableFetchToken = true;
|
|
394
393
|
}
|
|
395
|
-
logger
|
|
394
|
+
logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
|
|
396
395
|
return getCredentials(maxRetries, { ...endpoint, timeout });
|
|
397
396
|
}
|
|
398
397
|
return getCredentials(maxRetries, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/node-config-provider": "^
|
|
31
|
-
"@smithy/property-provider": "^
|
|
32
|
-
"@smithy/types": "^
|
|
33
|
-
"@smithy/url-parser": "^
|
|
30
|
+
"@smithy/node-config-provider": "^4.0.0",
|
|
31
|
+
"@smithy/property-provider": "^4.0.0",
|
|
32
|
+
"@smithy/types": "^4.0.0",
|
|
33
|
+
"@smithy/url-parser": "^4.0.0",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "^
|
|
37
|
+
"@types/node": "^18.11.9",
|
|
38
38
|
"concurrently": "7.0.0",
|
|
39
39
|
"downlevel-dts": "0.10.1",
|
|
40
40
|
"rimraf": "3.0.2",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"types": "./dist-types/index.d.ts",
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
45
|
+
"node": ">=18.0.0"
|
|
46
46
|
},
|
|
47
47
|
"typesVersions": {
|
|
48
48
|
"<4.0": {
|
|
@@ -54,13 +54,16 @@ __name(requestTimeout, "requestTimeout");
|
|
|
54
54
|
var keepAliveSupport = {
|
|
55
55
|
supported: void 0
|
|
56
56
|
};
|
|
57
|
-
var
|
|
57
|
+
var FetchHttpHandler = class _FetchHttpHandler {
|
|
58
|
+
static {
|
|
59
|
+
__name(this, "FetchHttpHandler");
|
|
60
|
+
}
|
|
58
61
|
/**
|
|
59
62
|
* @returns the input if it is an HttpHandler of any class,
|
|
60
63
|
* or instantiates a new instance of this handler.
|
|
61
64
|
*/
|
|
62
65
|
static create(instanceOrOptions) {
|
|
63
|
-
if (typeof
|
|
66
|
+
if (typeof instanceOrOptions?.handle === "function") {
|
|
64
67
|
return instanceOrOptions;
|
|
65
68
|
}
|
|
66
69
|
return new _FetchHttpHandler(instanceOrOptions);
|
|
@@ -81,14 +84,13 @@ var _FetchHttpHandler = class _FetchHttpHandler {
|
|
|
81
84
|
destroy() {
|
|
82
85
|
}
|
|
83
86
|
async handle(request, { abortSignal } = {}) {
|
|
84
|
-
var _a;
|
|
85
87
|
if (!this.config) {
|
|
86
88
|
this.config = await this.configProvider;
|
|
87
89
|
}
|
|
88
90
|
const requestTimeoutInMs = this.config.requestTimeout;
|
|
89
91
|
const keepAlive = this.config.keepAlive === true;
|
|
90
92
|
const credentials = this.config.credentials;
|
|
91
|
-
if (abortSignal
|
|
93
|
+
if (abortSignal?.aborted) {
|
|
92
94
|
const abortError = new Error("Request aborted");
|
|
93
95
|
abortError.name = "AbortError";
|
|
94
96
|
return Promise.reject(abortError);
|
|
@@ -116,7 +118,7 @@ var _FetchHttpHandler = class _FetchHttpHandler {
|
|
|
116
118
|
method,
|
|
117
119
|
credentials
|
|
118
120
|
};
|
|
119
|
-
if (
|
|
121
|
+
if (this.config?.cache) {
|
|
120
122
|
requestOptions.cache = this.config.cache;
|
|
121
123
|
}
|
|
122
124
|
if (body) {
|
|
@@ -194,17 +196,24 @@ var _FetchHttpHandler = class _FetchHttpHandler {
|
|
|
194
196
|
return this.config ?? {};
|
|
195
197
|
}
|
|
196
198
|
};
|
|
197
|
-
__name(_FetchHttpHandler, "FetchHttpHandler");
|
|
198
|
-
var FetchHttpHandler = _FetchHttpHandler;
|
|
199
199
|
|
|
200
200
|
// src/stream-collector.ts
|
|
201
|
+
var import_util_base64 = require("@smithy/util-base64");
|
|
201
202
|
var streamCollector = /* @__PURE__ */ __name(async (stream) => {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
if (typeof Blob === "function" && stream instanceof Blob || stream.constructor?.name === "Blob") {
|
|
204
|
+
if (Blob.prototype.arrayBuffer !== void 0) {
|
|
205
|
+
return new Uint8Array(await stream.arrayBuffer());
|
|
206
|
+
}
|
|
207
|
+
return collectBlob(stream);
|
|
205
208
|
}
|
|
206
209
|
return collectStream(stream);
|
|
207
210
|
}, "streamCollector");
|
|
211
|
+
async function collectBlob(blob) {
|
|
212
|
+
const base64 = await readToBase64(blob);
|
|
213
|
+
const arrayBuffer = (0, import_util_base64.fromBase64)(base64);
|
|
214
|
+
return new Uint8Array(arrayBuffer);
|
|
215
|
+
}
|
|
216
|
+
__name(collectBlob, "collectBlob");
|
|
208
217
|
async function collectStream(stream) {
|
|
209
218
|
const chunks = [];
|
|
210
219
|
const reader = stream.getReader();
|
|
@@ -227,6 +236,24 @@ async function collectStream(stream) {
|
|
|
227
236
|
return collected;
|
|
228
237
|
}
|
|
229
238
|
__name(collectStream, "collectStream");
|
|
239
|
+
function readToBase64(blob) {
|
|
240
|
+
return new Promise((resolve, reject) => {
|
|
241
|
+
const reader = new FileReader();
|
|
242
|
+
reader.onloadend = () => {
|
|
243
|
+
if (reader.readyState !== 2) {
|
|
244
|
+
return reject(new Error("Reader aborted too early"));
|
|
245
|
+
}
|
|
246
|
+
const result = reader.result ?? "";
|
|
247
|
+
const commaIndex = result.indexOf(",");
|
|
248
|
+
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
249
|
+
resolve(result.substring(dataOffset));
|
|
250
|
+
};
|
|
251
|
+
reader.onabort = () => reject(new Error("Read aborted"));
|
|
252
|
+
reader.onerror = () => reject(reader.error);
|
|
253
|
+
reader.readAsDataURL(blob);
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
__name(readToBase64, "readToBase64");
|
|
230
257
|
// Annotate the CommonJS export names for ESM import in node:
|
|
231
258
|
|
|
232
259
|
0 && (module.exports = {
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
import { fromBase64 } from "@smithy/util-base64";
|
|
1
2
|
export const streamCollector = async (stream) => {
|
|
2
3
|
if ((typeof Blob === "function" && stream instanceof Blob) || stream.constructor?.name === "Blob") {
|
|
3
|
-
|
|
4
|
+
if (Blob.prototype.arrayBuffer !== undefined) {
|
|
5
|
+
return new Uint8Array(await stream.arrayBuffer());
|
|
6
|
+
}
|
|
7
|
+
return collectBlob(stream);
|
|
4
8
|
}
|
|
5
9
|
return collectStream(stream);
|
|
6
10
|
};
|
|
11
|
+
async function collectBlob(blob) {
|
|
12
|
+
const base64 = await readToBase64(blob);
|
|
13
|
+
const arrayBuffer = fromBase64(base64);
|
|
14
|
+
return new Uint8Array(arrayBuffer);
|
|
15
|
+
}
|
|
7
16
|
async function collectStream(stream) {
|
|
8
17
|
const chunks = [];
|
|
9
18
|
const reader = stream.getReader();
|
|
@@ -25,3 +34,20 @@ async function collectStream(stream) {
|
|
|
25
34
|
}
|
|
26
35
|
return collected;
|
|
27
36
|
}
|
|
37
|
+
function readToBase64(blob) {
|
|
38
|
+
return new Promise((resolve, reject) => {
|
|
39
|
+
const reader = new FileReader();
|
|
40
|
+
reader.onloadend = () => {
|
|
41
|
+
if (reader.readyState !== 2) {
|
|
42
|
+
return reject(new Error("Reader aborted too early"));
|
|
43
|
+
}
|
|
44
|
+
const result = (reader.result ?? "");
|
|
45
|
+
const commaIndex = result.indexOf(",");
|
|
46
|
+
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
47
|
+
resolve(result.substring(dataOffset));
|
|
48
|
+
};
|
|
49
|
+
reader.onabort = () => reject(new Error("Read aborted"));
|
|
50
|
+
reader.onerror = () => reject(reader.error);
|
|
51
|
+
reader.readAsDataURL(blob);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import type { FetchHttpHandlerOptions } from "@smithy/types";
|
|
3
3
|
import { HttpHandlerOptions, Provider } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
4
7
|
export { FetchHttpHandlerOptions };
|
|
5
|
-
type FetchHttpHandlerConfig = FetchHttpHandlerOptions;
|
|
6
8
|
/**
|
|
7
9
|
* @internal
|
|
8
10
|
* Detection of keepalive support. Can be overridden for testing.
|
|
@@ -21,7 +23,7 @@ export type AdditionalRequestParameters = {
|
|
|
21
23
|
*
|
|
22
24
|
* HttpHandler implementation using browsers' `fetch` global function.
|
|
23
25
|
*/
|
|
24
|
-
export declare class FetchHttpHandler implements HttpHandler<
|
|
26
|
+
export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerOptions> {
|
|
25
27
|
private config?;
|
|
26
28
|
private configProvider;
|
|
27
29
|
/**
|
|
@@ -34,6 +36,6 @@ export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerCon
|
|
|
34
36
|
handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
|
|
35
37
|
response: HttpResponse;
|
|
36
38
|
}>;
|
|
37
|
-
updateHttpClientConfig(key: keyof
|
|
38
|
-
httpHandlerConfigs():
|
|
39
|
+
updateHttpClientConfig(key: keyof FetchHttpHandlerOptions, value: FetchHttpHandlerOptions[typeof key]): void;
|
|
40
|
+
httpHandlerConfigs(): FetchHttpHandlerOptions;
|
|
39
41
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";
|
|
2
2
|
import { FetchHttpHandlerOptions } from "@smithy/types";
|
|
3
3
|
import { HttpHandlerOptions, Provider } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
4
7
|
export { FetchHttpHandlerOptions };
|
|
5
|
-
type FetchHttpHandlerConfig = FetchHttpHandlerOptions;
|
|
6
8
|
/**
|
|
7
9
|
* @internal
|
|
8
10
|
* Detection of keepalive support. Can be overridden for testing.
|
|
@@ -21,7 +23,7 @@ export type AdditionalRequestParameters = {
|
|
|
21
23
|
*
|
|
22
24
|
* HttpHandler implementation using browsers' `fetch` global function.
|
|
23
25
|
*/
|
|
24
|
-
export declare class FetchHttpHandler implements HttpHandler<
|
|
26
|
+
export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerOptions> {
|
|
25
27
|
private config?;
|
|
26
28
|
private configProvider;
|
|
27
29
|
/**
|
|
@@ -34,6 +36,6 @@ export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerCon
|
|
|
34
36
|
handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
|
|
35
37
|
response: HttpResponse;
|
|
36
38
|
}>;
|
|
37
|
-
updateHttpClientConfig(key: keyof
|
|
38
|
-
httpHandlerConfigs():
|
|
39
|
+
updateHttpClientConfig(key: keyof FetchHttpHandlerOptions, value: FetchHttpHandlerOptions[typeof key]): void;
|
|
40
|
+
httpHandlerConfigs(): FetchHttpHandlerOptions;
|
|
39
41
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"types": "./dist-types/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/protocol-http": "^
|
|
31
|
-
"@smithy/querystring-builder": "^
|
|
32
|
-
"@smithy/types": "^
|
|
33
|
-
"@smithy/util-base64": "^
|
|
30
|
+
"@smithy/protocol-http": "^5.0.0",
|
|
31
|
+
"@smithy/querystring-builder": "^4.0.0",
|
|
32
|
+
"@smithy/types": "^4.0.0",
|
|
33
|
+
"@smithy/util-base64": "^4.0.0",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@smithy/abort-controller": "^
|
|
37
|
+
"@smithy/abort-controller": "^4.0.0",
|
|
38
38
|
"concurrently": "7.0.0",
|
|
39
39
|
"downlevel-dts": "0.10.1",
|
|
40
40
|
"rimraf": "3.0.2",
|
|
@@ -61,5 +61,8 @@
|
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"directory": ".release/package"
|
|
64
|
+
},
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=18.0.0"
|
|
64
67
|
}
|
|
65
68
|
}
|
|
@@ -27,7 +27,10 @@ var import_util_buffer_from = require("@smithy/util-buffer-from");
|
|
|
27
27
|
var import_util_utf8 = require("@smithy/util-utf8");
|
|
28
28
|
var import_buffer = require("buffer");
|
|
29
29
|
var import_crypto = require("crypto");
|
|
30
|
-
var
|
|
30
|
+
var Hash = class {
|
|
31
|
+
static {
|
|
32
|
+
__name(this, "Hash");
|
|
33
|
+
}
|
|
31
34
|
constructor(algorithmIdentifier, secret) {
|
|
32
35
|
this.algorithmIdentifier = algorithmIdentifier;
|
|
33
36
|
this.secret = secret;
|
|
@@ -43,8 +46,6 @@ var _Hash = class _Hash {
|
|
|
43
46
|
this.hash = this.secret ? (0, import_crypto.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_crypto.createHash)(this.algorithmIdentifier);
|
|
44
47
|
}
|
|
45
48
|
};
|
|
46
|
-
__name(_Hash, "Hash");
|
|
47
|
-
var Hash = _Hash;
|
|
48
49
|
function castSourceData(toCast, encoding) {
|
|
49
50
|
if (import_buffer.Buffer.isBuffer(toCast)) {
|
|
50
51
|
return toCast;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-node",
|
|
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 hash-node",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^
|
|
26
|
+
"@types/node": "^18.11.9",
|
|
27
27
|
"concurrently": "7.0.0",
|
|
28
28
|
"downlevel-dts": "0.10.1",
|
|
29
29
|
"hash-test-vectors": "^1.3.2",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"typedoc": "0.23.23"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/types": "^
|
|
35
|
-
"@smithy/util-buffer-from": "^
|
|
36
|
-
"@smithy/util-utf8": "^
|
|
34
|
+
"@smithy/types": "^4.0.0",
|
|
35
|
+
"@smithy/util-buffer-from": "^4.0.0",
|
|
36
|
+
"@smithy/util-utf8": "^4.0.0",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
40
|
+
"node": ">=18.0.0"
|
|
41
41
|
},
|
|
42
42
|
"typesVersions": {
|
|
43
43
|
"<4.0": {
|