@cdk8s/awscdk-resolver 0.0.638 → 0.0.640

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 (226) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  11. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +66 -28
  12. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +133 -15
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +7 -2
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +28 -14
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.js +1 -0
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js +3 -0
  17. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js +8 -0
  18. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -1
  19. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +3 -3
  20. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.browser.js +9 -0
  21. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +5 -1
  22. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -0
  23. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -6
  24. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +2 -1
  25. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +1 -1
  26. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +10 -1
  27. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +10 -0
  28. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
  29. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.js +13 -15
  30. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/ByteJsonShapeSerializer.js +27 -17
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +41 -0
  33. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +33 -13
  34. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js +3 -0
  35. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +4 -0
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  39. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  40. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  41. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +22 -6
  42. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  43. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +7 -1
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  45. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +22 -6
  46. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  47. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  48. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -2
  49. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
  50. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  51. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  52. package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +7 -4
  53. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +21 -61
  54. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +27 -13
  55. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +16 -4
  56. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +14 -5
  57. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +5 -16
  58. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +11 -4
  59. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +47 -107
  60. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +39 -112
  61. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +48 -107
  62. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +14 -13
  63. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +35 -25
  64. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +4 -14
  65. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +6 -2
  66. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +5 -2
  67. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +5 -2
  68. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +6 -2
  69. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +10 -2
  70. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +6 -2
  71. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +20 -16
  72. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +44 -21
  73. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
  74. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +5 -2
  75. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
  76. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +11 -8
  77. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +16 -14
  78. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +4 -1
  79. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +14 -7
  80. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +4 -1
  81. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +7 -6
  82. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +12 -6
  83. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +7 -6
  84. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
  85. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -4
  86. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +7 -2
  87. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +38 -28
  88. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +638 -647
  89. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
  90. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -29
  91. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
  92. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
  93. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -6
  94. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
  95. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
  96. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
  97. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +1 -12
  98. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +7 -4
  99. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +14 -7
  100. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -7
  101. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +27 -18
  102. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +18 -13
  103. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +8 -3
  104. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +28 -17
  105. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +6 -2
  106. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +5 -2
  107. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +13 -4
  108. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -9
  109. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +44 -37
  110. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +5 -2
  111. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  112. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  113. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  114. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +7 -23
  115. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -13
  116. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +133 -56
  117. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  118. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +9 -24
  119. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +8 -1
  120. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +6 -1
  121. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +8 -1
  122. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -1
  123. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +26 -4
  124. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -3
  125. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -1
  126. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -5
  127. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +74 -40
  128. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -9
  129. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +25 -36
  130. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +18 -3
  131. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -5
  132. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +22 -27
  133. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +22 -21
  134. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +22 -21
  135. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +29 -49
  136. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +36 -49
  137. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +19 -13
  138. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -13
  139. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +28 -18
  140. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +7 -1
  141. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  142. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -14
  143. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +57 -30
  144. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -7
  145. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -7
  146. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
  147. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +22 -9
  148. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +27 -18
  149. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +49 -57
  150. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +13 -7
  151. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -21
  152. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
  153. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +31 -47
  154. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +14 -17
  155. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -15
  156. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
  157. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -4
  158. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +6 -1
  159. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
  160. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +32 -14
  161. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +2 -4
  162. package/node_modules/@aws-sdk/core/package.json +10 -6
  163. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  164. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  165. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  166. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  167. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  168. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  169. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  170. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  171. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  172. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  173. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  174. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  175. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  176. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  177. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  178. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  179. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  180. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -0
  181. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -0
  182. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  183. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -0
  184. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -0
  185. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  186. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  187. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  188. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  189. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -0
  190. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -0
  191. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  192. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  193. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  194. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  195. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +2 -0
  196. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +2 -0
  197. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  198. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +2 -0
  199. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +2 -0
  200. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  201. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  202. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  203. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  204. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +2 -0
  205. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +2 -0
  206. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  207. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  208. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  209. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +14 -4
  210. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +14 -4
  211. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  212. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +1 -0
  213. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +1 -0
  214. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  215. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  216. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  217. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -0
  218. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -2
  219. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/constants.d.ts +1 -0
  220. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +1 -0
  221. package/node_modules/@smithy/core/package.json +1 -1
  222. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  223. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  224. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  225. package/node_modules/@smithy/signature-v4/package.json +2 -2
  226. package/package.json +6 -6
