@cdk8s/awscdk-resolver 0.0.353 → 0.0.355
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +31 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +31 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ActivateTypeCommand.d.ts +12 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/BatchDescribeTypeConfigurationsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +11 -9
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackInstancesCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeactivateTypeCommand.d.ts +5 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackInstancesCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackSetCommand.d.ts +5 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeregisterTypeCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackEventsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackInstanceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackSetOperationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeTypeCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DetectStackSetDriftCommand.d.ts +11 -11
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetTemplateSummaryCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ImportStacksToStackSetCommand.d.ts +5 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListExportsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListHookResultsCommand.d.ts +33 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListImportsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackInstanceResourceDriftsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackInstancesCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetAutoDeploymentTargetsCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationResultsCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationsCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetsCommand.d.ts +5 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypesCommand.d.ts +3 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +10 -10
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +8 -8
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +485 -389
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +97 -103
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListHookResultsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +11 -2
- package/node_modules/@aws-sdk/client-cloudformation/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso/package.json +10 -10
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +3 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +3 -1
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +3 -1
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +10 -10
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/abort-controller/package.json +3 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +15 -15
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +2 -2
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/utils/getEndpointFromRegion.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionConfig/config.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +3 -3
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +1 -1
- package/node_modules/@smithy/config-resolver/package.json +6 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +10 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +8 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +3 -3
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +0 -1
- package/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js +0 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
- package/node_modules/@smithy/core/dist-types/getSmithyContext.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/getHttpAuthSchemePlugin.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/httpAuthSchemeMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-auth-scheme/resolveAuthOptions.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-signing/getHttpSigningMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/middleware-http-signing/httpSigningMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/normalizeProvider.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/collect-stream-body.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/determineTimestampFormat.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/getSchemaSerdePlugin.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaDeserializationMiddleware.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/middleware/schemaSerializationMiddleware.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/DefaultIdentityProviderConfig.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/httpAuthSchemes/noAuth.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/util-identity-and-auth/memoizeIdentityProvider.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +10 -10
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +12 -13
- package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts +2 -2
- package/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts +3 -3
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts +2 -2
- package/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +2 -2
- package/node_modules/@smithy/credential-provider-imds/package.json +6 -5
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/fetch-http-handler/dist-types/create-request.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +3 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +2 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +9 -8
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/hash-node/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/hash-node/package.json +5 -4
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/invalid-dependency/dist-types/invalidProvider.d.ts +1 -1
- package/node_modules/@smithy/invalid-dependency/package.json +3 -2
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/is-array-buffer/package.json +5 -4
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +5 -5
- package/node_modules/@smithy/middleware-content-length/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/middleware-content-length/package.json +6 -5
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +5 -5
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromInstructions.d.ts +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/endpointMiddleware.d.ts +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/getEndpointPlugin.d.ts +3 -3
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/s3.d.ts +1 -1
- package/node_modules/@smithy/middleware-endpoint/package.json +9 -8
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +33 -47
- package/node_modules/@smithy/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts +4 -3
- package/node_modules/@smithy/middleware-retry/dist-types/StandardRetryStrategy.d.ts +2 -2
- package/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +2 -2
- package/node_modules/@smithy/middleware-retry/dist-types/defaultRetryQuota.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts +2 -2
- package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +2 -1
- package/node_modules/@smithy/middleware-retry/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/dist-types/util.d.ts +1 -1
- package/node_modules/@smithy/middleware-retry/package.json +9 -8
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +5 -5
- package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +1 -1
- package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +1 -1
- package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +1 -1
- package/node_modules/@smithy/middleware-serde/package.json +6 -5
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +25 -30
- package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +1 -1
- package/node_modules/@smithy/middleware-stack/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/middleware-stack/package.json +3 -2
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +4 -4
- package/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts +1 -1
- package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +1 -1
- package/node_modules/@smithy/node-config-provider/package.json +5 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +5 -5
- package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +3 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +3 -2
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/package.json +6 -5
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +2 -1
- package/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +2 -1
- package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +2 -1
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +2 -1
- package/node_modules/@smithy/property-provider/package.json +3 -2
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +4 -5
- package/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +2 -2
- package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +2 -1
- package/node_modules/@smithy/protocol-http/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/protocol-http/package.json +3 -2
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/querystring-builder/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/querystring-builder/package.json +4 -3
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/querystring-parser/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/querystring-parser/package.json +3 -2
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/service-error-classification/package.json +3 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +6 -6
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +6 -9
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -2
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4Base.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/headerUtil.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +2 -1
- package/node_modules/@smithy/signature-v4/package.json +9 -8
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +12 -15
- package/node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
- package/node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts +1 -1
- package/node_modules/@smithy/smithy-client/package.json +8 -7
- package/node_modules/@smithy/types/dist-cjs/index.js +7 -7
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +4 -4
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/checksum.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/client.d.ts +4 -4
- package/node_modules/@smithy/types/dist-types/command.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/encode.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/eventStream.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/http.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/retry.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +4 -4
- package/node_modules/@smithy/types/dist-types/shapes.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/signature.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/stream.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/uri.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/util.d.ts +3 -3
- package/node_modules/@smithy/types/dist-types/waiter.d.ts +1 -1
- package/node_modules/@smithy/types/package.json +2 -1
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/url-parser/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/url-parser/package.json +4 -3
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +4 -4
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +1 -2
- package/node_modules/@smithy/util-base64/package.json +7 -6
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +6 -9
- package/node_modules/@smithy/util-body-length-browser/package.json +5 -4
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-body-length-node/package.json +5 -4
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-buffer-from/package.json +6 -5
- package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +7 -11
- package/node_modules/@smithy/util-config-provider/dist-types/booleanSelector.d.ts +1 -1
- package/node_modules/@smithy/util-config-provider/dist-types/numberSelector.d.ts +1 -1
- package/node_modules/@smithy/util-config-provider/package.json +5 -4
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -4
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +7 -7
- package/node_modules/@smithy/util-defaults-mode-node/dist-types/defaultsModeConfig.d.ts +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -7
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/debug/toDebugString.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/lib/parseURL.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTemplate.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointUrl.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/package.json +6 -5
- package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-hex-encoding/package.json +5 -4
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +4 -5
- package/node_modules/@smithy/util-middleware/dist-types/getSmithyContext.d.ts +1 -1
- package/node_modules/@smithy/util-middleware/dist-types/normalizeProvider.d.ts +1 -1
- package/node_modules/@smithy/util-middleware/package.json +3 -2
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +2 -2
- package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
- package/node_modules/@smithy/util-retry/package.json +4 -3
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +11 -11
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +3 -2
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +3 -3
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.browser.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +2 -1
- package/node_modules/@smithy/util-stream/package.json +13 -12
- package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-uri-escape/package.json +5 -4
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +3 -3
- package/node_modules/@smithy/util-utf8/package.json +6 -5
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +4 -5
- package/node_modules/@smithy/util-waiter/dist-types/createWaiter.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/dist-types/utils/validate.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/package.json +4 -3
- package/package.json +6 -6
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
|
20
20
|
// src/index.ts
|
21
|
-
var
|
22
|
-
__export(
|
21
|
+
var index_exports = {};
|
22
|
+
__export(index_exports, {
|
23
23
|
AdaptiveRetryStrategy: () => AdaptiveRetryStrategy,
|
24
24
|
CONFIG_MAX_ATTEMPTS: () => CONFIG_MAX_ATTEMPTS,
|
25
25
|
CONFIG_RETRY_MODE: () => CONFIG_RETRY_MODE,
|
@@ -39,7 +39,7 @@ __export(src_exports, {
|
|
39
39
|
retryMiddleware: () => retryMiddleware,
|
40
40
|
retryMiddlewareOptions: () => retryMiddlewareOptions
|
41
41
|
});
|
42
|
-
module.exports = __toCommonJS(
|
42
|
+
module.exports = __toCommonJS(index_exports);
|
43
43
|
|
44
44
|
// src/AdaptiveRetryStrategy.ts
|
45
45
|
|
@@ -94,12 +94,9 @@ var defaultRetryDecider = /* @__PURE__ */ __name((error) => {
|
|
94
94
|
|
95
95
|
// src/util.ts
|
96
96
|
var asSdkError = /* @__PURE__ */ __name((error) => {
|
97
|
-
if (error instanceof Error)
|
98
|
-
|
99
|
-
if (error
|
100
|
-
return Object.assign(new Error(), error);
|
101
|
-
if (typeof error === "string")
|
102
|
-
return new Error(error);
|
97
|
+
if (error instanceof Error) return error;
|
98
|
+
if (error instanceof Object) return Object.assign(new Error(), error);
|
99
|
+
if (typeof error === "string") return new Error(error);
|
103
100
|
return new Error(`AWS SDK error wrapper for ${error}`);
|
104
101
|
}, "asSdkError");
|
105
102
|
|
@@ -178,15 +175,12 @@ var StandardRetryStrategy = class {
|
|
178
175
|
}
|
179
176
|
};
|
180
177
|
var getDelayFromRetryAfterHeader = /* @__PURE__ */ __name((response) => {
|
181
|
-
if (!import_protocol_http.HttpResponse.isInstance(response))
|
182
|
-
return;
|
178
|
+
if (!import_protocol_http.HttpResponse.isInstance(response)) return;
|
183
179
|
const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
|
184
|
-
if (!retryAfterHeaderName)
|
185
|
-
return;
|
180
|
+
if (!retryAfterHeaderName) return;
|
186
181
|
const retryAfter = response.headers[retryAfterHeaderName];
|
187
182
|
const retryAfterSeconds = Number(retryAfter);
|
188
|
-
if (!Number.isNaN(retryAfterSeconds))
|
189
|
-
return retryAfterSeconds * 1e3;
|
183
|
+
if (!Number.isNaN(retryAfterSeconds)) return retryAfterSeconds * 1e3;
|
190
184
|
const retryAfterDate = new Date(retryAfter);
|
191
185
|
return retryAfterDate.getTime() - Date.now();
|
192
186
|
}, "getDelayFromRetryAfterHeader");
|
@@ -204,12 +198,12 @@ var AdaptiveRetryStrategy = class extends StandardRetryStrategy {
|
|
204
198
|
}
|
205
199
|
async retry(next, args) {
|
206
200
|
return super.retry(next, args, {
|
207
|
-
beforeRequest: async () => {
|
201
|
+
beforeRequest: /* @__PURE__ */ __name(async () => {
|
208
202
|
return this.rateLimiter.getSendToken();
|
209
|
-
},
|
210
|
-
afterRequest: (response) => {
|
203
|
+
}, "beforeRequest"),
|
204
|
+
afterRequest: /* @__PURE__ */ __name((response) => {
|
211
205
|
this.rateLimiter.updateClientSendingRate(response);
|
212
|
-
}
|
206
|
+
}, "afterRequest")
|
213
207
|
});
|
214
208
|
}
|
215
209
|
};
|
@@ -220,26 +214,24 @@ var import_util_middleware = require("@smithy/util-middleware");
|
|
220
214
|
var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
|
221
215
|
var CONFIG_MAX_ATTEMPTS = "max_attempts";
|
222
216
|
var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
223
|
-
environmentVariableSelector: (env) => {
|
217
|
+
environmentVariableSelector: /* @__PURE__ */ __name((env) => {
|
224
218
|
const value = env[ENV_MAX_ATTEMPTS];
|
225
|
-
if (!value)
|
226
|
-
return void 0;
|
219
|
+
if (!value) return void 0;
|
227
220
|
const maxAttempt = parseInt(value);
|
228
221
|
if (Number.isNaN(maxAttempt)) {
|
229
222
|
throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`);
|
230
223
|
}
|
231
224
|
return maxAttempt;
|
232
|
-
},
|
233
|
-
configFileSelector: (profile) => {
|
225
|
+
}, "environmentVariableSelector"),
|
226
|
+
configFileSelector: /* @__PURE__ */ __name((profile) => {
|
234
227
|
const value = profile[CONFIG_MAX_ATTEMPTS];
|
235
|
-
if (!value)
|
236
|
-
return void 0;
|
228
|
+
if (!value) return void 0;
|
237
229
|
const maxAttempt = parseInt(value);
|
238
230
|
if (Number.isNaN(maxAttempt)) {
|
239
231
|
throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`);
|
240
232
|
}
|
241
233
|
return maxAttempt;
|
242
|
-
},
|
234
|
+
}, "configFileSelector"),
|
243
235
|
default: import_util_retry.DEFAULT_MAX_ATTEMPTS
|
244
236
|
};
|
245
237
|
var resolveRetryConfig = /* @__PURE__ */ __name((input) => {
|
@@ -247,7 +239,7 @@ var resolveRetryConfig = /* @__PURE__ */ __name((input) => {
|
|
247
239
|
const maxAttempts = (0, import_util_middleware.normalizeProvider)(_maxAttempts ?? import_util_retry.DEFAULT_MAX_ATTEMPTS);
|
248
240
|
return Object.assign(input, {
|
249
241
|
maxAttempts,
|
250
|
-
retryStrategy: async () => {
|
242
|
+
retryStrategy: /* @__PURE__ */ __name(async () => {
|
251
243
|
if (retryStrategy) {
|
252
244
|
return retryStrategy;
|
253
245
|
}
|
@@ -256,14 +248,14 @@ var resolveRetryConfig = /* @__PURE__ */ __name((input) => {
|
|
256
248
|
return new import_util_retry.AdaptiveRetryStrategy(maxAttempts);
|
257
249
|
}
|
258
250
|
return new import_util_retry.StandardRetryStrategy(maxAttempts);
|
259
|
-
}
|
251
|
+
}, "retryStrategy")
|
260
252
|
});
|
261
253
|
}, "resolveRetryConfig");
|
262
254
|
var ENV_RETRY_MODE = "AWS_RETRY_MODE";
|
263
255
|
var CONFIG_RETRY_MODE = "retry_mode";
|
264
256
|
var NODE_RETRY_MODE_CONFIG_OPTIONS = {
|
265
|
-
environmentVariableSelector: (env) => env[ENV_RETRY_MODE],
|
266
|
-
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE],
|
257
|
+
environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_RETRY_MODE], "environmentVariableSelector"),
|
258
|
+
configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_RETRY_MODE], "configFileSelector"),
|
267
259
|
default: import_util_retry.DEFAULT_RETRY_MODE
|
268
260
|
};
|
269
261
|
|
@@ -286,9 +278,9 @@ var omitRetryHeadersMiddlewareOptions = {
|
|
286
278
|
override: true
|
287
279
|
};
|
288
280
|
var getOmitRetryHeadersPlugin = /* @__PURE__ */ __name((options) => ({
|
289
|
-
applyToStack: (clientStack) => {
|
281
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
290
282
|
clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions);
|
291
|
-
}
|
283
|
+
}, "applyToStack")
|
292
284
|
}), "getOmitRetryHeadersPlugin");
|
293
285
|
|
294
286
|
// src/retryMiddleware.ts
|
@@ -367,12 +359,9 @@ var getRetryErrorInfo = /* @__PURE__ */ __name((error) => {
|
|
367
359
|
return errorInfo;
|
368
360
|
}, "getRetryErrorInfo");
|
369
361
|
var getRetryErrorType = /* @__PURE__ */ __name((error) => {
|
370
|
-
if ((0, import_service_error_classification.isThrottlingError)(error))
|
371
|
-
|
372
|
-
if ((0, import_service_error_classification.
|
373
|
-
return "TRANSIENT";
|
374
|
-
if ((0, import_service_error_classification.isServerError)(error))
|
375
|
-
return "SERVER_ERROR";
|
362
|
+
if ((0, import_service_error_classification.isThrottlingError)(error)) return "THROTTLING";
|
363
|
+
if ((0, import_service_error_classification.isTransientError)(error)) return "TRANSIENT";
|
364
|
+
if ((0, import_service_error_classification.isServerError)(error)) return "SERVER_ERROR";
|
376
365
|
return "CLIENT_ERROR";
|
377
366
|
}, "getRetryErrorType");
|
378
367
|
var retryMiddlewareOptions = {
|
@@ -383,20 +372,17 @@ var retryMiddlewareOptions = {
|
|
383
372
|
override: true
|
384
373
|
};
|
385
374
|
var getRetryPlugin = /* @__PURE__ */ __name((options) => ({
|
386
|
-
applyToStack: (clientStack) => {
|
375
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
387
376
|
clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
|
388
|
-
}
|
377
|
+
}, "applyToStack")
|
389
378
|
}), "getRetryPlugin");
|
390
379
|
var getRetryAfterHint = /* @__PURE__ */ __name((response) => {
|
391
|
-
if (!import_protocol_http.HttpResponse.isInstance(response))
|
392
|
-
return;
|
380
|
+
if (!import_protocol_http.HttpResponse.isInstance(response)) return;
|
393
381
|
const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
|
394
|
-
if (!retryAfterHeaderName)
|
395
|
-
return;
|
382
|
+
if (!retryAfterHeaderName) return;
|
396
383
|
const retryAfter = response.headers[retryAfterHeaderName];
|
397
384
|
const retryAfterSeconds = Number(retryAfter);
|
398
|
-
if (!Number.isNaN(retryAfterSeconds))
|
399
|
-
return new Date(retryAfterSeconds * 1e3);
|
385
|
+
if (!Number.isNaN(retryAfterSeconds)) return new Date(retryAfterSeconds * 1e3);
|
400
386
|
const retryAfterDate = new Date(retryAfter);
|
401
387
|
return retryAfterDate;
|
402
388
|
}, "getRetryAfterHint");
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider } from "@smithy/types";
|
2
|
-
import { RateLimiter } from "@smithy/util-retry";
|
3
|
-
import {
|
1
|
+
import type { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider } from "@smithy/types";
|
2
|
+
import type { RateLimiter } from "@smithy/util-retry";
|
3
|
+
import type { StandardRetryStrategyOptions } from "./StandardRetryStrategy";
|
4
|
+
import { StandardRetryStrategy } from "./StandardRetryStrategy";
|
4
5
|
/**
|
5
6
|
* @public
|
6
7
|
* Strategy options to be passed to AdaptiveRetryStrategy
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider, RetryStrategy } from "@smithy/types";
|
2
|
-
import { DelayDecider, RetryDecider, RetryQuota } from "./types";
|
1
|
+
import type { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider, RetryStrategy } from "@smithy/types";
|
2
|
+
import type { DelayDecider, RetryDecider, RetryQuota } from "./types";
|
3
3
|
/**
|
4
4
|
* Strategy options to be passed to StandardRetryStrategy
|
5
5
|
* @public
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
2
|
-
import { Provider, RetryStrategy, RetryStrategyV2 } from "@smithy/types";
|
1
|
+
import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
|
2
|
+
import type { Provider, RetryStrategy, RetryStrategyV2 } from "@smithy/types";
|
3
3
|
/**
|
4
4
|
* @internal
|
5
5
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { AbsoluteLocation, FinalizeHandler, FinalizeRequestHandlerOptions, HandlerExecutionContext, MetadataBearer, Pluggable } from "@smithy/types";
|
2
|
-
import { RetryResolvedConfig } from "./configurations";
|
1
|
+
import type { AbsoluteLocation, FinalizeHandler, FinalizeRequestHandlerOptions, HandlerExecutionContext, MetadataBearer, Pluggable } from "@smithy/types";
|
2
|
+
import type { RetryResolvedConfig } from "./configurations";
|
3
3
|
/**
|
4
4
|
* @internal
|
5
5
|
*/
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider } from "@smithy/types";
|
2
2
|
import { RateLimiter } from "@smithy/util-retry";
|
3
|
-
import {
|
3
|
+
import { StandardRetryStrategyOptions } from "./StandardRetryStrategy";
|
4
|
+
import { StandardRetryStrategy } from "./StandardRetryStrategy";
|
4
5
|
/**
|
5
6
|
* @public
|
6
7
|
* Strategy options to be passed to AdaptiveRetryStrategy
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SdkError } from "@smithy/types";
|
1
|
+
import type { SdkError } from "@smithy/types";
|
2
2
|
export declare const asSdkError: (error: unknown) => SdkError;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-retry",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.2.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
@@ -32,14 +32,15 @@
|
|
32
32
|
"url": "https://aws.amazon.com/javascript/"
|
33
33
|
},
|
34
34
|
"license": "Apache-2.0",
|
35
|
+
"sideEffects": false,
|
35
36
|
"dependencies": {
|
36
|
-
"@smithy/node-config-provider": "^4.
|
37
|
-
"@smithy/protocol-http": "^5.
|
38
|
-
"@smithy/service-error-classification": "^4.0
|
39
|
-
"@smithy/smithy-client": "^4.
|
40
|
-
"@smithy/types": "^4.
|
41
|
-
"@smithy/util-middleware": "^4.0
|
42
|
-
"@smithy/util-retry": "^4.0
|
37
|
+
"@smithy/node-config-provider": "^4.2.0",
|
38
|
+
"@smithy/protocol-http": "^5.2.0",
|
39
|
+
"@smithy/service-error-classification": "^4.1.0",
|
40
|
+
"@smithy/smithy-client": "^4.6.0",
|
41
|
+
"@smithy/types": "^4.4.0",
|
42
|
+
"@smithy/util-middleware": "^4.1.0",
|
43
|
+
"@smithy/util-retry": "^4.1.0",
|
43
44
|
"@types/uuid": "^9.0.1",
|
44
45
|
"tslib": "^2.6.2",
|
45
46
|
"uuid": "^9.0.1"
|
@@ -18,15 +18,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
|
20
20
|
// src/index.ts
|
21
|
-
var
|
22
|
-
__export(
|
21
|
+
var index_exports = {};
|
22
|
+
__export(index_exports, {
|
23
23
|
deserializerMiddleware: () => deserializerMiddleware,
|
24
24
|
deserializerMiddlewareOption: () => deserializerMiddlewareOption,
|
25
25
|
getSerdePlugin: () => getSerdePlugin,
|
26
26
|
serializerMiddleware: () => serializerMiddleware,
|
27
27
|
serializerMiddlewareOption: () => serializerMiddlewareOption
|
28
28
|
});
|
29
|
-
module.exports = __toCommonJS(
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
30
30
|
|
31
31
|
// src/deserializerMiddleware.ts
|
32
32
|
var import_protocol_http = require("@smithy/protocol-http");
|
@@ -110,10 +110,10 @@ var serializerMiddlewareOption = {
|
|
110
110
|
};
|
111
111
|
function getSerdePlugin(config, serializer, deserializer) {
|
112
112
|
return {
|
113
|
-
applyToStack: (commandStack) => {
|
113
|
+
applyToStack: /* @__PURE__ */ __name((commandStack) => {
|
114
114
|
commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption);
|
115
115
|
commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption);
|
116
|
-
}
|
116
|
+
}, "applyToStack")
|
117
117
|
};
|
118
118
|
}
|
119
119
|
__name(getSerdePlugin, "getSerdePlugin");
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DeserializeMiddleware, ResponseDeserializer, SerdeContext, SerdeFunctions } from "@smithy/types";
|
1
|
+
import type { DeserializeMiddleware, ResponseDeserializer, SerdeContext, SerdeFunctions } from "@smithy/types";
|
2
2
|
/**
|
3
3
|
* @internal
|
4
4
|
* @deprecated will be replaced by schemaSerdePlugin from core/schema.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DeserializeHandlerOptions, Endpoint, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerdeContext, SerdeFunctions, SerializeHandlerOptions, UrlParser } from "@smithy/types";
|
1
|
+
import type { DeserializeHandlerOptions, Endpoint, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerdeContext, SerdeFunctions, SerializeHandlerOptions, UrlParser } from "@smithy/types";
|
2
2
|
/**
|
3
3
|
* @deprecated will be replaced by schemaSerdePlugin from core/schema.
|
4
4
|
*/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { RequestSerializer, SerdeContext, SerdeFunctions, SerializeMiddleware } from "@smithy/types";
|
1
|
+
import type { RequestSerializer, SerdeContext, SerdeFunctions, SerializeMiddleware } from "@smithy/types";
|
2
2
|
/**
|
3
3
|
* @internal
|
4
4
|
* @deprecated will be replaced by schemaSerdePlugin from core/schema.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-serde",
|
3
|
-
"version": "4.0
|
3
|
+
"version": "4.1.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-serde",
|
@@ -12,9 +12,9 @@
|
|
12
12
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
13
13
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
|
14
14
|
"test": "yarn g:vitest run",
|
15
|
-
"test:integration": "yarn g:vitest run -c vitest.config.integ.
|
15
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
16
16
|
"test:watch": "yarn g:vitest watch",
|
17
|
-
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.
|
17
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
18
18
|
},
|
19
19
|
"main": "./dist-cjs/index.js",
|
20
20
|
"module": "./dist-es/index.js",
|
@@ -24,9 +24,10 @@
|
|
24
24
|
"url": "https://aws.amazon.com/javascript/"
|
25
25
|
},
|
26
26
|
"license": "Apache-2.0",
|
27
|
+
"sideEffects": false,
|
27
28
|
"dependencies": {
|
28
|
-
"@smithy/protocol-http": "^5.
|
29
|
-
"@smithy/types": "^4.
|
29
|
+
"@smithy/protocol-http": "^5.2.0",
|
30
|
+
"@smithy/types": "^4.4.0",
|
30
31
|
"tslib": "^2.6.2"
|
31
32
|
},
|
32
33
|
"engines": {
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
|
20
20
|
// src/index.ts
|
21
|
-
var
|
22
|
-
__export(
|
21
|
+
var index_exports = {};
|
22
|
+
__export(index_exports, {
|
23
23
|
constructStack: () => constructStack
|
24
24
|
});
|
25
|
-
module.exports = __toCommonJS(
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
26
26
|
|
27
27
|
// src/MiddlewareStack.ts
|
28
28
|
var getAllAliases = /* @__PURE__ */ __name((name, aliases) => {
|
@@ -165,7 +165,7 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
165
165
|
return mainChain;
|
166
166
|
}, "getMiddlewareList");
|
167
167
|
const stack = {
|
168
|
-
add: (middleware, options = {}) => {
|
168
|
+
add: /* @__PURE__ */ __name((middleware, options = {}) => {
|
169
169
|
const { name, override, aliases: _aliases } = options;
|
170
170
|
const entry = {
|
171
171
|
step: "initialize",
|
@@ -176,8 +176,7 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
176
176
|
const aliases = getAllAliases(name, _aliases);
|
177
177
|
if (aliases.length > 0) {
|
178
178
|
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
179
|
-
if (!override)
|
180
|
-
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
179
|
+
if (!override) throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
181
180
|
for (const alias of aliases) {
|
182
181
|
const toOverrideIndex = absoluteEntries.findIndex(
|
183
182
|
(entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)
|
@@ -199,8 +198,8 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
199
198
|
}
|
200
199
|
}
|
201
200
|
absoluteEntries.push(entry);
|
202
|
-
},
|
203
|
-
addRelativeTo: (middleware, options) => {
|
201
|
+
}, "add"),
|
202
|
+
addRelativeTo: /* @__PURE__ */ __name((middleware, options) => {
|
204
203
|
const { name, override, aliases: _aliases } = options;
|
205
204
|
const entry = {
|
206
205
|
middleware,
|
@@ -209,8 +208,7 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
209
208
|
const aliases = getAllAliases(name, _aliases);
|
210
209
|
if (aliases.length > 0) {
|
211
210
|
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
212
|
-
if (!override)
|
213
|
-
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
211
|
+
if (!override) throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
214
212
|
for (const alias of aliases) {
|
215
213
|
const toOverrideIndex = relativeEntries.findIndex(
|
216
214
|
(entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias)
|
@@ -232,18 +230,16 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
232
230
|
}
|
233
231
|
}
|
234
232
|
relativeEntries.push(entry);
|
235
|
-
},
|
236
|
-
clone: () => cloneTo(constructStack()),
|
237
|
-
use: (plugin) => {
|
233
|
+
}, "addRelativeTo"),
|
234
|
+
clone: /* @__PURE__ */ __name(() => cloneTo(constructStack()), "clone"),
|
235
|
+
use: /* @__PURE__ */ __name((plugin) => {
|
238
236
|
plugin.applyToStack(stack);
|
239
|
-
},
|
240
|
-
remove: (toRemove) => {
|
241
|
-
if (typeof toRemove === "string")
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
},
|
246
|
-
removeByTag: (toRemove) => {
|
237
|
+
}, "use"),
|
238
|
+
remove: /* @__PURE__ */ __name((toRemove) => {
|
239
|
+
if (typeof toRemove === "string") return removeByName(toRemove);
|
240
|
+
else return removeByReference(toRemove);
|
241
|
+
}, "remove"),
|
242
|
+
removeByTag: /* @__PURE__ */ __name((toRemove) => {
|
247
243
|
let isRemoved = false;
|
248
244
|
const filterCb = /* @__PURE__ */ __name((entry) => {
|
249
245
|
const { tags, name, aliases: _aliases } = entry;
|
@@ -260,28 +256,27 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
260
256
|
absoluteEntries = absoluteEntries.filter(filterCb);
|
261
257
|
relativeEntries = relativeEntries.filter(filterCb);
|
262
258
|
return isRemoved;
|
263
|
-
},
|
264
|
-
concat: (from) => {
|
259
|
+
}, "removeByTag"),
|
260
|
+
concat: /* @__PURE__ */ __name((from) => {
|
265
261
|
const cloned = cloneTo(constructStack());
|
266
262
|
cloned.use(from);
|
267
263
|
cloned.identifyOnResolve(
|
268
264
|
identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false)
|
269
265
|
);
|
270
266
|
return cloned;
|
271
|
-
},
|
267
|
+
}, "concat"),
|
272
268
|
applyToStack: cloneTo,
|
273
|
-
identify: () => {
|
269
|
+
identify: /* @__PURE__ */ __name(() => {
|
274
270
|
return getMiddlewareList(true).map((mw) => {
|
275
271
|
const step = mw.step ?? mw.relation + " " + mw.toMiddleware;
|
276
272
|
return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
|
277
273
|
});
|
278
|
-
},
|
274
|
+
}, "identify"),
|
279
275
|
identifyOnResolve(toggle) {
|
280
|
-
if (typeof toggle === "boolean")
|
281
|
-
identifyOnResolve = toggle;
|
276
|
+
if (typeof toggle === "boolean") identifyOnResolve = toggle;
|
282
277
|
return identifyOnResolve;
|
283
278
|
},
|
284
|
-
resolve: (handler, context) => {
|
279
|
+
resolve: /* @__PURE__ */ __name((handler, context) => {
|
285
280
|
for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) {
|
286
281
|
handler = middleware(handler, context);
|
287
282
|
}
|
@@ -289,7 +284,7 @@ var constructStack = /* @__PURE__ */ __name(() => {
|
|
289
284
|
console.log(stack.identify());
|
290
285
|
}
|
291
286
|
return handler;
|
292
|
-
}
|
287
|
+
}, "resolve")
|
293
288
|
};
|
294
289
|
return stack;
|
295
290
|
}, "constructStack");
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AbsoluteLocation, HandlerOptions, MiddlewareType, Priority, RelativeLocation, Step } from "@smithy/types";
|
1
|
+
import type { AbsoluteLocation, HandlerOptions, MiddlewareType, Priority, RelativeLocation, Step } from "@smithy/types";
|
2
2
|
export interface MiddlewareEntry<Input extends object, Output extends object> extends HandlerOptions {
|
3
3
|
middleware: MiddlewareType<Input, Output>;
|
4
4
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/middleware-stack",
|
3
|
-
"version": "4.0
|
3
|
+
"version": "4.1.0",
|
4
4
|
"description": "Provides a means for composing multiple middleware functions into a single handler",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
@@ -22,11 +22,12 @@
|
|
22
22
|
"url": "https://aws.amazon.com/javascript/"
|
23
23
|
},
|
24
24
|
"license": "Apache-2.0",
|
25
|
+
"sideEffects": false,
|
25
26
|
"main": "./dist-cjs/index.js",
|
26
27
|
"module": "./dist-es/index.js",
|
27
28
|
"types": "./dist-types/index.d.ts",
|
28
29
|
"dependencies": {
|
29
|
-
"@smithy/types": "^4.
|
30
|
+
"@smithy/types": "^4.4.0",
|
30
31
|
"tslib": "^2.6.2"
|
31
32
|
},
|
32
33
|
"devDependencies": {
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
|
20
20
|
// src/index.ts
|
21
|
-
var
|
22
|
-
__export(
|
21
|
+
var index_exports = {};
|
22
|
+
__export(index_exports, {
|
23
23
|
loadConfig: () => loadConfig
|
24
24
|
});
|
25
|
-
module.exports = __toCommonJS(
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
26
26
|
|
27
27
|
// src/configLoader.ts
|
28
28
|
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Provider } from "@smithy/types";
|
2
|
-
import { EnvOptions, GetterFromEnv } from "./fromEnv";
|
3
|
-
import { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
|
4
|
-
import { FromStaticConfig } from "./fromStatic";
|
1
|
+
import type { Provider } from "@smithy/types";
|
2
|
+
import type { EnvOptions, GetterFromEnv } from "./fromEnv";
|
3
|
+
import type { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
|
4
|
+
import type { FromStaticConfig } from "./fromStatic";
|
5
5
|
/**
|
6
6
|
* @internal
|
7
7
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
2
|
-
import { ParsedIniData, Profile, Provider } from "@smithy/types";
|
1
|
+
import type { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
2
|
+
import type { ParsedIniData, Profile, Provider } from "@smithy/types";
|
3
3
|
/**
|
4
4
|
* @internal
|
5
5
|
*/
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/node-config-provider",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.2.0",
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
@@ -21,13 +21,14 @@
|
|
21
21
|
"url": "https://aws.amazon.com/javascript/"
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
|
+
"sideEffects": false,
|
24
25
|
"main": "./dist-cjs/index.js",
|
25
26
|
"module": "./dist-es/index.js",
|
26
27
|
"types": "./dist-types/index.d.ts",
|
27
28
|
"dependencies": {
|
28
|
-
"@smithy/property-provider": "^4.0
|
29
|
-
"@smithy/shared-ini-file-loader": "^4.0
|
30
|
-
"@smithy/types": "^4.
|
29
|
+
"@smithy/property-provider": "^4.1.0",
|
30
|
+
"@smithy/shared-ini-file-loader": "^4.1.0",
|
31
|
+
"@smithy/types": "^4.4.0",
|
31
32
|
"tslib": "^2.6.2"
|
32
33
|
},
|
33
34
|
"devDependencies": {
|