@mavogel/awscdk-rootmail 0.1.35 → 0.1.37

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 (158) hide show
  1. package/.jsii +8 -8
  2. package/lib/rootmail.js +1 -1
  3. package/lib/ses-receive.js +1 -1
  4. package/node_modules/@aws-sdk/checksums/package.json +3 -3
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +51 -14
  6. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/models/enums.js +1 -0
  7. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/schemas/schemas_0.js +46 -13
  8. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/DeleteAccountPolicyCommand.d.ts +22 -5
  9. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/DescribeAccountPoliciesCommand.d.ts +2 -2
  10. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/DescribeLogGroupsCommand.d.ts +1 -0
  11. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/PutAccountPolicyCommand.d.ts +18 -2
  12. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/TagLogGroupCommand.d.ts +1 -1
  13. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/TagResourceCommand.d.ts +1 -1
  14. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/commands/TestMetricFilterCommand.d.ts +1 -2
  15. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/models/enums.d.ts +1 -0
  16. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/models/models_0.d.ts +124 -58
  17. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/models/models_1.d.ts +58 -0
  18. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/schemas/schemas_0.d.ts +3 -0
  19. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/commands/DeleteAccountPolicyCommand.d.ts +4 -3
  20. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/commands/TagLogGroupCommand.d.ts +1 -1
  21. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/commands/TestMetricFilterCommand.d.ts +1 -2
  23. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/models/enums.d.ts +1 -0
  24. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/models/models_0.d.ts +21 -12
  25. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/models/models_1.d.ts +12 -0
  26. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
  27. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +5 -5
  28. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +1 -1
  29. package/node_modules/@aws-sdk/client-route-53/package.json +5 -5
  30. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  31. package/node_modules/@aws-sdk/client-s3/package.json +9 -9
  32. package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +1 -1
  33. package/node_modules/@aws-sdk/client-ses/package.json +5 -5
  34. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
  35. package/node_modules/@aws-sdk/client-ssm/package.json +5 -5
  36. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +1 -4
  37. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +3 -7
  39. package/node_modules/@aws-sdk/core/package.json +3 -3
  40. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  41. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  42. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  43. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  44. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  45. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  46. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  47. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  48. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +4 -4
  49. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +8 -1
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  53. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  54. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
  55. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -2
  56. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +1 -2
  57. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -59
  58. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -2
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +16 -9
  61. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +8 -39
  62. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +36 -48
  63. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +7 -0
  64. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  65. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  66. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  67. package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  68. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -16
  69. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +36 -17
  70. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
  71. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
  72. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
  73. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  74. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
  75. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +18 -9
  76. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +18 -9
  77. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -24
  78. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
  79. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
  80. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
  81. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
  82. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
  83. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
  84. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  85. package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
  86. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
  87. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
  88. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
  89. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
  90. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
  91. package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
  92. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
  93. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
  94. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
  95. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
  96. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
  97. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
  98. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
  99. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
  100. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
  101. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
  102. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
  103. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
  104. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
  105. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +2 -1
  106. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
  107. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
  108. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
  109. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
  110. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
  111. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
  112. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -1
  113. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
  114. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
  115. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
  116. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +6 -3
  117. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
  118. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
  119. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
  120. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
  121. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
  122. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
  123. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  124. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  125. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  126. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
  127. package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
  128. package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
  129. package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
  130. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
  131. package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  132. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  133. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  134. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  135. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  136. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  137. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  138. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  139. package/node_modules/@smithy/core/package.json +1 -1
  140. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +22 -9
  141. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
  142. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +14 -8
  143. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
  144. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  145. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
  146. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
  147. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
  148. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
  149. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
  150. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
  151. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
  152. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
  153. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
  154. package/node_modules/@smithy/signature-v4/package.json +2 -2
  155. package/package.json +7 -7
  156. /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
  157. /package/node_modules/@smithy/core/dist-types/submodules/{protocols → serde}/writeKey.d.ts +0 -0
  158. /package/node_modules/@smithy/core/dist-types/ts3.4/submodules/{protocols → serde}/writeKey.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- const { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader, parseEpochTimestamp, parseRfc7231DateTime, parseRfc3339DateTimeWithOffset } = require("@smithy/core/serde");
