@cdk8s/awscdk-resolver 0.0.51 → 0.0.53
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,8 +1,484 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
+
EndpointError: () => EndpointError,
|
24
|
+
customEndpointFunctions: () => customEndpointFunctions,
|
25
|
+
isIpAddress: () => isIpAddress,
|
26
|
+
isValidHostLabel: () => isValidHostLabel,
|
27
|
+
resolveEndpoint: () => resolveEndpoint
|
28
|
+
});
|
29
|
+
module.exports = __toCommonJS(src_exports);
|
30
|
+
|
31
|
+
// src/lib/isIpAddress.ts
|
32
|
+
var IP_V4_REGEX = new RegExp(
|
33
|
+
`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`
|
34
|
+
);
|
35
|
+
var isIpAddress = /* @__PURE__ */ __name((value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]"), "isIpAddress");
|
36
|
+
|
37
|
+
// src/lib/isValidHostLabel.ts
|
38
|
+
var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
|
39
|
+
var isValidHostLabel = /* @__PURE__ */ __name((value, allowSubDomains = false) => {
|
40
|
+
if (!allowSubDomains) {
|
41
|
+
return VALID_HOST_LABEL_REGEX.test(value);
|
42
|
+
}
|
43
|
+
const labels = value.split(".");
|
44
|
+
for (const label of labels) {
|
45
|
+
if (!isValidHostLabel(label)) {
|
46
|
+
return false;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
return true;
|
50
|
+
}, "isValidHostLabel");
|
51
|
+
|
52
|
+
// src/utils/customEndpointFunctions.ts
|
53
|
+
var customEndpointFunctions = {};
|
54
|
+
|
55
|
+
// src/debug/debugId.ts
|
56
|
+
var debugId = "endpoints";
|
57
|
+
|
58
|
+
// src/debug/toDebugString.ts
|
59
|
+
function toDebugString(input) {
|
60
|
+
if (typeof input !== "object" || input == null) {
|
61
|
+
return input;
|
62
|
+
}
|
63
|
+
if ("ref" in input) {
|
64
|
+
return `$${toDebugString(input.ref)}`;
|
65
|
+
}
|
66
|
+
if ("fn" in input) {
|
67
|
+
return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`;
|
68
|
+
}
|
69
|
+
return JSON.stringify(input, null, 2);
|
70
|
+
}
|
71
|
+
__name(toDebugString, "toDebugString");
|
72
|
+
|
73
|
+
// src/types/EndpointError.ts
|
74
|
+
var _EndpointError = class _EndpointError extends Error {
|
75
|
+
constructor(message) {
|
76
|
+
super(message);
|
77
|
+
this.name = "EndpointError";
|
78
|
+
}
|
79
|
+
};
|
80
|
+
__name(_EndpointError, "EndpointError");
|
81
|
+
var EndpointError = _EndpointError;
|
82
|
+
|
83
|
+
// src/lib/booleanEquals.ts
|
84
|
+
var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals");
|
85
|
+
|
86
|
+
// src/lib/getAttrPathList.ts
|
87
|
+
var getAttrPathList = /* @__PURE__ */ __name((path) => {
|
88
|
+
const parts = path.split(".");
|
89
|
+
const pathList = [];
|
90
|
+
for (const part of parts) {
|
91
|
+
const squareBracketIndex = part.indexOf("[");
|
92
|
+
if (squareBracketIndex !== -1) {
|
93
|
+
if (part.indexOf("]") !== part.length - 1) {
|
94
|
+
throw new EndpointError(`Path: '${path}' does not end with ']'`);
|
95
|
+
}
|
96
|
+
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
97
|
+
if (Number.isNaN(parseInt(arrayIndex))) {
|
98
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`);
|
99
|
+
}
|
100
|
+
if (squareBracketIndex !== 0) {
|
101
|
+
pathList.push(part.slice(0, squareBracketIndex));
|
102
|
+
}
|
103
|
+
pathList.push(arrayIndex);
|
104
|
+
} else {
|
105
|
+
pathList.push(part);
|
106
|
+
}
|
107
|
+
}
|
108
|
+
return pathList;
|
109
|
+
}, "getAttrPathList");
|
110
|
+
|
111
|
+
// src/lib/getAttr.ts
|
112
|
+
var getAttr = /* @__PURE__ */ __name((value, path) => getAttrPathList(path).reduce((acc, index) => {
|
113
|
+
if (typeof acc !== "object") {
|
114
|
+
throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
|
115
|
+
} else if (Array.isArray(acc)) {
|
116
|
+
return acc[parseInt(index)];
|
117
|
+
}
|
118
|
+
return acc[index];
|
119
|
+
}, value), "getAttr");
|
120
|
+
|
121
|
+
// src/lib/isSet.ts
|
122
|
+
var isSet = /* @__PURE__ */ __name((value) => value != null, "isSet");
|
123
|
+
|
124
|
+
// src/lib/not.ts
|
125
|
+
var not = /* @__PURE__ */ __name((value) => !value, "not");
|
126
|
+
|
127
|
+
// src/lib/parseURL.ts
|
128
|
+
var import_types3 = require("@smithy/types");
|
129
|
+
var DEFAULT_PORTS = {
|
130
|
+
[import_types3.EndpointURLScheme.HTTP]: 80,
|
131
|
+
[import_types3.EndpointURLScheme.HTTPS]: 443
|
132
|
+
};
|
133
|
+
var parseURL = /* @__PURE__ */ __name((value) => {
|
134
|
+
const whatwgURL = (() => {
|
135
|
+
try {
|
136
|
+
if (value instanceof URL) {
|
137
|
+
return value;
|
138
|
+
}
|
139
|
+
if (typeof value === "object" && "hostname" in value) {
|
140
|
+
const { hostname: hostname2, port, protocol: protocol2 = "", path = "", query = {} } = value;
|
141
|
+
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path}`);
|
142
|
+
url.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join("&");
|
143
|
+
return url;
|
144
|
+
}
|
145
|
+
return new URL(value);
|
146
|
+
} catch (error) {
|
147
|
+
return null;
|
148
|
+
}
|
149
|
+
})();
|
150
|
+
if (!whatwgURL) {
|
151
|
+
console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`);
|
152
|
+
return null;
|
153
|
+
}
|
154
|
+
const urlString = whatwgURL.href;
|
155
|
+
const { host, hostname, pathname, protocol, search } = whatwgURL;
|
156
|
+
if (search) {
|
157
|
+
return null;
|
158
|
+
}
|
159
|
+
const scheme = protocol.slice(0, -1);
|
160
|
+
if (!Object.values(import_types3.EndpointURLScheme).includes(scheme)) {
|
161
|
+
return null;
|
162
|
+
}
|
163
|
+
const isIp = isIpAddress(hostname);
|
164
|
+
const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
|
165
|
+
const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
|
166
|
+
return {
|
167
|
+
scheme,
|
168
|
+
authority,
|
169
|
+
path: pathname,
|
170
|
+
normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`,
|
171
|
+
isIp
|
172
|
+
};
|
173
|
+
}, "parseURL");
|
174
|
+
|
175
|
+
// src/lib/stringEquals.ts
|
176
|
+
var stringEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "stringEquals");
|
177
|
+
|
178
|
+
// src/lib/substring.ts
|
179
|
+
var substring = /* @__PURE__ */ __name((input, start, stop, reverse) => {
|
180
|
+
if (start >= stop || input.length < stop) {
|
181
|
+
return null;
|
182
|
+
}
|
183
|
+
if (!reverse) {
|
184
|
+
return input.substring(start, stop);
|
185
|
+
}
|
186
|
+
return input.substring(input.length - stop, input.length - start);
|
187
|
+
}, "substring");
|
188
|
+
|
189
|
+
// src/lib/uriEncode.ts
|
190
|
+
var uriEncode = /* @__PURE__ */ __name((value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`), "uriEncode");
|
191
|
+
|
192
|
+
// src/utils/endpointFunctions.ts
|
193
|
+
var endpointFunctions = {
|
194
|
+
booleanEquals,
|
195
|
+
getAttr,
|
196
|
+
isSet,
|
197
|
+
isValidHostLabel,
|
198
|
+
not,
|
199
|
+
parseURL,
|
200
|
+
stringEquals,
|
201
|
+
substring,
|
202
|
+
uriEncode
|
203
|
+
};
|
204
|
+
|
205
|
+
// src/utils/evaluateTemplate.ts
|
206
|
+
var evaluateTemplate = /* @__PURE__ */ __name((template, options) => {
|
207
|
+
const evaluatedTemplateArr = [];
|
208
|
+
const templateContext = {
|
209
|
+
...options.endpointParams,
|
210
|
+
...options.referenceRecord
|
211
|
+
};
|
212
|
+
let currentIndex = 0;
|
213
|
+
while (currentIndex < template.length) {
|
214
|
+
const openingBraceIndex = template.indexOf("{", currentIndex);
|
215
|
+
if (openingBraceIndex === -1) {
|
216
|
+
evaluatedTemplateArr.push(template.slice(currentIndex));
|
217
|
+
break;
|
218
|
+
}
|
219
|
+
evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex));
|
220
|
+
const closingBraceIndex = template.indexOf("}", openingBraceIndex);
|
221
|
+
if (closingBraceIndex === -1) {
|
222
|
+
evaluatedTemplateArr.push(template.slice(openingBraceIndex));
|
223
|
+
break;
|
224
|
+
}
|
225
|
+
if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") {
|
226
|
+
evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex));
|
227
|
+
currentIndex = closingBraceIndex + 2;
|
228
|
+
}
|
229
|
+
const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
|
230
|
+
if (parameterName.includes("#")) {
|
231
|
+
const [refName, attrName] = parameterName.split("#");
|
232
|
+
evaluatedTemplateArr.push(getAttr(templateContext[refName], attrName));
|
233
|
+
} else {
|
234
|
+
evaluatedTemplateArr.push(templateContext[parameterName]);
|
235
|
+
}
|
236
|
+
currentIndex = closingBraceIndex + 1;
|
237
|
+
}
|
238
|
+
return evaluatedTemplateArr.join("");
|
239
|
+
}, "evaluateTemplate");
|
240
|
+
|
241
|
+
// src/utils/getReferenceValue.ts
|
242
|
+
var getReferenceValue = /* @__PURE__ */ __name(({ ref }, options) => {
|
243
|
+
const referenceRecord = {
|
244
|
+
...options.endpointParams,
|
245
|
+
...options.referenceRecord
|
246
|
+
};
|
247
|
+
return referenceRecord[ref];
|
248
|
+
}, "getReferenceValue");
|
249
|
+
|
250
|
+
// src/utils/evaluateExpression.ts
|
251
|
+
var evaluateExpression = /* @__PURE__ */ __name((obj, keyName, options) => {
|
252
|
+
if (typeof obj === "string") {
|
253
|
+
return evaluateTemplate(obj, options);
|
254
|
+
} else if (obj["fn"]) {
|
255
|
+
return callFunction(obj, options);
|
256
|
+
} else if (obj["ref"]) {
|
257
|
+
return getReferenceValue(obj, options);
|
258
|
+
}
|
259
|
+
throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
|
260
|
+
}, "evaluateExpression");
|
261
|
+
|
262
|
+
// src/utils/callFunction.ts
|
263
|
+
var callFunction = /* @__PURE__ */ __name(({ fn, argv }, options) => {
|
264
|
+
const evaluatedArgs = argv.map(
|
265
|
+
(arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options)
|
266
|
+
);
|
267
|
+
const fnSegments = fn.split(".");
|
268
|
+
if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
|
269
|
+
return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
|
270
|
+
}
|
271
|
+
return endpointFunctions[fn](...evaluatedArgs);
|
272
|
+
}, "callFunction");
|
273
|
+
|
274
|
+
// src/utils/evaluateCondition.ts
|
275
|
+
var evaluateCondition = /* @__PURE__ */ __name(({ assign, ...fnArgs }, options) => {
|
276
|
+
var _a, _b;
|
277
|
+
if (assign && assign in options.referenceRecord) {
|
278
|
+
throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
|
279
|
+
}
|
280
|
+
const value = callFunction(fnArgs, options);
|
281
|
+
(_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, debugId, `evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
|
282
|
+
return {
|
283
|
+
result: value === "" ? true : !!value,
|
284
|
+
...assign != null && { toAssign: { name: assign, value } }
|
285
|
+
};
|
286
|
+
}, "evaluateCondition");
|
287
|
+
|
288
|
+
// src/utils/evaluateConditions.ts
|
289
|
+
var evaluateConditions = /* @__PURE__ */ __name((conditions = [], options) => {
|
290
|
+
var _a, _b;
|
291
|
+
const conditionsReferenceRecord = {};
|
292
|
+
for (const condition of conditions) {
|
293
|
+
const { result, toAssign } = evaluateCondition(condition, {
|
294
|
+
...options,
|
295
|
+
referenceRecord: {
|
296
|
+
...options.referenceRecord,
|
297
|
+
...conditionsReferenceRecord
|
298
|
+
}
|
299
|
+
});
|
300
|
+
if (!result) {
|
301
|
+
return { result };
|
302
|
+
}
|
303
|
+
if (toAssign) {
|
304
|
+
conditionsReferenceRecord[toAssign.name] = toAssign.value;
|
305
|
+
(_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, debugId, `assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);
|
306
|
+
}
|
307
|
+
}
|
308
|
+
return { result: true, referenceRecord: conditionsReferenceRecord };
|
309
|
+
}, "evaluateConditions");
|
310
|
+
|
311
|
+
// src/utils/getEndpointHeaders.ts
|
312
|
+
var getEndpointHeaders = /* @__PURE__ */ __name((headers, options) => Object.entries(headers).reduce(
|
313
|
+
(acc, [headerKey, headerVal]) => ({
|
314
|
+
...acc,
|
315
|
+
[headerKey]: headerVal.map((headerValEntry) => {
|
316
|
+
const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
|
317
|
+
if (typeof processedExpr !== "string") {
|
318
|
+
throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
|
319
|
+
}
|
320
|
+
return processedExpr;
|
321
|
+
})
|
322
|
+
}),
|
323
|
+
{}
|
324
|
+
), "getEndpointHeaders");
|
325
|
+
|
326
|
+
// src/utils/getEndpointProperty.ts
|
327
|
+
var getEndpointProperty = /* @__PURE__ */ __name((property, options) => {
|
328
|
+
if (Array.isArray(property)) {
|
329
|
+
return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
|
330
|
+
}
|
331
|
+
switch (typeof property) {
|
332
|
+
case "string":
|
333
|
+
return evaluateTemplate(property, options);
|
334
|
+
case "object":
|
335
|
+
if (property === null) {
|
336
|
+
throw new EndpointError(`Unexpected endpoint property: ${property}`);
|
337
|
+
}
|
338
|
+
return getEndpointProperties(property, options);
|
339
|
+
case "boolean":
|
340
|
+
return property;
|
341
|
+
default:
|
342
|
+
throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`);
|
343
|
+
}
|
344
|
+
}, "getEndpointProperty");
|
345
|
+
|
346
|
+
// src/utils/getEndpointProperties.ts
|
347
|
+
var getEndpointProperties = /* @__PURE__ */ __name((properties, options) => Object.entries(properties).reduce(
|
348
|
+
(acc, [propertyKey, propertyVal]) => ({
|
349
|
+
...acc,
|
350
|
+
[propertyKey]: getEndpointProperty(propertyVal, options)
|
351
|
+
}),
|
352
|
+
{}
|
353
|
+
), "getEndpointProperties");
|
354
|
+
|
355
|
+
// src/utils/getEndpointUrl.ts
|
356
|
+
var getEndpointUrl = /* @__PURE__ */ __name((endpointUrl, options) => {
|
357
|
+
const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
|
358
|
+
if (typeof expression === "string") {
|
359
|
+
try {
|
360
|
+
return new URL(expression);
|
361
|
+
} catch (error) {
|
362
|
+
console.error(`Failed to construct URL with ${expression}`, error);
|
363
|
+
throw error;
|
364
|
+
}
|
365
|
+
}
|
366
|
+
throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
|
367
|
+
}, "getEndpointUrl");
|
368
|
+
|
369
|
+
// src/utils/evaluateEndpointRule.ts
|
370
|
+
var evaluateEndpointRule = /* @__PURE__ */ __name((endpointRule, options) => {
|
371
|
+
var _a, _b;
|
372
|
+
const { conditions, endpoint } = endpointRule;
|
373
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
374
|
+
if (!result) {
|
375
|
+
return;
|
376
|
+
}
|
377
|
+
const endpointRuleOptions = {
|
378
|
+
...options,
|
379
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
380
|
+
};
|
381
|
+
const { url, properties, headers } = endpoint;
|
382
|
+
(_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, debugId, `Resolving endpoint from template: ${toDebugString(endpoint)}`);
|
383
|
+
return {
|
384
|
+
...headers != void 0 && {
|
385
|
+
headers: getEndpointHeaders(headers, endpointRuleOptions)
|
386
|
+
},
|
387
|
+
...properties != void 0 && {
|
388
|
+
properties: getEndpointProperties(properties, endpointRuleOptions)
|
389
|
+
},
|
390
|
+
url: getEndpointUrl(url, endpointRuleOptions)
|
391
|
+
};
|
392
|
+
}, "evaluateEndpointRule");
|
393
|
+
|
394
|
+
// src/utils/evaluateErrorRule.ts
|
395
|
+
var evaluateErrorRule = /* @__PURE__ */ __name((errorRule, options) => {
|
396
|
+
const { conditions, error } = errorRule;
|
397
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
398
|
+
if (!result) {
|
399
|
+
return;
|
400
|
+
}
|
401
|
+
throw new EndpointError(
|
402
|
+
evaluateExpression(error, "Error", {
|
403
|
+
...options,
|
404
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
405
|
+
})
|
406
|
+
);
|
407
|
+
}, "evaluateErrorRule");
|
408
|
+
|
409
|
+
// src/utils/evaluateTreeRule.ts
|
410
|
+
var evaluateTreeRule = /* @__PURE__ */ __name((treeRule, options) => {
|
411
|
+
const { conditions, rules } = treeRule;
|
412
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
413
|
+
if (!result) {
|
414
|
+
return;
|
415
|
+
}
|
416
|
+
return evaluateRules(rules, {
|
417
|
+
...options,
|
418
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
419
|
+
});
|
420
|
+
}, "evaluateTreeRule");
|
421
|
+
|
422
|
+
// src/utils/evaluateRules.ts
|
423
|
+
var evaluateRules = /* @__PURE__ */ __name((rules, options) => {
|
424
|
+
for (const rule of rules) {
|
425
|
+
if (rule.type === "endpoint") {
|
426
|
+
const endpointOrUndefined = evaluateEndpointRule(rule, options);
|
427
|
+
if (endpointOrUndefined) {
|
428
|
+
return endpointOrUndefined;
|
429
|
+
}
|
430
|
+
} else if (rule.type === "error") {
|
431
|
+
evaluateErrorRule(rule, options);
|
432
|
+
} else if (rule.type === "tree") {
|
433
|
+
const endpointOrUndefined = evaluateTreeRule(rule, options);
|
434
|
+
if (endpointOrUndefined) {
|
435
|
+
return endpointOrUndefined;
|
436
|
+
}
|
437
|
+
} else {
|
438
|
+
throw new EndpointError(`Unknown endpoint rule: ${rule}`);
|
439
|
+
}
|
440
|
+
}
|
441
|
+
throw new EndpointError(`Rules evaluation failed`);
|
442
|
+
}, "evaluateRules");
|
443
|
+
|
444
|
+
// src/resolveEndpoint.ts
|
445
|
+
var resolveEndpoint = /* @__PURE__ */ __name((ruleSetObject, options) => {
|
446
|
+
var _a, _b, _c, _d, _e;
|
447
|
+
const { endpointParams, logger } = options;
|
448
|
+
const { parameters, rules } = ruleSetObject;
|
449
|
+
(_b = (_a = options.logger) == null ? void 0 : _a.debug) == null ? void 0 : _b.call(_a, `${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
450
|
+
const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]);
|
451
|
+
if (paramsWithDefault.length > 0) {
|
452
|
+
for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
|
453
|
+
endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
|
454
|
+
}
|
455
|
+
}
|
456
|
+
const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k);
|
457
|
+
for (const requiredParam of requiredParams) {
|
458
|
+
if (endpointParams[requiredParam] == null) {
|
459
|
+
throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
|
460
|
+
}
|
461
|
+
}
|
462
|
+
const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
|
463
|
+
if ((_c = options.endpointParams) == null ? void 0 : _c.Endpoint) {
|
464
|
+
try {
|
465
|
+
const givenEndpoint = new URL(options.endpointParams.Endpoint);
|
466
|
+
const { protocol, port } = givenEndpoint;
|
467
|
+
endpoint.url.protocol = protocol;
|
468
|
+
endpoint.url.port = port;
|
469
|
+
} catch (e) {
|
470
|
+
}
|
471
|
+
}
|
472
|
+
(_e = (_d = options.logger) == null ? void 0 : _d.debug) == null ? void 0 : _e.call(_d, `${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
|
473
|
+
return endpoint;
|
474
|
+
}, "resolveEndpoint");
|
475
|
+
// Annotate the CommonJS export names for ESM import in node:
|
476
|
+
|
477
|
+
0 && (module.exports = {
|
478
|
+
EndpointError,
|
479
|
+
customEndpointFunctions,
|
480
|
+
isIpAddress,
|
481
|
+
isValidHostLabel,
|
482
|
+
resolveEndpoint
|
483
|
+
});
|
484
|
+
|
@@ -1,15 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getAttr = void 0;
|
4
|
-
const types_1 = require("../types");
|
5
|
-
const getAttrPathList_1 = require("./getAttrPathList");
|
6
|
-
const getAttr = (value, path) => (0, getAttrPathList_1.getAttrPathList)(path).reduce((acc, index) => {
|
7
|
-
if (typeof acc !== "object") {
|
8
|
-
throw new types_1.EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
|
9
|
-
}
|
10
|
-
else if (Array.isArray(acc)) {
|
11
|
-
return acc[parseInt(index)];
|
12
|
-
}
|
13
|
-
return acc[index];
|
14
|
-
}, value);
|
15
|
-
exports.getAttr = getAttr;
|
1
|
+
module.exports = require("../index.js");
|
@@ -1,29 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getAttrPathList = void 0;
|
4
|
-
const types_1 = require("../types");
|
5
|
-
const getAttrPathList = (path) => {
|
6
|
-
const parts = path.split(".");
|
7
|
-
const pathList = [];
|
8
|
-
for (const part of parts) {
|
9
|
-
const squareBracketIndex = part.indexOf("[");
|
10
|
-
if (squareBracketIndex !== -1) {
|
11
|
-
if (part.indexOf("]") !== part.length - 1) {
|
12
|
-
throw new types_1.EndpointError(`Path: '${path}' does not end with ']'`);
|
13
|
-
}
|
14
|
-
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
15
|
-
if (Number.isNaN(parseInt(arrayIndex))) {
|
16
|
-
throw new types_1.EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`);
|
17
|
-
}
|
18
|
-
if (squareBracketIndex !== 0) {
|
19
|
-
pathList.push(part.slice(0, squareBracketIndex));
|
20
|
-
}
|
21
|
-
pathList.push(arrayIndex);
|
22
|
-
}
|
23
|
-
else {
|
24
|
-
pathList.push(part);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
return pathList;
|
28
|
-
};
|
29
|
-
exports.getAttrPathList = getAttrPathList;
|
1
|
+
module.exports = require("../index.js");
|
@@ -1,12 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./booleanEquals"), exports);
|
5
|
-
tslib_1.__exportStar(require("./getAttr"), exports);
|
6
|
-
tslib_1.__exportStar(require("./isSet"), exports);
|
7
|
-
tslib_1.__exportStar(require("./isValidHostLabel"), exports);
|
8
|
-
tslib_1.__exportStar(require("./not"), exports);
|
9
|
-
tslib_1.__exportStar(require("./parseURL"), exports);
|
10
|
-
tslib_1.__exportStar(require("./stringEquals"), exports);
|
11
|
-
tslib_1.__exportStar(require("./substring"), exports);
|
12
|
-
tslib_1.__exportStar(require("./uriEncode"), exports);
|
1
|
+
module.exports = require("../index.js");
|
@@ -1,6 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isIpAddress = void 0;
|
4
|
-
const IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
|
5
|
-
const isIpAddress = (value) => IP_V4_REGEX.test(value) || (value.startsWith("[") && value.endsWith("]"));
|
6
|
-
exports.isIpAddress = isIpAddress;
|
1
|
+
module.exports = require("../index.js");
|
@@ -1,17 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isValidHostLabel = void 0;
|
4
|
-
const VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
|
5
|
-
const isValidHostLabel = (value, allowSubDomains = false) => {
|
6
|
-
if (!allowSubDomains) {
|
7
|
-
return VALID_HOST_LABEL_REGEX.test(value);
|
8
|
-
}
|
9
|
-
const labels = value.split(".");
|
10
|
-
for (const label of labels) {
|
11
|
-
if (!(0, exports.isValidHostLabel)(label)) {
|
12
|
-
return false;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
return true;
|
16
|
-
};
|
17
|
-
exports.isValidHostLabel = isValidHostLabel;
|
1
|
+
module.exports = require("../index.js");
|
@@ -1,55 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.parseURL = void 0;
|
4
|
-
const types_1 = require("@smithy/types");
|
5
|
-
const isIpAddress_1 = require("./isIpAddress");
|
6
|
-
const DEFAULT_PORTS = {
|
7
|
-
[types_1.EndpointURLScheme.HTTP]: 80,
|
8
|
-
[types_1.EndpointURLScheme.HTTPS]: 443,
|
9
|
-
};
|
10
|
-
const parseURL = (value) => {
|
11
|
-
const whatwgURL = (() => {
|
12
|
-
try {
|
13
|
-
if (value instanceof URL) {
|
14
|
-
return value;
|
15
|
-
}
|
16
|
-
if (typeof value === "object" && "hostname" in value) {
|
17
|
-
const { hostname, port, protocol = "", path = "", query = {} } = value;
|
18
|
-
const url = new URL(`${protocol}//${hostname}${port ? `:${port}` : ""}${path}`);
|
19
|
-
url.search = Object.entries(query)
|
20
|
-
.map(([k, v]) => `${k}=${v}`)
|
21
|
-
.join("&");
|
22
|
-
return url;
|
23
|
-
}
|
24
|
-
return new URL(value);
|
25
|
-
}
|
26
|
-
catch (error) {
|
27
|
-
return null;
|
28
|
-
}
|
29
|
-
})();
|
30
|
-
if (!whatwgURL) {
|
31
|
-
console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`);
|
32
|
-
return null;
|
33
|
-
}
|
34
|
-
const urlString = whatwgURL.href;
|
35
|
-
const { host, hostname, pathname, protocol, search } = whatwgURL;
|
36
|
-
if (search) {
|
37
|
-
return null;
|
38
|
-
}
|
39
|
-
const scheme = protocol.slice(0, -1);
|
40
|
-
if (!Object.values(types_1.EndpointURLScheme).includes(scheme)) {
|
41
|
-
return null;
|
42
|
-
}
|
43
|
-
const isIp = (0, isIpAddress_1.isIpAddress)(hostname);
|
44
|
-
const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) ||
|
45
|
-
(typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`));
|
46
|
-
const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
|
47
|
-
return {
|
48
|
-
scheme,
|
49
|
-
authority,
|
50
|
-
path: pathname,
|
51
|
-
normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`,
|
52
|
-
isIp,
|
53
|
-
};
|
54
|
-
};
|
55
|
-
exports.parseURL = parseURL;
|
1
|
+
module.exports = require("../index.js");
|