@cdk8s/awscdk-resolver 0.0.51 → 0.0.52
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/CloudFormation.js +1 -151
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/CloudFormationClient.js +1 -43
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ActivateOrganizationsAccessCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ActivateTypeCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/BatchDescribeTypeConfigurationsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CancelUpdateStackCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ContinueUpdateRollbackCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CreateChangeSetCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CreateStackCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CreateStackInstancesCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CreateStackSetCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeactivateOrganizationsAccessCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeactivateTypeCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeleteChangeSetCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeleteStackCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeleteStackInstancesCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeleteStackSetCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeregisterTypeCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeAccountLimitsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeChangeSetCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeChangeSetHooksCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeOrganizationsAccessCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribePublisherCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeStackDriftDetectionStatusCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeStackEventsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeStackInstanceCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeStackResourceCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeStackResourceDriftsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeStackResourcesCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeStackSetCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeStackSetOperationCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeStacksCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeTypeCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeTypeRegistrationCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DetectStackDriftCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DetectStackResourceDriftCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DetectStackSetDriftCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/EstimateTemplateCostCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ExecuteChangeSetCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/GetStackPolicyCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/GetTemplateCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/GetTemplateSummaryCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ImportStacksToStackSetCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListChangeSetsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListExportsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListImportsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListStackInstanceResourceDriftsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListStackInstancesCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListStackResourcesCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListStackSetOperationResultsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListStackSetOperationsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListStackSetsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListStacksCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListTypeRegistrationsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListTypeVersionsCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListTypesCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/PublishTypeCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/RecordHandlerProgressCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/RegisterPublisherCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/RegisterTypeCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/RollbackStackCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/SetStackPolicyCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/SetTypeConfigurationCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/SetTypeDefaultVersionCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/SignalResourceCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/StopStackSetOperationCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/TestTypeCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/UpdateStackCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/UpdateStackInstancesCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/UpdateStackSetCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/UpdateTerminationProtectionCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ValidateTemplateCommand.js +1 -28
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/index.js +1 -73
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/extensionConfiguration.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +11649 -12
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/CloudFormationServiceException.js +1 -12
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/index.js +1 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/models_0.js +1 -662
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeAccountLimitsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeStackEventsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeStackResourceDriftsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeStacksPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/Interfaces.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListChangeSetsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListExportsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListImportsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackInstancesPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackResourcesPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackSetOperationResultsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackSetOperationsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackSetsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStacksPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListTypeRegistrationsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListTypeVersionsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListTypesPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/index.js +1 -20
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/protocols/Aws_query.js +1 -8546
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeExtensions.js +1 -22
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/index.js +1 -11
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/waitForChangeSetCreateComplete.js +1 -48
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/waitForStackCreateComplete.js +1 -258
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/waitForStackDeleteComplete.js +1 -152
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/waitForStackExists.js +1 -31
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/waitForStackImportComplete.js +1 -122
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/waitForStackRollbackComplete.js +1 -92
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/waitForStackUpdateComplete.js +1 -92
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/waiters/waitForTypeRegistrationComplete.js +1 -45
- package/node_modules/@aws-sdk/client-cloudformation/package.json +41 -41
- package/node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js +1 -19
- package/node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js +1 -40
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js +1 -7
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/node_modules/@aws-sdk/client-sso/dist-cjs/extensionConfiguration.js +1 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +691 -11
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +1 -12
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js +1 -4
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js +1 -88
- package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js +1 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +1 -7
- package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js +1 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +1 -346
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeExtensions.js +1 -22
- package/node_modules/@aws-sdk/client-sso/package.json +37 -37
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STS.js +1 -27
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +1 -28
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +1 -28
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +1 -28
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js +1 -11
- package/node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js +1 -28
- package/node_modules/@aws-sdk/client-sts/dist-cjs/extensionConfiguration.js +1 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +276 -11
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js +1 -4
- package/node_modules/@aws-sdk/client-sts/package.json +39 -39
- package/node_modules/@aws-sdk/core/CHANGELOG.md +22 -0
- package/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js +1 -17
- package/node_modules/@aws-sdk/core/dist-cjs/client/index.js +1 -4
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +1 -61
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/index.js +1 -5
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +1 -82
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/index.js +1 -4
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getDateHeader.js +1 -6
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getSkewCorrectedDate.js +1 -5
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -12
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/index.js +1 -6
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/isClockSkewed.js +1 -6
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +316 -6
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/coercing-serializers.js +1 -59
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js +1 -5
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js +1 -14
- package/node_modules/@aws-sdk/core/package.json +7 -7
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js +1 -27
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +66 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js +1 -10
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +175 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js +1 -52
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js +1 -21
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js +1 -11
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js +1 -32
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js +1 -17
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js +1 -16
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js +1 -17
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js +1 -15
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +73 -4
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js +1 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/ProcessCredentials.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js +1 -10
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js +1 -26
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +96 -4
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js +1 -37
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js +1 -61
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +177 -7
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js +1 -10
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js +1 -56
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js +1 -13
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +27 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +65 -34
- package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +79 -4
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js +1 -48
- package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +64 -36
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js +1 -108
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js +1 -62
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +227 -5
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js +1 -5
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js +1 -12
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js +1 -6
- package/node_modules/@aws-sdk/middleware-signing/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +1 -10
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +1 -10
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +122 -5
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +1 -79
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -6
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js +1 -30
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +115 -5
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/config.js +1 -15
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js +1 -10
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js +1 -5
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js +1 -5
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +1 -29
- package/node_modules/@aws-sdk/region-config-resolver/package.json +7 -7
- package/node_modules/@aws-sdk/token-providers/dist-cjs/constants.js +1 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js +1 -82
- package/node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js +1 -11
- package/node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js +1 -15
- package/node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js +1 -14
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +211 -7
- package/node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js +1 -9
- package/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js +1 -11
- package/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js +1 -11
- package/node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js +1 -12
- package/node_modules/@aws-sdk/token-providers/package.json +36 -36
- package/node_modules/@aws-sdk/types/dist-cjs/abort.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/auth.js +1 -5
- package/node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/checksum.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/client.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/command.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/connection.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/credentials.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/crypto.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/dns.js +1 -8
- package/node_modules/@aws-sdk/types/dist-cjs/encode.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/endpoint.js +1 -5
- package/node_modules/@aws-sdk/types/dist-cjs/eventStream.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/extensions/index.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/http.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/identity/index.js +1 -8
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +466 -35
- package/node_modules/@aws-sdk/types/dist-cjs/logger.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/middleware.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/pagination.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/profile.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/request.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/response.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/retry.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/serde.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/shapes.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/signature.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/stream.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/token.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/transfer.js +1 -5
- package/node_modules/@aws-sdk/types/dist-cjs/uri.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/util.js +1 -2
- package/node_modules/@aws-sdk/types/dist-cjs/waiter.js +1 -2
- package/node_modules/@aws-sdk/types/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/aws.js +1 -12
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +424 -8
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js +1 -29
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js +1 -19
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js +1 -49
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js +1 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js +1 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js +1 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js +1 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js +1 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js +1 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js +1 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js +1 -9
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js +1 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +37 -11
- package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/crt-availability.js +1 -6
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +93 -43
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +1 -11
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- 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 +85 -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 +235 -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 +482 -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 +427 -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 +468 -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 +220 -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 +64 -36
- package/node_modules/@smithy/hash-node/package.json +5 -5
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +41 -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 +32 -6
- package/node_modules/@smithy/is-array-buffer/package.json +7 -9
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +66 -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 +254 -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 +424 -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 +97 -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 +318 -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 +87 -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 +626 -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 +150 -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 +237 -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 +49 -22
- package/node_modules/@smithy/querystring-builder/package.json +4 -4
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +50 -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 +88 -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 +190 -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 +467 -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 +1256 -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 +149 -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 +48 -21
- package/node_modules/@smithy/url-parser/package.json +4 -4
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +27 -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 +57 -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 +53 -4
- package/node_modules/@smithy/util-body-length-node/package.json +7 -9
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +45 -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 +64 -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 +25 -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 +109 -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 +484 -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 +60 -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 +45 -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 +347 -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 +89 -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 +43 -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 +57 -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 +155 -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 -38
- package/.projenrc.ts +0 -49
@@ -1,10 +1,347 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
+
AdaptiveRetryStrategy: () => AdaptiveRetryStrategy,
|
24
|
+
ConfiguredRetryStrategy: () => ConfiguredRetryStrategy,
|
25
|
+
DEFAULT_MAX_ATTEMPTS: () => DEFAULT_MAX_ATTEMPTS,
|
26
|
+
DEFAULT_RETRY_DELAY_BASE: () => DEFAULT_RETRY_DELAY_BASE,
|
27
|
+
DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE,
|
28
|
+
DefaultRateLimiter: () => DefaultRateLimiter,
|
29
|
+
INITIAL_RETRY_TOKENS: () => INITIAL_RETRY_TOKENS,
|
30
|
+
INVOCATION_ID_HEADER: () => INVOCATION_ID_HEADER,
|
31
|
+
MAXIMUM_RETRY_DELAY: () => MAXIMUM_RETRY_DELAY,
|
32
|
+
NO_RETRY_INCREMENT: () => NO_RETRY_INCREMENT,
|
33
|
+
REQUEST_HEADER: () => REQUEST_HEADER,
|
34
|
+
RETRY_COST: () => RETRY_COST,
|
35
|
+
RETRY_MODES: () => RETRY_MODES,
|
36
|
+
StandardRetryStrategy: () => StandardRetryStrategy,
|
37
|
+
THROTTLING_RETRY_DELAY_BASE: () => THROTTLING_RETRY_DELAY_BASE,
|
38
|
+
TIMEOUT_RETRY_COST: () => TIMEOUT_RETRY_COST
|
39
|
+
});
|
40
|
+
module.exports = __toCommonJS(src_exports);
|
41
|
+
|
42
|
+
// src/config.ts
|
43
|
+
var RETRY_MODES = /* @__PURE__ */ ((RETRY_MODES2) => {
|
44
|
+
RETRY_MODES2["STANDARD"] = "standard";
|
45
|
+
RETRY_MODES2["ADAPTIVE"] = "adaptive";
|
46
|
+
return RETRY_MODES2;
|
47
|
+
})(RETRY_MODES || {});
|
48
|
+
var DEFAULT_MAX_ATTEMPTS = 3;
|
49
|
+
var DEFAULT_RETRY_MODE = "standard" /* STANDARD */;
|
50
|
+
|
51
|
+
// src/DefaultRateLimiter.ts
|
52
|
+
var import_service_error_classification = require("@smithy/service-error-classification");
|
53
|
+
var _DefaultRateLimiter = class _DefaultRateLimiter {
|
54
|
+
constructor(options) {
|
55
|
+
// Pre-set state variables
|
56
|
+
this.currentCapacity = 0;
|
57
|
+
this.enabled = false;
|
58
|
+
this.lastMaxRate = 0;
|
59
|
+
this.measuredTxRate = 0;
|
60
|
+
this.requestCount = 0;
|
61
|
+
this.lastTimestamp = 0;
|
62
|
+
this.timeWindow = 0;
|
63
|
+
this.beta = (options == null ? void 0 : options.beta) ?? 0.7;
|
64
|
+
this.minCapacity = (options == null ? void 0 : options.minCapacity) ?? 1;
|
65
|
+
this.minFillRate = (options == null ? void 0 : options.minFillRate) ?? 0.5;
|
66
|
+
this.scaleConstant = (options == null ? void 0 : options.scaleConstant) ?? 0.4;
|
67
|
+
this.smooth = (options == null ? void 0 : options.smooth) ?? 0.8;
|
68
|
+
const currentTimeInSeconds = this.getCurrentTimeInSeconds();
|
69
|
+
this.lastThrottleTime = currentTimeInSeconds;
|
70
|
+
this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds());
|
71
|
+
this.fillRate = this.minFillRate;
|
72
|
+
this.maxCapacity = this.minCapacity;
|
73
|
+
}
|
74
|
+
getCurrentTimeInSeconds() {
|
75
|
+
return Date.now() / 1e3;
|
76
|
+
}
|
77
|
+
async getSendToken() {
|
78
|
+
return this.acquireTokenBucket(1);
|
79
|
+
}
|
80
|
+
async acquireTokenBucket(amount) {
|
81
|
+
if (!this.enabled) {
|
82
|
+
return;
|
83
|
+
}
|
84
|
+
this.refillTokenBucket();
|
85
|
+
if (amount > this.currentCapacity) {
|
86
|
+
const delay = (amount - this.currentCapacity) / this.fillRate * 1e3;
|
87
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
88
|
+
}
|
89
|
+
this.currentCapacity = this.currentCapacity - amount;
|
90
|
+
}
|
91
|
+
refillTokenBucket() {
|
92
|
+
const timestamp = this.getCurrentTimeInSeconds();
|
93
|
+
if (!this.lastTimestamp) {
|
94
|
+
this.lastTimestamp = timestamp;
|
95
|
+
return;
|
96
|
+
}
|
97
|
+
const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate;
|
98
|
+
this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount);
|
99
|
+
this.lastTimestamp = timestamp;
|
100
|
+
}
|
101
|
+
updateClientSendingRate(response) {
|
102
|
+
let calculatedRate;
|
103
|
+
this.updateMeasuredRate();
|
104
|
+
if ((0, import_service_error_classification.isThrottlingError)(response)) {
|
105
|
+
const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
|
106
|
+
this.lastMaxRate = rateToUse;
|
107
|
+
this.calculateTimeWindow();
|
108
|
+
this.lastThrottleTime = this.getCurrentTimeInSeconds();
|
109
|
+
calculatedRate = this.cubicThrottle(rateToUse);
|
110
|
+
this.enableTokenBucket();
|
111
|
+
} else {
|
112
|
+
this.calculateTimeWindow();
|
113
|
+
calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());
|
114
|
+
}
|
115
|
+
const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);
|
116
|
+
this.updateTokenBucketRate(newRate);
|
117
|
+
}
|
118
|
+
calculateTimeWindow() {
|
119
|
+
this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3));
|
120
|
+
}
|
121
|
+
cubicThrottle(rateToUse) {
|
122
|
+
return this.getPrecise(rateToUse * this.beta);
|
123
|
+
}
|
124
|
+
cubicSuccess(timestamp) {
|
125
|
+
return this.getPrecise(
|
126
|
+
this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate
|
127
|
+
);
|
128
|
+
}
|
129
|
+
enableTokenBucket() {
|
130
|
+
this.enabled = true;
|
131
|
+
}
|
132
|
+
updateTokenBucketRate(newRate) {
|
133
|
+
this.refillTokenBucket();
|
134
|
+
this.fillRate = Math.max(newRate, this.minFillRate);
|
135
|
+
this.maxCapacity = Math.max(newRate, this.minCapacity);
|
136
|
+
this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity);
|
137
|
+
}
|
138
|
+
updateMeasuredRate() {
|
139
|
+
const t = this.getCurrentTimeInSeconds();
|
140
|
+
const timeBucket = Math.floor(t * 2) / 2;
|
141
|
+
this.requestCount++;
|
142
|
+
if (timeBucket > this.lastTxRateBucket) {
|
143
|
+
const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket);
|
144
|
+
this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth));
|
145
|
+
this.requestCount = 0;
|
146
|
+
this.lastTxRateBucket = timeBucket;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
getPrecise(num) {
|
150
|
+
return parseFloat(num.toFixed(8));
|
151
|
+
}
|
152
|
+
};
|
153
|
+
__name(_DefaultRateLimiter, "DefaultRateLimiter");
|
154
|
+
var DefaultRateLimiter = _DefaultRateLimiter;
|
155
|
+
|
156
|
+
// src/constants.ts
|
157
|
+
var DEFAULT_RETRY_DELAY_BASE = 100;
|
158
|
+
var MAXIMUM_RETRY_DELAY = 20 * 1e3;
|
159
|
+
var THROTTLING_RETRY_DELAY_BASE = 500;
|
160
|
+
var INITIAL_RETRY_TOKENS = 500;
|
161
|
+
var RETRY_COST = 5;
|
162
|
+
var TIMEOUT_RETRY_COST = 10;
|
163
|
+
var NO_RETRY_INCREMENT = 1;
|
164
|
+
var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
|
165
|
+
var REQUEST_HEADER = "amz-sdk-request";
|
166
|
+
|
167
|
+
// src/defaultRetryBackoffStrategy.ts
|
168
|
+
var getDefaultRetryBackoffStrategy = /* @__PURE__ */ __name(() => {
|
169
|
+
let delayBase = DEFAULT_RETRY_DELAY_BASE;
|
170
|
+
const computeNextBackoffDelay = /* @__PURE__ */ __name((attempts) => {
|
171
|
+
return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
|
172
|
+
}, "computeNextBackoffDelay");
|
173
|
+
const setDelayBase = /* @__PURE__ */ __name((delay) => {
|
174
|
+
delayBase = delay;
|
175
|
+
}, "setDelayBase");
|
176
|
+
return {
|
177
|
+
computeNextBackoffDelay,
|
178
|
+
setDelayBase
|
179
|
+
};
|
180
|
+
}, "getDefaultRetryBackoffStrategy");
|
181
|
+
|
182
|
+
// src/defaultRetryToken.ts
|
183
|
+
var createDefaultRetryToken = /* @__PURE__ */ __name(({
|
184
|
+
retryDelay,
|
185
|
+
retryCount,
|
186
|
+
retryCost
|
187
|
+
}) => {
|
188
|
+
const getRetryCount = /* @__PURE__ */ __name(() => retryCount, "getRetryCount");
|
189
|
+
const getRetryDelay = /* @__PURE__ */ __name(() => Math.min(MAXIMUM_RETRY_DELAY, retryDelay), "getRetryDelay");
|
190
|
+
const getRetryCost = /* @__PURE__ */ __name(() => retryCost, "getRetryCost");
|
191
|
+
return {
|
192
|
+
getRetryCount,
|
193
|
+
getRetryDelay,
|
194
|
+
getRetryCost
|
195
|
+
};
|
196
|
+
}, "createDefaultRetryToken");
|
197
|
+
|
198
|
+
// src/StandardRetryStrategy.ts
|
199
|
+
var _StandardRetryStrategy = class _StandardRetryStrategy {
|
200
|
+
constructor(maxAttempts) {
|
201
|
+
this.maxAttempts = maxAttempts;
|
202
|
+
this.mode = "standard" /* STANDARD */;
|
203
|
+
this.capacity = INITIAL_RETRY_TOKENS;
|
204
|
+
this.retryBackoffStrategy = getDefaultRetryBackoffStrategy();
|
205
|
+
this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
|
206
|
+
}
|
207
|
+
async acquireInitialRetryToken(retryTokenScope) {
|
208
|
+
return createDefaultRetryToken({
|
209
|
+
retryDelay: DEFAULT_RETRY_DELAY_BASE,
|
210
|
+
retryCount: 0
|
211
|
+
});
|
212
|
+
}
|
213
|
+
async refreshRetryTokenForRetry(token, errorInfo) {
|
214
|
+
const maxAttempts = await this.getMaxAttempts();
|
215
|
+
if (this.shouldRetry(token, errorInfo, maxAttempts)) {
|
216
|
+
const errorType = errorInfo.errorType;
|
217
|
+
this.retryBackoffStrategy.setDelayBase(
|
218
|
+
errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE
|
219
|
+
);
|
220
|
+
const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount());
|
221
|
+
const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType;
|
222
|
+
const capacityCost = this.getCapacityCost(errorType);
|
223
|
+
this.capacity -= capacityCost;
|
224
|
+
return createDefaultRetryToken({
|
225
|
+
retryDelay,
|
226
|
+
retryCount: token.getRetryCount() + 1,
|
227
|
+
retryCost: capacityCost
|
228
|
+
});
|
229
|
+
}
|
230
|
+
throw new Error("No retry token available");
|
231
|
+
}
|
232
|
+
recordSuccess(token) {
|
233
|
+
this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT));
|
234
|
+
}
|
235
|
+
/**
|
236
|
+
* @returns the current available retry capacity.
|
237
|
+
*
|
238
|
+
* This number decreases when retries are executed and refills when requests or retries succeed.
|
239
|
+
*/
|
240
|
+
getCapacity() {
|
241
|
+
return this.capacity;
|
242
|
+
}
|
243
|
+
async getMaxAttempts() {
|
244
|
+
try {
|
245
|
+
return await this.maxAttemptsProvider();
|
246
|
+
} catch (error) {
|
247
|
+
console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`);
|
248
|
+
return DEFAULT_MAX_ATTEMPTS;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
shouldRetry(tokenToRenew, errorInfo, maxAttempts) {
|
252
|
+
const attempts = tokenToRenew.getRetryCount() + 1;
|
253
|
+
return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType);
|
254
|
+
}
|
255
|
+
getCapacityCost(errorType) {
|
256
|
+
return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST;
|
257
|
+
}
|
258
|
+
isRetryableError(errorType) {
|
259
|
+
return errorType === "THROTTLING" || errorType === "TRANSIENT";
|
260
|
+
}
|
261
|
+
};
|
262
|
+
__name(_StandardRetryStrategy, "StandardRetryStrategy");
|
263
|
+
var StandardRetryStrategy = _StandardRetryStrategy;
|
264
|
+
|
265
|
+
// src/AdaptiveRetryStrategy.ts
|
266
|
+
var _AdaptiveRetryStrategy = class _AdaptiveRetryStrategy {
|
267
|
+
constructor(maxAttemptsProvider, options) {
|
268
|
+
this.maxAttemptsProvider = maxAttemptsProvider;
|
269
|
+
this.mode = "adaptive" /* ADAPTIVE */;
|
270
|
+
const { rateLimiter } = options ?? {};
|
271
|
+
this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
|
272
|
+
this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
|
273
|
+
}
|
274
|
+
async acquireInitialRetryToken(retryTokenScope) {
|
275
|
+
await this.rateLimiter.getSendToken();
|
276
|
+
return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
|
277
|
+
}
|
278
|
+
async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
|
279
|
+
this.rateLimiter.updateClientSendingRate(errorInfo);
|
280
|
+
return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
|
281
|
+
}
|
282
|
+
recordSuccess(token) {
|
283
|
+
this.rateLimiter.updateClientSendingRate({});
|
284
|
+
this.standardRetryStrategy.recordSuccess(token);
|
285
|
+
}
|
286
|
+
};
|
287
|
+
__name(_AdaptiveRetryStrategy, "AdaptiveRetryStrategy");
|
288
|
+
var AdaptiveRetryStrategy = _AdaptiveRetryStrategy;
|
289
|
+
|
290
|
+
// src/ConfiguredRetryStrategy.ts
|
291
|
+
var _ConfiguredRetryStrategy = class _ConfiguredRetryStrategy extends StandardRetryStrategy {
|
292
|
+
/**
|
293
|
+
* @param maxAttempts - the maximum number of retry attempts allowed.
|
294
|
+
* e.g., if set to 3, then 4 total requests are possible.
|
295
|
+
* @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt
|
296
|
+
* and returns the delay.
|
297
|
+
*
|
298
|
+
* @example exponential backoff.
|
299
|
+
* ```js
|
300
|
+
* new Client({
|
301
|
+
* retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2)
|
302
|
+
* });
|
303
|
+
* ```
|
304
|
+
* @example constant delay.
|
305
|
+
* ```js
|
306
|
+
* new Client({
|
307
|
+
* retryStrategy: new ConfiguredRetryStrategy(3, 2000)
|
308
|
+
* });
|
309
|
+
* ```
|
310
|
+
*/
|
311
|
+
constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) {
|
312
|
+
super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts);
|
313
|
+
if (typeof computeNextBackoffDelay === "number") {
|
314
|
+
this.computeNextBackoffDelay = () => computeNextBackoffDelay;
|
315
|
+
} else {
|
316
|
+
this.computeNextBackoffDelay = computeNextBackoffDelay;
|
317
|
+
}
|
318
|
+
}
|
319
|
+
async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
|
320
|
+
const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
|
321
|
+
token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount());
|
322
|
+
return token;
|
323
|
+
}
|
324
|
+
};
|
325
|
+
__name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy");
|
326
|
+
var ConfiguredRetryStrategy = _ConfiguredRetryStrategy;
|
327
|
+
// Annotate the CommonJS export names for ESM import in node:
|
328
|
+
|
329
|
+
0 && (module.exports = {
|
330
|
+
AdaptiveRetryStrategy,
|
331
|
+
ConfiguredRetryStrategy,
|
332
|
+
DEFAULT_MAX_ATTEMPTS,
|
333
|
+
DEFAULT_RETRY_DELAY_BASE,
|
334
|
+
DEFAULT_RETRY_MODE,
|
335
|
+
DefaultRateLimiter,
|
336
|
+
INITIAL_RETRY_TOKENS,
|
337
|
+
INVOCATION_ID_HEADER,
|
338
|
+
MAXIMUM_RETRY_DELAY,
|
339
|
+
NO_RETRY_INCREMENT,
|
340
|
+
REQUEST_HEADER,
|
341
|
+
RETRY_COST,
|
342
|
+
RETRY_MODES,
|
343
|
+
StandardRetryStrategy,
|
344
|
+
THROTTLING_RETRY_DELAY_BASE,
|
345
|
+
TIMEOUT_RETRY_COST
|
346
|
+
});
|
347
|
+
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-retry",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.1.1",
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
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-retry",
|
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",
|
@@ -27,8 +27,8 @@
|
|
27
27
|
},
|
28
28
|
"license": "Apache-2.0",
|
29
29
|
"dependencies": {
|
30
|
-
"@smithy/service-error-classification": "^2.
|
31
|
-
"@smithy/types": "^2.
|
30
|
+
"@smithy/service-error-classification": "^2.1.1",
|
31
|
+
"@smithy/types": "^2.9.1",
|
32
32
|
"tslib": "^2.5.0"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
@@ -1,22 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Uint8ArrayBlobAdapter = void 0;
|
4
|
-
const transforms_1 = require("./transforms");
|
5
|
-
class Uint8ArrayBlobAdapter extends Uint8Array {
|
6
|
-
static fromString(source, encoding = "utf-8") {
|
7
|
-
switch (typeof source) {
|
8
|
-
case "string":
|
9
|
-
return (0, transforms_1.transformFromString)(source, encoding);
|
10
|
-
default:
|
11
|
-
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
12
|
-
}
|
13
|
-
}
|
14
|
-
static mutate(source) {
|
15
|
-
Object.setPrototypeOf(source, Uint8ArrayBlobAdapter.prototype);
|
16
|
-
return source;
|
17
|
-
}
|
18
|
-
transformToString(encoding = "utf-8") {
|
19
|
-
return (0, transforms_1.transformToString)(this, encoding);
|
20
|
-
}
|
21
|
-
}
|
22
|
-
exports.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter;
|
1
|
+
module.exports = require("../index.js");
|
@@ -1,20 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.transformFromString = exports.transformToString = void 0;
|
4
|
-
const util_base64_1 = require("@smithy/util-base64");
|
5
|
-
const util_utf8_1 = require("@smithy/util-utf8");
|
6
|
-
const Uint8ArrayBlobAdapter_1 = require("./Uint8ArrayBlobAdapter");
|
7
|
-
function transformToString(payload, encoding = "utf-8") {
|
8
|
-
if (encoding === "base64") {
|
9
|
-
return (0, util_base64_1.toBase64)(payload);
|
10
|
-
}
|
11
|
-
return (0, util_utf8_1.toUtf8)(payload);
|
12
|
-
}
|
13
|
-
exports.transformToString = transformToString;
|
14
|
-
function transformFromString(str, encoding) {
|
15
|
-
if (encoding === "base64") {
|
16
|
-
return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_base64_1.fromBase64)(str));
|
17
|
-
}
|
18
|
-
return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_utf8_1.fromUtf8)(str));
|
19
|
-
}
|
20
|
-
exports.transformFromString = transformFromString;
|
1
|
+
module.exports = require("../index.js");
|
@@ -1,6 +1,89 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
|
+
|
21
|
+
// src/index.ts
|
22
|
+
var src_exports = {};
|
23
|
+
__export(src_exports, {
|
24
|
+
Uint8ArrayBlobAdapter: () => Uint8ArrayBlobAdapter
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(src_exports);
|
27
|
+
|
28
|
+
// src/blob/transforms.ts
|
29
|
+
var import_util_base64 = require("@smithy/util-base64");
|
30
|
+
var import_util_utf8 = require("@smithy/util-utf8");
|
31
|
+
function transformToString(payload, encoding = "utf-8") {
|
32
|
+
if (encoding === "base64") {
|
33
|
+
return (0, import_util_base64.toBase64)(payload);
|
34
|
+
}
|
35
|
+
return (0, import_util_utf8.toUtf8)(payload);
|
36
|
+
}
|
37
|
+
__name(transformToString, "transformToString");
|
38
|
+
function transformFromString(str, encoding) {
|
39
|
+
if (encoding === "base64") {
|
40
|
+
return Uint8ArrayBlobAdapter.mutate((0, import_util_base64.fromBase64)(str));
|
41
|
+
}
|
42
|
+
return Uint8ArrayBlobAdapter.mutate((0, import_util_utf8.fromUtf8)(str));
|
43
|
+
}
|
44
|
+
__name(transformFromString, "transformFromString");
|
45
|
+
|
46
|
+
// src/blob/Uint8ArrayBlobAdapter.ts
|
47
|
+
var _Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
|
48
|
+
/**
|
49
|
+
* @param source - such as a string or Stream.
|
50
|
+
* @returns a new Uint8ArrayBlobAdapter extending Uint8Array.
|
51
|
+
*/
|
52
|
+
static fromString(source, encoding = "utf-8") {
|
53
|
+
switch (typeof source) {
|
54
|
+
case "string":
|
55
|
+
return transformFromString(source, encoding);
|
56
|
+
default:
|
57
|
+
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* @param source - Uint8Array to be mutated.
|
62
|
+
* @returns the same Uint8Array but with prototype switched to Uint8ArrayBlobAdapter.
|
63
|
+
*/
|
64
|
+
static mutate(source) {
|
65
|
+
Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
|
66
|
+
return source;
|
67
|
+
}
|
68
|
+
/**
|
69
|
+
* @param encoding - default 'utf-8'.
|
70
|
+
* @returns the blob as string.
|
71
|
+
*/
|
72
|
+
transformToString(encoding = "utf-8") {
|
73
|
+
return transformToString(this, encoding);
|
74
|
+
}
|
75
|
+
};
|
76
|
+
__name(_Uint8ArrayBlobAdapter, "Uint8ArrayBlobAdapter");
|
77
|
+
var Uint8ArrayBlobAdapter = _Uint8ArrayBlobAdapter;
|
78
|
+
|
79
|
+
// src/index.ts
|
80
|
+
__reExport(src_exports, require("././getAwsChunkedEncodingStream"), module.exports);
|
81
|
+
__reExport(src_exports, require("././sdk-stream-mixin"), module.exports);
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
83
|
+
|
84
|
+
0 && (module.exports = {
|
85
|
+
Uint8ArrayBlobAdapter,
|
86
|
+
getAwsChunkedEncodingStream,
|
87
|
+
sdkStreamMixin
|
88
|
+
});
|
89
|
+
|
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-stream",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.1.1",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
|
-
"build:cjs": "
|
6
|
+
"build:cjs": "node ../../scripts/inline util-stream",
|
7
7
|
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
8
8
|
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
9
9
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
@@ -24,17 +24,17 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@smithy/fetch-http-handler": "^2.
|
28
|
-
"@smithy/node-http-handler": "^2.
|
29
|
-
"@smithy/types": "^2.
|
30
|
-
"@smithy/util-base64": "^2.
|
31
|
-
"@smithy/util-buffer-from": "^2.
|
32
|
-
"@smithy/util-hex-encoding": "^2.
|
33
|
-
"@smithy/util-utf8": "^2.
|
27
|
+
"@smithy/fetch-http-handler": "^2.4.1",
|
28
|
+
"@smithy/node-http-handler": "^2.3.1",
|
29
|
+
"@smithy/types": "^2.9.1",
|
30
|
+
"@smithy/util-base64": "^2.1.1",
|
31
|
+
"@smithy/util-buffer-from": "^2.1.1",
|
32
|
+
"@smithy/util-hex-encoding": "^2.1.1",
|
33
|
+
"@smithy/util-utf8": "^2.1.1",
|
34
34
|
"tslib": "^2.5.0"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
-
"@smithy/util-test": "^0.1.
|
37
|
+
"@smithy/util-test": "^0.1.14",
|
38
38
|
"@types/chai-as-promised": "^7.1.2",
|
39
39
|
"@types/node": "^14.14.31",
|
40
40
|
"chai": "^4.2.0",
|
@@ -1,6 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.escapeUriPath = void 0;
|
4
|
-
const escape_uri_1 = require("./escape-uri");
|
5
|
-
const escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/");
|
6
|
-
exports.escapeUriPath = escapeUriPath;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,6 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.escapeUri = void 0;
|
4
|
-
const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
5
|
-
exports.escapeUri = escapeUri;
|
6
|
-
const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,5 +1,43 @@
|
|
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
|
+
escapeUri: () => escapeUri,
|
24
|
+
escapeUriPath: () => escapeUriPath
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(src_exports);
|
27
|
+
|
28
|
+
// src/escape-uri.ts
|
29
|
+
var escapeUri = /* @__PURE__ */ __name((uri) => (
|
30
|
+
// AWS percent-encodes some extra non-standard characters in a URI
|
31
|
+
encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode)
|
32
|
+
), "escapeUri");
|
33
|
+
var hexEncode = /* @__PURE__ */ __name((c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`, "hexEncode");
|
34
|
+
|
35
|
+
// src/escape-uri-path.ts
|
36
|
+
var escapeUriPath = /* @__PURE__ */ __name((uri) => uri.split("/").map(escapeUri).join("/"), "escapeUriPath");
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
38
|
+
|
39
|
+
0 && (module.exports = {
|
40
|
+
escapeUri,
|
41
|
+
escapeUriPath
|
42
|
+
});
|
43
|
+
|
@@ -1,17 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-uri-escape",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.1.1",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
|
-
"build:cjs": "
|
7
|
-
"build:es": "tsc -p tsconfig.es.json",
|
8
|
-
"build:types": "tsc -p tsconfig.types.json",
|
6
|
+
"build:cjs": "node ../../scripts/inline util-uri-escape",
|
7
|
+
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
8
|
+
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
9
9
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
10
10
|
"stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
11
|
-
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
11
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
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
|
-
"test": "jest"
|
14
|
+
"test": "yarn g:jest"
|
15
15
|
},
|
16
16
|
"main": "./dist-cjs/index.js",
|
17
17
|
"module": "./dist-es/index.js",
|
@@ -47,10 +47,8 @@
|
|
47
47
|
"@tsconfig/recommended": "1.0.1",
|
48
48
|
"concurrently": "7.0.0",
|
49
49
|
"downlevel-dts": "0.10.1",
|
50
|
-
"jest": "28.1.1",
|
51
50
|
"rimraf": "3.0.2",
|
52
|
-
"typedoc": "0.23.23"
|
53
|
-
"typescript": "~4.9.5"
|
51
|
+
"typedoc": "0.23.23"
|
54
52
|
},
|
55
53
|
"typedoc": {
|
56
54
|
"entryPoint": "src/index.ts"
|