@aws-sdk/core
Advanced tools
@@ -170,3 +170,3 @@ const { Retry, RETRY_MODES } = require("@smithy/core/retry"); | ||
| step: "build", | ||
| tags: ["RECURSION_DETECTION"], | ||
| tags: ["RECURSION_DETECTION", "TRACE_CONTEXT_PROPAGATION"], | ||
| name: "recursionDetectionMiddleware", | ||
@@ -177,5 +177,8 @@ override: true, | ||
| const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; | ||
| const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; | ||
| const ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; | ||
| const AWS_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; | ||
| const _X_AMZN_TRACE_ID = "_X_AMZN_TRACE_ID"; | ||
| const X_AMZN_TRACE_ID = "X-Amzn-Trace-Id"; | ||
| const TRACEPARENT = "traceparent"; | ||
| const TRACESTATE = "tracestate"; | ||
| const BAGGAGE = "baggage"; | ||
| const recursionDetectionMiddleware = () => (next) => async (args) => { | ||
@@ -186,21 +189,47 @@ const { request } = args; | ||
| } | ||
| const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? | ||
| TRACE_ID_HEADER_NAME; | ||
| if (request.headers.hasOwnProperty(traceIdHeader)) { | ||
| return next(args); | ||
| let invokeStore; | ||
| { | ||
| const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === X_AMZN_TRACE_ID.toLowerCase()) ?? | ||
| X_AMZN_TRACE_ID; | ||
| if (!request.headers.hasOwnProperty(traceIdHeader)) { | ||
| const functionName = process.env[AWS_LAMBDA_FUNCTION_NAME]; | ||
| const traceIdFromEnv = process.env[_X_AMZN_TRACE_ID]; | ||
| invokeStore ??= await InvokeStore.getInstanceAsync(); | ||
| const traceIdFromInvokeStore = invokeStore?.getXRayTraceId(); | ||
| const traceId = traceIdFromInvokeStore ?? traceIdFromEnv; | ||
| const nonEmptyString = (str) => typeof str === "string" && str.length > 0; | ||
| if (nonEmptyString(functionName) && nonEmptyString(traceId)) { | ||
| request.headers[X_AMZN_TRACE_ID] = traceId; | ||
| } | ||
| } | ||
| } | ||
| const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; | ||
| const traceIdFromEnv = process.env[ENV_TRACE_ID]; | ||
| const invokeStore = await InvokeStore.getInstanceAsync(); | ||
| const traceIdFromInvokeStore = invokeStore?.getXRayTraceId(); | ||
| const traceId = traceIdFromInvokeStore ?? traceIdFromEnv; | ||
| const nonEmptyString = (str) => typeof str === "string" && str.length > 0; | ||
| if (nonEmptyString(functionName) && nonEmptyString(traceId)) { | ||
| request.headers[TRACE_ID_HEADER_NAME] = traceId; | ||
| { | ||
| sanitizeTraceHeaders(request.headers); | ||
| const existingTraceparent = request.headers[TRACEPARENT]; | ||
| if (!existingTraceparent) { | ||
| const traceparent = (invokeStore ??= await InvokeStore.getInstanceAsync())?.getTraceparent?.(); | ||
| if (traceparent) { | ||
| request.headers[TRACEPARENT] = traceparent; | ||
| const tracestate = invokeStore?.getTracestate?.(); | ||
| if (tracestate) { | ||
| request.headers[TRACESTATE] = tracestate; | ||
| } | ||
| const baggage = invokeStore?.getBaggage?.(); | ||
| if (baggage) { | ||
| request.headers[BAGGAGE] = baggage; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| return next({ | ||
| ...args, | ||
| request, | ||
| }); | ||
| return next(args); | ||
| }; | ||
| function sanitizeTraceHeaders(headers) { | ||
| for (const header of Object.keys(headers)) { | ||
| const lower = header.toLowerCase(); | ||
| if (header !== lower && (lower === TRACEPARENT || lower === TRACESTATE || lower === BAGGAGE)) { | ||
| headers[lower] = headers[header]; | ||
| delete headers[header]; | ||
| } | ||
| } | ||
| } | ||
@@ -207,0 +236,0 @@ const getRecursionDetectionPlugin = (options) => ({ |
@@ -1,3 +0,3 @@ | ||
| export * from "./AccountIdEndpointModeConfigResolver"; | ||
| export * from "./AccountIdEndpointModeConstants"; | ||
| export * from "./NodeAccountIdEndpointModeConfigOptions"; | ||
| export { resolveAccountIdEndpointModeConfig } from "./AccountIdEndpointModeConfigResolver"; | ||
| export { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE, ACCOUNT_ID_ENDPOINT_MODE_VALUES, validateAccountIdEndpointMode, } from "./AccountIdEndpointModeConstants"; | ||
| export { ENV_ACCOUNT_ID_ENDPOINT_MODE, CONFIG_ACCOUNT_ID_ENDPOINT_MODE, NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, } from "./NodeAccountIdEndpointModeConfigOptions"; |
| export const recursionDetectionMiddlewareOptions = { | ||
| step: "build", | ||
| tags: ["RECURSION_DETECTION"], | ||
| tags: ["RECURSION_DETECTION", "TRACE_CONTEXT_PROPAGATION"], | ||
| name: "recursionDetectionMiddleware", | ||
@@ -5,0 +5,0 @@ override: true, |
| import { InvokeStore } from "@aws/lambda-invoke-store"; | ||
| import { HttpRequest } from "@smithy/core/protocols"; | ||
| const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; | ||
| const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; | ||
| const ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; | ||
| const AWS_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; | ||
| const _X_AMZN_TRACE_ID = "_X_AMZN_TRACE_ID"; | ||
| const X_AMZN_TRACE_ID = "X-Amzn-Trace-Id"; | ||
| const TRACEPARENT = "traceparent"; | ||
| const TRACESTATE = "tracestate"; | ||
| const BAGGAGE = "baggage"; | ||
| export const recursionDetectionMiddleware = () => (next) => async (args) => { | ||
@@ -11,20 +14,46 @@ const { request } = args; | ||
| } | ||
| const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? | ||
| TRACE_ID_HEADER_NAME; | ||
| if (request.headers.hasOwnProperty(traceIdHeader)) { | ||
| return next(args); | ||
| let invokeStore; | ||
| { | ||
| const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === X_AMZN_TRACE_ID.toLowerCase()) ?? | ||
| X_AMZN_TRACE_ID; | ||
| if (!request.headers.hasOwnProperty(traceIdHeader)) { | ||
| const functionName = process.env[AWS_LAMBDA_FUNCTION_NAME]; | ||
| const traceIdFromEnv = process.env[_X_AMZN_TRACE_ID]; | ||
| invokeStore ??= await InvokeStore.getInstanceAsync(); | ||
| const traceIdFromInvokeStore = invokeStore?.getXRayTraceId(); | ||
| const traceId = traceIdFromInvokeStore ?? traceIdFromEnv; | ||
| const nonEmptyString = (str) => typeof str === "string" && str.length > 0; | ||
| if (nonEmptyString(functionName) && nonEmptyString(traceId)) { | ||
| request.headers[X_AMZN_TRACE_ID] = traceId; | ||
| } | ||
| } | ||
| } | ||
| const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; | ||
| const traceIdFromEnv = process.env[ENV_TRACE_ID]; | ||
| const invokeStore = await InvokeStore.getInstanceAsync(); | ||
| const traceIdFromInvokeStore = invokeStore?.getXRayTraceId(); | ||
| const traceId = traceIdFromInvokeStore ?? traceIdFromEnv; | ||
| const nonEmptyString = (str) => typeof str === "string" && str.length > 0; | ||
| if (nonEmptyString(functionName) && nonEmptyString(traceId)) { | ||
| request.headers[TRACE_ID_HEADER_NAME] = traceId; | ||
| { | ||
| sanitizeTraceHeaders(request.headers); | ||
| const existingTraceparent = request.headers[TRACEPARENT]; | ||
| if (!existingTraceparent) { | ||
| const traceparent = (invokeStore ??= await InvokeStore.getInstanceAsync())?.getTraceparent?.(); | ||
| if (traceparent) { | ||
| request.headers[TRACEPARENT] = traceparent; | ||
| const tracestate = invokeStore?.getTracestate?.(); | ||
| if (tracestate) { | ||
| request.headers[TRACESTATE] = tracestate; | ||
| } | ||
| const baggage = invokeStore?.getBaggage?.(); | ||
| if (baggage) { | ||
| request.headers[BAGGAGE] = baggage; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| return next({ | ||
| ...args, | ||
| request, | ||
| }); | ||
| return next(args); | ||
| }; | ||
| function sanitizeTraceHeaders(headers) { | ||
| for (const header of Object.keys(headers)) { | ||
| const lower = header.toLowerCase(); | ||
| if (header !== lower && (lower === TRACEPARENT || lower === TRACESTATE || lower === BAGGAGE)) { | ||
| headers[lower] = headers[header]; | ||
| delete headers[header]; | ||
| } | ||
| } | ||
| } |
@@ -1,1 +0,1 @@ | ||
| export * from "./defaultUserAgent"; | ||
| export { createUserAgentStringParsingProvider, createDefaultUserAgentProvider, fallback, defaultUserAgent, } from "./defaultUserAgent"; |
| export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties } from "./AwsSdkSigV4Signer"; | ||
| export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner"; | ||
| export * from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS"; | ||
| export * from "./resolveAwsSdkSigV4AConfig"; | ||
| export * from "./resolveAwsSdkSigV4Config"; | ||
| export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS"; | ||
| export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig"; | ||
| export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config"; |
@@ -1,2 +0,2 @@ | ||
| export * from "./aws_sdk"; | ||
| export * from "./utils/getBearerTokenEnvKey"; | ||
| export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config, } from "./aws_sdk"; | ||
| export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey"; |
@@ -1,3 +0,3 @@ | ||
| export * from "./getDateHeader"; | ||
| export * from "./getSkewCorrectedDate"; | ||
| export * from "./getUpdatedSystemClockOffset"; | ||
| export { getDateHeader } from "./getDateHeader"; | ||
| export { getSkewCorrectedDate } from "./getSkewCorrectedDate"; | ||
| export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset"; |
@@ -1,20 +0,19 @@ | ||
| export * from "./cbor/AwsSmithyRpcV2CborProtocol"; | ||
| export * from "./coercing-serializers"; | ||
| export * from "./json/AwsJson1_0Protocol"; | ||
| export * from "./json/AwsJson1_1Protocol"; | ||
| export * from "./json/AwsJsonRpcProtocol"; | ||
| export * from "./json/AwsRestJsonProtocol"; | ||
| export * from "./json/JsonCodec"; | ||
| export * from "./json/JsonShapeDeserializer"; | ||
| export * from "./json/JsonShapeSerializer"; | ||
| export * from "./json/awsExpectUnion"; | ||
| export * from "./json/parseJsonBody"; | ||
| export * from "./query/AwsEc2QueryProtocol"; | ||
| export * from "./query/AwsQueryProtocol"; | ||
| export * from "./query/QuerySerializerSettings"; | ||
| export * from "./query/QueryShapeSerializer"; | ||
| export * from "./xml/AwsRestXmlProtocol"; | ||
| export * from "./xml/XmlCodec"; | ||
| export * from "./xml/XmlShapeDeserializer"; | ||
| export * from "./xml/XmlShapeSerializer"; | ||
| export * from "./xml/parseXmlBody"; | ||
| export { AwsSmithyRpcV2CborProtocol } from "./cbor/AwsSmithyRpcV2CborProtocol"; | ||
| export { _toStr, _toBool, _toNum } from "./coercing-serializers"; | ||
| export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol"; | ||
| export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol"; | ||
| export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol"; | ||
| export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol"; | ||
| export { JsonCodec } from "./json/JsonCodec"; | ||
| export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer"; | ||
| export { JsonShapeSerializer } from "./json/JsonShapeSerializer"; | ||
| export { awsExpectUnion } from "./json/awsExpectUnion"; | ||
| export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody"; | ||
| export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol"; | ||
| export { AwsQueryProtocol } from "./query/AwsQueryProtocol"; | ||
| export { QueryShapeSerializer } from "./query/QueryShapeSerializer"; | ||
| export { AwsRestXmlProtocol } from "./xml/AwsRestXmlProtocol"; | ||
| export { XmlCodec } from "./xml/XmlCodec"; | ||
| export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer"; | ||
| export { XmlShapeSerializer } from "./xml/XmlShapeSerializer"; | ||
| export { parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode } from "./xml/parseXmlBody"; |
@@ -1,3 +0,5 @@ | ||
| export * from "./AccountIdEndpointModeConfigResolver"; | ||
| export * from "./AccountIdEndpointModeConstants"; | ||
| export * from "./NodeAccountIdEndpointModeConfigOptions"; | ||
| export { resolveAccountIdEndpointModeConfig } from "./AccountIdEndpointModeConfigResolver"; | ||
| export type { AccountIdEndpointModeInputConfig, AccountIdEndpointModeResolvedConfig, } from "./AccountIdEndpointModeConfigResolver"; | ||
| export { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE, ACCOUNT_ID_ENDPOINT_MODE_VALUES, validateAccountIdEndpointMode, } from "./AccountIdEndpointModeConstants"; | ||
| export type { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants"; | ||
| export { ENV_ACCOUNT_ID_ENDPOINT_MODE, CONFIG_ACCOUNT_ID_ENDPOINT_MODE, NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, } from "./NodeAccountIdEndpointModeConfigOptions"; |
@@ -33,7 +33,7 @@ export declare const emitWarningIfUnsupportedVersion: symbol; | ||
| export { EndpointError } from "./util-endpoints/types/EndpointError"; | ||
| export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject"; | ||
| export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject"; | ||
| export { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject"; | ||
| export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared"; | ||
| export type { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export type { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject"; | ||
| export type { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject"; | ||
| export type { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject"; | ||
| export type { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared"; | ||
| export declare const REGION_ENV_NAME: symbol; | ||
@@ -40,0 +40,0 @@ export declare const REGION_INI_NAME: symbol; |
@@ -30,7 +30,7 @@ export { emitWarningIfUnsupportedVersion, state } from "./emitWarningIfUnsupportedVersion"; | ||
| export { EndpointError } from "./util-endpoints/types/EndpointError"; | ||
| export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject"; | ||
| export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject"; | ||
| export { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject"; | ||
| export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared"; | ||
| export type { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export type { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject"; | ||
| export type { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject"; | ||
| export type { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject"; | ||
| export type { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared"; | ||
| export { REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig, } from "./region-config-resolver/awsRegionConfig"; | ||
@@ -37,0 +37,0 @@ export type { RegionInputConfig, RegionResolvedConfig } from "./region-config-resolver/awsRegionConfig"; |
@@ -34,7 +34,7 @@ export declare const emitWarningIfUnsupportedVersion: symbol; | ||
| export { EndpointError } from "./util-endpoints/types/EndpointError"; | ||
| export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject"; | ||
| export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject"; | ||
| export { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject"; | ||
| export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared"; | ||
| export type { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject"; | ||
| export type { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject"; | ||
| export type { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject"; | ||
| export type { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject"; | ||
| export type { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared"; | ||
| export declare const REGION_ENV_NAME: symbol; | ||
@@ -41,0 +41,0 @@ export declare const REGION_INI_NAME: symbol; |
| import type { AbsoluteLocation, BuildHandlerOptions } from "@smithy/types"; | ||
| /** | ||
| * Used in conjunction with Lambda invoke store. | ||
| * @internal | ||
| */ | ||
| export declare const recursionDetectionMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation; |
| import type { BuildMiddleware } from "@smithy/types"; | ||
| /** | ||
| * Inject to trace ID to request header to detect recursion invocation in Lambda. | ||
| * Used for two Lambda-related responsibilities: | ||
| * - Inject to trace ID to request header to detect recursion invocation in Lambda. | ||
| * - Propagate W3C trace context headers from | ||
| * the Lambda InvokeStore onto outbound requests, enabling distributed trace | ||
| * context to flow to downstream calls without creating any spans. | ||
| * @internal | ||
| */ | ||
| export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>; |
@@ -1,1 +0,1 @@ | ||
| export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/core/endpoints"; | ||
| export type { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/core/endpoints"; |
@@ -1,1 +0,1 @@ | ||
| export { ErrorRuleObject } from "@smithy/core/endpoints"; | ||
| export type { ErrorRuleObject } from "@smithy/core/endpoints"; |
@@ -1,1 +0,1 @@ | ||
| export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/core/endpoints"; | ||
| export type { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/core/endpoints"; |
@@ -1,1 +0,1 @@ | ||
| export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/core/endpoints"; | ||
| export type { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/core/endpoints"; |
@@ -1,1 +0,1 @@ | ||
| export { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints"; | ||
| export type { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints"; |
@@ -1,1 +0,2 @@ | ||
| export * from "./defaultUserAgent"; | ||
| export { createUserAgentStringParsingProvider, createDefaultUserAgentProvider, fallback, defaultUserAgent, } from "./defaultUserAgent"; | ||
| export type { PreviouslyResolved } from "./defaultUserAgent"; |
| export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties } from "./AwsSdkSigV4Signer"; | ||
| export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner"; | ||
| export * from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS"; | ||
| export * from "./resolveAwsSdkSigV4AConfig"; | ||
| export * from "./resolveAwsSdkSigV4Config"; | ||
| export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS"; | ||
| export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig"; | ||
| export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, } from "./resolveAwsSdkSigV4AConfig"; | ||
| export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config"; | ||
| export type { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./resolveAwsSdkSigV4Config"; |
@@ -1,2 +0,3 @@ | ||
| export * from "./aws_sdk"; | ||
| export * from "./utils/getBearerTokenEnvKey"; | ||
| export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config, } from "./aws_sdk"; | ||
| export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk"; | ||
| export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey"; |
@@ -1,3 +0,3 @@ | ||
| export * from "./getDateHeader"; | ||
| export * from "./getSkewCorrectedDate"; | ||
| export * from "./getUpdatedSystemClockOffset"; | ||
| export { getDateHeader } from "./getDateHeader"; | ||
| export { getSkewCorrectedDate } from "./getSkewCorrectedDate"; | ||
| export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset"; |
@@ -1,20 +0,22 @@ | ||
| export * from "./cbor/AwsSmithyRpcV2CborProtocol"; | ||
| export * from "./coercing-serializers"; | ||
| export * from "./json/AwsJson1_0Protocol"; | ||
| export * from "./json/AwsJson1_1Protocol"; | ||
| export * from "./json/AwsJsonRpcProtocol"; | ||
| export * from "./json/AwsRestJsonProtocol"; | ||
| export * from "./json/JsonCodec"; | ||
| export * from "./json/JsonShapeDeserializer"; | ||
| export * from "./json/JsonShapeSerializer"; | ||
| export * from "./json/awsExpectUnion"; | ||
| export * from "./json/parseJsonBody"; | ||
| export * from "./query/AwsEc2QueryProtocol"; | ||
| export * from "./query/AwsQueryProtocol"; | ||
| export * from "./query/QuerySerializerSettings"; | ||
| export * from "./query/QueryShapeSerializer"; | ||
| export * from "./xml/AwsRestXmlProtocol"; | ||
| export * from "./xml/XmlCodec"; | ||
| export * from "./xml/XmlShapeDeserializer"; | ||
| export * from "./xml/XmlShapeSerializer"; | ||
| export * from "./xml/parseXmlBody"; | ||
| export { AwsSmithyRpcV2CborProtocol } from "./cbor/AwsSmithyRpcV2CborProtocol"; | ||
| export { _toStr, _toBool, _toNum } from "./coercing-serializers"; | ||
| export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol"; | ||
| export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol"; | ||
| export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol"; | ||
| export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol"; | ||
| export { JsonCodec } from "./json/JsonCodec"; | ||
| export type { JsonSettings } from "./json/JsonCodec"; | ||
| export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer"; | ||
| export { JsonShapeSerializer } from "./json/JsonShapeSerializer"; | ||
| export { awsExpectUnion } from "./json/awsExpectUnion"; | ||
| export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody"; | ||
| export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol"; | ||
| export { AwsQueryProtocol } from "./query/AwsQueryProtocol"; | ||
| export type { QuerySerializerSettings } from "./query/QuerySerializerSettings"; | ||
| export { QueryShapeSerializer } from "./query/QueryShapeSerializer"; | ||
| export { AwsRestXmlProtocol } from "./xml/AwsRestXmlProtocol"; | ||
| export { XmlCodec } from "./xml/XmlCodec"; | ||
| export type { XmlSettings } from "./xml/XmlCodec"; | ||
| export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer"; | ||
| export { XmlShapeSerializer } from "./xml/XmlShapeSerializer"; | ||
| export { parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode } from "./xml/parseXmlBody"; |
@@ -1,2 +0,3 @@ | ||
| export { ARN, build, parse, validate } from "./util-arn-parser/arn"; | ||
| export { build, parse, validate } from "./util-arn-parser/arn"; | ||
| export type { ARN } from "./util-arn-parser/arn"; | ||
| export { formatUrl } from "./util-format-url/format-url"; |
@@ -1,3 +0,16 @@ | ||
| export * from "./AccountIdEndpointModeConfigResolver"; | ||
| export * from "./AccountIdEndpointModeConstants"; | ||
| export * from "./NodeAccountIdEndpointModeConfigOptions"; | ||
| export { resolveAccountIdEndpointModeConfig } from "./AccountIdEndpointModeConfigResolver"; | ||
| export { | ||
| AccountIdEndpointModeInputConfig, | ||
| AccountIdEndpointModeResolvedConfig, | ||
| } from "./AccountIdEndpointModeConfigResolver"; | ||
| export { | ||
| DEFAULT_ACCOUNT_ID_ENDPOINT_MODE, | ||
| ACCOUNT_ID_ENDPOINT_MODE_VALUES, | ||
| validateAccountIdEndpointMode, | ||
| } from "./AccountIdEndpointModeConstants"; | ||
| export { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants"; | ||
| export { | ||
| ENV_ACCOUNT_ID_ENDPOINT_MODE, | ||
| CONFIG_ACCOUNT_ID_ENDPOINT_MODE, | ||
| NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, | ||
| } from "./NodeAccountIdEndpointModeConfigOptions"; |
@@ -1,1 +0,7 @@ | ||
| export * from "./defaultUserAgent"; | ||
| export { | ||
| createUserAgentStringParsingProvider, | ||
| createDefaultUserAgentProvider, | ||
| fallback, | ||
| defaultUserAgent, | ||
| } from "./defaultUserAgent"; | ||
| export { PreviouslyResolved } from "./defaultUserAgent"; |
@@ -7,4 +7,24 @@ export { | ||
| export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner"; | ||
| export * from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS"; | ||
| export * from "./resolveAwsSdkSigV4AConfig"; | ||
| export * from "./resolveAwsSdkSigV4Config"; | ||
| export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS"; | ||
| export { | ||
| resolveAwsSdkSigV4AConfig, | ||
| NODE_SIGV4A_CONFIG_OPTIONS, | ||
| } from "./resolveAwsSdkSigV4AConfig"; | ||
| export { | ||
| AwsSdkSigV4AAuthInputConfig, | ||
| AwsSdkSigV4APreviouslyResolved, | ||
| AwsSdkSigV4AAuthResolvedConfig, | ||
| } from "./resolveAwsSdkSigV4AConfig"; | ||
| export { | ||
| resolveAwsSdkSigV4Config, | ||
| resolveAWSSDKSigV4Config, | ||
| } from "./resolveAwsSdkSigV4Config"; | ||
| export { | ||
| AwsSdkSigV4AuthInputConfig, | ||
| AwsSdkSigV4Memoized, | ||
| AwsSdkSigV4PreviouslyResolved, | ||
| AwsSdkSigV4AuthResolvedConfig, | ||
| AWSSDKSigV4AuthInputConfig, | ||
| AWSSDKSigV4PreviouslyResolved, | ||
| AWSSDKSigV4AuthResolvedConfig, | ||
| } from "./resolveAwsSdkSigV4Config"; |
@@ -1,2 +0,24 @@ | ||
| export * from "./aws_sdk"; | ||
| export * from "./utils/getBearerTokenEnvKey"; | ||
| export { | ||
| AwsSdkSigV4Signer, | ||
| AWSSDKSigV4Signer, | ||
| validateSigningProperties, | ||
| AwsSdkSigV4ASigner, | ||
| NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, | ||
| resolveAwsSdkSigV4AConfig, | ||
| NODE_SIGV4A_CONFIG_OPTIONS, | ||
| resolveAwsSdkSigV4Config, | ||
| resolveAWSSDKSigV4Config, | ||
| } from "./aws_sdk"; | ||
| export { | ||
| AwsSdkSigV4AAuthInputConfig, | ||
| AwsSdkSigV4APreviouslyResolved, | ||
| AwsSdkSigV4AAuthResolvedConfig, | ||
| AwsSdkSigV4AuthInputConfig, | ||
| AwsSdkSigV4Memoized, | ||
| AwsSdkSigV4PreviouslyResolved, | ||
| AwsSdkSigV4AuthResolvedConfig, | ||
| AWSSDKSigV4AuthInputConfig, | ||
| AWSSDKSigV4PreviouslyResolved, | ||
| AWSSDKSigV4AuthResolvedConfig, | ||
| } from "./aws_sdk"; | ||
| export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey"; |
@@ -1,3 +0,3 @@ | ||
| export * from "./getDateHeader"; | ||
| export * from "./getSkewCorrectedDate"; | ||
| export * from "./getUpdatedSystemClockOffset"; | ||
| export { getDateHeader } from "./getDateHeader"; | ||
| export { getSkewCorrectedDate } from "./getSkewCorrectedDate"; | ||
| export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset"; |
@@ -1,20 +0,31 @@ | ||
| export * from "./cbor/AwsSmithyRpcV2CborProtocol"; | ||
| export * from "./coercing-serializers"; | ||
| export * from "./json/AwsJson1_0Protocol"; | ||
| export * from "./json/AwsJson1_1Protocol"; | ||
| export * from "./json/AwsJsonRpcProtocol"; | ||
| export * from "./json/AwsRestJsonProtocol"; | ||
| export * from "./json/JsonCodec"; | ||
| export * from "./json/JsonShapeDeserializer"; | ||
| export * from "./json/JsonShapeSerializer"; | ||
| export * from "./json/awsExpectUnion"; | ||
| export * from "./json/parseJsonBody"; | ||
| export * from "./query/AwsEc2QueryProtocol"; | ||
| export * from "./query/AwsQueryProtocol"; | ||
| export * from "./query/QuerySerializerSettings"; | ||
| export * from "./query/QueryShapeSerializer"; | ||
| export * from "./xml/AwsRestXmlProtocol"; | ||
| export * from "./xml/XmlCodec"; | ||
| export * from "./xml/XmlShapeDeserializer"; | ||
| export * from "./xml/XmlShapeSerializer"; | ||
| export * from "./xml/parseXmlBody"; | ||
| export { AwsSmithyRpcV2CborProtocol } from "./cbor/AwsSmithyRpcV2CborProtocol"; | ||
| export { _toStr, _toBool, _toNum } from "./coercing-serializers"; | ||
| export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol"; | ||
| export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol"; | ||
| export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol"; | ||
| export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol"; | ||
| export { JsonCodec } from "./json/JsonCodec"; | ||
| export { JsonSettings } from "./json/JsonCodec"; | ||
| export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer"; | ||
| export { JsonShapeSerializer } from "./json/JsonShapeSerializer"; | ||
| export { awsExpectUnion } from "./json/awsExpectUnion"; | ||
| export { | ||
| parseJsonBody, | ||
| parseJsonErrorBody, | ||
| loadRestJsonErrorCode, | ||
| loadJsonRpcErrorCode, | ||
| } from "./json/parseJsonBody"; | ||
| export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol"; | ||
| export { AwsQueryProtocol } from "./query/AwsQueryProtocol"; | ||
| export { QuerySerializerSettings } from "./query/QuerySerializerSettings"; | ||
| export { QueryShapeSerializer } from "./query/QueryShapeSerializer"; | ||
| export { AwsRestXmlProtocol } from "./xml/AwsRestXmlProtocol"; | ||
| export { XmlCodec } from "./xml/XmlCodec"; | ||
| export { XmlSettings } from "./xml/XmlCodec"; | ||
| export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer"; | ||
| export { XmlShapeSerializer } from "./xml/XmlShapeSerializer"; | ||
| export { | ||
| parseXmlBody, | ||
| parseXmlErrorBody, | ||
| loadRestXmlErrorCode, | ||
| } from "./xml/parseXmlBody"; |
@@ -1,2 +0,3 @@ | ||
| export { ARN, build, parse, validate } from "./util-arn-parser/arn"; | ||
| export { build, parse, validate } from "./util-arn-parser/arn"; | ||
| export { ARN } from "./util-arn-parser/arn"; | ||
| export { formatUrl } from "./util-format-url/format-url"; |
+6
-6
| { | ||
| "name": "@aws-sdk/core", | ||
| "version": "3.974.29", | ||
| "version": "3.975.0", | ||
| "description": "Core functions & classes shared by multiple AWS SDK clients.", | ||
@@ -106,8 +106,8 @@ "scripts": { | ||
| "dependencies": { | ||
| "@aws-sdk/types": "^3.973.15", | ||
| "@aws-sdk/xml-builder": "^3.972.33", | ||
| "@aws-sdk/types": "^3.974.0", | ||
| "@aws-sdk/xml-builder": "^3.972.34", | ||
| "@aws/lambda-invoke-store": "^0.3.0", | ||
| "@smithy/core": "^3.29.0", | ||
| "@smithy/signature-v4": "^5.6.1", | ||
| "@smithy/types": "^4.15.1", | ||
| "@smithy/core": "^3.29.2", | ||
| "@smithy/signature-v4": "^5.6.3", | ||
| "@smithy/types": "^4.16.0", | ||
| "bowser": "^2.11.0", | ||
@@ -114,0 +114,0 @@ "tslib": "^2.6.2" |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
491322
1.9%11918
1.23%+ Added
+ Added
- Removed
- Removed
Updated
Updated
Updated
Updated