cdk-preflight 1.11.1 → 1.12.1
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 +4 -4
- package/README.md +34 -0
- package/lib/cli.js +118 -4
- package/lib/index.js +1 -1
- package/llms.txt +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
- package/node_modules/@aws-sdk/client-ec2/README.md +28 -0
- package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +499 -113
- package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +10 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetCapacityManagerSupportabilityScoresCommand.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetImageFindingsCommand.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetTransitGatewayAttachmentNatConfigurationCommand.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ModifyTransitGatewayAttachmentNatConfigurationCommand.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +80 -29
- package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/GetImageFindingsPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/pagination/index.js +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +365 -83
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +35 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +8 -3
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +82 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCarrierGatewayCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateTransitGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteLaunchTemplateCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTransitGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteTransitGatewayRouteTableCommand.d.ts +5 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +81 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFleetHistoryCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeImagesCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeInstanceStatusCommand.d.ts +5 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeNetworkInsightsAnalysesCommand.d.ts +48 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeTransitGatewayAttachmentsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetAllowedImagesSettingsCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDataCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerMetricDimensionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetCapacityManagerSupportabilityScoresCommand.d.ts +183 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetImageFindingsCommand.d.ts +90 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +19 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetTransitGatewayAttachmentNatConfigurationCommand.d.ts +82 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVerifiedAccessEndpointTargetsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVerifiedAccessGroupPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpcResourcesBlockingEncryptionEnforcementCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnConnectionDeviceTypesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnTunnelReplacementStatusCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyTransitGatewayAttachmentNatConfigurationCommand.d.ts +107 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReleaseAddressCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReleaseHostsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceImageCriteriaInAllowedImagesSettingsCommand.d.ts +9 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceTransitGatewayRouteCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/SearchTransitGatewayRoutesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/StartNetworkInsightsAnalysisCommand.d.ts +48 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +192 -77
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +165 -291
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +1839 -1665
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +25 -12
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +27 -38
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +241 -242
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +247 -57
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +537 -341
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +389 -246
- package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_8.d.ts +360 -3
- package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/GetImageFindingsPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/pagination/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +75 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +24 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateCapacityReservationFleetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/CreateCarrierGatewayCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteLaunchTemplateCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeFleetHistoryCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeReservedInstancesModificationsCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeReservedInstancesOfferingsCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetCapacityManagerSupportabilityScoresCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetImageFindingsCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetTransitGatewayAttachmentNatConfigurationCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVerifiedAccessEndpointTargetsCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVerifiedAccessGroupPolicyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpcResourcesBlockingEncryptionEnforcementCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnConnectionDeviceTypesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnTunnelReplacementStatusCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyTransitGatewayAttachmentNatConfigurationCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReleaseAddressCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReleaseHostsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +99 -35
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +27 -60
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +118 -69
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +6 -6
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +10 -9
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +31 -34
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +37 -14
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +89 -68
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +86 -64
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_8.d.ts +76 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/GetImageFindingsPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/node_modules/@aws-sdk/client-ec2/package.json +8 -8
- package/node_modules/@aws-sdk/client-lambda/README.md +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +9 -3
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +3 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +3 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +12 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +21 -16
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +7 -7
- package/node_modules/@aws-sdk/client-service-quotas/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-service-quotas/dist-types/ServiceQuotasClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-service-quotas/package.json +6 -6
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sts/package.json +8 -8
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +7 -7
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +104 -1549
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/getDefaultSocketTimeout.js +10 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/getDefaultSocketTimeout.d.ts +11 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.native.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +3 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +3 -8
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +25 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/getDefaultSocketTimeout.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +11 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +36 -0
- package/node_modules/@aws-sdk/core/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +10 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -59
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +16 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +8 -39
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +36 -48
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSOClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
- package/node_modules/@aws-sdk/token-providers/package.json +5 -5
- package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +3 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +3 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +45 -53
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +52 -19
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +28 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +28 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +91 -58
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +53 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +57 -17
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +12 -37
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +17 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +12 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +8 -31
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -8
- package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +17 -8
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/race.js +22 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
- package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/race.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/race.d.ts +3 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +84 -29
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +23 -11
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +26 -2
- package/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +30 -15
- package/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +10 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +10 -1
- package/node_modules/@smithy/node-http-handler/package.json +3 -3
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/node_modules/@smithy/types/dist-types/middleware.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +6 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/package.json +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -20
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +0 -160
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +0 -193
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -103
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -20
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +0 -200
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +0 -519
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -18
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -46
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -121
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +0 -41
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +0 -89
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -14
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -29
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -51
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -30
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -60
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -21
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -11
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +0 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +0 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
- /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
- /package/node_modules/@smithy/core/dist-types/submodules/{protocols → serde}/writeKey.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/ts3.4/submodules/{protocols → serde}/writeKey.d.ts +0 -0
|
@@ -2,6 +2,7 @@ const { Readable } = require("node:stream");
|
|
|
2
2
|
const { NoOpLogger, normalizeProvider } = require("@smithy/core/client");
|
|
3
3
|
const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
|
|
4
4
|
const { parseRfc7231DateTime, v4 } = require("@smithy/core/serde");
|
|
5
|
+
const { SMITHY_CONTEXT_KEY } = require("@smithy/types");
|
|
5
6
|
const { hasOwn } = require("@smithy/core/transport");
|
|
6
7
|
|
|
7
8
|
const isStreamingPayload = (request) => request?.body instanceof Readable ||
|
|
@@ -82,6 +83,29 @@ function isNodeJsHttp2TransientError(error) {
|
|
|
82
83
|
return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM");
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
const race = (promise, signal) => {
|
|
87
|
+
if (!signal) {
|
|
88
|
+
return promise;
|
|
89
|
+
}
|
|
90
|
+
let cleanup = () => { };
|
|
91
|
+
const aborted = new Promise((_, reject) => {
|
|
92
|
+
const handler = () => reject(createAbortError());
|
|
93
|
+
if (signal.aborted) {
|
|
94
|
+
handler();
|
|
95
|
+
}
|
|
96
|
+
else if (typeof signal.addEventListener === "function") {
|
|
97
|
+
signal.addEventListener("abort", handler, { once: true });
|
|
98
|
+
cleanup = () => signal.removeEventListener("abort", handler);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
signal.onabort = handler;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
return Promise.race([promise, aborted]).finally(cleanup);
|
|
105
|
+
};
|
|
106
|
+
const createAbortError = () => Object.assign(new Error("Request aborted"), { name: "AbortError" });
|
|
107
|
+
const isAbortError = (error) => typeof error === "object" && error !== null && "name" in error && error.name === "AbortError";
|
|
108
|
+
|
|
85
109
|
const DEFAULT_RETRY_DELAY_BASE = 100;
|
|
86
110
|
const MAXIMUM_RETRY_DELAY = 20 * 1000;
|
|
87
111
|
const THROTTLING_RETRY_DELAY_BASE = 500;
|
|
@@ -97,8 +121,9 @@ function parseRetryAfterHeader(response, logger) {
|
|
|
97
121
|
return;
|
|
98
122
|
}
|
|
99
123
|
for (const header in response.headers) {
|
|
100
|
-
if (!hasOwn(response.headers, header))
|
|
124
|
+
if (!hasOwn(response.headers, header)) {
|
|
101
125
|
continue;
|
|
126
|
+
}
|
|
102
127
|
const h = header.toLowerCase();
|
|
103
128
|
if (h === "retry-after") {
|
|
104
129
|
const retryAfter = response.headers[header];
|
|
@@ -143,12 +168,15 @@ function getRetryAfterHint(response, logger) {
|
|
|
143
168
|
}
|
|
144
169
|
|
|
145
170
|
const asSdkError = (error) => {
|
|
146
|
-
if (error instanceof Error)
|
|
171
|
+
if (error instanceof Error) {
|
|
147
172
|
return error;
|
|
148
|
-
|
|
173
|
+
}
|
|
174
|
+
if (error instanceof Object) {
|
|
149
175
|
return Object.assign(new Error(), error);
|
|
150
|
-
|
|
176
|
+
}
|
|
177
|
+
if (typeof error === "string") {
|
|
151
178
|
return new Error(error);
|
|
179
|
+
}
|
|
152
180
|
return new Error(`AWS SDK error wrapper for ${error}`);
|
|
153
181
|
};
|
|
154
182
|
|
|
@@ -156,9 +184,11 @@ function bindRetryMiddleware(isStreamingPayload) {
|
|
|
156
184
|
return (options) => (next, context) => async (args) => {
|
|
157
185
|
let retryStrategy = await options.retryStrategy();
|
|
158
186
|
const maxAttempts = await options.maxAttempts();
|
|
187
|
+
const abortSignal = context[SMITHY_CONTEXT_KEY]?.abortSignal;
|
|
159
188
|
if (isRetryStrategyV2(retryStrategy)) {
|
|
160
189
|
retryStrategy = retryStrategy;
|
|
161
|
-
|
|
190
|
+
const retryTokenScope = (context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : "");
|
|
191
|
+
let retryToken = await race(retryStrategy.acquireInitialRetryToken(retryTokenScope), abortSignal);
|
|
162
192
|
let lastError = new Error();
|
|
163
193
|
let attempts = 0;
|
|
164
194
|
let totalRetryDelay = 0;
|
|
@@ -186,9 +216,12 @@ function bindRetryMiddleware(isStreamingPayload) {
|
|
|
186
216
|
throw lastError;
|
|
187
217
|
}
|
|
188
218
|
try {
|
|
189
|
-
retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
|
|
219
|
+
retryToken = await race(retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo), abortSignal);
|
|
190
220
|
}
|
|
191
|
-
catch (
|
|
221
|
+
catch (refreshError) {
|
|
222
|
+
if (abortSignal?.aborted && isAbortError(refreshError)) {
|
|
223
|
+
throw refreshError;
|
|
224
|
+
}
|
|
192
225
|
if (!lastError.$metadata) {
|
|
193
226
|
lastError.$metadata = {};
|
|
194
227
|
}
|
|
@@ -200,7 +233,7 @@ function bindRetryMiddleware(isStreamingPayload) {
|
|
|
200
233
|
const delay = retryToken.getRetryDelay();
|
|
201
234
|
totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay;
|
|
202
235
|
if (delay > 0) {
|
|
203
|
-
await
|
|
236
|
+
await race(new Promise((resolve) => setTimeout(resolve, delay)), abortSignal);
|
|
204
237
|
}
|
|
205
238
|
}
|
|
206
239
|
}
|
|
@@ -214,7 +247,6 @@ function bindRetryMiddleware(isStreamingPayload) {
|
|
|
214
247
|
}
|
|
215
248
|
};
|
|
216
249
|
}
|
|
217
|
-
const cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
218
250
|
const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" &&
|
|
219
251
|
typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" &&
|
|
220
252
|
typeof retryStrategy.recordSuccess !== "undefined";
|
|
@@ -230,12 +262,15 @@ const getRetryErrorInfo = (error, logger) => {
|
|
|
230
262
|
return errorInfo;
|
|
231
263
|
};
|
|
232
264
|
const getRetryErrorType = (error) => {
|
|
233
|
-
if (isThrottlingError(error))
|
|
265
|
+
if (isThrottlingError(error)) {
|
|
234
266
|
return "THROTTLING";
|
|
235
|
-
|
|
267
|
+
}
|
|
268
|
+
if (isTransientError(error)) {
|
|
236
269
|
return "TRANSIENT";
|
|
237
|
-
|
|
270
|
+
}
|
|
271
|
+
if (isServerError(error)) {
|
|
238
272
|
return "SERVER_ERROR";
|
|
273
|
+
}
|
|
239
274
|
return "CLIENT_ERROR";
|
|
240
275
|
};
|
|
241
276
|
const retryMiddlewareOptions = {
|
|
@@ -687,15 +722,18 @@ class StandardRetryStrategy {
|
|
|
687
722
|
}
|
|
688
723
|
}
|
|
689
724
|
const getDelayFromRetryAfterHeader = (response) => {
|
|
690
|
-
if (!HttpResponse.isInstance(response))
|
|
725
|
+
if (!HttpResponse.isInstance(response)) {
|
|
691
726
|
return;
|
|
727
|
+
}
|
|
692
728
|
const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
|
|
693
|
-
if (!retryAfterHeaderName)
|
|
729
|
+
if (!retryAfterHeaderName) {
|
|
694
730
|
return;
|
|
731
|
+
}
|
|
695
732
|
const retryAfter = response.headers[retryAfterHeaderName];
|
|
696
733
|
const retryAfterSeconds = Number(retryAfter);
|
|
697
|
-
if (!Number.isNaN(retryAfterSeconds))
|
|
734
|
+
if (!Number.isNaN(retryAfterSeconds)) {
|
|
698
735
|
return Math.min(retryAfterSeconds * 1000, 20_000);
|
|
736
|
+
}
|
|
699
737
|
const retryAfterDate = new Date(retryAfter);
|
|
700
738
|
return Math.min(retryAfterDate.getTime() - Date.now(), 20_000);
|
|
701
739
|
};
|
|
@@ -725,8 +763,9 @@ const CONFIG_MAX_ATTEMPTS = "max_attempts";
|
|
|
725
763
|
const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
|
726
764
|
environmentVariableSelector: (env) => {
|
|
727
765
|
const value = env[ENV_MAX_ATTEMPTS];
|
|
728
|
-
if (!value)
|
|
766
|
+
if (!value) {
|
|
729
767
|
return undefined;
|
|
768
|
+
}
|
|
730
769
|
const maxAttempt = parseInt(value);
|
|
731
770
|
if (Number.isNaN(maxAttempt)) {
|
|
732
771
|
throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`);
|
|
@@ -735,8 +774,9 @@ const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
|
|
735
774
|
},
|
|
736
775
|
configFileSelector: (profile) => {
|
|
737
776
|
const value = profile[CONFIG_MAX_ATTEMPTS];
|
|
738
|
-
if (!value)
|
|
777
|
+
if (!value) {
|
|
739
778
|
return undefined;
|
|
779
|
+
}
|
|
740
780
|
const maxAttempt = parseInt(value);
|
|
741
781
|
if (Number.isNaN(maxAttempt)) {
|
|
742
782
|
throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`);
|
|
@@ -292,8 +292,9 @@ const expectUnion = (value) => {
|
|
|
292
292
|
const asObject = expectObject(value);
|
|
293
293
|
const setKeys = [];
|
|
294
294
|
for (const k in asObject) {
|
|
295
|
-
if (!hasOwn(asObject, k))
|
|
295
|
+
if (!hasOwn(asObject, k)) {
|
|
296
296
|
continue;
|
|
297
|
+
}
|
|
297
298
|
if (asObject[k] != null) {
|
|
298
299
|
setKeys.push(k);
|
|
299
300
|
}
|
|
@@ -847,12 +848,15 @@ const calculateBodyLength = (body) => {
|
|
|
847
848
|
let len = body.length;
|
|
848
849
|
for (let i = len - 1; i >= 0; i--) {
|
|
849
850
|
const code = body.charCodeAt(i);
|
|
850
|
-
if (code > 0x7f && code <= 0x7ff)
|
|
851
|
+
if (code > 0x7f && code <= 0x7ff) {
|
|
851
852
|
len++;
|
|
852
|
-
|
|
853
|
+
}
|
|
854
|
+
else if (code > 0x7ff && code <= 0xffff) {
|
|
853
855
|
len += 2;
|
|
854
|
-
|
|
856
|
+
}
|
|
857
|
+
if (code >= 0xdc00 && code <= 0xdfff) {
|
|
855
858
|
i--;
|
|
859
|
+
}
|
|
856
860
|
}
|
|
857
861
|
return len;
|
|
858
862
|
}
|
|
@@ -1318,6 +1322,10 @@ async function splitStream(stream) {
|
|
|
1318
1322
|
return readableStream.tee();
|
|
1319
1323
|
}
|
|
1320
1324
|
|
|
1325
|
+
function writeKey(obj) {
|
|
1326
|
+
Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1321
1329
|
const no = Symbol.for("node-only");
|
|
1322
1330
|
const fromArrayBuffer = no;
|
|
1323
1331
|
const fromString = no;
|
|
@@ -1400,3 +1408,4 @@ exports.toHex = toHex;
|
|
|
1400
1408
|
exports.toUint8Array = toUint8Array;
|
|
1401
1409
|
exports.toUtf8 = toUtf8;
|
|
1402
1410
|
exports.v4 = v4;
|
|
1411
|
+
exports.writeKey = writeKey;
|
|
@@ -260,8 +260,9 @@ const expectUnion = (value) => {
|
|
|
260
260
|
const asObject = expectObject(value);
|
|
261
261
|
const setKeys = [];
|
|
262
262
|
for (const k in asObject) {
|
|
263
|
-
if (!hasOwn(asObject, k))
|
|
263
|
+
if (!hasOwn(asObject, k)) {
|
|
264
264
|
continue;
|
|
265
|
+
}
|
|
265
266
|
if (asObject[k] != null) {
|
|
266
267
|
setKeys.push(k);
|
|
267
268
|
}
|
|
@@ -1685,6 +1686,10 @@ async function splitStream(stream) {
|
|
|
1685
1686
|
return [stream1, stream2];
|
|
1686
1687
|
}
|
|
1687
1688
|
|
|
1689
|
+
function writeKey(obj) {
|
|
1690
|
+
Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1688
1693
|
class Uint8ArrayBlobAdapter extends bindUint8ArrayBlobAdapter(toUtf8$1, fromUtf8$1, toBase64$1, fromBase64) {
|
|
1689
1694
|
}
|
|
1690
1695
|
const _getRandomValues = getRandomValues;
|
|
@@ -1763,3 +1768,4 @@ exports.toHex = toHex;
|
|
|
1763
1768
|
exports.toUint8Array = toUint8Array;
|
|
1764
1769
|
exports.toUtf8 = toUtf8$1;
|
|
1765
1770
|
exports.v4 = v4;
|
|
1771
|
+
exports.writeKey = writeKey;
|
|
@@ -292,8 +292,9 @@ const expectUnion = (value) => {
|
|
|
292
292
|
const asObject = expectObject(value);
|
|
293
293
|
const setKeys = [];
|
|
294
294
|
for (const k in asObject) {
|
|
295
|
-
if (!hasOwn(asObject, k))
|
|
295
|
+
if (!hasOwn(asObject, k)) {
|
|
296
296
|
continue;
|
|
297
|
+
}
|
|
297
298
|
if (asObject[k] != null) {
|
|
298
299
|
setKeys.push(k);
|
|
299
300
|
}
|
|
@@ -847,12 +848,15 @@ const calculateBodyLength = (body) => {
|
|
|
847
848
|
let len = body.length;
|
|
848
849
|
for (let i = len - 1; i >= 0; i--) {
|
|
849
850
|
const code = body.charCodeAt(i);
|
|
850
|
-
if (code > 0x7f && code <= 0x7ff)
|
|
851
|
+
if (code > 0x7f && code <= 0x7ff) {
|
|
851
852
|
len++;
|
|
852
|
-
|
|
853
|
+
}
|
|
854
|
+
else if (code > 0x7ff && code <= 0xffff) {
|
|
853
855
|
len += 2;
|
|
854
|
-
|
|
856
|
+
}
|
|
857
|
+
if (code >= 0xdc00 && code <= 0xdfff) {
|
|
855
858
|
i--;
|
|
859
|
+
}
|
|
856
860
|
}
|
|
857
861
|
return len;
|
|
858
862
|
}
|
|
@@ -1318,6 +1322,10 @@ async function splitStream(stream) {
|
|
|
1318
1322
|
return readableStream.tee();
|
|
1319
1323
|
}
|
|
1320
1324
|
|
|
1325
|
+
function writeKey(obj) {
|
|
1326
|
+
Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1321
1329
|
const no = Symbol.for("node-only");
|
|
1322
1330
|
const fromArrayBuffer = no;
|
|
1323
1331
|
const fromString = no;
|
|
@@ -1400,3 +1408,4 @@ exports.toHex = toHex;
|
|
|
1400
1408
|
exports.toUint8Array = toUint8Array;
|
|
1401
1409
|
exports.toUtf8 = toUtf8;
|
|
1402
1410
|
exports.v4 = v4;
|
|
1411
|
+
exports.writeKey = writeKey;
|
|
@@ -83,8 +83,9 @@ class HttpResponse {
|
|
|
83
83
|
this.body = options.body;
|
|
84
84
|
}
|
|
85
85
|
static isInstance(response) {
|
|
86
|
-
if (!response)
|
|
86
|
+
if (!response) {
|
|
87
87
|
return false;
|
|
88
|
+
}
|
|
88
89
|
const resp = response;
|
|
89
90
|
return typeof resp.statusCode === "number" && typeof resp.headers === "object";
|
|
90
91
|
}
|
|
@@ -110,8 +111,9 @@ function isValidHostname(hostname) {
|
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
const normalizeProvider = (input) => {
|
|
113
|
-
if (typeof input === "function")
|
|
114
|
+
if (typeof input === "function") {
|
|
114
115
|
return input;
|
|
116
|
+
}
|
|
115
117
|
const promisified = Promise.resolve(input);
|
|
116
118
|
return () => promisified;
|
|
117
119
|
};
|
|
@@ -165,8 +167,9 @@ const toEndpointV1 = (endpoint) => {
|
|
|
165
167
|
if (endpoint.headers) {
|
|
166
168
|
v1Endpoint.headers = {};
|
|
167
169
|
for (const name in endpoint.headers) {
|
|
168
|
-
if (!hasOwn(endpoint.headers, name))
|
|
170
|
+
if (!hasOwn(endpoint.headers, name)) {
|
|
169
171
|
continue;
|
|
172
|
+
}
|
|
170
173
|
v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
|
|
171
174
|
}
|
|
172
175
|
}
|
|
@@ -3,8 +3,9 @@ export class DefaultIdentityProviderConfig {
|
|
|
3
3
|
authSchemes = new Map();
|
|
4
4
|
constructor(config) {
|
|
5
5
|
for (const key in config) {
|
|
6
|
-
if (!hasOwn(config, key))
|
|
6
|
+
if (!hasOwn(config, key)) {
|
|
7
7
|
continue;
|
|
8
|
+
}
|
|
8
9
|
const value = config[key];
|
|
9
10
|
if (value !== undefined) {
|
|
10
11
|
this.authSchemes.set(key, value);
|
|
@@ -1,53 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NormalizedSchema, TypeRegistry
|
|
3
|
-
import { getSmithyContext } from "@smithy/core/transport";
|
|
1
|
+
import { AbstractRpcV2Protocol } from "@smithy/core/protocols";
|
|
2
|
+
import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
|
|
4
3
|
import { CborCodec } from "./CborCodec";
|
|
5
4
|
import { loadSmithyRpcV2CborErrorCode } from "./parseCborBody";
|
|
6
|
-
export class SmithyRpcV2CborProtocol extends
|
|
5
|
+
export class SmithyRpcV2CborProtocol extends AbstractRpcV2Protocol {
|
|
7
6
|
codec = new CborCodec();
|
|
8
7
|
serializer = this.codec.createSerializer();
|
|
9
8
|
deserializer = this.codec.createDeserializer();
|
|
10
|
-
constructor({ defaultNamespace, errorTypeRegistries, }) {
|
|
11
|
-
super({ defaultNamespace, errorTypeRegistries });
|
|
12
|
-
}
|
|
13
9
|
getShapeId() {
|
|
14
10
|
return "smithy.protocols#rpcv2Cbor";
|
|
15
11
|
}
|
|
16
12
|
getPayloadCodec() {
|
|
17
13
|
return this.codec;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (deref(operationSchema.input) === "unit") {
|
|
27
|
-
delete request.body;
|
|
28
|
-
delete request.headers["content-type"];
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
if (!request.body) {
|
|
32
|
-
this.serializer.write(15, {});
|
|
33
|
-
request.body = this.serializer.flush();
|
|
34
|
-
}
|
|
35
|
-
if (request.body instanceof Uint8Array) {
|
|
36
|
-
request.headers["content-length"] = String(request.body.byteLength);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const { service, operation } = getSmithyContext(context);
|
|
40
|
-
const path = `/service/${service}/operation/${operation}`;
|
|
41
|
-
if (request.path.endsWith("/")) {
|
|
42
|
-
request.path += path.slice(1);
|
|
15
|
+
getSmithyProtocolHeaderValue() {
|
|
16
|
+
return "rpc-v2-cbor";
|
|
17
|
+
}
|
|
18
|
+
applyEmptyBody(request) {
|
|
19
|
+
if (!request.body) {
|
|
20
|
+
this.serializer.write(15, {});
|
|
21
|
+
request.body = this.serializer.flush();
|
|
43
22
|
}
|
|
44
|
-
|
|
45
|
-
request.
|
|
23
|
+
if (request.body instanceof Uint8Array) {
|
|
24
|
+
request.headers["content-length"] = String(request.body.byteLength);
|
|
46
25
|
}
|
|
47
|
-
return request;
|
|
48
|
-
}
|
|
49
|
-
async deserializeResponse(operationSchema, context, response) {
|
|
50
|
-
return super.deserializeResponse(operationSchema, context, response);
|
|
51
26
|
}
|
|
52
27
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
53
28
|
const errorIdentifier = loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
|
|
@@ -60,8 +60,9 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
60
60
|
if (ns.isMapSchema()) {
|
|
61
61
|
const targetSchema = ns.getValueSchema();
|
|
62
62
|
for (const key in value) {
|
|
63
|
-
if (!hasOwn(value, key))
|
|
63
|
+
if (!hasOwn(value, key)) {
|
|
64
64
|
continue;
|
|
65
|
+
}
|
|
65
66
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
66
67
|
newObject[key] = itemValue;
|
|
67
68
|
}
|
|
@@ -72,8 +73,9 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
72
73
|
if (isUnion) {
|
|
73
74
|
keys = new Set();
|
|
74
75
|
for (const k in value) {
|
|
75
|
-
if (!hasOwn(value, k))
|
|
76
|
+
if (!hasOwn(value, k)) {
|
|
76
77
|
continue;
|
|
78
|
+
}
|
|
77
79
|
if (k !== "__type") {
|
|
78
80
|
keys.add(k);
|
|
79
81
|
}
|
|
@@ -90,8 +92,9 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
90
92
|
if (isUnion && keys?.size === 1) {
|
|
91
93
|
let newObjectEmpty = true;
|
|
92
94
|
for (const _ in newObject) {
|
|
93
|
-
if (!hasOwn(newObject, _))
|
|
95
|
+
if (!hasOwn(newObject, _)) {
|
|
94
96
|
continue;
|
|
97
|
+
}
|
|
95
98
|
newObjectEmpty = false;
|
|
96
99
|
break;
|
|
97
100
|
}
|
|
@@ -102,8 +105,9 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
102
105
|
}
|
|
103
106
|
else if (typeof value.__type === "string") {
|
|
104
107
|
for (const k in value) {
|
|
105
|
-
if (!hasOwn(value, k))
|
|
108
|
+
if (!hasOwn(value, k)) {
|
|
106
109
|
continue;
|
|
110
|
+
}
|
|
107
111
|
if (!(k in newObject)) {
|
|
108
112
|
newObject[k] = value[k];
|
|
109
113
|
}
|
|
@@ -50,8 +50,9 @@ export class CborShapeSerializer extends SerdeContext {
|
|
|
50
50
|
if (ns.isMapSchema()) {
|
|
51
51
|
const sparse = !!ns.getMergedTraits().sparse;
|
|
52
52
|
for (const key in sourceObject) {
|
|
53
|
-
if (!hasOwn(sourceObject, key))
|
|
53
|
+
if (!hasOwn(sourceObject, key)) {
|
|
54
54
|
continue;
|
|
55
|
+
}
|
|
55
56
|
const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
56
57
|
if (value != null || sparse) {
|
|
57
58
|
newObject[key] = value;
|
|
@@ -72,8 +73,9 @@ export class CborShapeSerializer extends SerdeContext {
|
|
|
72
73
|
}
|
|
73
74
|
else if (typeof sourceObject.__type === "string") {
|
|
74
75
|
for (const k in sourceObject) {
|
|
75
|
-
if (!hasOwn(sourceObject, k))
|
|
76
|
+
if (!hasOwn(sourceObject, k)) {
|
|
76
77
|
continue;
|
|
78
|
+
}
|
|
77
79
|
if (!(k in newObject)) {
|
|
78
80
|
newObject[k] = this.serialize(15, sourceObject[k]);
|
|
79
81
|
}
|
|
@@ -90,8 +92,9 @@ export class CborShapeSerializer extends SerdeContext {
|
|
|
90
92
|
return newArray;
|
|
91
93
|
}
|
|
92
94
|
for (const key in sourceObject) {
|
|
93
|
-
if (!hasOwn(sourceObject, key))
|
|
95
|
+
if (!hasOwn(sourceObject, key)) {
|
|
94
96
|
continue;
|
|
97
|
+
}
|
|
95
98
|
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
96
99
|
}
|
|
97
100
|
}
|
package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js
CHANGED
|
@@ -121,8 +121,9 @@ function readStruct(ns, count, startPos) {
|
|
|
121
121
|
if (isUnion) {
|
|
122
122
|
let resultEmpty = true;
|
|
123
123
|
for (const _ in result) {
|
|
124
|
-
if (!hasOwn(result, _))
|
|
124
|
+
if (!hasOwn(result, _)) {
|
|
125
125
|
continue;
|
|
126
|
+
}
|
|
126
127
|
resultEmpty = false;
|
|
127
128
|
break;
|
|
128
129
|
}
|
|
@@ -291,8 +292,9 @@ function readMapIndefinite(ns) {
|
|
|
291
292
|
if (isUnion) {
|
|
292
293
|
let resultEmpty = true;
|
|
293
294
|
for (const _ in result) {
|
|
294
|
-
if (!hasOwn(result, _))
|
|
295
|
+
if (!hasOwn(result, _)) {
|
|
295
296
|
continue;
|
|
297
|
+
}
|
|
296
298
|
resultEmpty = false;
|
|
297
299
|
break;
|
|
298
300
|
}
|
|
@@ -597,8 +599,9 @@ function transformObject(ns, value) {
|
|
|
597
599
|
if (ns.isMapSchema()) {
|
|
598
600
|
const targetSchema = ns.getValueSchema();
|
|
599
601
|
for (const key in value) {
|
|
600
|
-
if (!hasOwn(value, key))
|
|
602
|
+
if (!hasOwn(value, key)) {
|
|
601
603
|
continue;
|
|
604
|
+
}
|
|
602
605
|
newObject[key] = transformObject(targetSchema, value[key]);
|
|
603
606
|
}
|
|
604
607
|
}
|
|
@@ -608,8 +611,9 @@ function transformObject(ns, value) {
|
|
|
608
611
|
if (isUnion) {
|
|
609
612
|
keys = new Set();
|
|
610
613
|
for (const k in value) {
|
|
611
|
-
if (!hasOwn(value, k))
|
|
614
|
+
if (!hasOwn(value, k)) {
|
|
612
615
|
continue;
|
|
616
|
+
}
|
|
613
617
|
if (k !== "__type") {
|
|
614
618
|
keys.add(k);
|
|
615
619
|
}
|
|
@@ -626,8 +630,9 @@ function transformObject(ns, value) {
|
|
|
626
630
|
if (isUnion && keys?.size === 1) {
|
|
627
631
|
let newObjectEmpty = true;
|
|
628
632
|
for (const _ in newObject) {
|
|
629
|
-
if (!hasOwn(newObject, _))
|
|
633
|
+
if (!hasOwn(newObject, _)) {
|
|
630
634
|
continue;
|
|
635
|
+
}
|
|
631
636
|
newObjectEmpty = false;
|
|
632
637
|
break;
|
|
633
638
|
}
|
|
@@ -638,8 +643,9 @@ function transformObject(ns, value) {
|
|
|
638
643
|
}
|
|
639
644
|
else if (typeof value.__type === "string") {
|
|
640
645
|
for (const k in value) {
|
|
641
|
-
if (!hasOwn(value, k))
|
|
646
|
+
if (!hasOwn(value, k)) {
|
|
642
647
|
continue;
|
|
648
|
+
}
|
|
643
649
|
if (!(k in newObject)) {
|
|
644
650
|
newObject[k] = value[k];
|
|
645
651
|
}
|
|
@@ -254,8 +254,9 @@ function writeStruct(ns, value, serdeContext) {
|
|
|
254
254
|
}
|
|
255
255
|
if (typeof value.__type === "string") {
|
|
256
256
|
for (const k in value) {
|
|
257
|
-
if (!hasOwn(value, k))
|
|
257
|
+
if (!hasOwn(value, k)) {
|
|
258
258
|
continue;
|
|
259
|
+
}
|
|
259
260
|
if (!memberNames.includes(k)) {
|
|
260
261
|
writeString(k);
|
|
261
262
|
writeUntypedValue(value[k]);
|
|
@@ -321,8 +322,9 @@ function writeMap(ns, value, isDocument, serdeContext) {
|
|
|
321
322
|
const valueSchema = ns.getValueSchema();
|
|
322
323
|
const keys = [];
|
|
323
324
|
for (const k in value) {
|
|
324
|
-
if (!hasOwn(value, k))
|
|
325
|
+
if (!hasOwn(value, k)) {
|
|
325
326
|
continue;
|
|
327
|
+
}
|
|
326
328
|
const v = value[k];
|
|
327
329
|
if (isDocument ? v !== undefined : v != null || sparse) {
|
|
328
330
|
keys.push(k);
|
|
@@ -71,8 +71,9 @@ export const buildHttpRpcRequest = async (context, headers, path, resolvedHostna
|
|
|
71
71
|
}
|
|
72
72
|
if (endpoint.headers) {
|
|
73
73
|
for (const name in endpoint.headers) {
|
|
74
|
-
if (!hasOwn(endpoint.headers, name))
|
|
74
|
+
if (!hasOwn(endpoint.headers, name)) {
|
|
75
75
|
continue;
|
|
76
|
+
}
|
|
76
77
|
contents.headers[name] = endpoint.headers[name];
|
|
77
78
|
}
|
|
78
79
|
}
|
package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js
CHANGED
|
@@ -149,8 +149,9 @@ export const constructStack = () => {
|
|
|
149
149
|
const aliases = getAllAliases(name, _aliases);
|
|
150
150
|
if (aliases.length > 0) {
|
|
151
151
|
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
152
|
-
if (!override)
|
|
152
|
+
if (!override) {
|
|
153
153
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
|
154
|
+
}
|
|
154
155
|
for (const alias of aliases) {
|
|
155
156
|
const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias));
|
|
156
157
|
if (toOverrideIndex === -1) {
|
|
@@ -181,8 +182,9 @@ export const constructStack = () => {
|
|
|
181
182
|
const aliases = getAllAliases(name, _aliases);
|
|
182
183
|
if (aliases.length > 0) {
|
|
183
184
|
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
184
|
-
if (!override)
|
|
185
|
+
if (!override) {
|
|
185
186
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
|
187
|
+
}
|
|
186
188
|
for (const alias of aliases) {
|
|
187
189
|
const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias));
|
|
188
190
|
if (toOverrideIndex === -1) {
|
|
@@ -209,10 +211,12 @@ export const constructStack = () => {
|
|
|
209
211
|
plugin.applyToStack(stack);
|
|
210
212
|
},
|
|
211
213
|
remove: (toRemove) => {
|
|
212
|
-
if (typeof toRemove === "string")
|
|
214
|
+
if (typeof toRemove === "string") {
|
|
213
215
|
return removeByName(toRemove);
|
|
214
|
-
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
215
218
|
return removeByReference(toRemove);
|
|
219
|
+
}
|
|
216
220
|
},
|
|
217
221
|
removeByTag: (toRemove) => {
|
|
218
222
|
let isRemoved = false;
|
|
@@ -249,8 +253,9 @@ export const constructStack = () => {
|
|
|
249
253
|
});
|
|
250
254
|
},
|
|
251
255
|
identifyOnResolve(toggle) {
|
|
252
|
-
if (typeof toggle === "boolean")
|
|
256
|
+
if (typeof toggle === "boolean") {
|
|
253
257
|
identifyOnResolve = toggle;
|
|
258
|
+
}
|
|
254
259
|
return identifyOnResolve;
|
|
255
260
|
},
|
|
256
261
|
resolve: (handler, context) => {
|