@cdk8s/awscdk-resolver 0.0.318 → 0.0.319

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.
Files changed (134) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +14 -14
  4. package/node_modules/@aws-sdk/client-sso/package.json +13 -13
  5. package/node_modules/@aws-sdk/core/package.json +4 -4
  6. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  7. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
  8. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  9. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  10. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  11. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  12. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  13. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  14. package/node_modules/@aws-sdk/nested-clients/package.json +13 -13
  15. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  16. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +30 -0
  17. package/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +1 -0
  18. package/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +21 -0
  19. package/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +1 -0
  20. package/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -0
  21. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +1 -0
  22. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +35 -0
  23. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -1
  24. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  25. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +20 -20
  26. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +80 -6
  27. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +20 -20
  28. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +10 -0
  29. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +10 -0
  30. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +10 -0
  31. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +10 -0
  32. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +10 -0
  33. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +10 -0
  34. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  35. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +3 -0
  36. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +3 -0
  37. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +3 -0
  38. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +3 -0
  39. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +3 -0
  40. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +3 -0
  41. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +1 -1
  42. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +3 -0
  43. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +3 -0
  44. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +3 -0
  45. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +3 -0
  46. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +3 -0
  47. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +3 -0
  48. package/node_modules/@smithy/core/package.json +2 -2
  49. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -2
  50. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +4 -4
  51. package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +1 -1
  52. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +1 -1
  53. package/node_modules/@smithy/fetch-http-handler/package.json +1 -1
  54. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +5 -2
  55. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +3 -0
  56. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +1 -1
  57. package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +1 -1
  58. package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +5 -2
  59. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +5 -2
  60. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  61. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  62. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -9
  63. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +4 -3
  64. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +7 -6
  65. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +1 -1
  66. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  67. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +1 -1
  68. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
  69. package/node_modules/@smithy/node-http-handler/package.json +1 -1
  70. package/node_modules/@smithy/smithy-client/package.json +4 -4
  71. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  72. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  73. package/node_modules/@smithy/util-stream/package.json +3 -3
  74. package/node_modules/fast-xml-parser/CHANGELOG.md +77 -0
  75. package/node_modules/fast-xml-parser/README.md +39 -52
  76. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
  77. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
  78. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
  79. package/node_modules/fast-xml-parser/lib/fxp.d.cts +458 -0
  80. package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
  81. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
  82. package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
  83. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
  84. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
  85. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
  86. package/node_modules/fast-xml-parser/package.json +36 -20
  87. package/node_modules/fast-xml-parser/src/cli/cli.js +16 -12
  88. package/node_modules/fast-xml-parser/src/cli/man.js +6 -1
  89. package/node_modules/fast-xml-parser/src/cli/read.js +30 -79
  90. package/node_modules/fast-xml-parser/src/fxp.d.ts +52 -9
  91. package/node_modules/fast-xml-parser/src/fxp.js +11 -8
  92. package/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
  93. package/node_modules/fast-xml-parser/src/util.js +14 -18
  94. package/node_modules/fast-xml-parser/src/{v5 → v6}/CharsSymbol.js +1 -1
  95. package/node_modules/fast-xml-parser/src/{v5/valueParsers → v6}/EntitiesParser.js +3 -6
  96. package/node_modules/fast-xml-parser/src/{v5 → v6}/OptionsBuilder.js +3 -6
  97. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/BaseOutputBuilder.js +1 -3
  98. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsArrBuilder.js +3 -3
  99. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsMinArrBuilder.js +3 -5
  100. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/JsObjBuilder.js +3 -5
  101. package/node_modules/fast-xml-parser/src/{v5 → v6}/OutputBuilders/ParserOptionsBuilder.js +6 -11
  102. package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPath.js +1 -1
  103. package/node_modules/fast-xml-parser/src/{v5 → v6}/TagPathMatcher.js +3 -5
  104. package/node_modules/fast-xml-parser/src/{v5 → v6}/XMLParser.js +3 -5
  105. package/node_modules/fast-xml-parser/src/{v5 → v6}/Xml2JsParser.js +8 -10
  106. package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlPartReader.js +24 -26
  107. package/node_modules/fast-xml-parser/src/{v5 → v6}/XmlSpecialTagsReader.js +5 -12
  108. package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/BufferSource.js +1 -3
  109. package/node_modules/fast-xml-parser/src/{v5 → v6}/inputSource/StringSource.js +1 -3
  110. package/node_modules/fast-xml-parser/src/{v5 → v6/valueParsers}/EntitiesParser.js +3 -5
  111. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParser.js +1 -2
  112. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/booleanParserExt.js +1 -2
  113. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/currency.js +1 -3
  114. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/join.js +1 -2
  115. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/number.js +2 -4
  116. package/node_modules/fast-xml-parser/src/{v5 → v6}/valueParsers/trim.js +1 -3
  117. package/node_modules/fast-xml-parser/src/validator.js +5 -5
  118. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +17 -13
  119. package/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +1 -2
  120. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +288 -71
  121. package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +3 -5
  122. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +28 -23
  123. package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -8
  124. package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +8 -2
  125. package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +22 -7
  126. package/node_modules/strnum/.github/SECURITY.md +5 -0
  127. package/node_modules/strnum/CHANGELOG.md +11 -0
  128. package/node_modules/strnum/algo.stflow +84 -0
  129. package/node_modules/strnum/package.json +2 -1
  130. package/node_modules/strnum/strnum.js +53 -35
  131. package/node_modules/strnum/strnum.test.js +9 -1
  132. package/node_modules/strnum/test.js +9 -0
  133. package/package.json +4 -4
  134. /package/node_modules/fast-xml-parser/src/{v5 → v6}/Report.js +0 -0