1
+ const { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader, writeKey, parseEpochTimestamp, parseRfc7231DateTime, parseRfc3339DateTimeWithOffset } = require("@smithy/core/serde");
2
2
  const { HttpRequest, HttpResponse, hasOwn, isValidHostname, getSmithyContext } = require("@smithy/core/transport");
3
3
  const { parseQueryString, parseUrl } = require("@smithy/core/transport");
4
4
  exports.HttpRequest = HttpRequest;
@@ -75,8 +75,9 @@ class HttpProtocol extends SerdeContext {
75
75
  }
76
76
  if (endpoint.headers) {
77
77
  for (const name in endpoint.headers) {
78
- if (!hasOwn(endpoint.headers, name))
78
+ if (!hasOwn(endpoint.headers, name)) {
79
79
  continue;
80
+ }
80
81
  request.headers[name] = endpoint.headers[name].join(", ");
81
82
  }
82
83
  }
@@ -92,8 +93,9 @@ class HttpProtocol extends SerdeContext {
92
93
  };
93
94
  if (endpoint.headers) {
94
95
  for (const name in endpoint.headers) {
95
- if (!hasOwn(endpoint.headers, name))
96
+ if (!hasOwn(endpoint.headers, name)) {
96
97
  continue;
98
+ }
97
99
  request.headers[name] = endpoint.headers[name];
98
100
  }
99
101
  }
@@ -314,8 +316,9 @@ class HttpBindingProtocol extends HttpProtocol {
314
316
  }
