@cdk8s/awscdk-resolver 0.0.397 → 0.0.398

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 (130) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws/lambda-invoke-store/README.md +8 -0
  4. package/node_modules/@aws/lambda-invoke-store/{dist → dist-cjs}/invoke-store.js +12 -36
  5. package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +64 -0
  6. package/node_modules/@aws/lambda-invoke-store/{dist → dist-types}/invoke-store.d.ts +5 -0
  7. package/node_modules/@aws/lambda-invoke-store/package.json +26 -8
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  10. package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
  11. package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +1 -1
  12. package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +1 -1
  13. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  14. package/node_modules/@aws-sdk/core/package.json +11 -11
  15. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  16. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  17. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  18. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +108 -45
  19. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +55 -46
  20. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +54 -0
  21. package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +3 -2
  22. package/node_modules/@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain.d.ts +18 -0
  23. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +3 -2
  24. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/runtime/memoize-chain.d.ts +19 -0
  25. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  26. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  27. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +1 -0
  28. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +1 -0
  29. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  30. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +2 -2
  31. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +2 -2
  32. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +2 -3
  33. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +5 -3
  34. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  35. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  36. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  37. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
  38. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +3 -3
  39. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +2 -2
  40. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +1 -1
  41. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  42. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +1 -1
  43. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +1 -1
  44. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +17 -8
  45. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +1 -1
  46. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +17 -8
  47. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +1 -1
  48. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  49. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  50. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  51. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +7 -0
  52. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +20 -0
  53. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.native.js +6 -0
  54. package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +1 -0
  55. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.browser.js +3 -0
  56. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.js +16 -0
  57. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.native.js +3 -0
  58. package/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts +1 -0
  59. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.browser.d.ts +4 -0
  60. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.d.ts +14 -0
  61. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.native.d.ts +4 -0
  62. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts +1 -0
  63. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.browser.d.ts +1 -0
  64. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.d.ts +7 -0
  65. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.native.d.ts +1 -0
  66. package/node_modules/@aws-sdk/region-config-resolver/package.json +10 -5
  67. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +3 -1
  68. package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +3 -1
  69. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  70. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +2 -0
  71. package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +1 -0
  72. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +2 -0
  73. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +1 -0
  74. package/node_modules/@aws-sdk/types/package.json +2 -2
  75. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  76. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  77. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  78. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  79. package/node_modules/@smithy/abort-controller/package.json +2 -2
  80. package/node_modules/@smithy/config-resolver/package.json +5 -5
  81. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -14
  82. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +5 -14
  83. package/node_modules/@smithy/core/package.json +7 -7
  84. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  85. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  86. package/node_modules/@smithy/hash-node/package.json +2 -2
  87. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  88. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  89. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  90. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  91. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  92. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  93. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  94. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -4
  95. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -2
  96. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
  97. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
  98. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +2 -2
  99. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -1
  100. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -1
  101. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  102. package/node_modules/@smithy/property-provider/package.json +2 -2
  103. package/node_modules/@smithy/protocol-http/package.json +2 -2
  104. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  105. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  106. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  107. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  108. package/node_modules/@smithy/signature-v4/package.json +4 -4
  109. package/node_modules/@smithy/smithy-client/package.json +7 -7
  110. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  111. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  112. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  113. package/node_modules/@smithy/types/package.json +1 -1
  114. package/node_modules/@smithy/url-parser/package.json +3 -3
  115. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  116. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  117. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  118. package/node_modules/@smithy/util-middleware/package.json +2 -2
  119. package/node_modules/@smithy/util-retry/package.json +3 -3
  120. package/node_modules/@smithy/util-stream/package.json +4 -4
  121. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +17 -4
  122. package/node_modules/@smithy/util-waiter/dist-es/circularReplacer.js +12 -0
  123. package/node_modules/@smithy/util-waiter/dist-es/poller.js +2 -1
  124. package/node_modules/@smithy/util-waiter/dist-es/waiter.js +4 -3
  125. package/node_modules/@smithy/util-waiter/dist-types/circularReplacer.d.ts +6 -0
  126. package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +1 -1
  127. package/node_modules/@smithy/util-waiter/dist-types/ts3.4/circularReplacer.d.ts +6 -0
  128. package/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts +1 -1
  129. package/node_modules/@smithy/util-waiter/package.json +3 -3
  130. package/package.json +8 -8