@@ -0,0 +1,8 @@
1
+ import { booleanSelector, SelectorType } from "@smithy/core/config";
2
+ export const ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION";
3
+ export const CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction";
4
+ export const NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS = {
5
+ environmentVariableSelector: (env) => booleanSelector(env, ENV_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.ENV),
6
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.CONFIG),
7
+ default: false,
8
+ };
@@ -2,4 +2,4 @@ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties } from
2
2
  export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
3
3
  export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
4
4
  export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
5
- export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
5
+ export { bindResolveAwsSdkSigV4Config } from "./resolveAwsSdkSigV4Config";
@@ -1,7 +1,7 @@
1
1
  import { setCredentialFeature } from "@aws-sdk/core/client";
2
2
  import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider, normalizeProvider, } from "@smithy/core";
3
3
  import { SignatureV4 } from "@smithy/signature-v4";
4
- export const resolveAwsSdkSigV4Config = (config) => {
4
+ export const bindResolveAwsSdkSigV4Config = (defaultDisableClockSkewCorrection) => (config) => {
5
5
  let inputCredentials = config.credentials;
6
6
  let isUserSupplied = !!config.credentials;
7
7
  let resolvedCredentials = undefined;
@@ -99,11 +99,11 @@ export const resolveAwsSdkSigV4Config = (config) => {
99
99
  systemClockOffset,
100
100
  signingEscapePath,
101
101
  signer,
102
+ disableClockSkewCorrection: normalizeProvider(config.disableClockSkewCorrection ?? defaultDisableClockSkewCorrection),
102
103
  });
103
104
  return resolvedConfig;
104
105
  };
105
- export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
106
- function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider, }) {
106
+ function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider }) {
107
107
  let credentialsProvider;
108
108
  if (credentials) {
109
109
  if (!credentials?.memoized) {
@@ -0,0 +1,9 @@
1
+ const no = Symbol.for("node-only");
2
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, resolveAwsSdkSigV4AConfig, } from "./aws_sdk";
3
+ export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
4
+ export const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = no;
5
+ export const NODE_SIGV4A_CONFIG_OPTIONS = no;
6
+ import { bindResolveAwsSdkSigV4Config } from "./aws_sdk";
7
+ import { DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION } from "./aws_sdk/clock-skew-defaults.browser";
8
+ export const resolveAwsSdkSigV4Config = bindResolveAwsSdkSigV4Config(DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION);
9
+ export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
@@ -1,2 +1,6 @@
1
- export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config, } from "./aws_sdk";
1
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, } from "./aws_sdk";
2
2
  export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
3
+ import { bindResolveAwsSdkSigV4Config } from "./aws_sdk";
4
+ import { DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION } from "./aws_sdk/clock-skew-defaults";
5
+ export const resolveAwsSdkSigV4Config = bindResolveAwsSdkSigV4Config(DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION);
6
+ export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
@@ -1,2 +1,3 @@
1
1
  import { HttpResponse } from "@smithy/core/protocols";
2
2
  export const getDateHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.date ?? response.headers?.Date) : undefined;
3
+ export const getAgeHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.age ?? response.headers?.Age) : undefined;
@@ -1,8 +1,14 @@
1
- import { isClockSkewed } from "./isClockSkewed";
2
- export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
3
- const clockTimeInMs = Date.parse(clockTime);
4
- if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
5
- return clockTimeInMs - Date.now();
1
+ export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset, timeRequestSent, ageHeader) => {
2
+ if (ageHeader !== undefined) {
3
+ return currentSystemClockOffset;
6
4
  }
7
- return currentSystemClockOffset;
5
+ const serverTime = Date.parse(clockTime);
6
+ const timeResponseReceived = Date.now();
7
+ if (timeRequestSent !== undefined && timeResponseReceived - timeRequestSent > 900_000) {
8
+ return currentSystemClockOffset;
9
+ }
10
+ const candidateSkew = timeRequestSent !== undefined
11
+ ? serverTime - (timeRequestSent + timeResponseReceived) / 2
12
+ : serverTime - timeResponseReceived;
13
+ return candidateSkew;
8
14
  };
@@ -1,3 +1,4 @@
1
- export { getDateHeader } from "./getDateHeader";
1
+ export { getAgeHeader, getDateHeader } from "./getDateHeader";
2
2
  export { getSkewCorrectedDate } from "./getSkewCorrectedDate";