@@ -17,11 +17,14 @@ export declare class ErrorSchema extends StructureSchema {
17
17
  * Constructor for a modeled service exception class that extends Error.
18
18
  */
19
19
  ctor: any;
20
+ static symbol: symbol;
21
+ protected symbol: symbol;
20
22
  constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[],
21
23
  /**
22
24
  * Constructor for a modeled service exception class that extends Error.
23
25
  */
24
26
  ctor: any);
27
+ static [Symbol.hasInstance](lhs: unknown): lhs is ErrorSchema;
25
28
  }
26
29
  /**
27
30
  * Factory for ErrorSchema, to reduce codegen output and register the schema.
@@ -10,7 +10,10 @@ export declare class ListSchema extends Schema implements IListSchema {
10
10
  name: string;
11
11
  traits: SchemaTraits;
12
12
  valueSchema: SchemaRef;
13
+ static symbol: symbol;
14
+ protected symbol: symbol;
13
15
  constructor(name: string, traits: SchemaTraits, valueSchema: SchemaRef);
16
+ static [Symbol.hasInstance](lhs: unknown): lhs is ListSchema;
14
17
  }
15
18
  /**
16
19
  * Factory for ListSchema.
@@ -12,11 +12,14 @@ export declare class MapSchema extends Schema implements IMapSchema {
12
12
  */
13
13
  keySchema: SchemaRef;
14
14
  valueSchema: SchemaRef;
15
+ static symbol: symbol;
16
+ protected symbol: symbol;
15
17
  constructor(name: string, traits: SchemaTraits,
16
18
  /**
17
19
  * This is expected to be StringSchema, but may have traits.
18
20
  */
19
21
  keySchema: SchemaRef, valueSchema: SchemaRef);
22
+ static [Symbol.hasInstance](lhs: unknown): lhs is MapSchema;
20
23
  }
21
24
  /**
22
25
  * Factory for MapSchema.
@@ -8,6 +8,8 @@ import { MemberSchema, NormalizedSchema as INormalizedSchema, Schema as ISchema,
8
8
  export declare class NormalizedSchema implements INormalizedSchema {
9
9
  private readonly ref;
10
10
  private memberName?;
11
+ static symbol: symbol;
12
+ protected symbol: symbol;
11
13
  private readonly name;
12
14
  private readonly traits;
13
15
  private _isMemberSchema;
@@ -19,6 +21,7 @@ export declare class NormalizedSchema implements INormalizedSchema {
19
21
  * @param memberName - optional memberName if this NormalizedSchema should be considered a member schema.
20
22
  */
21
23
  constructor(ref: SchemaRef, memberName?: string | undefined);