315
317
  else if (typeof memberTraits.httpPrefixHeaders === "string") {
316
318
  for (const key in inputMemberValue) {
317
- if (!hasOwn(inputMemberValue, key))
319
+ if (!hasOwn(inputMemberValue, key)) {
318
320
  continue;
321
+ }
319
322
  const val = inputMemberValue[key];
320
323
  const amalgam = memberTraits.httpPrefixHeaders + key;
321
324
  serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
@@ -362,8 +365,9 @@ class HttpBindingProtocol extends HttpProtocol {
362
365
  const traits = ns.getMergedTraits();
363
366
  if (traits.httpQueryParams) {
364
367
  for (const key in data) {
365
- if (!hasOwn(data, key))
368
+ if (!hasOwn(data, key)) {
366
369
  continue;
370
+ }
367
371
  if (!(key in query)) {
368
372
  const val = data[key];
369
373
  const valueSchema = ns.getValueSchema();
@@ -407,8 +411,9 @@ class HttpBindingProtocol extends HttpProtocol {
407
411
  throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
408
412
  }
409
413
  for (const header in response.headers) {
410
- if (!hasOwn(response.headers, header))
414
+ if (!hasOwn(response.headers, header)) {
411
415
  continue;
416
+ }
412
417
  const value = response.headers[header];
413
418
  delete response.headers[header];
414
419
  response.headers[header.toLowerCase()] = value;
@@ -496,8 +501,9 @@ class HttpBindingProtocol extends HttpProtocol {
496
501
  else if (memberTraits.httpPrefixHeaders !== undefined) {
497
502
  dataObject[memberName] = {};
498
503
  for (const header in response.headers) {
499
- if (!hasOwn(response.headers, header))
504
+ if (!hasOwn(response.headers, header)) {
500
505
  continue;
506
+ }
501
507
  if (header.startsWith(memberTraits.httpPrefixHeaders)) {
502
508
  const value = response.headers[header];
503
509
  const valueSchema = memberSchema.getValueSchema();
@@ -583,8 +589,9 @@ class RpcProtocol extends HttpProtocol {
583
589
  throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
584
590
  }
585
591
  for (const header in response.headers) {
586
- if (!hasOwn(response.headers, header))
592
+ if (!hasOwn(response.headers, header)) {
587
593
  continue;
594
+ }
588
595
  const value = response.headers[header];
589
596
  delete response.headers[header];
590
597
  response.headers[header.toLowerCase()] = value;
@@ -1021,6 +1028,9 @@ const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
1021
1028
  if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") {
1022
1029
  runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"), runtimeConfig.logger);
1023
1030
  }
1031
+ if (runtimeConfig.defaultSocketTimeout) {
1032
+ runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("@smithy/defaultSocketTimeout"), runtimeConfig.defaultSocketTimeout);
1033
+ }
1024
1034
  return {
1025
1035
  setHttpHandler(handler) {
1026
1036
  runtimeConfig.requestHandler = handler;
@@ -1426,10 +1436,6 @@ const loadErrorCode = ({ headers }, data, order) => {
1426
1436
  }
1427
1437
  };
1428
1438
 
1429
- function writeKey(obj) {
1430
- Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
1431
- }
1432
-
1433
1439
  class JsonShapeDeserializer2 extends SerdeContextConfig {
1434
1440
  settings;
1435
1441
  constructor(settings) {
@@ -1481,8 +1487,9 @@ class JsonShapeDeserializer2 extends SerdeContextConfig {
1481
1487
  const map = value;
1482
1488
  if (this.needsTransform(mapMember)) {
1483
1489
  for (const k in map) {
1484
- if (!hasOwn(map, k))
1490
+ if (!hasOwn(map, k)) {
1485
1491
  continue;
1492
+ }
1486
1493
  if (k === "__proto__") {
1487
1494
  writeKey(map);
1488
1495
  }
@@ -1554,8 +1561,9 @@ class JsonShapeDeserializer2 extends SerdeContextConfig {
1554
1561
  else {
1555
1562
  const doc = value;
1556
1563
  for (const k in doc) {
1557
- if (!hasOwn(doc, k))
1564
+ if (!hasOwn(doc, k)) {
1558
1565
  continue;
1566
+ }
1559
1567
  if (k === "__proto__") {
1560
1568
  writeKey(doc);
1561
1569
  }
@@ -1602,8 +1610,9 @@ class JsonShapeDeserializer2 extends SerdeContextConfig {
1602
1610
  }
1603
1611
  else if (hasType) {
1604
1612
  for (const k in record) {
1605
- if (!hasOwn(record, k))
1613
+ if (!hasOwn(record, k)) {
1606
1614
  continue;
1615
+ }
1607
1616
  const v = record[k];
1608
1617
  const t = jsonName ? (nameMap[k] ?? k) : k;
1609
1618
  if (!(t in out)) {
@@ -2147,8 +2156,9 @@ class JsonShapeSerializer2 extends SerdeContextConfig {
2147
2156
  const out = [];
2148
2157
  for (let i = 0; i < value.length; ++i) {
2149
2158
  const v = value[i];
2150
- if (v == null && !sparse)
2159
+ if (v == null && !sparse) {
2151
2160
  continue;
2161
+ }
2152
2162
  if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
2153
2163
  out.push(String(v));
2154
2164
  }
@@ -2188,8 +2198,9 @@ class JsonShapeSerializer2 extends SerdeContextConfig {
2188
2198
  if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
2189
2199
  let modifications;
2190
2200
  for (const k in value) {
2191
- if (!hasOwn(value, k))
2201
+ if (!hasOwn(value, k)) {
2192
2202
  continue;
2203
+ }
2193
2204
  const v = value[k];
2194
2205
  if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
2195
2206
  (modifications ??= {})[k] = v;
@@ -2213,8 +2224,9 @@ class JsonShapeSerializer2 extends SerdeContextConfig {
2213
2224
  this.json[this.i++] = OPEN_BRACE;
2214
2225
  let first = true;
2215
2226
  for (const k in value) {
2216
- if (!hasOwn(value, k))
2227
+ if (!hasOwn(value, k)) {
2217
2228
  continue;
2229
+ }
2218
2230
  const v = value[k];
2219
2231
  if (isDocument ? v === undefined : v == null && !sparse) {
2220
2232
  continue;
@@ -2400,8 +2412,9 @@ class JsonShapeDeserializer extends SerdeContextConfig {
2400
2412
  }
2401
2413
  else if (typeof record.__type === "string") {
2402
2414
  for (const k in record) {
2403
- if (!hasOwn(record, k))
2415
+ if (!hasOwn(record, k)) {
2404
2416
  continue;
2417
+ }
2405
2418
  const v = record[k];
2406
2419
  const t = jsonName ? (nameMap[k] ?? k) : k;
2407
2420
  if (!(t in out)) {
@@ -2423,8 +2436,9 @@ class JsonShapeDeserializer extends SerdeContextConfig {
2423
2436
  const mapMember = ns.getValueSchema();
2424
2437
  const out = {};
2425
2438
  for (const _k in value) {
2426
- if (!hasOwn(value, _k))
2439
+ if (!hasOwn(value, _k)) {
2427
2440
  continue;
2441
+ }
2428
2442
  if (_k === "__proto__") {
2429
2443
  writeKey(out);
2430
2444
  }
@@ -2486,8 +2500,9 @@ class JsonShapeDeserializer extends SerdeContextConfig {
2486
2500
  if (isObject) {
2487
2501
  const out = Array.isArray(value) ? [] : {};
2488
2502
  for (const k in value) {
2489
- if (!hasOwn(value, k))
2503
+ if (!hasOwn(value, k)) {
2490
2504
  continue;
2505
+ }
2491
2506
  if (k === "__proto__") {
2492
2507
  writeKey(out);
2493
2508
  }
@@ -2624,8 +2639,9 @@ class JsonShapeSerializer extends SerdeContextConfig {
2624
2639
  }
2625
2640
  else if (typeof record.__type === "string") {
2626
2641
  for (const k in record) {
2627
- if (!hasOwn(record, k))
2642
+ if (!hasOwn(record, k)) {
2628
2643
  continue;
2644
+ }
2629
2645
  const v = record[k];
2630
2646
  const targetKey = jsonName ? (nameMap[k] ?? k) : k;
2631
2647
  if (!(targetKey in out)) {
@@ -2651,8 +2667,9 @@ class JsonShapeSerializer extends SerdeContextConfig {
2651
2667
  const out = {};
2652
2668
  const sparse = !!ns.getMergedTraits().sparse;
2653
2669
  for (const _k in value) {
2654
- if (!hasOwn(value, _k))
2670
+ if (!hasOwn(value, _k)) {
2655
2671
  continue;
2672
+ }
2656
2673
  const _v = value[_k];
2657
2674
  if (sparse || _v != null) {
2658
2675
  if (_k === "__proto__") {
@@ -2725,8 +2742,9 @@ class JsonShapeSerializer extends SerdeContextConfig {
2725
2742
  }
2726
2743
  const out = Array.isArray(value) ? [] : {};
2727
2744
  for (const k in value) {
2728
- if (!hasOwn(value, k))
2745
+ if (!hasOwn(value, k)) {
2729
2746
  continue;
2747
+ }
2730
2748
  const v = value[k];
2731
2749
  if (k === "__proto__") {
2732
2750
  writeKey(out);
@@ -95,8 +95,9 @@ function parseRetryAfterHeader(response, logger) {
95
95
  return;
96
96
  }
97
97
  for (const header in response.headers) {
98
- if (!hasOwn(response.headers, header))
98
+ if (!hasOwn(response.headers, header)) {
99
99
  continue;
100
+ }
100
101
  const h = header.toLowerCase();
101
102
  if (h === "retry-after") {
102
103
  const retryAfter = response.headers[header];
@@ -141,12 +142,15 @@ function getRetryAfterHint(response, logger) {
141
142
  }
142
143
 
143
144
  const asSdkError = (error) => {
144
- if (error instanceof Error)
145
+ if (error instanceof Error) {
145
146
  return error;
146
- if (error instanceof Object)
147
+ }
148
+ if (error instanceof Object) {
147
149
  return Object.assign(new Error(), error);
148
- if (typeof error === "string")
150
+ }
151
+ if (typeof error === "string") {
149
152
  return new Error(error);
153
+ }
150
154
  return new Error(`AWS SDK error wrapper for ${error}`);
151
155
  };
152
156
 
@@ -228,12 +232,15 @@ const getRetryErrorInfo = (error, logger) => {
228
232
  return errorInfo;
229
233
  };
230
234
  const getRetryErrorType = (error) => {
231
- if (isThrottlingError(error))
235
+ if (isThrottlingError(error)) {
232
236
  return "THROTTLING";
233
- if (isTransientError(error))
237
+ }
238
+ if (isTransientError(error)) {
234
239
  return "TRANSIENT";
235
- if (isServerError(error))
240
+ }
241
+ if (isServerError(error)) {
236
242
  return "SERVER_ERROR";
243
+ }
237
244
  return "CLIENT_ERROR";
238
245
  };
239
246
  const retryMiddlewareOptions = {
@@ -685,15 +692,18 @@ class StandardRetryStrategy {
685
692
  }
686
693
  }
687
694
  const getDelayFromRetryAfterHeader = (response) => {
688
- if (!HttpResponse.isInstance(response))
695
+ if (!HttpResponse.isInstance(response)) {
689
696
  return;
697
+ }
690
698
  const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
691
- if (!retryAfterHeaderName)
699
+ if (!retryAfterHeaderName) {
692
700
  return;
701
+ }
693
702
  const retryAfter = response.headers[retryAfterHeaderName];
694
703
  const retryAfterSeconds = Number(retryAfter);
695
- if (!Number.isNaN(retryAfterSeconds))
704
+ if (!Number.isNaN(retryAfterSeconds)) {
696
705
  return Math.min(retryAfterSeconds * 1000, 20_000);
706
+ }
697
707
  const retryAfterDate = new Date(retryAfter);
698
708
  return Math.min(retryAfterDate.getTime() - Date.now(), 20_000);
699
709
  };
@@ -97,8 +97,9 @@ function parseRetryAfterHeader(response, logger) {
97
97
  return;
98
98
  }
99
99
  for (const header in response.headers) {
100
- if (!hasOwn(response.headers, header))
100
+ if (!hasOwn(response.headers, header)) {
101
101
  continue;
102
+ }
102
103
  const h = header.toLowerCase();
103
104
  if (h === "retry-after") {
104
105
  const retryAfter = response.headers[header];
@@ -143,12 +144,15 @@ function getRetryAfterHint(response, logger) {
143
144
  }
144
145
 
145
146
  const asSdkError = (error) => {
146
- if (error instanceof Error)
147
+ if (error instanceof Error) {
147
148
  return error;
148
- if (error instanceof Object)
149
+ }
150
+ if (error instanceof Object) {
149
151
  return Object.assign(new Error(), error);
150
- if (typeof error === "string")
152
+ }
153
+ if (typeof error === "string") {
151
154
  return new Error(error);
155
+ }
152
156
  return new Error(`AWS SDK error wrapper for ${error}`);
153
157
  };
154
158
 
@@ -230,12 +234,15 @@ const getRetryErrorInfo = (error, logger) => {
230
234
  return errorInfo;
231
235
  };
232
236
  const getRetryErrorType = (error) => {
233
- if (isThrottlingError(error))
237
+ if (isThrottlingError(error)) {
234
238
  return "THROTTLING";
235
- if (isTransientError(error))
239
+ }
240
+ if (isTransientError(error)) {
236
241
  return "TRANSIENT";
237
- if (isServerError(error))
242
+ }
243
+ if (isServerError(error)) {
238
244
  return "SERVER_ERROR";
245
+ }
239
246
  return "CLIENT_ERROR";
240
247
  };
241
248
  const retryMiddlewareOptions = {
@@ -687,15 +694,18 @@ class StandardRetryStrategy {
687
694
  }
688
695
  }
689
696
  const getDelayFromRetryAfterHeader = (response) => {
690
- if (!HttpResponse.isInstance(response))
697
+ if (!HttpResponse.isInstance(response)) {
691
698
  return;
699
+ }
692
700
  const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
693
- if (!retryAfterHeaderName)
701
+ if (!retryAfterHeaderName) {
694
702
  return;
703
+ }
695
704
  const retryAfter = response.headers[retryAfterHeaderName];
696
705
  const retryAfterSeconds = Number(retryAfter);
697
- if (!Number.isNaN(retryAfterSeconds))
706
+ if (!Number.isNaN(retryAfterSeconds)) {
698
707
  return Math.min(retryAfterSeconds * 1000, 20_000);
708
+ }
699
709
  const retryAfterDate = new Date(retryAfter);
700
710
  return Math.min(retryAfterDate.getTime() - Date.now(), 20_000);
701
711
  };
@@ -725,8 +735,9 @@ const CONFIG_MAX_ATTEMPTS = "max_attempts";
725
735
  const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
726
736
  environmentVariableSelector: (env) => {
727
737
  const value = env[ENV_MAX_ATTEMPTS];
728
- if (!value)
738
+ if (!value) {
729
739
  return undefined;
740
+ }
730
741
  const maxAttempt = parseInt(value);
731
742
  if (Number.isNaN(maxAttempt)) {
732
743
  throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`);
@@ -735,8 +746,9 @@ const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
735
746
  },
736
747
  configFileSelector: (profile) => {
737
748
  const value = profile[CONFIG_MAX_ATTEMPTS];
738
- if (!value)
749
+ if (!value) {
739
750
  return undefined;
751
+ }
740
752
  const maxAttempt = parseInt(value);
741
753
  if (Number.isNaN(maxAttempt)) {
742
754
  throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`);
@@ -292,8 +292,9 @@ const expectUnion = (value) => {
292
292
  const asObject = expectObject(value);
293
293
  const setKeys = [];
294
294
  for (const k in asObject) {
295
- if (!hasOwn(asObject, k))
295
+ if (!hasOwn(asObject, k)) {
296
296
  continue;
297
+ }
297
298
  if (asObject[k] != null) {
298
299
  setKeys.push(k);
299
300
  }
@@ -847,12 +848,15 @@ const calculateBodyLength = (body) => {
847
848
  let len = body.length;
848
849
  for (let i = len - 1; i >= 0; i--) {
849
850
  const code = body.charCodeAt(i);
850
- if (code > 0x7f && code <= 0x7ff)
851
+ if (code > 0x7f && code <= 0x7ff) {
851
852
  len++;
852
- else if (code > 0x7ff && code <= 0xffff)
853
+ }
854
+ else if (code > 0x7ff && code <= 0xffff) {
853
855
  len += 2;
854
- if (code >= 0xdc00 && code <= 0xdfff)
856
+ }
857
+ if (code >= 0xdc00 && code <= 0xdfff) {
855
858
  i--;
859
+ }
856
860
  }
857
861
  return len;
858
862
  }
@@ -1318,6 +1322,10 @@ async function splitStream(stream) {
1318
1322
  return readableStream.tee();
1319
1323
  }
1320
1324
 
1325
+ function writeKey(obj) {
1326
+ Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
1327
+ }
1328
+
1321
1329
  const no = Symbol.for("node-only");
1322
1330
  const fromArrayBuffer = no;
1323
1331
  const fromString = no;
@@ -1400,3 +1408,4 @@ exports.toHex = toHex;
1400
1408
  exports.toUint8Array = toUint8Array;
1401
1409
  exports.toUtf8 = toUtf8;
1402
1410
  exports.v4 = v4;
1411
+ exports.writeKey = writeKey;
@@ -260,8 +260,9 @@ const expectUnion = (value) => {
260
260
  const asObject = expectObject(value);
261
261
  const setKeys = [];
262
262
  for (const k in asObject) {
263
- if (!hasOwn(asObject, k))
263
+ if (!hasOwn(asObject, k)) {
264
264
  continue;
265
+ }
265
266
  if (asObject[k] != null) {
266
267
  setKeys.push(k);
267
268
  }
@@ -1685,6 +1686,10 @@ async function splitStream(stream) {
1685
1686
  return [stream1, stream2];
1686
1687
  }
1687
1688
 
1689
+ function writeKey(obj) {
1690
+ Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
1691
+ }
1692
+
1688
1693
  class Uint8ArrayBlobAdapter extends bindUint8ArrayBlobAdapter(toUtf8$1, fromUtf8$1, toBase64$1, fromBase64) {
1689
1694
  }
1690
1695
  const _getRandomValues = getRandomValues;
@@ -1763,3 +1768,4 @@ exports.toHex = toHex;
1763
1768
  exports.toUint8Array = toUint8Array;
1764
1769
  exports.toUtf8 = toUtf8$1;
1765
1770
  exports.v4 = v4;
1771
+ exports.writeKey = writeKey;
@@ -292,8 +292,9 @@ const expectUnion = (value) => {
292
292
  const asObject = expectObject(value);
293
293
  const setKeys = [];
294
294
  for (const k in asObject) {
295
- if (!hasOwn(asObject, k))
295
+ if (!hasOwn(asObject, k)) {
296
296
  continue;
297
+ }
297
298
  if (asObject[k] != null) {
298
299
  setKeys.push(k);
299
300
  }
@@ -847,12 +848,15 @@ const calculateBodyLength = (body) => {
847
848
  let len = body.length;
848
849
  for (let i = len - 1; i >= 0; i--) {
849
850
  const code = body.charCodeAt(i);
850
- if (code > 0x7f && code <= 0x7ff)
851
+ if (code > 0x7f && code <= 0x7ff) {
851
852
  len++;
852
- else if (code > 0x7ff && code <= 0xffff)
853
+ }
854
+ else if (code > 0x7ff && code <= 0xffff) {
853
855
  len += 2;
854
- if (code >= 0xdc00 && code <= 0xdfff)
856
+ }
857
+ if (code >= 0xdc00 && code <= 0xdfff) {
855
858
  i--;
859
+ }
856
860
  }
857
861
  return len;
858
862
  }
@@ -1318,6 +1322,10 @@ async function splitStream(stream) {
1318
1322
  return readableStream.tee();
1319
1323
  }
1320
1324
 
1325
+ function writeKey(obj) {
1326
+ Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
1327
+ }
1328
+
1321
1329
  const no = Symbol.for("node-only");
1322
1330
  const fromArrayBuffer = no;
1323
1331
  const fromString = no;
@@ -1400,3 +1408,4 @@ exports.toHex = toHex;
1400
1408
  exports.toUint8Array = toUint8Array;
1401
1409
  exports.toUtf8 = toUtf8;
1402
1410
  exports.v4 = v4;
1411
+ exports.writeKey = writeKey;
@@ -83,8 +83,9 @@ class HttpResponse {
83
83
  this.body = options.body;
84
84
  }
85
85
  static isInstance(response) {
86
- if (!response)
86
+ if (!response) {
87
87
  return false;
88
+ }
88
89
  const resp = response;
89
90
  return typeof resp.statusCode === "number" && typeof resp.headers === "object";
90
91
  }
@@ -110,8 +111,9 @@ function isValidHostname(hostname) {
110
111
  }
111
112
 
112
113
  const normalizeProvider = (input) => {
113
- if (typeof input === "function")
114
+ if (typeof input === "function") {
114
115
  return input;
116
+ }
115
117
  const promisified = Promise.resolve(input);
116
118
  return () => promisified;
117
119
  };
@@ -165,8 +167,9 @@ const toEndpointV1 = (endpoint) => {
165
167
  if (endpoint.headers) {
166
168
  v1Endpoint.headers = {};
167
169
  for (const name in endpoint.headers) {
168
- if (!hasOwn(endpoint.headers, name))
170
+ if (!hasOwn(endpoint.headers, name)) {
169
171
  continue;
172
+ }
170
173
  v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
171
174
  }
172
175
  }
@@ -3,8 +3,9 @@ export class DefaultIdentityProviderConfig {
3
3
  authSchemes = new Map();
4
4
  constructor(config) {
5
5
  for (const key in config) {
6
- if (!hasOwn(config, key))
6
+ if (!hasOwn(config, key)) {
7
7
  continue;
8
+ }
8
9
  const value = config[key];
9
10
  if (value !== undefined) {
10
11
  this.authSchemes.set(key, value);
@@ -1,6 +1,7 @@
1
1
  export const normalizeProvider = (input) => {
2
- if (typeof input === "function")
2
+ if (typeof input === "function") {
3
3
  return input;
4
+ }
4
5
  const promisified = Promise.resolve(input);
5
6
  return () => promisified;
6
7
  };
@@ -60,8 +60,9 @@ export class CborShapeDeserializer extends SerdeContext {
60
60
  if (ns.isMapSchema()) {
61
61
  const targetSchema = ns.getValueSchema();
62
62
  for (const key in value) {
63
- if (!hasOwn(value, key))
63
+ if (!hasOwn(value, key)) {
64
64
  continue;
65
+ }
65
66
  const itemValue = this.readValue(targetSchema, value[key]);
66
67
  newObject[key] = itemValue;
67
68
  }
@@ -72,8 +73,9 @@ export class CborShapeDeserializer extends SerdeContext {
72
73
  if (isUnion) {
73
74
  keys = new Set();
74
75
  for (const k in value) {
75
- if (!hasOwn(value, k))
76
+ if (!hasOwn(value, k)) {
76
77
  continue;
78
+ }
77
79
  if (k !== "__type") {
78
80
  keys.add(k);
79
81
  }
@@ -90,8 +92,9 @@ export class CborShapeDeserializer extends SerdeContext {
90
92
  if (isUnion && keys?.size === 1) {
91
93
  let newObjectEmpty = true;
92
94
  for (const _ in newObject) {
93
- if (!hasOwn(newObject, _))
95
+ if (!hasOwn(newObject, _)) {
94
96
  continue;
97
+ }
95
98
  newObjectEmpty = false;
96
99
  break;
97
100
  }
@@ -102,8 +105,9 @@ export class CborShapeDeserializer extends SerdeContext {
102
105
  }
103
106
  else if (typeof value.__type === "string") {
104
107
  for (const k in value) {
105
- if (!hasOwn(value, k))
108
+ if (!hasOwn(value, k)) {
106
109
  continue;
110
+ }
107
111
  if (!(k in newObject)) {
108
112
  newObject[k] = value[k];
109
113
  }
@@ -50,8 +50,9 @@ export class CborShapeSerializer extends SerdeContext {
50
50
  if (ns.isMapSchema()) {
51
51
  const sparse = !!ns.getMergedTraits().sparse;
52
52
  for (const key in sourceObject) {
53
- if (!hasOwn(sourceObject, key))
53
+ if (!hasOwn(sourceObject, key)) {
54
54
  continue;
55
+ }
55
56
  const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
56
57
  if (value != null || sparse) {
57
58
  newObject[key] = value;
@@ -72,8 +73,9 @@ export class CborShapeSerializer extends SerdeContext {
72
73
  }
73
74
  else if (typeof sourceObject.__type === "string") {
74
75
  for (const k in sourceObject) {
75
- if (!hasOwn(sourceObject, k))
76
+ if (!hasOwn(sourceObject, k)) {
76
77
  continue;
78
+ }
77
79
  if (!(k in newObject)) {
78
80
  newObject[k] = this.serialize(15, sourceObject[k]);
79
81
  }
@@ -90,8 +92,9 @@ export class CborShapeSerializer extends SerdeContext {
90
92
  return newArray;
91
93
  }
92
94
  for (const key in sourceObject) {
93
- if (!hasOwn(sourceObject, key))
95
+ if (!hasOwn(sourceObject, key)) {
94
96
  continue;
97
+ }
95
98
  newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
96
99
  }
97
100
  }