@cdk8s/awscdk-resolver 0.0.50 → 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,153 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NodeHttpHandler = exports.DEFAULT_REQUEST_TIMEOUT = void 0;
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
5
|
-
const querystring_builder_1 = require("@smithy/querystring-builder");
|
6
|
-
const http_1 = require("http");
|
7
|
-
const https_1 = require("https");
|
8
|
-
const constants_1 = require("./constants");
|
9
|
-
const get_transformed_headers_1 = require("./get-transformed-headers");
|
10
|
-
const set_connection_timeout_1 = require("./set-connection-timeout");
|
11
|
-
const set_socket_keep_alive_1 = require("./set-socket-keep-alive");
|
12
|
-
const set_socket_timeout_1 = require("./set-socket-timeout");
|
13
|
-
const write_request_body_1 = require("./write-request-body");
|
14
|
-
exports.DEFAULT_REQUEST_TIMEOUT = 0;
|
15
|
-
class NodeHttpHandler {
|
16
|
-
static create(instanceOrOptions) {
|
17
|
-
if (typeof (instanceOrOptions === null || instanceOrOptions === void 0 ? void 0 : instanceOrOptions.handle) === "function") {
|
18
|
-
return instanceOrOptions;
|
19
|
-
}
|
20
|
-
return new NodeHttpHandler(instanceOrOptions);
|
21
|
-
}
|
22
|
-
constructor(options) {
|
23
|
-
this.metadata = { handlerProtocol: "http/1.1" };
|
24
|
-
this.configProvider = new Promise((resolve, reject) => {
|
25
|
-
if (typeof options === "function") {
|
26
|
-
options()
|
27
|
-
.then((_options) => {
|
28
|
-
resolve(this.resolveDefaultConfig(_options));
|
29
|
-
})
|
30
|
-
.catch(reject);
|
31
|
-
}
|
32
|
-
else {
|
33
|
-
resolve(this.resolveDefaultConfig(options));
|
34
|
-
}
|
35
|
-
});
|
36
|
-
}
|
37
|
-
resolveDefaultConfig(options) {
|
38
|
-
const { requestTimeout, connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {};
|
39
|
-
const keepAlive = true;
|
40
|
-
const maxSockets = 50;
|
41
|
-
return {
|
42
|
-
connectionTimeout,
|
43
|
-
requestTimeout: requestTimeout !== null && requestTimeout !== void 0 ? requestTimeout : socketTimeout,
|
44
|
-
httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }),
|
45
|
-
httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }),
|
46
|
-
};
|
47
|
-
}
|
48
|
-
destroy() {
|
49
|
-
var _a, _b, _c, _d;
|
50
|
-
(_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy();
|
51
|
-
(_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy();
|
52
|
-
}
|
53
|
-
async handle(request, { abortSignal } = {}) {
|
54
|
-
if (!this.config) {
|
55
|
-
this.config = await this.configProvider;
|
56
|
-
}
|
57
|
-
return new Promise((_resolve, _reject) => {
|
58
|
-
var _a, _b;
|
59
|
-
let writeRequestBodyPromise = undefined;
|
60
|
-
const resolve = async (arg) => {
|
61
|
-
await writeRequestBodyPromise;
|
62
|
-
_resolve(arg);
|
63
|
-
};
|
64
|
-
const reject = async (arg) => {
|
65
|
-
await writeRequestBodyPromise;
|
66
|
-
_reject(arg);
|
67
|
-
};
|
68
|
-
if (!this.config) {
|
69
|
-
throw new Error("Node HTTP request handler config is not resolved");
|
70
|
-
}
|
71
|
-
if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) {
|
72
|
-
const abortError = new Error("Request aborted");
|
73
|
-
abortError.name = "AbortError";
|
74
|
-
reject(abortError);
|
75
|
-
return;
|
76
|
-
}
|
77
|
-
const isSSL = request.protocol === "https:";
|
78
|
-
const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {});
|
79
|
-
let auth = undefined;
|
80
|
-
if (request.username != null || request.password != null) {
|
81
|
-
const username = (_a = request.username) !== null && _a !== void 0 ? _a : "";
|
82
|
-
const password = (_b = request.password) !== null && _b !== void 0 ? _b : "";
|
83
|
-
auth = `${username}:${password}`;
|
84
|
-
}
|
85
|
-
let path = request.path;
|
86
|
-
if (queryString) {
|
87
|
-
path += `?${queryString}`;
|
88
|
-
}
|
89
|
-
if (request.fragment) {
|
90
|
-
path += `#${request.fragment}`;
|
91
|
-
}
|
92
|
-
const nodeHttpsOptions = {
|
93
|
-
headers: request.headers,
|
94
|
-
host: request.hostname,
|
95
|
-
method: request.method,
|
96
|
-
path,
|
97
|
-
port: request.port,
|
98
|
-
agent: isSSL ? this.config.httpsAgent : this.config.httpAgent,
|
99
|
-
auth,
|
100
|
-
};
|
101
|
-
const requestFunc = isSSL ? https_1.request : http_1.request;
|
102
|
-
const req = requestFunc(nodeHttpsOptions, (res) => {
|
103
|
-
const httpResponse = new protocol_http_1.HttpResponse({
|
104
|
-
statusCode: res.statusCode || -1,
|
105
|
-
reason: res.statusMessage,
|
106
|
-
headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers),
|
107
|
-
body: res,
|
108
|
-
});
|
109
|
-
resolve({ response: httpResponse });
|
110
|
-
});
|
111
|
-
req.on("error", (err) => {
|
112
|
-
if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) {
|
113
|
-
reject(Object.assign(err, { name: "TimeoutError" }));
|
114
|
-
}
|
115
|
-
else {
|
116
|
-
reject(err);
|
117
|
-
}
|
118
|
-
});
|
119
|
-
(0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout);
|
120
|
-
(0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.requestTimeout);
|
121
|
-
if (abortSignal) {
|
122
|
-
abortSignal.onabort = () => {
|
123
|
-
req.abort();
|
124
|
-
const abortError = new Error("Request aborted");
|
125
|
-
abortError.name = "AbortError";
|
126
|
-
reject(abortError);
|
127
|
-
};
|
128
|
-
}
|
129
|
-
const httpAgent = nodeHttpsOptions.agent;
|
130
|
-
if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
|
131
|
-
(0, set_socket_keep_alive_1.setSocketKeepAlive)(req, {
|
132
|
-
keepAlive: httpAgent.keepAlive,
|
133
|
-
keepAliveMsecs: httpAgent.keepAliveMsecs,
|
134
|
-
});
|
135
|
-
}
|
136
|
-
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, this.config.requestTimeout).catch(_reject);
|
137
|
-
});
|
138
|
-
}
|
139
|
-
updateHttpClientConfig(key, value) {
|
140
|
-
this.config = undefined;
|
141
|
-
this.configProvider = this.configProvider.then((config) => {
|
142
|
-
return {
|
143
|
-
...config,
|
144
|
-
[key]: value,
|
145
|
-
};
|
146
|
-
});
|
147
|
-
}
|
148
|
-
httpHandlerConfigs() {
|
149
|
-
var _a;
|
150
|
-
return (_a = this.config) !== null && _a !== void 0 ? _a : {};
|
151
|
-
}
|
152
|
-
}
|
153
|
-
exports.NodeHttpHandler = NodeHttpHandler;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,92 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NodeHttp2ConnectionManager = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const http2_1 = tslib_1.__importDefault(require("http2"));
|
6
|
-
const node_http2_connection_pool_1 = require("./node-http2-connection-pool");
|
7
|
-
class NodeHttp2ConnectionManager {
|
8
|
-
constructor(config) {
|
9
|
-
this.sessionCache = new Map();
|
10
|
-
this.config = config;
|
11
|
-
if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) {
|
12
|
-
throw new RangeError("maxConcurrency must be greater than zero.");
|
13
|
-
}
|
14
|
-
}
|
15
|
-
lease(requestContext, connectionConfiguration) {
|
16
|
-
const url = this.getUrlString(requestContext);
|
17
|
-
const existingPool = this.sessionCache.get(url);
|
18
|
-
if (existingPool) {
|
19
|
-
const existingSession = existingPool.poll();
|
20
|
-
if (existingSession && !this.config.disableConcurrency) {
|
21
|
-
return existingSession;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
const session = http2_1.default.connect(url);
|
25
|
-
if (this.config.maxConcurrency) {
|
26
|
-
session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => {
|
27
|
-
if (err) {
|
28
|
-
throw new Error("Fail to set maxConcurrentStreams to " +
|
29
|
-
this.config.maxConcurrency +
|
30
|
-
"when creating new session for " +
|
31
|
-
requestContext.destination.toString());
|
32
|
-
}
|
33
|
-
});
|
34
|
-
}
|
35
|
-
session.unref();
|
36
|
-
const destroySessionCb = () => {
|
37
|
-
session.destroy();
|
38
|
-
this.deleteSession(url, session);
|
39
|
-
};
|
40
|
-
session.on("goaway", destroySessionCb);
|
41
|
-
session.on("error", destroySessionCb);
|
42
|
-
session.on("frameError", destroySessionCb);
|
43
|
-
session.on("close", () => this.deleteSession(url, session));
|
44
|
-
if (connectionConfiguration.requestTimeout) {
|
45
|
-
session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb);
|
46
|
-
}
|
47
|
-
const connectionPool = this.sessionCache.get(url) || new node_http2_connection_pool_1.NodeHttp2ConnectionPool();
|
48
|
-
connectionPool.offerLast(session);
|
49
|
-
this.sessionCache.set(url, connectionPool);
|
50
|
-
return session;
|
51
|
-
}
|
52
|
-
deleteSession(authority, session) {
|
53
|
-
const existingConnectionPool = this.sessionCache.get(authority);
|
54
|
-
if (!existingConnectionPool) {
|
55
|
-
return;
|
56
|
-
}
|
57
|
-
if (!existingConnectionPool.contains(session)) {
|
58
|
-
return;
|
59
|
-
}
|
60
|
-
existingConnectionPool.remove(session);
|
61
|
-
this.sessionCache.set(authority, existingConnectionPool);
|
62
|
-
}
|
63
|
-
release(requestContext, session) {
|
64
|
-
var _a;
|
65
|
-
const cacheKey = this.getUrlString(requestContext);
|
66
|
-
(_a = this.sessionCache.get(cacheKey)) === null || _a === void 0 ? void 0 : _a.offerLast(session);
|
67
|
-
}
|
68
|
-
destroy() {
|
69
|
-
for (const [key, connectionPool] of this.sessionCache) {
|
70
|
-
for (const session of connectionPool) {
|
71
|
-
if (!session.destroyed) {
|
72
|
-
session.destroy();
|
73
|
-
}
|
74
|
-
connectionPool.remove(session);
|
75
|
-
}
|
76
|
-
this.sessionCache.delete(key);
|
77
|
-
}
|
78
|
-
}
|
79
|
-
setMaxConcurrentStreams(maxConcurrentStreams) {
|
80
|
-
if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) {
|
81
|
-
throw new RangeError("maxConcurrentStreams must be greater than zero.");
|
82
|
-
}
|
83
|
-
this.config.maxConcurrency = maxConcurrentStreams;
|
84
|
-
}
|
85
|
-
setDisableConcurrentStreams(disableConcurrentStreams) {
|
86
|
-
this.config.disableConcurrency = disableConcurrentStreams;
|
87
|
-
}
|
88
|
-
getUrlString(request) {
|
89
|
-
return request.destination.toString();
|
90
|
-
}
|
91
|
-
}
|
92
|
-
exports.NodeHttp2ConnectionManager = NodeHttp2ConnectionManager;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,36 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NodeHttp2ConnectionPool = void 0;
|
4
|
-
class NodeHttp2ConnectionPool {
|
5
|
-
constructor(sessions) {
|
6
|
-
this.sessions = [];
|
7
|
-
this.sessions = sessions !== null && sessions !== void 0 ? sessions : [];
|
8
|
-
}
|
9
|
-
poll() {
|
10
|
-
if (this.sessions.length > 0) {
|
11
|
-
return this.sessions.shift();
|
12
|
-
}
|
13
|
-
}
|
14
|
-
offerLast(session) {
|
15
|
-
this.sessions.push(session);
|
16
|
-
}
|
17
|
-
contains(session) {
|
18
|
-
return this.sessions.includes(session);
|
19
|
-
}
|
20
|
-
remove(session) {
|
21
|
-
this.sessions = this.sessions.filter((s) => s !== session);
|
22
|
-
}
|
23
|
-
[Symbol.iterator]() {
|
24
|
-
return this.sessions[Symbol.iterator]();
|
25
|
-
}
|
26
|
-
destroy(connection) {
|
27
|
-
for (const session of this.sessions) {
|
28
|
-
if (session === connection) {
|
29
|
-
if (!session.destroyed) {
|
30
|
-
session.destroy();
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
exports.NodeHttp2ConnectionPool = NodeHttp2ConnectionPool;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,165 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.NodeHttp2Handler = void 0;
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
5
|
-
const querystring_builder_1 = require("@smithy/querystring-builder");
|
6
|
-
const http2_1 = require("http2");
|
7
|
-
const get_transformed_headers_1 = require("./get-transformed-headers");
|
8
|
-
const node_http2_connection_manager_1 = require("./node-http2-connection-manager");
|
9
|
-
const write_request_body_1 = require("./write-request-body");
|
10
|
-
class NodeHttp2Handler {
|
11
|
-
static create(instanceOrOptions) {
|
12
|
-
if (typeof (instanceOrOptions === null || instanceOrOptions === void 0 ? void 0 : instanceOrOptions.handle) === "function") {
|
13
|
-
return instanceOrOptions;
|
14
|
-
}
|
15
|
-
return new NodeHttp2Handler(instanceOrOptions);
|
16
|
-
}
|
17
|
-
constructor(options) {
|
18
|
-
this.metadata = { handlerProtocol: "h2" };
|
19
|
-
this.connectionManager = new node_http2_connection_manager_1.NodeHttp2ConnectionManager({});
|
20
|
-
this.configProvider = new Promise((resolve, reject) => {
|
21
|
-
if (typeof options === "function") {
|
22
|
-
options()
|
23
|
-
.then((opts) => {
|
24
|
-
resolve(opts || {});
|
25
|
-
})
|
26
|
-
.catch(reject);
|
27
|
-
}
|
28
|
-
else {
|
29
|
-
resolve(options || {});
|
30
|
-
}
|
31
|
-
});
|
32
|
-
}
|
33
|
-
destroy() {
|
34
|
-
this.connectionManager.destroy();
|
35
|
-
}
|
36
|
-
async handle(request, { abortSignal } = {}) {
|
37
|
-
if (!this.config) {
|
38
|
-
this.config = await this.configProvider;
|
39
|
-
this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false);
|
40
|
-
if (this.config.maxConcurrentStreams) {
|
41
|
-
this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);
|
42
|
-
}
|
43
|
-
}
|
44
|
-
const { requestTimeout, disableConcurrentStreams } = this.config;
|
45
|
-
return new Promise((_resolve, _reject) => {
|
46
|
-
var _a, _b, _c;
|
47
|
-
let fulfilled = false;
|
48
|
-
let writeRequestBodyPromise = undefined;
|
49
|
-
const resolve = async (arg) => {
|
50
|
-
await writeRequestBodyPromise;
|
51
|
-
_resolve(arg);
|
52
|
-
};
|
53
|
-
const reject = async (arg) => {
|
54
|
-
await writeRequestBodyPromise;
|
55
|
-
_reject(arg);
|
56
|
-
};
|
57
|
-
if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) {
|
58
|
-
fulfilled = true;
|
59
|
-
const abortError = new Error("Request aborted");
|
60
|
-
abortError.name = "AbortError";
|
61
|
-
reject(abortError);
|
62
|
-
return;
|
63
|
-
}
|
64
|
-
const { hostname, method, port, protocol, query } = request;
|
65
|
-
let auth = "";
|
66
|
-
if (request.username != null || request.password != null) {
|
67
|
-
const username = (_a = request.username) !== null && _a !== void 0 ? _a : "";
|
68
|
-
const password = (_b = request.password) !== null && _b !== void 0 ? _b : "";
|
69
|
-
auth = `${username}:${password}@`;
|
70
|
-
}
|
71
|
-
const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`;
|
72
|
-
const requestContext = { destination: new URL(authority) };
|
73
|
-
const session = this.connectionManager.lease(requestContext, {
|
74
|
-
requestTimeout: (_c = this.config) === null || _c === void 0 ? void 0 : _c.sessionTimeout,
|
75
|
-
disableConcurrentStreams: disableConcurrentStreams || false,
|
76
|
-
});
|
77
|
-
const rejectWithDestroy = (err) => {
|
78
|
-
if (disableConcurrentStreams) {
|
79
|
-
this.destroySession(session);
|
80
|
-
}
|
81
|
-
fulfilled = true;
|
82
|
-
reject(err);
|
83
|
-
};
|
84
|
-
const queryString = (0, querystring_builder_1.buildQueryString)(query || {});
|
85
|
-
let path = request.path;
|
86
|
-
if (queryString) {
|
87
|
-
path += `?${queryString}`;
|
88
|
-
}
|
89
|
-
if (request.fragment) {
|
90
|
-
path += `#${request.fragment}`;
|
91
|
-
}
|
92
|
-
const req = session.request({
|
93
|
-
...request.headers,
|
94
|
-
[http2_1.constants.HTTP2_HEADER_PATH]: path,
|
95
|
-
[http2_1.constants.HTTP2_HEADER_METHOD]: method,
|
96
|
-
});
|
97
|
-
session.ref();
|
98
|
-
req.on("response", (headers) => {
|
99
|
-
const httpResponse = new protocol_http_1.HttpResponse({
|
100
|
-
statusCode: headers[":status"] || -1,
|
101
|
-
headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers),
|
102
|
-
body: req,
|
103
|
-
});
|
104
|
-
fulfilled = true;
|
105
|
-
resolve({ response: httpResponse });
|
106
|
-
if (disableConcurrentStreams) {
|
107
|
-
session.close();
|
108
|
-
this.connectionManager.deleteSession(authority, session);
|
109
|
-
}
|
110
|
-
});
|
111
|
-
if (requestTimeout) {
|
112
|
-
req.setTimeout(requestTimeout, () => {
|
113
|
-
req.close();
|
114
|
-
const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`);
|
115
|
-
timeoutError.name = "TimeoutError";
|
116
|
-
rejectWithDestroy(timeoutError);
|
117
|
-
});
|
118
|
-
}
|
119
|
-
if (abortSignal) {
|
120
|
-
abortSignal.onabort = () => {
|
121
|
-
req.close();
|
122
|
-
const abortError = new Error("Request aborted");
|
123
|
-
abortError.name = "AbortError";
|
124
|
-
rejectWithDestroy(abortError);
|
125
|
-
};
|
126
|
-
}
|
127
|
-
req.on("frameError", (type, code, id) => {
|
128
|
-
rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
|
129
|
-
});
|
130
|
-
req.on("error", rejectWithDestroy);
|
131
|
-
req.on("aborted", () => {
|
132
|
-
rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`));
|
133
|
-
});
|
134
|
-
req.on("close", () => {
|
135
|
-
session.unref();
|
136
|
-
if (disableConcurrentStreams) {
|
137
|
-
session.destroy();
|
138
|
-
}
|
139
|
-
if (!fulfilled) {
|
140
|
-
rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
|
141
|
-
}
|
142
|
-
});
|
143
|
-
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, requestTimeout);
|
144
|
-
});
|
145
|
-
}
|
146
|
-
updateHttpClientConfig(key, value) {
|
147
|
-
this.config = undefined;
|
148
|
-
this.configProvider = this.configProvider.then((config) => {
|
149
|
-
return {
|
150
|
-
...config,
|
151
|
-
[key]: value,
|
152
|
-
};
|
153
|
-
});
|
154
|
-
}
|
155
|
-
httpHandlerConfigs() {
|
156
|
-
var _a;
|
157
|
-
return (_a = this.config) !== null && _a !== void 0 ? _a : {};
|
158
|
-
}
|
159
|
-
destroySession(session) {
|
160
|
-
if (!session.destroyed) {
|
161
|
-
session.destroy();
|
162
|
-
}
|
163
|
-
}
|
164
|
-
}
|
165
|
-
exports.NodeHttp2Handler = NodeHttp2Handler;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,23 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ReadFromBuffers = void 0;
|
4
|
-
const stream_1 = require("stream");
|
5
|
-
class ReadFromBuffers extends stream_1.Readable {
|
6
|
-
constructor(options) {
|
7
|
-
super(options);
|
8
|
-
this.numBuffersRead = 0;
|
9
|
-
this.buffersToRead = options.buffers;
|
10
|
-
this.errorAfter = typeof options.errorAfter === "number" ? options.errorAfter : -1;
|
11
|
-
}
|
12
|
-
_read() {
|
13
|
-
if (this.errorAfter !== -1 && this.errorAfter === this.numBuffersRead) {
|
14
|
-
this.emit("error", new Error("Mock Error"));
|
15
|
-
return;
|
16
|
-
}
|
17
|
-
if (this.numBuffersRead >= this.buffersToRead.length) {
|
18
|
-
return this.push(null);
|
19
|
-
}
|
20
|
-
return this.push(this.buffersToRead[this.numBuffersRead++]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
exports.ReadFromBuffers = ReadFromBuffers;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,60 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createMockHttp2Server = exports.createMockHttpServer = exports.createMockHttpsServer = exports.createContinueResponseFunction = exports.createResponseFunctionWithDelay = exports.createResponseFunction = void 0;
|
4
|
-
const fs_1 = require("fs");
|
5
|
-
const http_1 = require("http");
|
6
|
-
const http2_1 = require("http2");
|
7
|
-
const https_1 = require("https");
|
8
|
-
const path_1 = require("path");
|
9
|
-
const stream_1 = require("stream");
|
10
|
-
const fixturesDir = (0, path_1.join)(__dirname, "..", "fixtures");
|
11
|
-
const setResponseHeaders = (response, headers) => {
|
12
|
-
for (const [key, value] of Object.entries(headers)) {
|
13
|
-
response.setHeader(key, value);
|
14
|
-
}
|
15
|
-
};
|
16
|
-
const setResponseBody = (response, body) => {
|
17
|
-
if (body instanceof stream_1.Readable) {
|
18
|
-
body.pipe(response);
|
19
|
-
}
|
20
|
-
else {
|
21
|
-
response.end(body);
|
22
|
-
}
|
23
|
-
};
|
24
|
-
const createResponseFunction = (httpResp) => (request, response) => {
|
25
|
-
response.statusCode = httpResp.statusCode;
|
26
|
-
setResponseHeaders(response, httpResp.headers);
|
27
|
-
setResponseBody(response, httpResp.body);
|
28
|
-
};
|
29
|
-
exports.createResponseFunction = createResponseFunction;
|
30
|
-
const createResponseFunctionWithDelay = (httpResp, delay) => (request, response) => {
|
31
|
-
response.statusCode = httpResp.statusCode;
|
32
|
-
setResponseHeaders(response, httpResp.headers);
|
33
|
-
setTimeout(() => setResponseBody(response, httpResp.body), delay);
|
34
|
-
};
|
35
|
-
exports.createResponseFunctionWithDelay = createResponseFunctionWithDelay;
|
36
|
-
const createContinueResponseFunction = (httpResp) => (request, response) => {
|
37
|
-
response.writeContinue();
|
38
|
-
setTimeout(() => {
|
39
|
-
(0, exports.createResponseFunction)(httpResp)(request, response);
|
40
|
-
}, 100);
|
41
|
-
};
|
42
|
-
exports.createContinueResponseFunction = createContinueResponseFunction;
|
43
|
-
const createMockHttpsServer = () => {
|
44
|
-
const server = (0, https_1.createServer)({
|
45
|
-
key: (0, fs_1.readFileSync)((0, path_1.join)(fixturesDir, "test-server-key.pem")),
|
46
|
-
cert: (0, fs_1.readFileSync)((0, path_1.join)(fixturesDir, "test-server-cert.pem")),
|
47
|
-
});
|
48
|
-
return server;
|
49
|
-
};
|
50
|
-
exports.createMockHttpsServer = createMockHttpsServer;
|
51
|
-
const createMockHttpServer = () => {
|
52
|
-
const server = (0, http_1.createServer)();
|
53
|
-
return server;
|
54
|
-
};
|
55
|
-
exports.createMockHttpServer = createMockHttpServer;
|
56
|
-
const createMockHttp2Server = () => {
|
57
|
-
const server = (0, http2_1.createServer)();
|
58
|
-
return server;
|
59
|
-
};
|
60
|
-
exports.createMockHttp2Server = createMockHttp2Server;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,25 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setConnectionTimeout = void 0;
|
4
|
-
const setConnectionTimeout = (request, reject, timeoutInMs = 0) => {
|
5
|
-
if (!timeoutInMs) {
|
6
|
-
return;
|
7
|
-
}
|
8
|
-
const timeoutId = setTimeout(() => {
|
9
|
-
request.destroy();
|
10
|
-
reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), {
|
11
|
-
name: "TimeoutError",
|
12
|
-
}));
|
13
|
-
}, timeoutInMs);
|
14
|
-
request.on("socket", (socket) => {
|
15
|
-
if (socket.connecting) {
|
16
|
-
socket.on("connect", () => {
|
17
|
-
clearTimeout(timeoutId);
|
18
|
-
});
|
19
|
-
}
|
20
|
-
else {
|
21
|
-
clearTimeout(timeoutId);
|
22
|
-
}
|
23
|
-
});
|
24
|
-
};
|
25
|
-
exports.setConnectionTimeout = setConnectionTimeout;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,12 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setSocketKeepAlive = void 0;
|
4
|
-
const setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }) => {
|
5
|
-
if (keepAlive !== true) {
|
6
|
-
return;
|
7
|
-
}
|
8
|
-
request.on("socket", (socket) => {
|
9
|
-
socket.setKeepAlive(keepAlive, keepAliveMsecs || 0);
|
10
|
-
});
|
11
|
-
};
|
12
|
-
exports.setSocketKeepAlive = setSocketKeepAlive;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,10 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setSocketTimeout = void 0;
|
4
|
-
const setSocketTimeout = (request, reject, timeoutInMs = 0) => {
|
5
|
-
request.setTimeout(timeoutInMs, () => {
|
6
|
-
request.destroy();
|
7
|
-
reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" }));
|
8
|
-
});
|
9
|
-
};
|
10
|
-
exports.setSocketTimeout = setSocketTimeout;
|
1
|
+
module.exports = require("./index.js");
|
@@ -1,15 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Collector = void 0;
|
4
|
-
const stream_1 = require("stream");
|
5
|
-
class Collector extends stream_1.Writable {
|
6
|
-
constructor() {
|
7
|
-
super(...arguments);
|
8
|
-
this.bufferedBytes = [];
|
9
|
-
}
|
10
|
-
_write(chunk, encoding, callback) {
|
11
|
-
this.bufferedBytes.push(chunk);
|
12
|
-
callback();
|
13
|
-
}
|
14
|
-
}
|
15
|
-
exports.Collector = Collector;
|
1
|
+
module.exports = require("../index.js");
|
@@ -1,18 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.streamCollector = void 0;
|
4
|
-
const collector_1 = require("./collector");
|
5
|
-
const streamCollector = (stream) => new Promise((resolve, reject) => {
|
6
|
-
const collector = new collector_1.Collector();
|
7
|
-
stream.pipe(collector);
|
8
|
-
stream.on("error", (err) => {
|
9
|
-
collector.end();
|
10
|
-
reject(err);
|
11
|
-
});
|
12
|
-
collector.on("error", reject);
|
13
|
-
collector.on("finish", function () {
|
14
|
-
const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
|
15
|
-
resolve(bytes);
|
16
|
-
});
|
17
|
-
});
|
18
|
-
exports.streamCollector = streamCollector;
|
1
|
+
module.exports = require("../index.js");
|
@@ -1,23 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ReadFromBuffers = void 0;
|
4
|
-
const stream_1 = require("stream");
|
5
|
-
class ReadFromBuffers extends stream_1.Readable {
|
6
|
-
constructor(options) {
|
7
|
-
super(options);
|
8
|
-
this.numBuffersRead = 0;
|
9
|
-
this.buffersToRead = options.buffers;
|
10
|
-
this.errorAfter = typeof options.errorAfter === "number" ? options.errorAfter : -1;
|
11
|
-
}
|
12
|
-
_read(size) {
|
13
|
-
if (this.errorAfter !== -1 && this.errorAfter === this.numBuffersRead) {
|
14
|
-
this.emit("error", new Error("Mock Error"));
|
15
|
-
return;
|
16
|
-
}
|
17
|
-
if (this.numBuffersRead >= this.buffersToRead.length) {
|
18
|
-
return this.push(null);
|
19
|
-
}
|
20
|
-
return this.push(this.buffersToRead[this.numBuffersRead++]);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
exports.ReadFromBuffers = ReadFromBuffers;
|
1
|
+
module.exports = require("../index.js");
|