@@ -126,12 +126,12 @@ const setSocketTimeout = (request, reject, timeoutInMs = 0) => {
126
126
  };
127
127
 
128
128
  const MIN_WAIT_TIME = 6_000;
129
- async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
129
+ async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME, externalAgent = false) {
130
130
  const headers = request.headers ?? {};
131
131
  const expect = headers.Expect || headers.expect;
132
132
  let timeoutId = -1;
133
133
  let sendBody = true;
134
- if (expect === "100-continue") {
134
+ if (!externalAgent && expect === "100-continue") {
135
135
  sendBody = await Promise.race([
136
136
  new Promise((resolve) => {
137
137
  timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
@@ -185,6 +185,7 @@ class NodeHttpHandler {
185
185
  config;
186
186
  configProvider;
187
187
  socketWarningTimestamp = 0;
188
+ externalAgent = false;
188
189
  metadata = { handlerProtocol: "http/1.1" };
189
190
  static create(instanceOrOptions) {
190
191
  if (typeof instanceOrOptions?.handle === "function") {
@@ -241,12 +242,14 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
241
242
  throwOnRequestTimeout,
242
243
  httpAgent: (() => {
243
244
  if (httpAgent instanceof http.Agent || typeof httpAgent?.destroy === "function") {
245
+ this.externalAgent = true;
244
246
  return httpAgent;
245
247
  }
246
248
  return new http.Agent({ keepAlive, maxSockets, ...httpAgent });
247
249
  })(),
248
250
  httpsAgent: (() => {
249
251
  if (httpsAgent instanceof https.Agent || typeof httpsAgent?.destroy === "function") {
252
+ this.externalAgent = true;
250
253
  return httpsAgent;
251
254
  }
252
255
  return new https.Agent({ keepAlive, maxSockets, ...httpsAgent });
@@ -286,7 +289,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
286
289
  const headers = request.headers ?? {};
287
290
  const expectContinue = (headers.Expect ?? headers.expect) === "100-continue";
288
291
  let agent = isSSL ? config.httpsAgent : config.httpAgent;
289
- if (expectContinue) {
292
+ if (expectContinue && !this.externalAgent) {
290
293
  agent = new (isSSL ? https.Agent : http.Agent)({
291
294
  keepAlive: false,
292
295
  maxSockets: Infinity,
@@ -370,7 +373,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
370
373
  keepAliveMsecs: httpAgent.keepAliveMsecs,
371
374
  }));
372
375
  }
373
- writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout).catch((e) => {
376
+ writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout, this.externalAgent).catch((e) => {
374
377
  timeouts.forEach(timing.clearTimeout);
375
378
  return _reject(e);
376
379
  });
@@ -15,6 +15,7 @@ export class NodeHttpHandler {
15
15
  config;
16
16
  configProvider;
17
17
  socketWarningTimestamp = 0;
18
+ externalAgent = false;
18
19
  metadata = { handlerProtocol: "http/1.1" };
19
20
  static create(instanceOrOptions) {
20
21
  if (typeof instanceOrOptions?.handle === "function") {
@@ -71,12 +72,14 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
71
72
  throwOnRequestTimeout,
72
73
  httpAgent: (() => {
73
74
  if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
75
+ this.externalAgent = true;
74
76
  return httpAgent;
75
77
  }
76
78
  return new hAgent({ keepAlive, maxSockets, ...httpAgent });
77
79
  })(),
78
80
  httpsAgent: (() => {
79
81
  if (httpsAgent instanceof hsAgent || typeof httpsAgent?.destroy === "function") {
82
+ this.externalAgent = true;
80
83
  return httpsAgent;
81
84
  }
82
85
  return new hsAgent({ keepAlive, maxSockets, ...httpsAgent });
@@ -116,7 +119,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
116
119
  const headers = request.headers ?? {};
117
120
  const expectContinue = (headers.Expect ?? headers.expect) === "100-continue";
118
121
  let agent = isSSL ? config.httpsAgent : config.httpAgent;
119
- if (expectContinue) {
122
+ if (expectContinue && !this.externalAgent) {
120
123
  agent = new (isSSL ? hsAgent : hAgent)({
121
124
  keepAlive: false,
122
125
  maxSockets: Infinity,
@@ -200,7 +203,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
200
203
  keepAliveMsecs: httpAgent.keepAliveMsecs,
201
204
  }));
202
205
  }
203
- writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout).catch((e) => {
206
+ writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout, this.externalAgent).catch((e) => {
204
207
  timeouts.forEach(timing.clearTimeout);
205
208
  return _reject(e);
206
209
  });
@@ -1,12 +1,12 @@
1
1
  import { Readable } from "stream";
2
2
  import { timing } from "./timing";
3
3
  const MIN_WAIT_TIME = 6_000;
4
- export async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
4
+ export async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME, externalAgent = false) {
5
5
  const headers = request.headers ?? {};
6
6
  const expect = headers.Expect || headers.expect;
7
7
  let timeoutId = -1;
8
8
  let sendBody = true;
9
- if (expect === "100-continue") {
9
+ if (!externalAgent && expect === "100-continue") {
10
10
  sendBody = await Promise.race([
11
11
  new Promise((resolve) => {
12
12
  timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
@@ -1,7 +1,6 @@
1
1
  import type { HttpHandler, HttpRequest } from "@smithy/protocol-http";
2
2
  import { HttpResponse } from "@smithy/protocol-http";
3
- import type { Logger, NodeHttpHandlerOptions } from "@smithy/types";
4
- import type { HttpHandlerOptions, Provider } from "@smithy/types";
3
+ import type { HttpHandlerOptions, Logger, NodeHttpHandlerOptions, Provider } from "@smithy/types";
5
4
  import { Agent as hAgent } from "http";
6
5
  import { Agent as hsAgent } from "https";
7
6
  export { NodeHttpHandlerOptions };
@@ -18,6 +17,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
18
17
  private config?;
19
18
  private configProvider;
20
19
  private socketWarningTimestamp;
20
+ private externalAgent;
21
21
  readonly metadata: {
22
22
  handlerProtocol: string;
23
23
  };
@@ -1,7 +1,6 @@
1
1
  import { HttpHandler, HttpRequest } from "@smithy/protocol-http";
2
2
  import { HttpResponse } from "@smithy/protocol-http";
3
- import { Logger, NodeHttpHandlerOptions } from "@smithy/types";
4
- import { HttpHandlerOptions, Provider } from "@smithy/types";
3
+ import { HttpHandlerOptions, Logger, NodeHttpHandlerOptions, Provider } from "@smithy/types";
5
4
  import { Agent as hAgent } from "http";
6
5
  import { Agent as hsAgent } from "https";
7
6
  export { NodeHttpHandlerOptions };
@@ -18,6 +17,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
18
17
  private config?;
19
18
  private configProvider;
20
19
  private socketWarningTimestamp;
20
+ private externalAgent;
21
21
  readonly metadata: {
22
22
  handlerProtocol: string;
23
23
  };
@@ -7,5 +7,6 @@ import { ClientHttp2Stream } from "http2";
7
7
  * @param httpRequest - opened Node.js request.
8
8
  * @param request - container with the request body.
9
9
  * @param maxContinueTimeoutMs - time to wait for the continue event.
10
+ * @param externalAgent - whether agent is owned by caller code.
10
11
  */
11
- export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number): Promise<void>;
12
+ export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number, externalAgent?: boolean): Promise<void>;
@@ -7,5 +7,6 @@ import type { ClientHttp2Stream } from "http2";
7
7
  * @param httpRequest - opened Node.js request.
8
8
  * @param request - container with the request body.
9
9
  * @param maxContinueTimeoutMs - time to wait for the continue event.
10
+ * @param externalAgent - whether agent is owned by caller code.
10
11
  */
11
- export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number): Promise<void>;
12
+ export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number, externalAgent?: boolean): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
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'",
@@ -27,10 +27,10 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/abort-controller": "^4.2.3",
31
- "@smithy/protocol-http": "^5.3.3",
32
- "@smithy/querystring-builder": "^4.2.3",
33
- "@smithy/types": "^4.8.0",
30
+ "@smithy/abort-controller": "^4.2.4",
31
+ "@smithy/protocol-http": "^5.3.4",
32
+ "@smithy/querystring-builder": "^4.2.4",
33
+ "@smithy/types": "^4.8.1",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/property-provider",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
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 property-provider",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.8.0",
27
+ "@smithy/types": "^4.8.1",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/protocol-http",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
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 protocol-http",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/types": "^4.8.0",
28
+ "@smithy/types": "^4.8.1",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-builder",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
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 querystring-builder",
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
- "@smithy/types": "^4.8.0",
26
+ "@smithy/types": "^4.8.1",
27
27
  "@smithy/util-uri-escape": "^4.2.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-parser",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
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 querystring-parser",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.8.0",
27
+ "@smithy/types": "^4.8.1",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-error-classification",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
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 service-error-classification",
@@ -55,6 +55,6 @@
55
55
  "directory": ".release/package"
56
56
  },
57
57
  "dependencies": {
58
- "@smithy/types": "^4.8.0"
58
+ "@smithy/types": "^4.8.1"
59
59
  }
60
60
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "4.3.3",
3
+ "version": "4.3.4",
4
4
  "dependencies": {
5
- "@smithy/types": "^4.8.0",
5
+ "@smithy/types": "^4.8.1",
6
6
  "tslib": "^2.6.2"
7
7
  },
8
8
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,10 +27,10 @@
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
29
  "@smithy/is-array-buffer": "^4.2.0",
30
- "@smithy/protocol-http": "^5.3.3",
31
- "@smithy/types": "^4.8.0",
30
+ "@smithy/protocol-http": "^5.3.4",
31
+ "@smithy/types": "^4.8.1",
32
32
  "@smithy/util-hex-encoding": "^4.2.0",
33
- "@smithy/util-middleware": "^4.2.3",
33
+ "@smithy/util-middleware": "^4.2.4",
34
34
  "@smithy/util-uri-escape": "^4.2.0",
35
35
  "@smithy/util-utf8": "^4.2.0",
36
36
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.9.1",
3
+ "version": "4.9.2",
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",
@@ -25,12 +25,12 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.17.1",
29
- "@smithy/middleware-endpoint": "^4.3.5",
30
- "@smithy/middleware-stack": "^4.2.3",
31
- "@smithy/protocol-http": "^5.3.3",
32
- "@smithy/types": "^4.8.0",
33
- "@smithy/util-stream": "^4.5.4",
28
+ "@smithy/core": "^3.17.2",
29
+ "@smithy/middleware-endpoint": "^4.3.6",
30
+ "@smithy/middleware-stack": "^4.2.4",
31
+ "@smithy/protocol-http": "^5.3.4",
32
+ "@smithy/types": "^4.8.1",
33
+ "@smithy/util-stream": "^4.5.5",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "engines": {
@@ -22,6 +22,7 @@ export * from "./profile";
22
22
  export * from "./response";
23
23
  export * from "./retry";
24
24
  export * from "./schema/schema";
25
+ export * from "./schema/traits";
25
26
  export * from "./schema/schema-deprecated";
26
27
  export * from "./schema/sentinels";
27
28
  export * from "./schema/static-schemas";
@@ -22,6 +22,7 @@ export * from "./profile";
22
22
  export * from "./response";
23
23
  export * from "./retry";
24
24
  export * from "./schema/schema";
25
+ export * from "./schema/traits";
25
26
  export * from "./schema/schema-deprecated";
26
27
  export * from "./schema/sentinels";
27
28
  export * from "./schema/static-schemas";
@@ -22,6 +22,7 @@ export * from "./profile";
22
22
  export * from "./response";
23
23
  export * from "./retry";
24
24
  export * from "./schema/schema";
25
+ export * from "./schema/traits";
25
26
  export * from "./schema/schema-deprecated";
26
27
  export * from "./schema/sentinels";
27
28
  export * from "./schema/static-schemas";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.8.0",
3
+ "version": "4.8.1",
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 types",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/url-parser",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
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 url-parser",
@@ -24,8 +24,8 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/querystring-parser": "^4.2.3",
28
- "@smithy/types": "^4.8.0",
27
+ "@smithy/querystring-parser": "^4.2.4",
28
+ "@smithy/types": "^4.8.1",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.3.4",
3
+ "version": "4.3.5",
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,9 +24,9 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/property-provider": "^4.2.3",
28
- "@smithy/smithy-client": "^4.9.1",
29
- "@smithy/types": "^4.8.0",
27
+ "@smithy/property-provider": "^4.2.4",
28
+ "@smithy/smithy-client": "^4.9.2",
29
+ "@smithy/types": "^4.8.1",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
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",
@@ -24,12 +24,12 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/config-resolver": "^4.4.0",
28
- "@smithy/credential-provider-imds": "^4.2.3",
29
- "@smithy/node-config-provider": "^4.3.3",
30
- "@smithy/property-provider": "^4.2.3",
31
- "@smithy/smithy-client": "^4.9.1",
32
- "@smithy/types": "^4.8.0",
27
+ "@smithy/config-resolver": "^4.4.1",
28
+ "@smithy/credential-provider-imds": "^4.2.4",
29
+ "@smithy/node-config-provider": "^4.3.4",
30
+ "@smithy/property-provider": "^4.2.4",
31
+ "@smithy/smithy-client": "^4.9.2",
32
+ "@smithy/types": "^4.8.1",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,8 +29,8 @@
29
29
  "license": "Apache-2.0",
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@smithy/node-config-provider": "^4.3.3",
33
- "@smithy/types": "^4.8.0",
32
+ "@smithy/node-config-provider": "^4.3.4",
33
+ "@smithy/types": "^4.8.1",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,7 +28,7 @@
28
28
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/types": "^4.8.0",
31
+ "@smithy/types": "^4.8.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -31,8 +31,8 @@
31
31
  "license": "Apache-2.0",
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
- "@smithy/service-error-classification": "^4.2.3",
35
- "@smithy/types": "^4.8.0",
34
+ "@smithy/service-error-classification": "^4.2.4",
35
+ "@smithy/types": "^4.8.1",
36
36
  "tslib": "^2.6.2"
37
37
  },
38
38
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "4.5.4",
3
+ "version": "4.5.5",
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",
@@ -29,9 +29,9 @@
29
29
  "license": "Apache-2.0",
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@smithy/fetch-http-handler": "^5.3.4",
33
- "@smithy/node-http-handler": "^4.4.3",
34
- "@smithy/types": "^4.8.0",
32
+ "@smithy/fetch-http-handler": "^5.3.5",
33
+ "@smithy/node-http-handler": "^4.4.4",
34
+ "@smithy/types": "^4.8.1",
35
35
  "@smithy/util-base64": "^4.3.0",
36
36
  "@smithy/util-buffer-from": "^4.2.0",
37
37
  "@smithy/util-hex-encoding": "^4.2.0",
@@ -1,5 +1,18 @@
1
1
  'use strict';
2
2
 
3
+ const getCircularReplacer = () => {
4
+ const seen = new WeakSet();
5
+ return (key, value) => {
6
+ if (typeof value === "object" && value !== null) {
7
+ if (seen.has(value)) {
8
+ return "[Circular]";
9
+ }
10
+ seen.add(value);
11
+ }
12
+ return value;
13
+ };
14
+ };
15
+
3
16
  const sleep = (seconds) => {
4
17
  return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
5
18
  };
@@ -21,7 +34,7 @@ const checkExceptions = (result) => {
21
34
  const abortError = new Error(`${JSON.stringify({
22
35
  ...result,
23
36
  reason: "Request was aborted",
24
- })}`);
37
+ }, getCircularReplacer())}`);
25
38
  abortError.name = "AbortError";
26
39
  throw abortError;
27
40
  }
@@ -29,12 +42,12 @@ const checkExceptions = (result) => {
29
42
  const timeoutError = new Error(`${JSON.stringify({
30
43
  ...result,
31
44
  reason: "Waiter has timed out",
32
- })}`);
45
+ }, getCircularReplacer())}`);
33
46
  timeoutError.name = "TimeoutError";
34
47
  throw timeoutError;
35
48
  }
36
49
  else if (result.state !== exports.WaiterState.SUCCESS) {
37
- throw new Error(`${JSON.stringify(result)}`);
50
+ throw new Error(`${JSON.stringify(result, getCircularReplacer())}`);
38
51
  }
39
52
  return result;
40
53
  };
@@ -94,7 +107,7 @@ const createMessageFromResponse = (reason) => {
94
107
  }
95
108
  return `${reason.$metadata.httpStatusCode}: OK`;
96
109
  }
97
- return String(reason?.message ?? JSON.stringify(reason) ?? "Unknown");
110
+ return String(reason?.message ?? JSON.stringify(reason, getCircularReplacer()) ?? "Unknown");
98
111
  };
99
112
 
100
113
  const validateWaiterOptions = (options) => {
@@ -0,0 +1,12 @@
1
+ export const getCircularReplacer = () => {
2
+ const seen = new WeakSet();
3
+ return (key, value) => {
4
+ if (typeof value === "object" && value !== null) {
5
+ if (seen.has(value)) {
6
+ return "[Circular]";
7
+ }
8
+ seen.add(value);
9
+ }
10
+ return value;
11
+ };
12
+ };
@@ -1,3 +1,4 @@
1
+ import { getCircularReplacer } from "./circularReplacer";
1
2
  import { sleep } from "./utils/sleep";
2
3
  import { WaiterState } from "./waiter";
3
4
  const exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => {
@@ -55,5 +56,5 @@ const createMessageFromResponse = (reason) => {
55
56
  }
56
57
  return `${reason.$metadata.httpStatusCode}: OK`;
57
58
  }
58
- return String(reason?.message ?? JSON.stringify(reason) ?? "Unknown");
59
+ return String(reason?.message ?? JSON.stringify(reason, getCircularReplacer()) ?? "Unknown");
59
60
  };
@@ -1,3 +1,4 @@
1
+ import { getCircularReplacer } from "./circularReplacer";
1
2
  export const waiterServiceDefaults = {
2
3
  minDelay: 2,
3
4
  maxDelay: 120,
@@ -15,7 +16,7 @@ export const checkExceptions = (result) => {
15
16
  const abortError = new Error(`${JSON.stringify({
16
17
  ...result,
17
18
  reason: "Request was aborted",
18
- })}`);
19
+ }, getCircularReplacer())}`);
19
20
  abortError.name = "AbortError";
20
21
  throw abortError;
21
22
  }
@@ -23,12 +24,12 @@ export const checkExceptions = (result) => {
23
24
  const timeoutError = new Error(`${JSON.stringify({
24
25
  ...result,
25
26
  reason: "Waiter has timed out",
26
- })}`);
27
+ }, getCircularReplacer())}`);
27
28
  timeoutError.name = "TimeoutError";
28
29
  throw timeoutError;
29
30
  }
30
31
  else if (result.state !== WaiterState.SUCCESS) {
31
- throw new Error(`${JSON.stringify(result)}`);
32
+ throw new Error(`${JSON.stringify(result, getCircularReplacer())}`);
32
33
  }
33
34
  return result;
34
35
  };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Helper for JSON stringification debug logging.
3
+ *
4
+ * @internal
5
+ */
6
+ export declare const getCircularReplacer: () => (key: any, value: any) => any;