3
3
  export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset";
4
+ export { isClockSkewed } from "./isClockSkewed";
@@ -1,2 +1,2 @@
1
1
  import { getSkewCorrectedDate } from "./getSkewCorrectedDate";
2
- export const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;
2
+ export const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 240000;
@@ -5,7 +5,9 @@ import { fromBase64 } from "@smithy/core/serde";
5
5
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
6
6
  import { UnionSerde } from "../UnionSerde";
7
7
  import { jsonReviver } from "./jsonReviver";
8
+ import { needsReviver } from "./needsReviver";
8
9
  import { parseJsonBody } from "./parseJsonBody";
10
+ import { writeKey } from "../writeKey";
9
11
  export class JsonShapeDeserializer extends SerdeContextConfig {
10
12
  settings;
11
13
  constructor(settings) {
@@ -13,7 +15,8 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
13
15
  this.settings = settings;
14
16
  }
15
17
  async read(schema, data) {
16
- return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
18
+ const reviver = needsReviver(schema) ? jsonReviver : undefined;
19
+ return this._read(schema, typeof data === "string" ? JSON.parse(data, reviver) : await parseJsonBody(data, this.serdeContext, schema));
17
20
  }
18
21
  readObject(schema, data) {
19
22
  return this._read(schema, data);
@@ -74,6 +77,9 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
74
77
  const mapMember = ns.getValueSchema();
75
78
  const out = {};
76
79
  for (const _k in value) {
80
+ if (_k === "__proto__") {
81
+ writeKey(out);
82
+ }
77
83
  out[_k] = this._read(mapMember, value[_k]);
78
84
  }
79
85
  return out;
@@ -132,6 +138,9 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
132
138
  if (isObject) {
133
139
  const out = Array.isArray(value) ? [] : {};
134
140
  for (const k in value) {
141
+ if (k === "__proto__") {
142
+ writeKey(out);
143
+ }
135
144
  const v = value[k];
136
145
  if (v instanceof NumericValue) {
137
146
  out[k] = v;
@@ -3,6 +3,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
4
4
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
5
5
  import { JsonReplacer } from "./jsonReplacer";
6
+ import { writeKey } from "../writeKey";
6
7
  export class JsonShapeSerializer extends SerdeContextConfig {
7
8
  settings;
8
9
  buffer;
@@ -64,6 +65,9 @@ export class JsonShapeSerializer extends SerdeContextConfig {
64
65
  const { $unknown } = record;
65
66
  if (Array.isArray($unknown)) {
66
67
  const [k, v] = $unknown;
68
+ if (k === "__proto__") {
69
+ writeKey(out);
70
+ }
67
71
  out[k] = this._write(15, v);
68
72
  }
69
73
  }
@@ -96,6 +100,9 @@ export class JsonShapeSerializer extends SerdeContextConfig {
96
100
  for (const _k in value) {
97
101
  const _v = value[_k];
98
102
  if (sparse || _v != null) {
103
+ if (_k === "__proto__") {
104
+ writeKey(out);
105
+ }
99
106
  out[_k] = this._write(mapMember, _v);
100
107
  }
101
108
  }
@@ -161,6 +168,9 @@ export class JsonShapeSerializer extends SerdeContextConfig {
161
168
  const out = Array.isArray(value) ? [] : {};
162
169
  for (const k in value) {
163
170
  const v = value[k];
171
+ if (k === "__proto__") {
172
+ writeKey(out);
173
+ }
164
174
  if (v instanceof NumericValue) {
165
175
  this.useReplacer = true;
166
176
  out[k] = v;
@@ -0,0 +1,18 @@
1
+ let canParseBuffer;
2
+ export function detectBufferParsing() {
3
+ if (canParseBuffer === undefined) {
4
+ try {
5
+ if (typeof Buffer !== "function") {
6
+ canParseBuffer = false;
7
+ }
8
+ else {
9
+ const result = JSON.parse(Buffer.from([0x7b, 0x7d]));
10
+ canParseBuffer = result !== null && typeof result === "object";
11
+ }
12
+ }
13
+ catch {
14
+ canParseBuffer = false;
15
+ }
16
+ }
17
+ return canParseBuffer;
18
+ }
@@ -4,21 +4,11 @@ import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTime
4
4
  import { fromBase64 } from "@smithy/core/serde";
5
5
  import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
6
6
  import { UnionSerde } from "../../UnionSerde";
7
+ import { detectBufferParsing } from "../detectBufferParsing";
7
8
  import { jsonReviver } from "../jsonReviver";
9
+ import { needsReviver } from "../needsReviver";
8
10
  import { parseJsonBody } from "../parseJsonBody";
9
- let canParseBuffer;
10
- function detectBufferParsing() {
11
- if (canParseBuffer === undefined) {
12
- try {
13
- const result = JSON.parse(new Uint8Array([0x7b, 0x7d]));
14
- canParseBuffer = result !== null && typeof result === "object";
15
- }
16
- catch {
17
- canParseBuffer = false;
18
- }
19
- }
20
- return canParseBuffer;
21
- }
11
+ import { writeKey } from "../../writeKey";
22
12
  export class BufferJsonShapeDeserializer extends SerdeContextConfig {
23
13
  settings;
24
14
  constructor(settings) {
@@ -26,12 +16,14 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
26
16
  this.settings = settings;
27
17
  }
28
18
  async read(schema, data) {
19
+ const reviver = needsReviver(schema) ? jsonReviver : undefined;
29
20
  let parsed;
30
21
  if (typeof data === "string") {
31
- parsed = JSON.parse(data, jsonReviver);
22
+ parsed = JSON.parse(data, reviver);
32
23
  }
33
24
  else if (data instanceof Uint8Array && detectBufferParsing()) {
34
- parsed = JSON.parse(data, jsonReviver);
25
+ const buf = Buffer.isBuffer(data) ? data : Buffer.from(data.buffer, data.byteOffset, data.byteLength);
26
+ parsed = JSON.parse(buf, reviver);
35
27
  }
36
28
  else {
37
29
  parsed = await parseJsonBody(data, this.serdeContext);
@@ -59,6 +51,9 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
59
51
  const mapMember = ns.getValueSchema();
60
52
  const map = value;
61
53
  for (const k in map) {
54
+ if (k === "__proto__") {
55
+ writeKey(map);
56
+ }
62
57
  map[k] = this._read(mapMember, map[k]);
63
58
  }
64
59
  return map;
@@ -126,6 +121,9 @@ export class BufferJsonShapeDeserializer extends SerdeContextConfig {
126
121
  else {
127
122
  const doc = value;
128
123
  for (const k in doc) {
124
+ if (k === "__proto__") {
125
+ writeKey(doc);
126
+ }
129
127
  const v = doc[k];
130
128
  if (!(v instanceof NumericValue)) {
131
129
  doc[k] = this._read(ns, v);
@@ -2,6 +2,7 @@ import { determineTimestampFormat } from "@smithy/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
4
4
  import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
5
+ import { writeKey } from "../../writeKey";
5
6
  const encoder = new TextEncoder();
6
7
  const OPEN_BRACE = 0x7b;
7
8
  const CLOSE_BRACE = 0x7d;
@@ -36,8 +37,6 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
36
37
  json;
37
38
  i = 0;
38
39
  rootSchema;
39
- sizeHistory = new Uint32Array(20);
40
- sizeHistoryIndex = 0;
41
40
  constructor(settings) {
42
41
  super();
43
42
  this.settings = settings;
@@ -86,17 +85,9 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
86
85
  this.rootSchema = undefined;
87
86
  const finalPosition = this.i;
88
87
  this.i = 0;
89
- this.sizeHistory[this.sizeHistoryIndex] = finalPosition;
90
- this.sizeHistoryIndex = (this.sizeHistoryIndex + 1) % 20;
91
- let max = INITIAL_BUFFER_SIZE;
92
- for (let i = 0; i < 20; i++) {
93
- if (this.sizeHistory[i] > max)
94
- max = this.sizeHistory[i];
95
- }
96
- if (this.json.byteLength < max) {
97
- this.json = alloc(max);
98
- }
99
- return this.json.slice(0, finalPosition);
88
+ const result = this.json.subarray(0, finalPosition);
89
+ this.json = alloc(INITIAL_BUFFER_SIZE);
90
+ return result;
100
91
  }
101
92
  ensure(byteCount) {
102
93
  const { i, json } = this;
@@ -145,8 +136,8 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
145
136
  if (esc !== null) {
146
137
  this.ensure(esc.length + 1);
147
138
  this.json[this.i++] = BACKSLASH;
148
- for (let j = 0; j < esc.length; j++) {
149
- this.json[this.i++] = esc.charCodeAt(j);
139
+ for (let k = 0; k < esc.length; k++) {
140
+ this.json[this.i++] = esc.charCodeAt(k);
150
141
  }
151
142
  }
152
143
  else {
@@ -423,10 +414,29 @@ export class ByteJsonShapeSerializer extends SerdeContextConfig {
423
414
  this.json[this.i++] = CLOSE_BRACKET;
424
415
  }
425
416
  writeMap(ns, value, isDocument) {
426
- this.ensure(2);
427
- this.json[this.i++] = OPEN_BRACE;
428
417
  const sparse = !!ns.getMergedTraits().sparse;
429
418
  const valueSchema = ns.getValueSchema();
419
+ if (!isDocument) {
420
+ if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
421
+ let input = value;
422
+ if (sparse) {
423
+ input = {};
424
+ for (const k in value) {
425
+ if (k === "__proto__") {
426
+ writeKey(input);
427
+ }
428
+ input[k] = value[k] ?? null;
429
+ }
430
+ }
431
+ const json = JSON.stringify(input);
432
+ this.ensure(json.length * 3);
433
+ const { written } = encoder.encodeInto(json, this.json.subarray(this.i));
434
+ this.i += written;
435
+ return;
436
+ }
437
+ }
438
+ this.ensure(2);
439
+ this.json[this.i++] = OPEN_BRACE;
430
440
  let first = true;
431
441
  for (const k in value) {
432
442
  const v = value[k];
@@ -3,12 +3,18 @@ export function jsonReviver(key, value, context) {
3
3
  if (context?.source) {
4
4
  const numericString = context.source;
5
5
  if (typeof value === "number") {
6
- if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
7
- const isFractional = numericString.includes(".");
8
- if (isFractional) {
6
+ const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
7
+ if (!inSafeRange || numericString !== String(value)) {
8
+ if (inSafeRange && /[eE]/.test(numericString) && String(Number(numericString)) === String(value)) {
9
+ return value;
10
+ }
11
+ if (isFractionalNumeric(numericString)) {
9
12
  return new NumericValue(numericString, "bigDecimal");
10
13
  }
11
14
  else {
15
+ if (/[eE]/.test(numericString)) {
16
+ return BigInt(Number(numericString));
17
+ }
12
18
  return BigInt(numericString);
13
19
  }
14
20
  }
@@ -16,3 +22,16 @@ export function jsonReviver(key, value, context) {
16
22
  }
17
23
  return value;
18
24
  }
25
+ function isFractionalNumeric(s) {
26
+ const dotIndex = s.indexOf(".");
27
+ if (dotIndex === -1) {
28
+ return false;
29
+ }
30
+ const eIndex = s.search(/[eE]/);
31
+ if (eIndex === -1) {
32
+ return true;
33
+ }
34
+ const fracDigits = eIndex - dotIndex - 1;
35
+ const exp = parseInt(s.slice(eIndex + 1), 10);
36
+ return exp < fracDigits;
37
+ }
@@ -0,0 +1,41 @@
1
+ import { NormalizedSchema } from "@smithy/core/schema";
2
+ const REVIVER_SYMBOL = Symbol.for("@aws-sdk/reviver");
3
+ export function needsReviver(schema) {
4
+ const ns = NormalizedSchema.of(schema);
5
+ const raw = ns.getSchema();
6
+ if (Array.isArray(raw) && ns.isStructSchema()) {
7
+ if (REVIVER_SYMBOL in raw) {
8
+ return raw[REVIVER_SYMBOL];
9
+ }
10
+ const result = _check(ns, new Set());
11
+ raw[REVIVER_SYMBOL] = result;
12
+ return result;
13
+ }
14
+ return _check(ns, new Set());
15
+ }
16
+ function _check(ns, seen) {
17
+ const raw = ns.getSchema();
18
+ if (seen.has(raw)) {
19
+ return false;
20
+ }
21
+ seen.add(raw);
22
+ if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
23
+ return true;
24
+ }
25
+ if (ns.isStructSchema()) {
26
+ for (const [, memberSchema] of ns.structIterator()) {
27
+ if (_check(memberSchema, seen)) {
28
+ return true;
29
+ }
30
+ }
31
+ }
32
+ else if (ns.isListSchema() || ns.isMapSchema()) {
33
+ if (_check(ns.getValueSchema(), seen)) {
34
+ return true;
35
+ }
36
+ }
37
+ else if (ns.isDocumentSchema()) {
38
+ return true;
39
+ }
40
+ return false;
41
+ }
@@ -1,20 +1,40 @@
1
+ import { collectBody } from "@smithy/core/protocols";
1
2
  import { collectBodyString } from "../common";
2
- export const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3
- if (encoded.length) {
4
- try {
5
- return JSON.parse(encoded);
6
- }
7
- catch (e) {
8
- if (e?.name === "SyntaxError") {
9
- Object.defineProperty(e, "$responseBodyText", {
10
- value: encoded,
11
- });
3
+ import { detectBufferParsing } from "./detectBufferParsing";
4
+ import { jsonReviver } from "./jsonReviver";
5
+ import { needsReviver } from "./needsReviver";
6
+ export async function parseJsonBody(streamBody, context, schema) {
7
+ let parsingInput;
8
+ if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") {
9
+ const buffer = await collectBody(streamBody, context);
10
+ if (typeof Buffer === "function") {
11
+ if (Buffer.isBuffer(buffer)) {
12
+ parsingInput = buffer;
13
+ }
14
+ else {
15
+ parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
12
16
  }
13
- throw e;
14
17
  }
15
18
  }
16
- return {};
17
- });
19
+ if (!parsingInput) {
20
+ parsingInput = await collectBodyString(streamBody, context);
21
+ }
22
+ if (parsingInput.length === 0) {
23
+ return {};
24
+ }
25
+ const reviver = schema && needsReviver(schema) ? jsonReviver : undefined;
26
+ try {
27
+ return JSON.parse(parsingInput, reviver);
28
+ }
29
+ catch (e) {
30
+ if (e?.name === "SyntaxError") {
31
+ Object.defineProperty(e, "$responseBodyText", {
32
+ value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8"),
33
+ });
34
+ }
35
+ throw e;
36
+ }
37
+ }
18
38
  export const parseJsonErrorBody = async (errorBody, context) => {
19
39
  const value = await parseJsonBody(errorBody, context);
20
40
  value.message = value.message ?? value.Message;
@@ -0,0 +1,3 @@
1
+ export function writeKey(obj) {
2
+ Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
3
+ }
@@ -5,6 +5,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
5
5
  import { toUtf8 } from "@smithy/core/serde";
6
6
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
7
7
  import { UnionSerde } from "../UnionSerde";
8
+ import { writeKey } from "../writeKey";
8
9
  export class XmlShapeDeserializer extends SerdeContextConfig {
9
10
  settings;
10
11
  stringDeserializer;
@@ -85,6 +86,9 @@ export class XmlShapeDeserializer extends SerdeContextConfig {
85
86
  for (const entry of entries) {
86
87
  const key = entry[keyProperty];
87
88
  const value = entry[valueProperty];
89
+ if (key === "__proto__") {
90
+ writeKey(buffer);
91
+ }
88
92
  buffer[key] = this.readSchema(memberNs, value);
89
93
  }
90
94
  return buffer;
@@ -1,4 +1,4 @@
1
- import type { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, RequestSigner } from "@smithy/types";
1
+ import type { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, Provider, RequestSigner } from "@smithy/types";
2
2
  import type { AwsSdkSigV4AAuthResolvedConfig } from "./resolveAwsSdkSigV4AConfig";
3
3
  /**
4
4
  * @internal
@@ -6,6 +6,7 @@ import type { AwsSdkSigV4AAuthResolvedConfig } from "./resolveAwsSdkSigV4AConfig
6
6
  interface AwsSdkSigV4Config extends AwsSdkSigV4AAuthResolvedConfig {
7
7
  systemClockOffset: number;
8
8
  signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
9
+ disableClockSkewCorrection?: Provider<boolean>;
9
10
  }
10
11
  /**
11
12
  * @internal
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Browser default: clock skew correction enabled.
3
+ *
4
+ * @internal
5
+ */
6
+ export declare const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = false;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Node.js default: lazily reads from env var / shared config file.
3
+ * Browser counterpart (via index binding) exports `false`.
4
+ *
5
+ * @internal
6
+ */
7
+ export declare const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION: import("@smithy/types").Provider<boolean>;
@@ -0,0 +1,13 @@
1
+ import { type LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction";
10
+ /**
11
+ * @internal
12
+ */
13
+ export declare const NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS: LoadedConfigSelectors<boolean>;
@@ -3,5 +3,5 @@ export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
3
3
  export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
4
4
  export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
5
5
  export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, } from "./resolveAwsSdkSigV4AConfig";
6
- export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
6
+ export { bindResolveAwsSdkSigV4Config } from "./resolveAwsSdkSigV4Config";
7
7
  export type { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./resolveAwsSdkSigV4Config";
@@ -33,6 +33,14 @@ export interface AwsSdkSigV4AuthInputConfig {
33
33
  * @internal
34
34
  */
35
35
  signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
36
+ /**
37
+ * Whether to disable clock skew correction. When true, the SDK will not adjust
38
+ * the signing timestamp, will not update the client clock offset from response
39
+ * headers, and will not retry clock skew errors.
40
+ *
41
+ * Defaults to false (correction enabled).
42
+ */
43
+ disableClockSkewCorrection?: boolean | Provider<boolean>;
36
44
  }
37
45
  /**
38
46
  * Used to indicate whether a credential provider function was memoized by this resolver.
@@ -87,11 +95,23 @@ export interface AwsSdkSigV4AuthResolvedConfig {
87
95
  * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.systemClockOffset}
88
96
  */
89
97
  systemClockOffset: number;
98
+ /**
99
+ * Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.disableClockSkewCorrection}
100
+ */
101
+ disableClockSkewCorrection: Provider<boolean>;
90
102
  }
91
103
  /**
104
+ * Combined input config type used internally by the resolver and helper functions.
92
105
  * @internal
93
106
  */
94
- export declare const resolveAwsSdkSigV4Config: <T>(config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved) => T & AwsSdkSigV4AuthResolvedConfig;
107
+ type AwsSdkSigV4ConfigInput = AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved;
108
+ /**
109
+ * Accepts a platform-specific default for disableClockSkewCorrection and
110
+ * returns the resolver function. Called from the index (node vs browser).
111
+ *
112
+ * @internal
113
+ */
114
+ export declare const bindResolveAwsSdkSigV4Config: (defaultDisableClockSkewCorrection: boolean | Provider<boolean>) => <T>(config: T & AwsSdkSigV4ConfigInput) => T & AwsSdkSigV4AuthResolvedConfig;
95
115
  /**
96
116
  * @internal
97
117
  * @deprecated renamed to {@link AwsSdkSigV4AuthInputConfig}
@@ -110,8 +130,4 @@ export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyReso
110
130
  */
111
131
  export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
112
132
  }
113
- /**
114
- * @internal
115
- * @deprecated renamed to {@link resolveAwsSdkSigV4Config}
116
- */
117
- export declare const resolveAWSSDKSigV4Config: <T>(config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved) => T & AwsSdkSigV4AuthResolvedConfig;
133
+ export {};
@@ -0,0 +1,11 @@
1
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, resolveAwsSdkSigV4AConfig, } from "./aws_sdk";
2
+ export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk";
3
+ export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
4
+ export declare const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS: symbol;
5
+ export declare const NODE_SIGV4A_CONFIG_OPTIONS: symbol;
6
+ export declare const resolveAwsSdkSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
7
+ /**
8
+ * @internal
9
+ * @deprecated renamed to {@link resolveAwsSdkSigV4Config}
10
+ */
11
+ export declare const resolveAWSSDKSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
@@ -1,3 +1,9 @@
1
- export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config, } from "./aws_sdk";
1
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, } from "./aws_sdk";
2
2
  export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk";
3
3
  export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
4
+ export declare const resolveAwsSdkSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
5
+ /**
6
+ * @internal
7
+ * @deprecated renamed to {@link resolveAwsSdkSigV4Config}
8
+ */
9
+ export declare const resolveAWSSDKSigV4Config: <T>(config: T & (import("./aws_sdk").AwsSdkSigV4AuthInputConfig & import("./aws_sdk").AwsSdkSigV4PreviouslyResolved)) => T & import("./aws_sdk").AwsSdkSigV4AuthResolvedConfig;
@@ -2,3 +2,7 @@
2
2
  * @internal
3
3
  */
4
4
  export declare const getDateHeader: (response: unknown) => string | undefined;
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare const getAgeHeader: (response: unknown) => string | undefined;