@cdklabs/cdk-ecs-codedeploy 0.0.235 → 0.0.236
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/.jsii.tabl.json +1 -1
- 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/@smithy/abort-controller/dist-cjs/AbortController.js +1 -13
- package/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +1 -24
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +83 -5
- package/node_modules/@smithy/abort-controller/package.json +3 -3
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +1 -12
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +1 -12
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +1 -7
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +1 -16
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +1 -20
- package/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +1 -20
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +233 -6
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +1 -15
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +1 -10
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +1 -5
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +1 -5
- package/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +1 -29
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +1 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +1 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +1 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +1 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +1 -8
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +1 -34
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +1 -9
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +1 -5
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +1 -16
- package/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +1 -6
- package/node_modules/@smithy/config-resolver/package.json +6 -6
- package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +1 -6
- package/node_modules/@smithy/core/dist-cjs/index.js +480 -12
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +1 -22
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -22
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -45
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +1 -6
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +1 -20
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +1 -28
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +1 -5
- package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +1 -10
- package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +1 -32
- package/node_modules/@smithy/core/dist-cjs/protocols/requestBuilder.js +1 -72
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +1 -17
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +1 -37
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +1 -14
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +1 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +1 -9
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +1 -6
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +1 -59
- package/node_modules/@smithy/core/package.json +9 -9
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +1 -8
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +1 -10
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +1 -8
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +1 -11
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +1 -13
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +1 -70
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +1 -137
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +425 -12
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +1 -17
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +1 -7
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +1 -41
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +1 -5
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +1 -11
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +1 -22
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +1 -23
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +1 -29
- package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
- package/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js +1 -66
- package/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +1 -186
- package/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +1 -47
- package/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +1 -2
- package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +1 -18
- package/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +1 -21
- package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +1 -20
- package/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +1 -18
- package/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +1 -693
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +466 -11
- package/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +1 -34
- package/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +1 -2
- package/node_modules/@smithy/eventstream-codec/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +1 -117
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +218 -5
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +1 -15
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +1 -50
- package/node_modules/@smithy/fetch-http-handler/package.json +7 -7
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +62 -36
- package/node_modules/@smithy/hash-node/package.json +5 -5
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +39 -5
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +1 -7
- package/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +1 -5
- package/node_modules/@smithy/invalid-dependency/package.json +3 -3
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +30 -6
- package/node_modules/@smithy/is-array-buffer/package.json +7 -9
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +64 -39
- package/node_modules/@smithy/middleware-content-length/package.json +5 -5
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +1 -38
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +1 -51
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js +1 -5
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js +1 -14
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +1 -37
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js +1 -22
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +252 -8
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js +1 -21
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js +1 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js +1 -43
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +1 -24
- package/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js +1 -95
- package/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js +1 -57
- package/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js +1 -32
- package/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js +1 -6
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +422 -10
- package/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +1 -27
- package/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js +1 -11
- package/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +1 -118
- package/node_modules/@smithy/middleware-retry/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/middleware-retry/dist-cjs/util.js +1 -13
- package/node_modules/@smithy/middleware-retry/package.json +10 -10
- package/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +1 -24
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +95 -6
- package/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +1 -26
- package/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +1 -18
- package/node_modules/@smithy/middleware-serde/package.json +4 -4
- package/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +1 -287
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +316 -4
- package/node_modules/@smithy/middleware-stack/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/middleware-stack/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +1 -9
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +1 -17
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +1 -26
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +1 -7
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +85 -4
- package/node_modules/@smithy/node-config-provider/package.json +5 -5
- package/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +1 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +1 -12
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +624 -6
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +1 -153
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +1 -92
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +1 -36
- package/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +1 -165
- package/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +1 -23
- package/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +1 -60
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +1 -25
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +1 -12
- package/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +1 -10
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +1 -15
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +1 -18
- package/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +1 -23
- package/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +1 -45
- package/node_modules/@smithy/node-http-handler/package.json +6 -6
- package/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +1 -13
- package/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +1 -15
- package/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +1 -13
- package/node_modules/@smithy/property-provider/dist-cjs/chain.js +1 -25
- package/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +1 -5
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +148 -9
- package/node_modules/@smithy/property-provider/dist-cjs/memoize.js +1 -49
- package/node_modules/@smithy/property-provider/package.json +3 -3
- package/node_modules/@smithy/protocol-http/dist-cjs/Field.js +1 -27
- package/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +1 -23
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +1 -27
- package/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +1 -4
- package/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +1 -2
- package/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +1 -52
- package/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +1 -18
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +235 -11
- package/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +1 -8
- package/node_modules/@smithy/protocol-http/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/protocol-http/package.json +3 -3
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +47 -22
- package/node_modules/@smithy/querystring-builder/package.json +4 -4
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +48 -24
- package/node_modules/@smithy/querystring-parser/package.json +3 -3
- package/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +1 -30
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +86 -30
- package/node_modules/@smithy/service-error-classification/package.json +3 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +1 -22
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +1 -8
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +1 -8
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +1 -7
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +1 -9
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +188 -11
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +1 -31
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +1 -16
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +1 -18
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +1 -56
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +1 -10
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +13 -3
- package/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +1 -194
- package/node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js +1 -17
- package/node_modules/@smithy/signature-v4/dist-cjs/constants.js +1 -46
- package/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +1 -39
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +1 -24
- package/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +1 -31
- package/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +1 -24
- package/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +1 -32
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +465 -16
- package/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +1 -21
- package/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +1 -15
- package/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +1 -402
- package/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +1 -20
- package/node_modules/@smithy/signature-v4/package.json +10 -10
- package/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js +1 -11
- package/node_modules/@smithy/smithy-client/dist-cjs/client.js +1 -28
- package/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js +1 -15
- package/node_modules/@smithy/smithy-client/dist-cjs/command.js +1 -118
- package/node_modules/@smithy/smithy-client/dist-cjs/constants.js +1 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js +1 -25
- package/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +1 -195
- package/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js +1 -30
- package/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js +1 -30
- package/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +1 -10
- package/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js +1 -27
- package/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js +1 -9
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js +1 -36
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -20
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js +1 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js +1 -21
- package/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js +1 -5
- package/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js +1 -16
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1254 -25
- package/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +1 -38
- package/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js +1 -98
- package/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +1 -253
- package/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js +1 -23
- package/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js +1 -17
- package/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +1 -23
- package/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +1 -31
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-cjs/abort.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/auth/auth.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/auth/index.js +1 -9
- package/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/checksum.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/client.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/command.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/connection/config.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/connection/index.js +1 -6
- package/node_modules/@smithy/types/dist-cjs/connection/manager.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/connection/pool.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/crypto.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/encode.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoint.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/endpoints/index.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/eventStream.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +1 -44
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +1 -16
- package/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/extensions/index.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/extensions/retry.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/http/httpHandlerInitialization.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/http.js +1 -8
- package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/identity/identity.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/identity/index.js +1 -7
- package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/index.js +147 -39
- package/node_modules/@smithy/types/dist-cjs/logger.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/middleware.js +1 -4
- package/node_modules/@smithy/types/dist-cjs/pagination.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/profile.js +1 -9
- package/node_modules/@smithy/types/dist-cjs/response.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/retry.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/serde.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/shapes.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/signature.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/stream.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transfer.js +1 -9
- package/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transform/exact.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/uri.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/util.js +1 -2
- package/node_modules/@smithy/types/dist-cjs/waiter.js +1 -2
- package/node_modules/@smithy/types/package.json +2 -2
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +46 -21
- package/node_modules/@smithy/url-parser/package.json +4 -4
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +25 -5
- package/node_modules/@smithy/util-base64/package.json +4 -4
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +1 -30
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +55 -4
- package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
- package/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +1 -29
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +51 -4
- package/node_modules/@smithy/util-body-length-node/package.json +7 -9
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +43 -17
- package/node_modules/@smithy/util-buffer-from/package.json +8 -10
- package/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +1 -13
- package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +62 -6
- package/node_modules/@smithy/util-config-provider/dist-cjs/numberSelector.js +1 -13
- package/node_modules/@smithy/util-config-provider/dist-cjs/types.js +1 -8
- package/node_modules/@smithy/util-config-provider/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +23 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js +1 -9
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +1 -14
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +107 -4
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +1 -57
- package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +1 -4
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +1 -16
- package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +1 -25
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +482 -8
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +1 -15
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +1 -29
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +1 -12
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +1 -6
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +1 -17
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +1 -55
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +1 -13
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +1 -5
- package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +1 -42
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +1 -10
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +1 -10
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +1 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +1 -15
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +1 -4
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +1 -15
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +1 -19
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +1 -27
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +1 -32
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +1 -18
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +1 -20
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +1 -31
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +1 -40
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +1 -17
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +1 -16
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +1 -9
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +1 -25
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +1 -19
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +1 -11
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +1 -5
- package/node_modules/@smithy/util-endpoints/package.json +4 -4
- package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +58 -31
- package/node_modules/@smithy/util-hex-encoding/package.json +7 -9
- package/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +1 -6
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +43 -5
- package/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +1 -10
- package/node_modules/@smithy/util-middleware/package.json +3 -3
- package/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +1 -28
- package/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +1 -22
- package/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +1 -104
- package/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +1 -70
- package/node_modules/@smithy/util-retry/dist-cjs/config.js +1 -10
- package/node_modules/@smithy/util-retry/dist-cjs/constants.js +1 -12
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +1 -18
- package/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +1 -15
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +345 -10
- package/node_modules/@smithy/util-retry/dist-cjs/types.js +1 -2
- package/node_modules/@smithy/util-retry/package.json +4 -4
- package/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +1 -22
- package/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +1 -20
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +87 -6
- package/node_modules/@smithy/util-stream/package.json +10 -10
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +1 -6
- package/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +1 -6
- package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +41 -5
- package/node_modules/@smithy/util-uri-escape/package.json +7 -9
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +1 -5
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +1 -9
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +55 -6
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +1 -14
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +1 -5
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +1 -6
- package/node_modules/@smithy/util-utf8/package.json +4 -4
- package/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +1 -27
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +153 -5
- package/node_modules/@smithy/util-waiter/dist-cjs/poller.js +1 -38
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +1 -5
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +1 -7
- package/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +1 -21
- package/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +1 -38
- package/node_modules/@smithy/util-waiter/package.json +4 -4
- package/package.json +5 -5
- package/.gitattributes +0 -27
- package/.projenrc.ts +0 -113
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uriEncode = void 0;
|
|
4
|
-
const uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
exports.uriEncode = uriEncode;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,42 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveEndpoint = void 0;
|
|
4
|
-
const debug_1 = require("./debug");
|
|
5
|
-
const types_1 = require("./types");
|
|
6
|
-
const utils_1 = require("./utils");
|
|
7
|
-
const resolveEndpoint = (ruleSetObject, options) => {
|
|
8
|
-
var _a, _b, _c, _d, _e, _f;
|
|
9
|
-
const { endpointParams, logger } = options;
|
|
10
|
-
const { parameters, rules } = ruleSetObject;
|
|
11
|
-
(_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, `${debug_1.debugId} Initial EndpointParams: ${(0, debug_1.toDebugString)(endpointParams)}`);
|
|
12
|
-
const paramsWithDefault = Object.entries(parameters)
|
|
13
|
-
.filter(([, v]) => v.default != null)
|
|
14
|
-
.map(([k, v]) => [k, v.default]);
|
|
15
|
-
if (paramsWithDefault.length > 0) {
|
|
16
|
-
for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
|
|
17
|
-
endpointParams[paramKey] = (_c = endpointParams[paramKey]) !== null && _c !== void 0 ? _c : paramDefaultValue;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
const requiredParams = Object.entries(parameters)
|
|
21
|
-
.filter(([, v]) => v.required)
|
|
22
|
-
.map(([k]) => k);
|
|
23
|
-
for (const requiredParam of requiredParams) {
|
|
24
|
-
if (endpointParams[requiredParam] == null) {
|
|
25
|
-
throw new types_1.EndpointError(`Missing required parameter: '${requiredParam}'`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const endpoint = (0, utils_1.evaluateRules)(rules, { endpointParams, logger, referenceRecord: {} });
|
|
29
|
-
if ((_d = options.endpointParams) === null || _d === void 0 ? void 0 : _d.Endpoint) {
|
|
30
|
-
try {
|
|
31
|
-
const givenEndpoint = new URL(options.endpointParams.Endpoint);
|
|
32
|
-
const { protocol, port } = givenEndpoint;
|
|
33
|
-
endpoint.url.protocol = protocol;
|
|
34
|
-
endpoint.url.port = port;
|
|
35
|
-
}
|
|
36
|
-
catch (e) {
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
(_f = (_e = options.logger) === null || _e === void 0 ? void 0 : _e.debug) === null || _f === void 0 ? void 0 : _f.call(_e, `${debug_1.debugId} Resolved endpoint: ${(0, debug_1.toDebugString)(endpoint)}`);
|
|
40
|
-
return endpoint;
|
|
41
|
-
};
|
|
42
|
-
exports.resolveEndpoint = resolveEndpoint;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EndpointError = void 0;
|
|
4
|
-
class EndpointError extends Error {
|
|
5
|
-
constructor(message) {
|
|
6
|
-
super(message);
|
|
7
|
-
this.name = "EndpointError";
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.EndpointError = EndpointError;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./EndpointError"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./EndpointFunctions"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./EndpointRuleObject"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./ErrorRuleObject"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./RuleSetObject"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./TreeRuleObject"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./shared"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callFunction = void 0;
|
|
4
|
-
const customEndpointFunctions_1 = require("./customEndpointFunctions");
|
|
5
|
-
const endpointFunctions_1 = require("./endpointFunctions");
|
|
6
|
-
const evaluateExpression_1 = require("./evaluateExpression");
|
|
7
|
-
const callFunction = ({ fn, argv }, options) => {
|
|
8
|
-
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : (0, evaluateExpression_1.evaluateExpression)(arg, "arg", options));
|
|
9
|
-
const fnSegments = fn.split(".");
|
|
10
|
-
if (fnSegments[0] in customEndpointFunctions_1.customEndpointFunctions && fnSegments[1] != null) {
|
|
11
|
-
return customEndpointFunctions_1.customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
|
|
12
|
-
}
|
|
13
|
-
return endpointFunctions_1.endpointFunctions[fn](...evaluatedArgs);
|
|
14
|
-
};
|
|
15
|
-
exports.callFunction = callFunction;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.endpointFunctions = void 0;
|
|
4
|
-
const lib_1 = require("../lib");
|
|
5
|
-
exports.endpointFunctions = {
|
|
6
|
-
booleanEquals: lib_1.booleanEquals,
|
|
7
|
-
getAttr: lib_1.getAttr,
|
|
8
|
-
isSet: lib_1.isSet,
|
|
9
|
-
isValidHostLabel: lib_1.isValidHostLabel,
|
|
10
|
-
not: lib_1.not,
|
|
11
|
-
parseURL: lib_1.parseURL,
|
|
12
|
-
stringEquals: lib_1.stringEquals,
|
|
13
|
-
substring: lib_1.substring,
|
|
14
|
-
uriEncode: lib_1.uriEncode,
|
|
15
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evaluateCondition = void 0;
|
|
4
|
-
const debug_1 = require("../debug");
|
|
5
|
-
const types_1 = require("../types");
|
|
6
|
-
const callFunction_1 = require("./callFunction");
|
|
7
|
-
const evaluateCondition = ({ assign, ...fnArgs }, options) => {
|
|
8
|
-
var _a, _b;
|
|
9
|
-
if (assign && assign in options.referenceRecord) {
|
|
10
|
-
throw new types_1.EndpointError(`'${assign}' is already defined in Reference Record.`);
|
|
11
|
-
}
|
|
12
|
-
const value = (0, callFunction_1.callFunction)(fnArgs, options);
|
|
13
|
-
(_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `evaluateCondition: ${(0, debug_1.toDebugString)(fnArgs)} = ${(0, debug_1.toDebugString)(value)}`);
|
|
14
|
-
return {
|
|
15
|
-
result: value === "" ? true : !!value,
|
|
16
|
-
...(assign != null && { toAssign: { name: assign, value } }),
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
exports.evaluateCondition = evaluateCondition;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evaluateConditions = void 0;
|
|
4
|
-
const debug_1 = require("../debug");
|
|
5
|
-
const evaluateCondition_1 = require("./evaluateCondition");
|
|
6
|
-
const evaluateConditions = (conditions = [], options) => {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
const conditionsReferenceRecord = {};
|
|
9
|
-
for (const condition of conditions) {
|
|
10
|
-
const { result, toAssign } = (0, evaluateCondition_1.evaluateCondition)(condition, {
|
|
11
|
-
...options,
|
|
12
|
-
referenceRecord: {
|
|
13
|
-
...options.referenceRecord,
|
|
14
|
-
...conditionsReferenceRecord,
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
if (!result) {
|
|
18
|
-
return { result };
|
|
19
|
-
}
|
|
20
|
-
if (toAssign) {
|
|
21
|
-
conditionsReferenceRecord[toAssign.name] = toAssign.value;
|
|
22
|
-
(_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `assign: ${toAssign.name} := ${(0, debug_1.toDebugString)(toAssign.value)}`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return { result: true, referenceRecord: conditionsReferenceRecord };
|
|
26
|
-
};
|
|
27
|
-
exports.evaluateConditions = evaluateConditions;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evaluateEndpointRule = void 0;
|
|
4
|
-
const debug_1 = require("../debug");
|
|
5
|
-
const evaluateConditions_1 = require("./evaluateConditions");
|
|
6
|
-
const getEndpointHeaders_1 = require("./getEndpointHeaders");
|
|
7
|
-
const getEndpointProperties_1 = require("./getEndpointProperties");
|
|
8
|
-
const getEndpointUrl_1 = require("./getEndpointUrl");
|
|
9
|
-
const evaluateEndpointRule = (endpointRule, options) => {
|
|
10
|
-
var _a, _b;
|
|
11
|
-
const { conditions, endpoint } = endpointRule;
|
|
12
|
-
const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options);
|
|
13
|
-
if (!result) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const endpointRuleOptions = {
|
|
17
|
-
...options,
|
|
18
|
-
referenceRecord: { ...options.referenceRecord, ...referenceRecord },
|
|
19
|
-
};
|
|
20
|
-
const { url, properties, headers } = endpoint;
|
|
21
|
-
(_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `Resolving endpoint from template: ${(0, debug_1.toDebugString)(endpoint)}`);
|
|
22
|
-
return {
|
|
23
|
-
...(headers != undefined && {
|
|
24
|
-
headers: (0, getEndpointHeaders_1.getEndpointHeaders)(headers, endpointRuleOptions),
|
|
25
|
-
}),
|
|
26
|
-
...(properties != undefined && {
|
|
27
|
-
properties: (0, getEndpointProperties_1.getEndpointProperties)(properties, endpointRuleOptions),
|
|
28
|
-
}),
|
|
29
|
-
url: (0, getEndpointUrl_1.getEndpointUrl)(url, endpointRuleOptions),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.evaluateEndpointRule = evaluateEndpointRule;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evaluateErrorRule = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
const evaluateConditions_1 = require("./evaluateConditions");
|
|
6
|
-
const evaluateExpression_1 = require("./evaluateExpression");
|
|
7
|
-
const evaluateErrorRule = (errorRule, options) => {
|
|
8
|
-
const { conditions, error } = errorRule;
|
|
9
|
-
const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options);
|
|
10
|
-
if (!result) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
throw new types_1.EndpointError((0, evaluateExpression_1.evaluateExpression)(error, "Error", {
|
|
14
|
-
...options,
|
|
15
|
-
referenceRecord: { ...options.referenceRecord, ...referenceRecord },
|
|
16
|
-
}));
|
|
17
|
-
};
|
|
18
|
-
exports.evaluateErrorRule = evaluateErrorRule;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evaluateExpression = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
const callFunction_1 = require("./callFunction");
|
|
6
|
-
const evaluateTemplate_1 = require("./evaluateTemplate");
|
|
7
|
-
const getReferenceValue_1 = require("./getReferenceValue");
|
|
8
|
-
const evaluateExpression = (obj, keyName, options) => {
|
|
9
|
-
if (typeof obj === "string") {
|
|
10
|
-
return (0, evaluateTemplate_1.evaluateTemplate)(obj, options);
|
|
11
|
-
}
|
|
12
|
-
else if (obj["fn"]) {
|
|
13
|
-
return (0, callFunction_1.callFunction)(obj, options);
|
|
14
|
-
}
|
|
15
|
-
else if (obj["ref"]) {
|
|
16
|
-
return (0, getReferenceValue_1.getReferenceValue)(obj, options);
|
|
17
|
-
}
|
|
18
|
-
throw new types_1.EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
|
|
19
|
-
};
|
|
20
|
-
exports.evaluateExpression = evaluateExpression;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evaluateRules = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
const evaluateEndpointRule_1 = require("./evaluateEndpointRule");
|
|
6
|
-
const evaluateErrorRule_1 = require("./evaluateErrorRule");
|
|
7
|
-
const evaluateTreeRule_1 = require("./evaluateTreeRule");
|
|
8
|
-
const evaluateRules = (rules, options) => {
|
|
9
|
-
for (const rule of rules) {
|
|
10
|
-
if (rule.type === "endpoint") {
|
|
11
|
-
const endpointOrUndefined = (0, evaluateEndpointRule_1.evaluateEndpointRule)(rule, options);
|
|
12
|
-
if (endpointOrUndefined) {
|
|
13
|
-
return endpointOrUndefined;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
else if (rule.type === "error") {
|
|
17
|
-
(0, evaluateErrorRule_1.evaluateErrorRule)(rule, options);
|
|
18
|
-
}
|
|
19
|
-
else if (rule.type === "tree") {
|
|
20
|
-
const endpointOrUndefined = (0, evaluateTreeRule_1.evaluateTreeRule)(rule, options);
|
|
21
|
-
if (endpointOrUndefined) {
|
|
22
|
-
return endpointOrUndefined;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
throw new types_1.EndpointError(`Unknown endpoint rule: ${rule}`);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
throw new types_1.EndpointError(`Rules evaluation failed`);
|
|
30
|
-
};
|
|
31
|
-
exports.evaluateRules = evaluateRules;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,40 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evaluateTemplate = void 0;
|
|
4
|
-
const lib_1 = require("../lib");
|
|
5
|
-
const evaluateTemplate = (template, options) => {
|
|
6
|
-
const evaluatedTemplateArr = [];
|
|
7
|
-
const templateContext = {
|
|
8
|
-
...options.endpointParams,
|
|
9
|
-
...options.referenceRecord,
|
|
10
|
-
};
|
|
11
|
-
let currentIndex = 0;
|
|
12
|
-
while (currentIndex < template.length) {
|
|
13
|
-
const openingBraceIndex = template.indexOf("{", currentIndex);
|
|
14
|
-
if (openingBraceIndex === -1) {
|
|
15
|
-
evaluatedTemplateArr.push(template.slice(currentIndex));
|
|
16
|
-
break;
|
|
17
|
-
}
|
|
18
|
-
evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex));
|
|
19
|
-
const closingBraceIndex = template.indexOf("}", openingBraceIndex);
|
|
20
|
-
if (closingBraceIndex === -1) {
|
|
21
|
-
evaluatedTemplateArr.push(template.slice(openingBraceIndex));
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") {
|
|
25
|
-
evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex));
|
|
26
|
-
currentIndex = closingBraceIndex + 2;
|
|
27
|
-
}
|
|
28
|
-
const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
|
|
29
|
-
if (parameterName.includes("#")) {
|
|
30
|
-
const [refName, attrName] = parameterName.split("#");
|
|
31
|
-
evaluatedTemplateArr.push((0, lib_1.getAttr)(templateContext[refName], attrName));
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
evaluatedTemplateArr.push(templateContext[parameterName]);
|
|
35
|
-
}
|
|
36
|
-
currentIndex = closingBraceIndex + 1;
|
|
37
|
-
}
|
|
38
|
-
return evaluatedTemplateArr.join("");
|
|
39
|
-
};
|
|
40
|
-
exports.evaluateTemplate = evaluateTemplate;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.evaluateTreeRule = void 0;
|
|
4
|
-
const evaluateConditions_1 = require("./evaluateConditions");
|
|
5
|
-
const evaluateRules_1 = require("./evaluateRules");
|
|
6
|
-
const evaluateTreeRule = (treeRule, options) => {
|
|
7
|
-
const { conditions, rules } = treeRule;
|
|
8
|
-
const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options);
|
|
9
|
-
if (!result) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
return (0, evaluateRules_1.evaluateRules)(rules, {
|
|
13
|
-
...options,
|
|
14
|
-
referenceRecord: { ...options.referenceRecord, ...referenceRecord },
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
exports.evaluateTreeRule = evaluateTreeRule;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEndpointHeaders = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
const evaluateExpression_1 = require("./evaluateExpression");
|
|
6
|
-
const getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
|
|
7
|
-
...acc,
|
|
8
|
-
[headerKey]: headerVal.map((headerValEntry) => {
|
|
9
|
-
const processedExpr = (0, evaluateExpression_1.evaluateExpression)(headerValEntry, "Header value entry", options);
|
|
10
|
-
if (typeof processedExpr !== "string") {
|
|
11
|
-
throw new types_1.EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
|
|
12
|
-
}
|
|
13
|
-
return processedExpr;
|
|
14
|
-
}),
|
|
15
|
-
}), {});
|
|
16
|
-
exports.getEndpointHeaders = getEndpointHeaders;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEndpointProperties = void 0;
|
|
4
|
-
const getEndpointProperty_1 = require("./getEndpointProperty");
|
|
5
|
-
const getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
|
|
6
|
-
...acc,
|
|
7
|
-
[propertyKey]: (0, getEndpointProperty_1.getEndpointProperty)(propertyVal, options),
|
|
8
|
-
}), {});
|
|
9
|
-
exports.getEndpointProperties = getEndpointProperties;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEndpointProperty = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
const evaluateTemplate_1 = require("./evaluateTemplate");
|
|
6
|
-
const getEndpointProperties_1 = require("./getEndpointProperties");
|
|
7
|
-
const getEndpointProperty = (property, options) => {
|
|
8
|
-
if (Array.isArray(property)) {
|
|
9
|
-
return property.map((propertyEntry) => (0, exports.getEndpointProperty)(propertyEntry, options));
|
|
10
|
-
}
|
|
11
|
-
switch (typeof property) {
|
|
12
|
-
case "string":
|
|
13
|
-
return (0, evaluateTemplate_1.evaluateTemplate)(property, options);
|
|
14
|
-
case "object":
|
|
15
|
-
if (property === null) {
|
|
16
|
-
throw new types_1.EndpointError(`Unexpected endpoint property: ${property}`);
|
|
17
|
-
}
|
|
18
|
-
return (0, getEndpointProperties_1.getEndpointProperties)(property, options);
|
|
19
|
-
case "boolean":
|
|
20
|
-
return property;
|
|
21
|
-
default:
|
|
22
|
-
throw new types_1.EndpointError(`Unexpected endpoint property type: ${typeof property}`);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.getEndpointProperty = getEndpointProperty;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEndpointUrl = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
const evaluateExpression_1 = require("./evaluateExpression");
|
|
6
|
-
const getEndpointUrl = (endpointUrl, options) => {
|
|
7
|
-
const expression = (0, evaluateExpression_1.evaluateExpression)(endpointUrl, "Endpoint URL", options);
|
|
8
|
-
if (typeof expression === "string") {
|
|
9
|
-
try {
|
|
10
|
-
return new URL(expression);
|
|
11
|
-
}
|
|
12
|
-
catch (error) {
|
|
13
|
-
console.error(`Failed to construct URL with ${expression}`, error);
|
|
14
|
-
throw error;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
throw new types_1.EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
|
|
18
|
-
};
|
|
19
|
-
exports.getEndpointUrl = getEndpointUrl;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getReferenceValue = void 0;
|
|
4
|
-
const getReferenceValue = ({ ref }, options) => {
|
|
5
|
-
const referenceRecord = {
|
|
6
|
-
...options.endpointParams,
|
|
7
|
-
...options.referenceRecord,
|
|
8
|
-
};
|
|
9
|
-
return referenceRecord[ref];
|
|
10
|
-
};
|
|
11
|
-
exports.getReferenceValue = getReferenceValue;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./customEndpointFunctions"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./evaluateRules"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-endpoints",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
9
|
-
"build:cjs": "
|
|
9
|
+
"build:cjs": "node ../../scripts/inline util-endpoints",
|
|
10
10
|
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
11
11
|
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/node-config-provider": "^2.
|
|
30
|
-
"@smithy/types": "^2.
|
|
29
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
30
|
+
"@smithy/types": "^2.9.0",
|
|
31
31
|
"tslib": "^2.5.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,38 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
fromHex: () => fromHex,
|
|
24
|
+
toHex: () => toHex
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(src_exports);
|
|
27
|
+
var SHORT_TO_HEX = {};
|
|
28
|
+
var HEX_TO_SHORT = {};
|
|
6
29
|
for (let i = 0; i < 256; i++) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
30
|
+
let encodedByte = i.toString(16).toLowerCase();
|
|
31
|
+
if (encodedByte.length === 1) {
|
|
32
|
+
encodedByte = `0${encodedByte}`;
|
|
33
|
+
}
|
|
34
|
+
SHORT_TO_HEX[i] = encodedByte;
|
|
35
|
+
HEX_TO_SHORT[encodedByte] = i;
|
|
13
36
|
}
|
|
14
37
|
function fromHex(encoded) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);
|
|
26
|
-
}
|
|
38
|
+
if (encoded.length % 2 !== 0) {
|
|
39
|
+
throw new Error("Hex encoded strings must have an even number length");
|
|
40
|
+
}
|
|
41
|
+
const out = new Uint8Array(encoded.length / 2);
|
|
42
|
+
for (let i = 0; i < encoded.length; i += 2) {
|
|
43
|
+
const encodedByte = encoded.slice(i, i + 2).toLowerCase();
|
|
44
|
+
if (encodedByte in HEX_TO_SHORT) {
|
|
45
|
+
out[i / 2] = HEX_TO_SHORT[encodedByte];
|
|
46
|
+
} else {
|
|
47
|
+
throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`);
|
|
27
48
|
}
|
|
28
|
-
|
|
49
|
+
}
|
|
50
|
+
return out;
|
|
29
51
|
}
|
|
30
|
-
|
|
52
|
+
__name(fromHex, "fromHex");
|
|
31
53
|
function toHex(bytes) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
54
|
+
let out = "";
|
|
55
|
+
for (let i = 0; i < bytes.byteLength; i++) {
|
|
56
|
+
out += SHORT_TO_HEX[bytes[i]];
|
|
57
|
+
}
|
|
58
|
+
return out;
|
|
37
59
|
}
|
|
38
|
-
|
|
60
|
+
__name(toHex, "toHex");
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
fromHex,
|
|
64
|
+
toHex
|
|
65
|
+
});
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-hex-encoding",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Converts binary buffers to and from lowercase hexadecimal encoding",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
7
|
-
"build:cjs": "
|
|
8
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
7
|
+
"build:cjs": "node ../../scripts/inline util-hex-encoding",
|
|
8
|
+
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
9
|
+
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
10
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
11
|
"stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
12
|
-
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
12
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
13
13
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
14
14
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
15
|
-
"test": "jest"
|
|
15
|
+
"test": "yarn g:jest"
|
|
16
16
|
},
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "AWS SDK for JavaScript Team",
|
|
@@ -48,10 +48,8 @@
|
|
|
48
48
|
"@tsconfig/recommended": "1.0.1",
|
|
49
49
|
"concurrently": "7.0.0",
|
|
50
50
|
"downlevel-dts": "0.10.1",
|
|
51
|
-
"jest": "28.1.1",
|
|
52
51
|
"rimraf": "3.0.2",
|
|
53
|
-
"typedoc": "0.23.23"
|
|
54
|
-
"typescript": "~4.9.5"
|
|
52
|
+
"typedoc": "0.23.23"
|
|
55
53
|
},
|
|
56
54
|
"typedoc": {
|
|
57
55
|
"entryPoint": "src/index.ts"
|