24
+ static [Symbol.hasInstance](lhs: unknown): lhs is NormalizedSchema;
22
25
  /**
23
26
  * Static constructor that attempts to avoid wrapping a NormalizedSchema within another.
24
27
  */
@@ -10,7 +10,10 @@ export declare class SimpleSchema extends Schema implements TraitsSchema {
10
10
  name: string;
11
11
  schemaRef: SchemaRef;
12
12
  traits: SchemaTraits;
13
+ static symbol: symbol;
14
+ protected symbol: symbol;
13
15
  constructor(name: string, schemaRef: SchemaRef, traits: SchemaTraits);
16
+ static [Symbol.hasInstance](lhs: unknown): lhs is SimpleSchema;
14
17
  }
15
18
  /**
16
19
  * Factory for simple schema class objects.
@@ -10,11 +10,14 @@ export declare class StructureSchema extends Schema implements IStructureSchema
10
10
  traits: SchemaTraits;
11
11
  memberNames: string[];
12
12
  memberList: SchemaRef[];
13
+ static symbol: symbol;
14
+ protected symbol: symbol;
13
15
  members: Record<string, [
14
16
  SchemaRef,
15
17
  SchemaTraits
16
18
  ]>;
17
19
  constructor(name: string, traits: SchemaTraits, memberNames: string[], memberList: SchemaRef[]);
20
+ static [Symbol.hasInstance](lhs: unknown): lhs is StructureSchema;
18
21
  }
19
22
  /**
20
23
  * Factory for StructureSchema.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -75,7 +75,7 @@
75
75
  "@smithy/util-base64": "^4.0.0",
76
76
  "@smithy/util-body-length-browser": "^4.0.0",
77
77
  "@smithy/util-middleware": "^4.0.4",
78
- "@smithy/util-stream": "^4.2.2",
78
+ "@smithy/util-stream": "^4.2.3",
79
79
  "@smithy/util-utf8": "^4.0.0",
80
80
  "tslib": "^2.6.2"
81
81
  },
@@ -83,11 +83,11 @@ var FetchHttpHandler = class _FetchHttpHandler {
83
83
  }
84
84
  destroy() {
85
85
  }
86
- async handle(request, { abortSignal } = {}) {
86
+ async handle(request, { abortSignal, requestTimeout: requestTimeout2 } = {}) {
87
87
  if (!this.config) {
88
88
  this.config = await this.configProvider;
89
89
  }
90
- const requestTimeoutInMs = this.config.requestTimeout;
90
+ const requestTimeoutInMs = requestTimeout2 ?? this.config.requestTimeout;
91
91
  const keepAlive = this.config.keepAlive === true;
92
92
  const credentials = this.config.credentials;
93
93
  if (abortSignal?.aborted) {
@@ -1,7 +1,7 @@
1
1
  import { HttpResponse } from "@smithy/protocol-http";
2
2
  import { buildQueryString } from "@smithy/querystring-builder";
3
3
  import { createRequest } from "./create-request";
4
- import { requestTimeout } from "./request-timeout";
4
+ import { requestTimeout as requestTimeoutFn } from "./request-timeout";
5
5
  export const keepAliveSupport = {
6
6
  supported: undefined,
7
7
  };
@@ -26,11 +26,11 @@ export class FetchHttpHandler {
26
26
  }
27
27
  destroy() {
28
28
  }
29
- async handle(request, { abortSignal } = {}) {
29
+ async handle(request, { abortSignal, requestTimeout } = {}) {
30
30
  if (!this.config) {
31
31
  this.config = await this.configProvider;
32
32
  }
33
- const requestTimeoutInMs = this.config.requestTimeout;
33
+ const requestTimeoutInMs = requestTimeout ?? this.config.requestTimeout;
34
34
  const keepAlive = this.config.keepAlive === true;
35
35
  const credentials = this.config.credentials;
36
36
  if (abortSignal?.aborted) {
@@ -105,7 +105,7 @@ export class FetchHttpHandler {
105
105
  }),
106
106
  };
107
107
  }),
108
- requestTimeout(requestTimeoutInMs),
108
+ requestTimeoutFn(requestTimeoutInMs),
109
109
  ];
110
110
  if (abortSignal) {
111
111
  raceOfPromises.push(new Promise((resolve, reject) => {
@@ -33,7 +33,7 @@ export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerOpt
33
33
  static create(instanceOrOptions?: HttpHandler<any> | FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>): FetchHttpHandler | HttpHandler<any>;
34
34
  constructor(options?: FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>);
35
35
  destroy(): void;
36
- handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
36
+ handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
37
37
  response: HttpResponse;
38
38
  }>;
39
39
  updateHttpClientConfig(key: keyof FetchHttpHandlerOptions, value: FetchHttpHandlerOptions[typeof key]): void;
@@ -33,7 +33,7 @@ export declare class FetchHttpHandler implements HttpHandler<FetchHttpHandlerOpt
33
33
  static create(instanceOrOptions?: HttpHandler<any> | FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>): FetchHttpHandler | HttpHandler<any>;
34
34
  constructor(options?: FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>);
35
35
  destroy(): void;
36
- handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
36
+ handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
37
37
  response: HttpResponse;
38
38
  }>;
39
39
  updateHttpClientConfig(key: keyof FetchHttpHandlerOptions, value: FetchHttpHandlerOptions[typeof key]): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.0.4",
3
+ "version": "5.1.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -89,6 +89,9 @@ var createConfigValueProvider = /* @__PURE__ */ __name((configKey, canonicalEndp
89
89
  }
90
90
  if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
91
91
  return async () => {
92
+ if (config.isCustomEndpoint === false) {
93
+ return void 0;
94
+ }
92
95
  const endpoint = await configProvider();
93
96
  if (endpoint && typeof endpoint === "object") {
94
97
  if ("url" in endpoint) {
@@ -122,7 +125,7 @@ var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => {
122
125
 
123
126
  // src/adaptors/getEndpointFromInstructions.ts
124
127
  var getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => {
125
- if (!clientConfig.endpoint) {
128
+ if (!clientConfig.isCustomEndpoint) {
126
129
  let endpointFromConfig;
127
130
  if (clientConfig.serviceConfiguredEndpoint) {
128
131
  endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
@@ -179,7 +182,7 @@ var endpointMiddleware = /* @__PURE__ */ __name(({
179
182
  instructions
180
183
  }) => {
181
184
  return (next, context) => async (args) => {
182
- if (config.endpoint) {
185
+ if (config.isCustomEndpoint) {
183
186
  (0, import_core.setFeature)(context, "ENDPOINT_OVERRIDE", "N");
184
187
  }
185
188
  const endpoint = await getEndpointFromInstructions(
@@ -22,6 +22,9 @@ export const createConfigValueProvider = (configKey, canonicalEndpointParamKey,
22
22
  }
23
23
  if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
24
24
  return async () => {
25
+ if (config.isCustomEndpoint === false) {
26
+ return undefined;
27
+ }
25
28
  const endpoint = await configProvider();
26
29
  if (endpoint && typeof endpoint === "object") {
27
30
  if ("url" in endpoint) {
@@ -3,7 +3,7 @@ import { createConfigValueProvider } from "./createConfigValueProvider";
3
3
  import { getEndpointFromConfig } from "./getEndpointFromConfig";
4
4
  import { toEndpointV1 } from "./toEndpointV1";
5
5
  export const getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
6
- if (!clientConfig.endpoint) {
6
+ if (!clientConfig.isCustomEndpoint) {
7
7
  let endpointFromConfig;
8
8
  if (clientConfig.serviceConfiguredEndpoint) {
9
9
  endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
@@ -3,7 +3,7 @@ import { getSmithyContext } from "@smithy/util-middleware";
3
3
  import { getEndpointFromInstructions } from "./adaptors/getEndpointFromInstructions";
4
4
  export const endpointMiddleware = ({ config, instructions, }) => {
5
5
  return (next, context) => async (args) => {
6
- if (config.endpoint) {
6
+ if (config.isCustomEndpoint) {
7
7
  setFeature(context, "ENDPOINT_OVERRIDE", "N");
8
8
  }
9
9
  const endpoint = await getEndpointFromInstructions(args.input, {
@@ -56,7 +56,7 @@ interface PreviouslyResolved<T extends EndpointParameters = EndpointParameters>
56
56
  /**
57
57
  * @internal
58
58
  *
59
- * This supercedes the similarly named EndpointsResolvedConfig (no parametric types)
59
+ * This supersedes the similarly named EndpointsResolvedConfig (no parametric types)
60
60
  * from resolveEndpointsConfig.ts in \@smithy/config-resolver.
61
61
  */
62
62
  export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointParameters> {
@@ -76,8 +76,11 @@ export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointP
76
76
  tls: boolean;
77
77
  /**
78
78
  * Whether the endpoint is specified by caller.
79
+ * This should be used over checking the existence of `endpoint`, since
80
+ * that may have been set by other means, such as the default regional
81
+ * endpoint provider function.
82
+ *
79
83
  * @internal
80
- * @deprecated
81
84
  */
82
85
  isCustomEndpoint?: boolean;
83
86
  /**
@@ -56,7 +56,7 @@ interface PreviouslyResolved<T extends EndpointParameters = EndpointParameters>
56
56
  /**
57
57
  * @internal
58
58
  *
59
- * This supercedes the similarly named EndpointsResolvedConfig (no parametric types)
59
+ * This supersedes the similarly named EndpointsResolvedConfig (no parametric types)
60
60
  * from resolveEndpointsConfig.ts in \@smithy/config-resolver.
61
61
  */
62
62
  export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointParameters> {
@@ -76,8 +76,11 @@ export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointP
76
76
  tls: boolean;
77
77
  /**
78
78
  * Whether the endpoint is specified by caller.
79
+ * This should be used over checking the existence of `endpoint`, since
80
+ * that may have been set by other means, such as the default regional
81
+ * endpoint provider function.
82
+ *
79
83
  * @internal
80
- * @deprecated
81
84
  */
82
85
  isCustomEndpoint?: boolean;
83
86
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "4.1.13",
3
+ "version": "4.1.14",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-endpoint",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/core": "^3.6.0",
27
+ "@smithy/core": "^3.7.0",
28
28
  "@smithy/middleware-serde": "^4.0.8",
29
29
  "@smithy/node-config-provider": "^4.1.3",
30
30
  "@smithy/shared-ini-file-loader": "^4.0.4",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "4.1.14",
3
+ "version": "4.1.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-retry",
@@ -36,7 +36,7 @@
36
36
  "@smithy/node-config-provider": "^4.1.3",
37
37
  "@smithy/protocol-http": "^5.1.2",
38
38
  "@smithy/service-error-classification": "^4.0.6",
39
- "@smithy/smithy-client": "^4.4.5",
39
+ "@smithy/smithy-client": "^4.4.6",
40
40
  "@smithy/types": "^4.3.1",
41
41
  "@smithy/util-middleware": "^4.0.4",
42
42
  "@smithy/util-retry": "^4.0.6",
@@ -293,7 +293,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
293
293
  this.config?.httpAgent?.destroy();
294
294
  this.config?.httpsAgent?.destroy();
295
295
  }
296
- async handle(request, { abortSignal } = {}) {
296
+ async handle(request, { abortSignal, requestTimeout } = {}) {
297
297
  if (!this.config) {
298
298
  this.config = await this.configProvider;
299
299
  }
@@ -394,8 +394,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
394
394
  abortSignal.onabort = onAbort;
395
395
  }
396
396
  }
397
+ const effectiveRequestTimeout = requestTimeout ?? this.config.requestTimeout;
397
398
  timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
398
- timeouts.push(setSocketTimeout(req, reject, this.config.requestTimeout));
399
+ timeouts.push(setSocketTimeout(req, reject, effectiveRequestTimeout));
399
400
  const httpAgent = nodeHttpsOptions.agent;
400
401
  if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
401
402
  timeouts.push(
@@ -407,7 +408,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
407
408
  })
408
409
  );
409
410
  }
410
- writeRequestBodyPromise = writeRequestBody(req, request, this.config.requestTimeout).catch((e) => {
411
+ writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout).catch((e) => {
411
412
  timeouts.forEach(timing.clearTimeout);
412
413
  return _reject(e);
413
414
  });
@@ -596,7 +597,7 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
596
597
  destroy() {
597
598
  this.connectionManager.destroy();
598
599
  }
599
- async handle(request, { abortSignal } = {}) {
600
+ async handle(request, { abortSignal, requestTimeout } = {}) {
600
601
  if (!this.config) {
601
602
  this.config = await this.configProvider;
602
603
  this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false);
@@ -604,7 +605,8 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
604
605
  this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);
605
606
  }
606
607
  }
607
- const { requestTimeout, disableConcurrentStreams } = this.config;
608
+ const { requestTimeout: configRequestTimeout, disableConcurrentStreams } = this.config;
609
+ const effectiveRequestTimeout = requestTimeout ?? configRequestTimeout;
608
610
  return new Promise((_resolve, _reject) => {
609
611
  let fulfilled = false;
610
612
  let writeRequestBodyPromise = void 0;
@@ -670,10 +672,10 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
670
672
  this.connectionManager.deleteSession(authority, session);
671
673
  }
672
674
  });
673
- if (requestTimeout) {
674
- req.setTimeout(requestTimeout, () => {
675
+ if (effectiveRequestTimeout) {
676
+ req.setTimeout(effectiveRequestTimeout, () => {
675
677
  req.close();
676
- const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`);
678
+ const timeoutError = new Error(`Stream timed out because of no activity for ${effectiveRequestTimeout} ms`);
677
679
  timeoutError.name = "TimeoutError";
678
680
  rejectWithDestroy(timeoutError);
679
681
  });
@@ -711,7 +713,7 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
711
713
  rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
712
714
  }
713
715
  });
714
- writeRequestBodyPromise = writeRequestBody(req, request, requestTimeout);
716
+ writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout);
715
717
  });
716
718
  }
717
719
  updateHttpClientConfig(key, value) {
@@ -83,7 +83,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
83
83
  this.config?.httpAgent?.destroy();
84
84
  this.config?.httpsAgent?.destroy();
85
85
  }
86
- async handle(request, { abortSignal } = {}) {
86
+ async handle(request, { abortSignal, requestTimeout } = {}) {
87
87
  if (!this.config) {
88
88
  this.config = await this.configProvider;
89
89
  }
@@ -179,8 +179,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
179
179
  abortSignal.onabort = onAbort;
180
180
  }
181
181
  }
182
+ const effectiveRequestTimeout = requestTimeout ?? this.config.requestTimeout;
182
183
  timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
183
- timeouts.push(setSocketTimeout(req, reject, this.config.requestTimeout));
184
+ timeouts.push(setSocketTimeout(req, reject, effectiveRequestTimeout));
184
185
  const httpAgent = nodeHttpsOptions.agent;
185
186
  if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
186
187
  timeouts.push(setSocketKeepAlive(req, {
@@ -188,7 +189,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
188
189
  keepAliveMsecs: httpAgent.keepAliveMsecs,
189
190
  }));
190
191
  }
191
- writeRequestBodyPromise = writeRequestBody(req, request, this.config.requestTimeout).catch((e) => {
192
+ writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout).catch((e) => {
192
193
  timeouts.forEach(timing.clearTimeout);
193
194
  return _reject(e);
194
195
  });
@@ -30,7 +30,7 @@ export class NodeHttp2Handler {
30
30
  destroy() {
31
31
  this.connectionManager.destroy();
32
32
  }
33
- async handle(request, { abortSignal } = {}) {
33
+ async handle(request, { abortSignal, requestTimeout } = {}) {
34
34
  if (!this.config) {
35
35
  this.config = await this.configProvider;
36
36
  this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false);
@@ -38,7 +38,8 @@ export class NodeHttp2Handler {
38
38
  this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);
39
39
  }
40
40
  }
41
- const { requestTimeout, disableConcurrentStreams } = this.config;
41
+ const { requestTimeout: configRequestTimeout, disableConcurrentStreams } = this.config;
42
+ const effectiveRequestTimeout = requestTimeout ?? configRequestTimeout;
42
43
  return new Promise((_resolve, _reject) => {
43
44
  let fulfilled = false;
44
45
  let writeRequestBodyPromise = undefined;
@@ -104,10 +105,10 @@ export class NodeHttp2Handler {
104
105
  this.connectionManager.deleteSession(authority, session);
105
106
  }
106
107
  });
107
- if (requestTimeout) {
108
- req.setTimeout(requestTimeout, () => {
108
+ if (effectiveRequestTimeout) {
109
+ req.setTimeout(effectiveRequestTimeout, () => {
109
110
  req.close();
110
- const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`);
111
+ const timeoutError = new Error(`Stream timed out because of no activity for ${effectiveRequestTimeout} ms`);
111
112
  timeoutError.name = "TimeoutError";
112
113
  rejectWithDestroy(timeoutError);
113
114
  });
@@ -144,7 +145,7 @@ export class NodeHttp2Handler {
144
145
  rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
145
146
  }
146
147
  });
147
- writeRequestBodyPromise = writeRequestBody(req, request, requestTimeout);
148
+ writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout);
148
149
  });
149
150
  }
150
151
  updateHttpClientConfig(key, value) {
@@ -37,7 +37,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
37
37
  constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
38
38
  private resolveDefaultConfig;
39
39
  destroy(): void;
40
- handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
40
+ handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
41
41
  response: HttpResponse;
42
42
  }>;
43
43
  updateHttpClientConfig(key: keyof NodeHttpHandlerOptions, value: NodeHttpHandlerOptions[typeof key]): void;
@@ -49,7 +49,7 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
49
49
  static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any> | NodeHttp2Handler;
50
50
  constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
51
51
  destroy(): void;
52
- handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
52
+ handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
53
53
  response: HttpResponse;
54
54
  }>;
55
55
  updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void;
@@ -37,7 +37,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
37
37
  constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
38
38
  private resolveDefaultConfig;
39
39
  destroy(): void;
40
- handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
40
+ handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
41
41
  response: HttpResponse;
42
42
  }>;
43
43
  updateHttpClientConfig(key: keyof NodeHttpHandlerOptions, value: NodeHttpHandlerOptions[typeof key]): void;
@@ -49,7 +49,7 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
49
49
  static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any> | NodeHttp2Handler;
50
50
  constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
51
51
  destroy(): void;
52
- handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{
52
+ handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
53
53
  response: HttpResponse;
54
54
  }>;
55
55
  updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.0.6",
3
+ "version": "4.1.0",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.4.5",
3
+ "version": "4.4.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline smithy-client",
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/core": "^3.6.0",
28
- "@smithy/middleware-endpoint": "^4.1.13",
27
+ "@smithy/core": "^3.7.0",
28
+ "@smithy/middleware-endpoint": "^4.1.14",
29
29
  "@smithy/middleware-stack": "^4.0.4",
30
30
  "@smithy/protocol-http": "^5.1.2",
31
31
  "@smithy/types": "^4.3.1",
32
- "@smithy/util-stream": "^4.2.2",
32
+ "@smithy/util-stream": "^4.2.3",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.0.21",
3
+ "version": "4.0.22",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
26
  "@smithy/property-provider": "^4.0.4",
27
- "@smithy/smithy-client": "^4.4.5",
27
+ "@smithy/smithy-client": "^4.4.6",
28
28
  "@smithy/types": "^4.3.1",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.0.21",
3
+ "version": "4.0.22",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
@@ -27,7 +27,7 @@
27
27
  "@smithy/credential-provider-imds": "^4.0.6",
28
28
  "@smithy/node-config-provider": "^4.1.3",
29
29
  "@smithy/property-provider": "^4.0.4",
30
- "@smithy/smithy-client": "^4.4.5",
30
+ "@smithy/smithy-client": "^4.4.6",
31
31
  "@smithy/types": "^4.3.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-stream",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/fetch-http-handler": "^5.0.4",
32
- "@smithy/node-http-handler": "^4.0.6",
31
+ "@smithy/fetch-http-handler": "^5.1.0",
32
+ "@smithy/node-http-handler": "^4.1.0",
33
33
  "@smithy/types": "^4.3.1",
34
34
  "@smithy/util-base64": "^4.0.0",
35
35
  "@smithy/util-buffer-from": "^4.0.0",