@cdk8s/awscdk-resolver 0.0.375 → 0.0.376
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 +2 -2
- package/lib/resolve.js +1 -1
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +28 -80
- package/node_modules/@smithy/abort-controller/dist-es/AbortController.js +1 -3
- package/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +158 -215
- package/node_modules/@smithy/config-resolver/package.json +5 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +308 -412
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +957 -969
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +198 -249
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +793 -895
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +617 -811
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +584 -680
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +3 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +18 -18
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +9 -7
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +3 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +6 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +16 -8
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +6 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +6 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js +14 -14
- package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -0
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -1
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js +4 -2
- package/node_modules/@smithy/core/package.json +11 -11
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +340 -412
- package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +2 -1
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +190 -238
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -0
- package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +38 -63
- package/node_modules/@smithy/hash-node/dist-es/index.js +3 -0
- package/node_modules/@smithy/hash-node/package.json +4 -4
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +7 -38
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +4 -30
- package/node_modules/@smithy/is-array-buffer/package.json +1 -1
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +39 -64
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +219 -277
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +327 -380
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +1 -1
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +2 -2
- package/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +1 -0
- package/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +5 -1
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +89 -118
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +274 -297
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +51 -98
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +663 -771
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -2
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +3 -1
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -4
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +3 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +105 -158
- package/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +1 -1
- package/node_modules/@smithy/property-provider/dist-es/ProviderError.js +2 -1
- package/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +1 -1
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +154 -246
- package/node_modules/@smithy/protocol-http/dist-es/Field.js +3 -0
- package/node_modules/@smithy/protocol-http/dist-es/Fields.js +2 -1
- package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +11 -0
- package/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +4 -0
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +21 -47
- package/node_modules/@smithy/querystring-builder/package.json +3 -3
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +22 -48
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +70 -103
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +171 -210
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +525 -648
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +1 -1
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +6 -0
- package/node_modules/@smithy/signature-v4/package.json +8 -8
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +554 -747
- package/node_modules/@smithy/smithy-client/dist-es/client.js +4 -1
- package/node_modules/@smithy/smithy-client/dist-es/command.js +17 -18
- package/node_modules/@smithy/smithy-client/dist-es/exceptions.js +4 -0
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +80 -133
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +20 -46
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +16 -24
- package/node_modules/@smithy/util-base64/package.json +3 -3
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +26 -50
- package/node_modules/@smithy/util-body-length-browser/package.json +1 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +27 -50
- package/node_modules/@smithy/util-body-length-node/package.json +1 -1
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +17 -44
- package/node_modules/@smithy/util-buffer-from/package.json +2 -2
- package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +26 -56
- package/node_modules/@smithy/util-config-provider/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +9 -22
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +4 -5
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +65 -110
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +445 -526
- package/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js +3 -2
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +29 -58
- package/node_modules/@smithy/util-hex-encoding/package.json +1 -1
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +11 -40
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +260 -340
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +4 -1
- package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +1 -0
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +17 -8
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +5 -3
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +3 -2
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +7 -3
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +2 -3
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -1
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +2 -3
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +4 -8
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +83 -93
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +3 -7
- package/node_modules/@smithy/util-stream/dist-es/ByteArrayCollector.js +3 -2
- package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +5 -0
- package/node_modules/@smithy/util-stream/dist-es/headStream.js +3 -6
- package/node_modules/@smithy/util-stream/package.json +8 -8
- package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +6 -40
- package/node_modules/@smithy/util-uri-escape/package.json +1 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +27 -60
- package/node_modules/@smithy/util-utf8/package.json +2 -2
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +152 -189
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/@smithy/uuid/dist-cjs/index.js +33 -42
- package/node_modules/@smithy/uuid/package.json +1 -1
- package/package.json +3 -3
- package/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +0 -1
- package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +0 -1
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +0 -1
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/create-request.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +0 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +0 -1
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +0 -1
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +0 -1
- package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +0 -1
- package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +0 -1
- package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +0 -1
- package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +0 -1
- package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +0 -1
- package/node_modules/@smithy/node-config-provider/dist-cjs/getSelectorName.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/timing.js +0 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/chain.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +0 -1
- package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/externalDataInterceptor.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4Base.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/signature-v4a-container.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +0 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/abort-handler.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/abort.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/auth.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/auth/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/checksum.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/client.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/command.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/config.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/manager.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/connection/pool.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/crypto.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/encode.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoint.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/eventStream.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/feature-ids.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/http.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/identity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/index.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/logger.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/middleware.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/pagination.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/profile.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/response.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/retry.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/schema/schema.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/schema/traits.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/serde.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/shapes.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/signature.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/stream.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transfer.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/exact.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/uri.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/util.js +0 -1
- package/node_modules/@smithy/types/dist-cjs/waiter.js +0 -1
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +0 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +0 -1
- package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +0 -1
- package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +0 -1
- package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/cache/EndpointCache.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +0 -1
- package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +0 -1
- package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/config.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/constants.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +0 -1
- package/node_modules/@smithy/util-retry/dist-cjs/types.js +0 -1
- package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +0 -1
- package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +0 -1
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +0 -1
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +0 -1
- package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +0 -1
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.browser.js +0 -1
- package/node_modules/@smithy/uuid/dist-cjs/v4.js +0 -1
|
@@ -4,6 +4,7 @@ import { fromBase64 } from "@smithy/util-base64";
|
|
|
4
4
|
import { cbor } from "./cbor";
|
|
5
5
|
import { dateToTag } from "./parseCborBody";
|
|
6
6
|
export class CborCodec {
|
|
7
|
+
serdeContext;
|
|
7
8
|
createSerializer() {
|
|
8
9
|
const serializer = new CborShapeSerializer();
|
|
9
10
|
serializer.setSerdeContext(this.serdeContext);
|
|
@@ -19,6 +20,8 @@ export class CborCodec {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
export class CborShapeSerializer {
|
|
23
|
+
serdeContext;
|
|
24
|
+
value;
|
|
22
25
|
setSerdeContext(serdeContext) {
|
|
23
26
|
this.serdeContext = serdeContext;
|
|
24
27
|
}
|
|
@@ -96,6 +99,7 @@ export class CborShapeSerializer {
|
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
101
|
export class CborShapeDeserializer {
|
|
102
|
+
serdeContext;
|
|
99
103
|
setSerdeContext(serdeContext) {
|
|
100
104
|
this.serdeContext = serdeContext;
|
|
101
105
|
}
|
|
@@ -4,11 +4,11 @@ import { getSmithyContext } from "@smithy/util-middleware";
|
|
|
4
4
|
import { CborCodec } from "./CborCodec";
|
|
5
5
|
import { loadSmithyRpcV2CborErrorCode } from "./parseCborBody";
|
|
6
6
|
export class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
7
|
+
codec = new CborCodec();
|
|
8
|
+
serializer = this.codec.createSerializer();
|
|
9
|
+
deserializer = this.codec.createDeserializer();
|
|
7
10
|
constructor({ defaultNamespace }) {
|
|
8
11
|
super({ defaultNamespace });
|
|
9
|
-
this.codec = new CborCodec();
|
|
10
|
-
this.serializer = this.codec.createSerializer();
|
|
11
|
-
this.deserializer = this.codec.createDeserializer();
|
|
12
12
|
}
|
|
13
13
|
getShapeId() {
|
|
14
14
|
return "smithy.protocols#rpcv2Cbor";
|
|
@@ -15,8 +15,8 @@ export function decode(at, to) {
|
|
|
15
15
|
if (at >= to) {
|
|
16
16
|
throw new Error("unexpected end of (decode) payload.");
|
|
17
17
|
}
|
|
18
|
-
const major = (payload[at] &
|
|
19
|
-
const minor = payload[at] &
|
|
18
|
+
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
19
|
+
const minor = payload[at] & 0b0001_1111;
|
|
20
20
|
switch (major) {
|
|
21
21
|
case majorUint64:
|
|
22
22
|
case majorNegativeInt64:
|
|
@@ -168,13 +168,13 @@ const minorValueToArgumentLength = {
|
|
|
168
168
|
};
|
|
169
169
|
export function bytesToFloat16(a, b) {
|
|
170
170
|
const sign = a >> 7;
|
|
171
|
-
const exponent = (a &
|
|
172
|
-
const fraction = ((a &
|
|
171
|
+
const exponent = (a & 0b0111_1100) >> 2;
|
|
172
|
+
const fraction = ((a & 0b0000_0011) << 8) | b;
|
|
173
173
|
const scalar = sign === 0 ? 1 : -1;
|
|
174
174
|
let exponentComponent;
|
|
175
175
|
let summation;
|
|
176
176
|
if (exponent === 0b00000) {
|
|
177
|
-
if (fraction ===
|
|
177
|
+
if (fraction === 0b00000_00000) {
|
|
178
178
|
return 0;
|
|
179
179
|
}
|
|
180
180
|
else {
|
|
@@ -183,7 +183,7 @@ export function bytesToFloat16(a, b) {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
else if (exponent === 0b11111) {
|
|
186
|
-
if (fraction ===
|
|
186
|
+
if (fraction === 0b00000_00000) {
|
|
187
187
|
return scalar * Infinity;
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
@@ -198,7 +198,7 @@ export function bytesToFloat16(a, b) {
|
|
|
198
198
|
return scalar * (exponentComponent * summation);
|
|
199
199
|
}
|
|
200
200
|
function decodeCount(at, to) {
|
|
201
|
-
const minor = payload[at] &
|
|
201
|
+
const minor = payload[at] & 0b0001_1111;
|
|
202
202
|
if (minor < 24) {
|
|
203
203
|
_offset = 1;
|
|
204
204
|
return minor;
|
|
@@ -241,14 +241,14 @@ function decodeUtf8StringIndefinite(at, to) {
|
|
|
241
241
|
at += 1;
|
|
242
242
|
const vector = [];
|
|
243
243
|
for (const base = at; at < to;) {
|
|
244
|
-
if (payload[at] ===
|
|
244
|
+
if (payload[at] === 0b1111_1111) {
|
|
245
245
|
const data = alloc(vector.length);
|
|
246
246
|
data.set(vector, 0);
|
|
247
247
|
_offset = at - base + 2;
|
|
248
248
|
return bytesToUtf8(data, 0, data.length);
|
|
249
249
|
}
|
|
250
|
-
const major = (payload[at] &
|
|
251
|
-
const minor = payload[at] &
|
|
250
|
+
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
251
|
+
const minor = payload[at] & 0b0001_1111;
|
|
252
252
|
if (major !== majorUtf8String) {
|
|
253
253
|
throw new Error(`unexpected major type ${major} in indefinite string.`);
|
|
254
254
|
}
|
|
@@ -279,14 +279,14 @@ function decodeUnstructuredByteStringIndefinite(at, to) {
|
|
|
279
279
|
at += 1;
|
|
280
280
|
const vector = [];
|
|
281
281
|
for (const base = at; at < to;) {
|
|
282
|
-
if (payload[at] ===
|
|
282
|
+
if (payload[at] === 0b1111_1111) {
|
|
283
283
|
const data = alloc(vector.length);
|
|
284
284
|
data.set(vector, 0);
|
|
285
285
|
_offset = at - base + 2;
|
|
286
286
|
return data;
|
|
287
287
|
}
|
|
288
|
-
const major = (payload[at] &
|
|
289
|
-
const minor = payload[at] &
|
|
288
|
+
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
289
|
+
const minor = payload[at] & 0b0001_1111;
|
|
290
290
|
if (major !== majorUnstructuredByteString) {
|
|
291
291
|
throw new Error(`unexpected major type ${major} in indefinite string.`);
|
|
292
292
|
}
|
|
@@ -321,7 +321,7 @@ function decodeListIndefinite(at, to) {
|
|
|
321
321
|
at += 1;
|
|
322
322
|
const list = [];
|
|
323
323
|
for (const base = at; at < to;) {
|
|
324
|
-
if (payload[at] ===
|
|
324
|
+
if (payload[at] === 0b1111_1111) {
|
|
325
325
|
_offset = at - base + 2;
|
|
326
326
|
return list;
|
|
327
327
|
}
|
|
@@ -342,7 +342,7 @@ function decodeMap(at, to) {
|
|
|
342
342
|
if (at >= to) {
|
|
343
343
|
throw new Error("unexpected end of map payload.");
|
|
344
344
|
}
|
|
345
|
-
const major = (payload[at] &
|
|
345
|
+
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
346
346
|
if (major !== majorUtf8String) {
|
|
347
347
|
throw new Error(`unexpected major type ${major} for map key at index ${at}.`);
|
|
348
348
|
}
|
|
@@ -363,11 +363,11 @@ function decodeMapIndefinite(at, to) {
|
|
|
363
363
|
if (at >= to) {
|
|
364
364
|
throw new Error("unexpected end of map payload.");
|
|
365
365
|
}
|
|
366
|
-
if (payload[at] ===
|
|
366
|
+
if (payload[at] === 0b1111_1111) {
|
|
367
367
|
_offset = at - base + 2;
|
|
368
368
|
return map;
|
|
369
369
|
}
|
|
370
|
-
const major = (payload[at] &
|
|
370
|
+
const major = (payload[at] & 0b1110_0000) >> 5;
|
|
371
371
|
if (major !== majorUtf8String) {
|
|
372
372
|
throw new Error(`unexpected major type ${major} for map key.`);
|
|
373
373
|
}
|
|
@@ -380,7 +380,7 @@ function decodeMapIndefinite(at, to) {
|
|
|
380
380
|
throw new Error("expected break marker.");
|
|
381
381
|
}
|
|
382
382
|
function decodeSpecial(at, to) {
|
|
383
|
-
const minor = payload[at] &
|
|
383
|
+
const minor = payload[at] & 0b0001_1111;
|
|
384
384
|
switch (minor) {
|
|
385
385
|
case specialTrue:
|
|
386
386
|
case specialFalse:
|
|
@@ -9,11 +9,11 @@ let cursor = 0;
|
|
|
9
9
|
function ensureSpace(bytes) {
|
|
10
10
|
const remaining = data.byteLength - cursor;
|
|
11
11
|
if (remaining < bytes) {
|
|
12
|
-
if (cursor <
|
|
12
|
+
if (cursor < 16_000_000) {
|
|
13
13
|
resize(Math.max(data.byteLength * 4, data.byteLength + bytes));
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
|
-
resize(data.byteLength + bytes +
|
|
16
|
+
resize(data.byteLength + bytes + 16_000_000);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -127,7 +127,7 @@ export function encode(_input) {
|
|
|
127
127
|
else if (n < 65536) {
|
|
128
128
|
data[cursor++] = (major << 5) | extendedFloat16;
|
|
129
129
|
data[cursor++] = n >> 8;
|
|
130
|
-
data[cursor++] = n &
|
|
130
|
+
data[cursor++] = n & 0b1111_1111;
|
|
131
131
|
}
|
|
132
132
|
else if (n < 4294967296) {
|
|
133
133
|
data[cursor++] = (major << 5) | extendedFloat32;
|
|
@@ -149,7 +149,7 @@ export function encode(_input) {
|
|
|
149
149
|
b >>= BigInt(8);
|
|
150
150
|
}
|
|
151
151
|
ensureSpace(bigIntBytes.byteLength * 2);
|
|
152
|
-
data[cursor++] = nonNegative ?
|
|
152
|
+
data[cursor++] = nonNegative ? 0b110_00010 : 0b110_00011;
|
|
153
153
|
if (USE_BUFFER) {
|
|
154
154
|
encodeHeader(majorUnstructuredByteString, Buffer.byteLength(bigIntBytes));
|
|
155
155
|
}
|
|
@@ -191,7 +191,7 @@ export function encode(_input) {
|
|
|
191
191
|
const decimalIndex = input.string.indexOf(".");
|
|
192
192
|
const exponent = decimalIndex === -1 ? 0 : decimalIndex - input.string.length + 1;
|
|
193
193
|
const mantissa = BigInt(input.string.replace(".", ""));
|
|
194
|
-
data[cursor++] =
|
|
194
|
+
data[cursor++] = 0b110_00100;
|
|
195
195
|
encodeStack.push(mantissa);
|
|
196
196
|
encodeStack.push(exponent);
|
|
197
197
|
encodeHeader(majorList, 2);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { SCHEMA } from "@smithy/core/schema";
|
|
2
2
|
import { fromUtf8 } from "@smithy/util-utf8";
|
|
3
3
|
export class EventStreamSerde {
|
|
4
|
+
marshaller;
|
|
5
|
+
serializer;
|
|
6
|
+
deserializer;
|
|
7
|
+
serdeContext;
|
|
8
|
+
defaultContentType;
|
|
4
9
|
constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }) {
|
|
5
10
|
this.marshaller = marshaller;
|
|
6
11
|
this.serializer = serializer;
|
|
@@ -4,16 +4,18 @@ export function requestBuilder(input, context) {
|
|
|
4
4
|
return new RequestBuilder(input, context);
|
|
5
5
|
}
|
|
6
6
|
export class RequestBuilder {
|
|
7
|
+
input;
|
|
8
|
+
context;
|
|
9
|
+
query = {};
|
|
10
|
+
method = "";
|
|
11
|
+
headers = {};
|
|
12
|
+
path = "";
|
|
13
|
+
body = null;
|
|
14
|
+
hostname = "";
|
|
15
|
+
resolvePathStack = [];
|
|
7
16
|
constructor(input, context) {
|
|
8
17
|
this.input = input;
|
|
9
18
|
this.context = context;
|
|
10
|
-
this.query = {};
|
|
11
|
-
this.method = "";
|
|
12
|
-
this.headers = {};
|
|
13
|
-
this.path = "";
|
|
14
|
-
this.body = null;
|
|
15
|
-
this.hostname = "";
|
|
16
|
-
this.resolvePathStack = [];
|
|
17
19
|
}
|
|
18
20
|
async build() {
|
|
19
21
|
const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint();
|
package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
CHANGED
|
@@ -4,6 +4,8 @@ import { fromBase64 } from "@smithy/util-base64";
|
|
|
4
4
|
import { toUtf8 } from "@smithy/util-utf8";
|
|
5
5
|
import { determineTimestampFormat } from "./determineTimestampFormat";
|
|
6
6
|
export class FromStringShapeDeserializer {
|
|
7
|
+
settings;
|
|
8
|
+
serdeContext;
|
|
7
9
|
constructor(settings) {
|
|
8
10
|
this.settings = settings;
|
|
9
11
|
}
|
|
@@ -2,6 +2,9 @@ import { NormalizedSchema } from "@smithy/core/schema";
|
|
|
2
2
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
3
3
|
import { FromStringShapeDeserializer } from "./FromStringShapeDeserializer";
|
|
4
4
|
export class HttpInterceptingShapeDeserializer {
|
|
5
|
+
codecDeserializer;
|
|
6
|
+
stringDeserializer;
|
|
7
|
+
serdeContext;
|
|
5
8
|
constructor(codecDeserializer, codecSettings) {
|
|
6
9
|
this.codecDeserializer = codecDeserializer;
|
|
7
10
|
this.stringDeserializer = new FromStringShapeDeserializer(codecSettings);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
2
|
import { ToStringShapeSerializer } from "./ToStringShapeSerializer";
|
|
3
3
|
export class HttpInterceptingShapeSerializer {
|
|
4
|
+
codecSerializer;
|
|
5
|
+
stringSerializer;
|
|
6
|
+
buffer;
|
|
4
7
|
constructor(codecSerializer, codecSettings, stringSerializer = new ToStringShapeSerializer(codecSettings)) {
|
|
5
8
|
this.codecSerializer = codecSerializer;
|
|
6
9
|
this.stringSerializer = stringSerializer;
|
package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js
CHANGED
|
@@ -3,10 +3,11 @@ import { dateToUtcString, LazyJsonString, quoteHeader } from "@smithy/core/serde
|
|
|
3
3
|
import { toBase64 } from "@smithy/util-base64";
|
|
4
4
|
import { determineTimestampFormat } from "./determineTimestampFormat";
|
|
5
5
|
export class ToStringShapeSerializer {
|
|
6
|
+
settings;
|
|
7
|
+
stringBuffer = "";
|
|
8
|
+
serdeContext = undefined;
|
|
6
9
|
constructor(settings) {
|
|
7
10
|
this.settings = settings;
|
|
8
|
-
this.stringBuffer = "";
|
|
9
|
-
this.serdeContext = undefined;
|
|
10
11
|
}
|
|
11
12
|
setSerdeContext(serdeContext) {
|
|
12
13
|
this.serdeContext = serdeContext;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export class TypeRegistry {
|
|
2
|
+
namespace;
|
|
3
|
+
schemas;
|
|
4
|
+
exceptions;
|
|
5
|
+
static registries = new Map();
|
|
2
6
|
constructor(namespace, schemas = new Map(), exceptions = new Map()) {
|
|
3
7
|
this.namespace = namespace;
|
|
4
8
|
this.schemas = schemas;
|
|
@@ -52,4 +56,3 @@ export class TypeRegistry {
|
|
|
52
56
|
return this.normalizeShapeId(shapeId).split("#")[0];
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
|
-
TypeRegistry.registries = new Map();
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Schema } from "./Schema";
|
|
2
2
|
import { StructureSchema } from "./StructureSchema";
|
|
3
3
|
export class ErrorSchema extends StructureSchema {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
4
|
+
static symbol = Symbol.for("@smithy/err");
|
|
5
|
+
ctor;
|
|
6
|
+
symbol = ErrorSchema.symbol;
|
|
8
7
|
}
|
|
9
|
-
ErrorSchema.symbol = Symbol.for("@smithy/err");
|
|
10
8
|
export const error = (namespace, name, traits, memberNames, memberList, ctor) => Schema.assign(new ErrorSchema(), {
|
|
11
9
|
name,
|
|
12
10
|
namespace,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Schema } from "./Schema";
|
|
2
2
|
export class ListSchema extends Schema {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
static symbol = Symbol.for("@smithy/lis");
|
|
4
|
+
name;
|
|
5
|
+
traits;
|
|
6
|
+
valueSchema;
|
|
7
|
+
symbol = ListSchema.symbol;
|
|
7
8
|
}
|
|
8
|
-
ListSchema.symbol = Symbol.for("@smithy/lis");
|
|
9
9
|
export const list = (namespace, name, traits, valueSchema) => Schema.assign(new ListSchema(), {
|
|
10
10
|
name,
|
|
11
11
|
namespace,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Schema } from "./Schema";
|
|
2
2
|
export class MapSchema extends Schema {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
static symbol = Symbol.for("@smithy/map");
|
|
4
|
+
name;
|
|
5
|
+
traits;
|
|
6
|
+
keySchema;
|
|
7
|
+
valueSchema;
|
|
8
|
+
symbol = MapSchema.symbol;
|
|
7
9
|
}
|
|
8
|
-
MapSchema.symbol = Symbol.for("@smithy/map");
|
|
9
10
|
export const map = (namespace, name, traits, keySchema, valueSchema) => Schema.assign(new MapSchema(), {
|
|
10
11
|
name,
|
|
11
12
|
namespace,
|
|
@@ -6,10 +6,19 @@ import { SCHEMA } from "./sentinels";
|
|
|
6
6
|
import { SimpleSchema } from "./SimpleSchema";
|
|
7
7
|
import { StructureSchema } from "./StructureSchema";
|
|
8
8
|
export class NormalizedSchema {
|
|
9
|
+
ref;
|
|
10
|
+
memberName;
|
|
11
|
+
static symbol = Symbol.for("@smithy/nor");
|
|
12
|
+
symbol = NormalizedSchema.symbol;
|
|
13
|
+
name;
|
|
14
|
+
schema;
|
|
15
|
+
_isMemberSchema;
|
|
16
|
+
traits;
|
|
17
|
+
memberTraits;
|
|
18
|
+
normalizedTraits;
|
|
9
19
|
constructor(ref, memberName) {
|
|
10
20
|
this.ref = ref;
|
|
11
21
|
this.memberName = memberName;
|
|
12
|
-
this.symbol = NormalizedSchema.symbol;
|
|
13
22
|
const traitStack = [];
|
|
14
23
|
let _ref = ref;
|
|
15
24
|
let schema = ref;
|
|
@@ -130,7 +139,7 @@ export class NormalizedSchema {
|
|
|
130
139
|
isMapSchema() {
|
|
131
140
|
const inner = this.getSchema();
|
|
132
141
|
if (typeof inner === "number") {
|
|
133
|
-
return inner >= SCHEMA.MAP_MODIFIER && inner <=
|
|
142
|
+
return inner >= SCHEMA.MAP_MODIFIER && inner <= 0b1111_1111;
|
|
134
143
|
}
|
|
135
144
|
return inner instanceof MapSchema;
|
|
136
145
|
}
|
|
@@ -210,7 +219,7 @@ export class NormalizedSchema {
|
|
|
210
219
|
}
|
|
211
220
|
const schema = this.getSchema();
|
|
212
221
|
if (typeof schema === "number") {
|
|
213
|
-
return this.memberFrom([
|
|
222
|
+
return this.memberFrom([0b0011_1111 & schema, 0], "key");
|
|
214
223
|
}
|
|
215
224
|
return this.memberFrom([schema.keySchema, 0], "key");
|
|
216
225
|
}
|
|
@@ -218,10 +227,10 @@ export class NormalizedSchema {
|
|
|
218
227
|
const schema = this.getSchema();
|
|
219
228
|
if (typeof schema === "number") {
|
|
220
229
|
if (this.isMapSchema()) {
|
|
221
|
-
return this.memberFrom([
|
|
230
|
+
return this.memberFrom([0b0011_1111 & schema, 0], "value");
|
|
222
231
|
}
|
|
223
232
|
else if (this.isListSchema()) {
|
|
224
|
-
return this.memberFrom([
|
|
233
|
+
return this.memberFrom([0b0011_1111 & schema, 0], "member");
|
|
225
234
|
}
|
|
226
235
|
}
|
|
227
236
|
if (schema && typeof schema === "object") {
|
|
@@ -309,8 +318,8 @@ export class NormalizedSchema {
|
|
|
309
318
|
getSchemaName() {
|
|
310
319
|
const schema = this.getSchema();
|
|
311
320
|
if (typeof schema === "number") {
|
|
312
|
-
const _schema =
|
|
313
|
-
const container =
|
|
321
|
+
const _schema = 0b0011_1111 & schema;
|
|
322
|
+
const container = 0b1100_0000 & schema;
|
|
314
323
|
const type = Object.entries(SCHEMA).find(([, value]) => {
|
|
315
324
|
return value === _schema;
|
|
316
325
|
})?.[0] ?? "Unknown";
|
|
@@ -326,4 +335,3 @@ export class NormalizedSchema {
|
|
|
326
335
|
return "Unknown";
|
|
327
336
|
}
|
|
328
337
|
}
|
|
329
|
-
NormalizedSchema.symbol = Symbol.for("@smithy/nor");
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Schema } from "./Schema";
|
|
2
2
|
export class OperationSchema extends Schema {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
static symbol = Symbol.for("@smithy/ope");
|
|
4
|
+
name;
|
|
5
|
+
traits;
|
|
6
|
+
input;
|
|
7
|
+
output;
|
|
8
|
+
symbol = OperationSchema.symbol;
|
|
7
9
|
}
|
|
8
|
-
OperationSchema.symbol = Symbol.for("@smithy/ope");
|
|
9
10
|
export const op = (namespace, name, traits, input, output) => Schema.assign(new OperationSchema(), {
|
|
10
11
|
name,
|
|
11
12
|
namespace,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Schema } from "./Schema";
|
|
2
2
|
export class SimpleSchema extends Schema {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
static symbol = Symbol.for("@smithy/sim");
|
|
4
|
+
name;
|
|
5
|
+
schemaRef;
|
|
6
|
+
traits;
|
|
7
|
+
symbol = SimpleSchema.symbol;
|
|
7
8
|
}
|
|
8
|
-
SimpleSchema.symbol = Symbol.for("@smithy/sim");
|
|
9
9
|
export const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
|
|
10
10
|
name,
|
|
11
11
|
namespace,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Schema } from "./Schema";
|
|
2
2
|
export class StructureSchema extends Schema {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
static symbol = Symbol.for("@smithy/str");
|
|
4
|
+
name;
|
|
5
|
+
traits;
|
|
6
|
+
memberNames;
|
|
7
|
+
memberList;
|
|
8
|
+
symbol = StructureSchema.symbol;
|
|
7
9
|
}
|
|
8
|
-
StructureSchema.symbol = Symbol.for("@smithy/str");
|
|
9
10
|
export const struct = (namespace, name, traits, memberNames, memberList) => Schema.assign(new StructureSchema(), {
|
|
10
11
|
name,
|
|
11
12
|
namespace,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export const SCHEMA = {
|
|
2
|
-
BLOB:
|
|
3
|
-
STREAMING_BLOB:
|
|
4
|
-
BOOLEAN:
|
|
5
|
-
STRING:
|
|
6
|
-
NUMERIC:
|
|
7
|
-
BIG_INTEGER:
|
|
8
|
-
BIG_DECIMAL:
|
|
9
|
-
DOCUMENT:
|
|
10
|
-
TIMESTAMP_DEFAULT:
|
|
11
|
-
TIMESTAMP_DATE_TIME:
|
|
12
|
-
TIMESTAMP_HTTP_DATE:
|
|
13
|
-
TIMESTAMP_EPOCH_SECONDS:
|
|
14
|
-
LIST_MODIFIER:
|
|
15
|
-
MAP_MODIFIER:
|
|
2
|
+
BLOB: 0b0001_0101,
|
|
3
|
+
STREAMING_BLOB: 0b0010_1010,
|
|
4
|
+
BOOLEAN: 0b0000_0010,
|
|
5
|
+
STRING: 0b0000_0000,
|
|
6
|
+
NUMERIC: 0b0000_0001,
|
|
7
|
+
BIG_INTEGER: 0b0001_0001,
|
|
8
|
+
BIG_DECIMAL: 0b0001_0011,
|
|
9
|
+
DOCUMENT: 0b0000_1111,
|
|
10
|
+
TIMESTAMP_DEFAULT: 0b0000_0100,
|
|
11
|
+
TIMESTAMP_DATE_TIME: 0b0000_0101,
|
|
12
|
+
TIMESTAMP_HTTP_DATE: 0b0000_0110,
|
|
13
|
+
TIMESTAMP_EPOCH_SECONDS: 0b0000_0111,
|
|
14
|
+
LIST_MODIFIER: 0b0100_0000,
|
|
15
|
+
MAP_MODIFIER: 0b1000_0000,
|
|
16
16
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export const createIsIdentityExpiredFunction = (expirationMs) =>
|
|
2
|
-
|
|
1
|
+
export const createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired(identity) {
|
|
2
|
+
return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
|
|
3
|
+
};
|
|
4
|
+
export const EXPIRATION_MS = 300_000;
|
|
3
5
|
export const isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
|
|
4
6
|
export const doesIdentityRequireRefresh = (identity) => identity.expiration !== undefined;
|
|
5
7
|
export const memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.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",
|
|
@@ -77,15 +77,15 @@
|
|
|
77
77
|
"license": "Apache-2.0",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@smithy/middleware-serde": "^4.
|
|
81
|
-
"@smithy/protocol-http": "^5.
|
|
82
|
-
"@smithy/types": "^4.
|
|
83
|
-
"@smithy/util-base64": "^4.
|
|
84
|
-
"@smithy/util-body-length-browser": "^4.
|
|
85
|
-
"@smithy/util-middleware": "^4.
|
|
86
|
-
"@smithy/util-stream": "^4.
|
|
87
|
-
"@smithy/util-utf8": "^4.
|
|
88
|
-
"@smithy/uuid": "^1.
|
|
80
|
+
"@smithy/middleware-serde": "^4.2.0",
|
|
81
|
+
"@smithy/protocol-http": "^5.3.0",
|
|
82
|
+
"@smithy/types": "^4.6.0",
|
|
83
|
+
"@smithy/util-base64": "^4.2.0",
|
|
84
|
+
"@smithy/util-body-length-browser": "^4.2.0",
|
|
85
|
+
"@smithy/util-middleware": "^4.2.0",
|
|
86
|
+
"@smithy/util-stream": "^4.4.0",
|
|
87
|
+
"@smithy/util-utf8": "^4.2.0",
|
|
88
|
+
"@smithy/uuid": "^1.1.0",
|
|
89
89
|
"tslib": "^2.6.2"
|
|
90
90
|
},
|
|
91
91
|
"engines": {
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"directory": "packages/core"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@smithy/eventstream-serde-node": "^4.
|
|
121
|
+
"@smithy/eventstream-serde-node": "^4.2.0",
|
|
122
122
|
"@types/node": "^18.11.9",
|
|
123
123
|
"concurrently": "7.0.0",
|
|
124
124
|
"downlevel-dts": "0.10.1",
|