lambda-live-debugger 1.10.5 → 1.11.1

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 (260) hide show
  1. package/dist/cloudFormation.d.ts +2 -1
  2. package/dist/cloudFormation.mjs +3 -2
  3. package/dist/extension/extension.zip +0 -0
  4. package/dist/extension/nodejs/node_modules/interceptor.js +123 -27
  5. package/dist/extension/nodejs/node_modules/interceptor.js.map +4 -4
  6. package/dist/frameworks/samFramework.d.ts +6 -0
  7. package/dist/frameworks/samFramework.mjs +65 -23
  8. package/dist/infraDeploy.mjs +2 -2
  9. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso/package.json +4 -4
  10. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  11. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  12. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  13. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  14. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  15. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  16. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  17. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  18. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  19. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  20. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core/package.json +1 -1
  21. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  22. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  23. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  24. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  25. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  26. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  27. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  28. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  29. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  30. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  31. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
  32. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  33. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/token-providers/package.json +3 -3
  34. package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  35. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  36. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso/package.json +4 -4
  37. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  38. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  39. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  40. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  41. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  42. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  43. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  44. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  45. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  46. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  47. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core/package.json +1 -1
  48. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  49. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  50. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  51. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  52. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  53. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  54. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  55. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  56. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  57. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  58. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
  59. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  60. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/token-providers/package.json +3 -3
  61. package/node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  62. package/node_modules/@aws-sdk/client-cognito-identity/package.json +6 -6
  63. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso/package.json +4 -4
  64. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  65. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  66. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  67. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  68. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  69. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  70. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  71. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  72. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  73. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  74. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core/package.json +1 -1
  75. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  76. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  77. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  78. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  79. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  80. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  81. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  82. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  83. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  84. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  85. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
  86. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  87. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/token-providers/package.json +3 -3
  88. package/node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  89. package/node_modules/@aws-sdk/client-iam/package.json +5 -5
  90. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/client-sso/package.json +4 -4
  91. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  92. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  93. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  94. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  95. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  96. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  97. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  98. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  99. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  100. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  101. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/core/package.json +1 -1
  102. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  103. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  104. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  105. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  106. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  107. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  108. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  109. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  110. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  111. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  112. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
  113. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  114. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/token-providers/package.json +3 -3
  115. package/node_modules/@aws-sdk/client-iot/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  116. package/node_modules/@aws-sdk/client-iot/package.json +5 -5
  117. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/client-sso/package.json +4 -4
  118. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  119. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  120. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  121. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  122. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  123. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  124. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  125. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  126. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  127. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  128. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/core/package.json +1 -1
  129. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  130. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  131. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  132. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  133. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  134. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  135. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  136. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  137. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  138. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  139. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
  140. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  141. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/token-providers/package.json +3 -3
  142. package/node_modules/@aws-sdk/client-iot-data-plane/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  143. package/node_modules/@aws-sdk/client-iot-data-plane/package.json +5 -5
  144. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso/package.json +4 -4
  145. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  146. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  147. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  148. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  149. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  150. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  151. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  152. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  153. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  154. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  155. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core/package.json +1 -1
  156. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  157. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  158. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  159. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  160. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  161. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  162. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  163. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  164. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  165. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  166. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
  167. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  168. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/token-providers/package.json +3 -3
  169. package/node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  170. package/node_modules/@aws-sdk/client-lambda/package.json +5 -5
  171. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso/package.json +4 -4
  172. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  173. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  174. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  175. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  176. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  177. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  178. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  179. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  180. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  181. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  182. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core/package.json +1 -1
  183. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  184. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  185. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  186. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  187. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  188. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  189. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  190. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  191. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  192. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  193. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  194. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
  195. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  196. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  197. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/token-providers/package.json +3 -3
  198. package/node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  199. package/node_modules/@aws-sdk/client-s3/package.json +9 -9
  200. package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +2 -2
  201. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  202. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  203. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  204. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  205. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  206. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  207. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  208. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  209. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  210. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  211. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/core/package.json +1 -1
  212. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  213. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  214. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  215. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
  216. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  217. package/node_modules/@aws-sdk/credential-provider-login/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  218. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  219. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso/package.json +4 -4
  220. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  221. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  222. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  223. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  224. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  225. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  226. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  227. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  228. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  229. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  230. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core/package.json +1 -1
  231. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  232. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  233. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  234. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  235. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  236. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  237. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  238. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  239. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  240. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  241. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +2 -3
  242. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  243. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/token-providers/package.json +3 -3
  244. package/node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  245. package/node_modules/@aws-sdk/credential-providers/package.json +13 -13
  246. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-cjs/index.js +43 -5
  247. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +43 -5
  248. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -1
  249. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +3 -2
  250. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
  251. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
  252. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +38 -0
  253. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +2 -1
  254. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +27 -0
  255. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +12 -0
  256. package/node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core/package.json +1 -1
  257. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
  258. package/package.json +18 -15
  259. package/tsconfig.build.json +1 -1
  260. package/tsconfig.typecheck.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-providers",
3
- "version": "3.936.0",
3
+ "version": "3.940.0",
4
4
  "description": "A collection of credential providers, without requiring service clients like STS, Cognito",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -31,18 +31,18 @@
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
- "@aws-sdk/client-cognito-identity": "3.936.0",
35
- "@aws-sdk/core": "3.936.0",
36
- "@aws-sdk/credential-provider-cognito-identity": "3.936.0",
37
- "@aws-sdk/credential-provider-env": "3.936.0",
38
- "@aws-sdk/credential-provider-http": "3.936.0",
39
- "@aws-sdk/credential-provider-ini": "3.936.0",
40
- "@aws-sdk/credential-provider-login": "3.936.0",
41
- "@aws-sdk/credential-provider-node": "3.936.0",
42
- "@aws-sdk/credential-provider-process": "3.936.0",
43
- "@aws-sdk/credential-provider-sso": "3.936.0",
44
- "@aws-sdk/credential-provider-web-identity": "3.936.0",
45
- "@aws-sdk/nested-clients": "3.936.0",
34
+ "@aws-sdk/client-cognito-identity": "3.940.0",
35
+ "@aws-sdk/core": "3.940.0",
36
+ "@aws-sdk/credential-provider-cognito-identity": "3.940.0",
37
+ "@aws-sdk/credential-provider-env": "3.940.0",
38
+ "@aws-sdk/credential-provider-http": "3.940.0",
39
+ "@aws-sdk/credential-provider-ini": "3.940.0",
40
+ "@aws-sdk/credential-provider-login": "3.940.0",
41
+ "@aws-sdk/credential-provider-node": "3.940.0",
42
+ "@aws-sdk/credential-provider-process": "3.940.0",
43
+ "@aws-sdk/credential-provider-sso": "3.940.0",
44
+ "@aws-sdk/credential-provider-web-identity": "3.940.0",
45
+ "@aws-sdk/nested-clients": "3.940.0",
46
46
  "@aws-sdk/types": "3.936.0",
47
47
  "@smithy/config-resolver": "^4.4.3",
48
48
  "@smithy/core": "^3.18.5",
@@ -539,6 +539,44 @@ class SerdeContextConfig {
539
539
  }
540
540
  }
541
541
 
542
+ function* serializingStructIterator(ns, sourceObject) {
543
+ if (ns.isUnitSchema()) {
544
+ return;
545
+ }
546
+ const struct = ns.getSchema();
547
+ for (let i = 0; i < struct[4].length; ++i) {
548
+ const key = struct[4][i];
549
+ const memberNs = new schema.NormalizedSchema([struct[5][i], 0], key);
550
+ if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
551
+ continue;
552
+ }
553
+ yield [key, memberNs];
554
+ }
555
+ }
556
+ function* deserializingStructIterator(ns, sourceObject, nameTrait) {
557
+ if (ns.isUnitSchema()) {
558
+ return;
559
+ }
560
+ const struct = ns.getSchema();
561
+ let keysRemaining = Object.keys(sourceObject).length;
562
+ for (let i = 0; i < struct[4].length; ++i) {
563
+ if (keysRemaining === 0) {
564
+ break;
565
+ }
566
+ const key = struct[4][i];
567
+ const memberNs = new schema.NormalizedSchema([struct[5][i], 0], key);
568
+ let serializationKey = key;
569
+ if (nameTrait) {
570
+ serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
571
+ }
572
+ if (!(serializationKey in sourceObject)) {
573
+ continue;
574
+ }
575
+ yield [key, memberNs];
576
+ keysRemaining -= 1;
577
+ }
578
+ }
579
+
542
580
  function jsonReviver(key, value, context) {
543
581
  if (context?.source) {
544
582
  const numericString = context.source;
@@ -652,7 +690,7 @@ class JsonShapeDeserializer extends SerdeContextConfig {
652
690
  }
653
691
  else if (ns.isStructSchema() && isObject) {
654
692
  const out = {};
655
- for (const [memberName, memberSchema] of ns.structIterator()) {
693
+ for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
656
694
  const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
657
695
  const deserializedValue = this._read(memberSchema, value[fromKey]);
658
696
  if (deserializedValue != null) {
@@ -829,10 +867,10 @@ class JsonShapeSerializer extends SerdeContextConfig {
829
867
  }
830
868
  else if (ns.isStructSchema() && isObject) {
831
869
  const out = {};
832
- for (const [memberName, memberSchema] of ns.structIterator()) {
833
- const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
870
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
834
871
  const serializableValue = this._write(memberSchema, value[memberName], ns);
835
872
  if (serializableValue !== undefined) {
873
+ const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
836
874
  out[targetKey] = serializableValue;
837
875
  }
838
876
  }
@@ -1360,7 +1398,7 @@ class QueryShapeSerializer extends SerdeContextConfig {
1360
1398
  }
1361
1399
  else if (ns.isStructSchema()) {
1362
1400
  if (value && typeof value === "object") {
1363
- for (const [memberName, member] of ns.structIterator()) {
1401
+ for (const [memberName, member] of serializingStructIterator(ns, value)) {
1364
1402
  if (value[memberName] == null && !member.isIdempotencyToken()) {
1365
1403
  continue;
1366
1404
  }
@@ -1657,7 +1695,7 @@ class XmlShapeSerializer extends SerdeContextConfig {
1657
1695
  }
1658
1696
  const structXmlNode = xmlBuilder.XmlNode.of(name);
1659
1697
  const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1660
- for (const [memberName, memberSchema] of ns.structIterator()) {
1698
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
1661
1699
  const val = value[memberName];
1662
1700
  if (val != null || memberSchema.isIdempotencyToken()) {
1663
1701
  if (memberSchema.getMergedTraits().xmlAttribute) {
@@ -209,6 +209,44 @@ class SerdeContextConfig {
209
209
  }
210
210
  }
211
211
 
212
+ function* serializingStructIterator(ns, sourceObject) {
213
+ if (ns.isUnitSchema()) {
214
+ return;
215
+ }
216
+ const struct = ns.getSchema();
217
+ for (let i = 0; i < struct[4].length; ++i) {
218
+ const key = struct[4][i];
219
+ const memberNs = new schema.NormalizedSchema([struct[5][i], 0], key);
220
+ if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
221
+ continue;
222
+ }
223
+ yield [key, memberNs];
224
+ }
225
+ }
226
+ function* deserializingStructIterator(ns, sourceObject, nameTrait) {
227
+ if (ns.isUnitSchema()) {
228
+ return;
229
+ }
230
+ const struct = ns.getSchema();
231
+ let keysRemaining = Object.keys(sourceObject).length;
232
+ for (let i = 0; i < struct[4].length; ++i) {
233
+ if (keysRemaining === 0) {
234
+ break;
235
+ }
236
+ const key = struct[4][i];
237
+ const memberNs = new schema.NormalizedSchema([struct[5][i], 0], key);
238
+ let serializationKey = key;
239
+ if (nameTrait) {
240
+ serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
241
+ }
242
+ if (!(serializationKey in sourceObject)) {
243
+ continue;
244
+ }
245
+ yield [key, memberNs];
246
+ keysRemaining -= 1;
247
+ }
248
+ }
249
+
212
250
  function jsonReviver(key, value, context) {
213
251
  if (context?.source) {
214
252
  const numericString = context.source;
@@ -322,7 +360,7 @@ class JsonShapeDeserializer extends SerdeContextConfig {
322
360
  }
323
361
  else if (ns.isStructSchema() && isObject) {
324
362
  const out = {};
325
- for (const [memberName, memberSchema] of ns.structIterator()) {
363
+ for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
326
364
  const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
327
365
  const deserializedValue = this._read(memberSchema, value[fromKey]);
328
366
  if (deserializedValue != null) {
@@ -499,10 +537,10 @@ class JsonShapeSerializer extends SerdeContextConfig {
499
537
  }
500
538
  else if (ns.isStructSchema() && isObject) {
501
539
  const out = {};
502
- for (const [memberName, memberSchema] of ns.structIterator()) {
503
- const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
540
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
504
541
  const serializableValue = this._write(memberSchema, value[memberName], ns);
505
542
  if (serializableValue !== undefined) {
543
+ const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
506
544
  out[targetKey] = serializableValue;
507
545
  }
508
546
  }
@@ -1030,7 +1068,7 @@ class QueryShapeSerializer extends SerdeContextConfig {
1030
1068
  }
1031
1069
  else if (ns.isStructSchema()) {
1032
1070
  if (value && typeof value === "object") {
1033
- for (const [memberName, member] of ns.structIterator()) {
1071
+ for (const [memberName, member] of serializingStructIterator(ns, value)) {
1034
1072
  if (value[memberName] == null && !member.isIdempotencyToken()) {
1035
1073
  continue;
1036
1074
  }
@@ -1327,7 +1365,7 @@ class XmlShapeSerializer extends SerdeContextConfig {
1327
1365
  }
1328
1366
  const structXmlNode = xmlBuilder.XmlNode.of(name);
1329
1367
  const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
1330
- for (const [memberName, memberSchema] of ns.structIterator()) {
1368
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
1331
1369
  const val = value[memberName];
1332
1370
  if (val != null || memberSchema.isIdempotencyToken()) {
1333
1371
  if (memberSchema.getMergedTraits().xmlAttribute) {
@@ -3,6 +3,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
4
4
  import { fromBase64 } from "@smithy/util-base64";
5
5
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
6
+ import { deserializingStructIterator } from "../structIterator";
6
7
  import { jsonReviver } from "./jsonReviver";
7
8
  import { parseJsonBody } from "./parseJsonBody";
8
9
  export class JsonShapeDeserializer extends SerdeContextConfig {
@@ -44,7 +45,7 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
44
45
  }
45
46
  else if (ns.isStructSchema() && isObject) {
46
47
  const out = {};
47
- for (const [memberName, memberSchema] of ns.structIterator()) {
48
+ for (const [memberName, memberSchema] of deserializingStructIterator(ns, value, this.settings.jsonName ? "jsonName" : false)) {
48
49
  const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
49
50
  const deserializedValue = this._read(memberSchema, value[fromKey]);
50
51
  if (deserializedValue != null) {
@@ -3,6 +3,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue } from "@smithy/core/serde";
4
4
  import { toBase64 } from "@smithy/util-base64";
5
5
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
6
+ import { serializingStructIterator } from "../structIterator";
6
7
  import { JsonReplacer } from "./jsonReplacer";
7
8
  export class JsonShapeSerializer extends SerdeContextConfig {
8
9
  settings;
@@ -58,10 +59,10 @@ export class JsonShapeSerializer extends SerdeContextConfig {
58
59
  }
59
60
  else if (ns.isStructSchema() && isObject) {
60
61
  const out = {};
61
- for (const [memberName, memberSchema] of ns.structIterator()) {
62
- const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
62
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
63
63
  const serializableValue = this._write(memberSchema, value[memberName], ns);
64
64
  if (serializableValue !== undefined) {
65
+ const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
65
66
  out[targetKey] = serializableValue;
66
67
  }
67
68
  }
@@ -3,6 +3,7 @@ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue } from "@smithy/core/serde";
4
4
  import { toBase64 } from "@smithy/util-base64";
5
5
  import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
6
+ import { serializingStructIterator } from "../../structIterator";
6
7
  export class SinglePassJsonShapeSerializer extends SerdeContextConfig {
7
8
  settings;
8
9
  buffer;
@@ -44,7 +45,7 @@ export class SinglePassJsonShapeSerializer extends SerdeContextConfig {
44
45
  }
45
46
  else if (ns.isStructSchema()) {
46
47
  b += "{";
47
- for (const [name, member] of ns.structIterator()) {
48
+ for (const [name, member] of serializingStructIterator(ns, value)) {
48
49
  const item = value[name];
49
50
  const targetKey = this.settings.jsonName ? member.getMergedTraits().jsonName ?? name : name;
50
51
  const serializableValue = this.writeValue(member, item);
@@ -4,6 +4,7 @@ import { generateIdempotencyToken, NumericValue } from "@smithy/core/serde";
4
4
  import { dateToUtcString } from "@smithy/smithy-client";
5
5
  import { toBase64 } from "@smithy/util-base64";
6
6
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
7
+ import { serializingStructIterator } from "../structIterator";
7
8
  export class QueryShapeSerializer extends SerdeContextConfig {
8
9
  settings;
9
10
  buffer;
@@ -113,7 +114,7 @@ export class QueryShapeSerializer extends SerdeContextConfig {
113
114
  }
114
115
  else if (ns.isStructSchema()) {
115
116
  if (value && typeof value === "object") {
116
- for (const [memberName, member] of ns.structIterator()) {
117
+ for (const [memberName, member] of serializingStructIterator(ns, value)) {
117
118
  if (value[memberName] == null && !member.isIdempotencyToken()) {
118
119
  continue;
119
120
  }
@@ -0,0 +1,38 @@
1
+ import { NormalizedSchema } from "@smithy/core/schema";
2
+ export function* serializingStructIterator(ns, sourceObject) {
3
+ if (ns.isUnitSchema()) {
4
+ return;
5
+ }
6
+ const struct = ns.getSchema();
7
+ for (let i = 0; i < struct[4].length; ++i) {
8
+ const key = struct[4][i];
9
+ const memberNs = new NormalizedSchema([struct[5][i], 0], key);
10
+ if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
11
+ continue;
12
+ }
13
+ yield [key, memberNs];
14
+ }
15
+ }
16
+ export function* deserializingStructIterator(ns, sourceObject, nameTrait) {
17
+ if (ns.isUnitSchema()) {
18
+ return;
19
+ }
20
+ const struct = ns.getSchema();
21
+ let keysRemaining = Object.keys(sourceObject).length;
22
+ for (let i = 0; i < struct[4].length; ++i) {
23
+ if (keysRemaining === 0) {
24
+ break;
25
+ }
26
+ const key = struct[4][i];
27
+ const memberNs = new NormalizedSchema([struct[5][i], 0], key);
28
+ let serializationKey = key;
29
+ if (nameTrait) {
30
+ serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
31
+ }
32
+ if (!(serializationKey in sourceObject)) {
33
+ continue;
34
+ }
35
+ yield [key, memberNs];
36
+ keysRemaining -= 1;
37
+ }
38
+ }
@@ -5,6 +5,7 @@ import { generateIdempotencyToken, NumericValue } from "@smithy/core/serde";
5
5
  import { dateToUtcString } from "@smithy/smithy-client";
6
6
  import { fromBase64, toBase64 } from "@smithy/util-base64";
7
7
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
8
+ import { serializingStructIterator } from "../structIterator";
8
9
  export class XmlShapeSerializer extends SerdeContextConfig {
9
10
  settings;
10
11
  stringBuffer;
@@ -63,7 +64,7 @@ export class XmlShapeSerializer extends SerdeContextConfig {
63
64
  }
64
65
  const structXmlNode = XmlNode.of(name);
65
66
  const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
66
- for (const [memberName, memberSchema] of ns.structIterator()) {
67
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
67
68
  const val = value[memberName];
68
69
  if (val != null || memberSchema.isIdempotencyToken()) {
69
70
  if (memberSchema.getMergedTraits().xmlAttribute) {
@@ -0,0 +1,27 @@
1
+ import { NormalizedSchema } from "@smithy/core/schema";
2
+ /**
3
+ * @internal
4
+ */
5
+ type SourceObject = Record<string, any>;
6
+ /**
7
+ * For serialization use only.
8
+ * @internal
9
+ *
10
+ * @param ns - normalized schema object.
11
+ * @param sourceObject - source object from serialization.
12
+ */
13
+ export declare function serializingStructIterator(ns: NormalizedSchema, sourceObject: SourceObject): Generator<any[], void, unknown>;
14
+ /**
15
+ * For deserialization use only.
16
+ * Yields a subset of NormalizedSchema::structIterator matched to the source object keys.
17
+ * This is a performance optimization to avoid creation of NormalizedSchema member
18
+ * objects for members that are undefined in the source data object but may be numerous
19
+ * in the schema/model.
20
+ * @internal
21
+ *
22
+ * @param ns - normalized schema object.
23
+ * @param sourceObject - source object from deserialization.
24
+ * @param nameTrait - xmlName or jsonName trait to look for.
25
+ */
26
+ export declare function deserializingStructIterator(ns: NormalizedSchema, sourceObject: SourceObject, nameTrait?: "xmlName" | "jsonName" | false): Generator<any[], void, unknown>;
27
+ export {};
@@ -0,0 +1,12 @@
1
+ import { NormalizedSchema } from "@smithy/core/schema";
2
+ type SourceObject = Record<string, any>;
3
+ export declare function serializingStructIterator(
4
+ ns: NormalizedSchema,
5
+ sourceObject: SourceObject
6
+ ): Generator<any[], void, unknown>;
7
+ export declare function deserializingStructIterator(
8
+ ns: NormalizedSchema,
9
+ sourceObject: SourceObject,
10
+ nameTrait?: "xmlName" | "jsonName" | false
11
+ ): Generator<any[], void, unknown>;
12
+ export {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.936.0",
3
+ "version": "3.940.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-flexible-checksums",
3
- "version": "3.936.0",
3
+ "version": "3.940.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-flexible-checksums",
@@ -37,7 +37,7 @@
37
37
  "@aws-crypto/crc32": "5.2.0",
38
38
  "@aws-crypto/crc32c": "5.2.0",
39
39
  "@aws-crypto/util": "5.2.0",
40
- "@aws-sdk/core": "3.936.0",
40
+ "@aws-sdk/core": "3.940.0",
41
41
  "@aws-sdk/types": "3.936.0",
42
42
  "@smithy/is-array-buffer": "^4.2.0",
43
43
  "@smithy/node-config-provider": "^4.3.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambda-live-debugger",
3
- "version": "1.10.5",
3
+ "version": "1.11.1",
4
4
  "type": "module",
5
5
  "description": "Debug Lambda functions locally like it is running in the cloud",
6
6
  "repository": {
@@ -70,6 +70,8 @@
70
70
  "test-osls-esbuild-esm-observable": "npm run build && RUN_TEST_FROM_CLI=true OBSERVABLE_MODE=true vitest run test/osls-esbuild-esm.test.ts",
71
71
  "test-sam-basic": "npm run build && RUN_TEST_FROM_CLI=true vitest run test/sam-basic.test.ts",
72
72
  "test-sam-basic-observable": "npm run build && RUN_TEST_FROM_CLI=true OBSERVABLE_MODE=true vitest run test/sam-basic.test.ts",
73
+ "test-sam-nested": "npm run build && RUN_TEST_FROM_CLI=true vitest run test/sam-nested.test.ts",
74
+ "test-sam-nested-observable": "npm run build && RUN_TEST_FROM_CLI=true OBSERVABLE_MODE=true vitest run test/sam-nested.test.ts",
73
75
  "test-sam-alt": "npm run build && RUN_TEST_FROM_CLI=true vitest run test/sam-alt.test.ts",
74
76
  "test-sam-alt-observable": "npm run build && RUN_TEST_FROM_CLI=true OBSERVABLE_MODE=true vitest run test/sam-alt.test.ts",
75
77
  "test-terraform-basic": "npm run build && RUN_TEST_FROM_CLI=true vitest run test/terraform-basic.test.ts",
@@ -82,37 +84,37 @@
82
84
  },
83
85
  "devDependencies": {
84
86
  "@eslint/js": "^9.39.1",
85
- "@tsconfig/node22": "^22.0.5",
87
+ "@tsconfig/node24": "^24.0.3",
86
88
  "@types/aws-iot-device-sdk": "^2.2.9",
87
89
  "@types/eslint-config-prettier": "^6.11.3",
88
90
  "@types/inquirer": "^9.0.9",
89
91
  "@types/node": "^24.10.1",
90
92
  "@types/serverless": "^3.12.27",
91
93
  "aws-cdk": "2.1033.0",
92
- "aws-cdk-lib": "2.227.0",
94
+ "aws-cdk-lib": "2.230.0",
93
95
  "constructs": "^10.4.3",
94
96
  "eslint": "^9.39.1",
95
97
  "eslint-config-prettier": "^10.1.8",
96
98
  "globals": "^16.5.0",
97
99
  "husky": "^9.1.7",
98
- "osls": "^3.59.3",
99
- "prettier": "^3.6.2",
100
+ "osls": "^3.60.0",
101
+ "prettier": "^3.7.2",
100
102
  "semantic-release": "^25.0.2",
101
103
  "serverless": "^3.38.0",
102
- "serverless-esbuild": "^1.56.0",
104
+ "serverless-esbuild": "^1.56.1",
103
105
  "tsx": "^4.20.6",
104
- "typescript-eslint": "^8.47.0",
106
+ "typescript-eslint": "^8.48.0",
105
107
  "vitepress": "^1.6.4",
106
- "vitest": "^4.0.13"
108
+ "vitest": "^4.0.14"
107
109
  },
108
110
  "dependencies": {
109
- "@aws-sdk/client-cloudformation": "^3.938.0",
110
- "@aws-sdk/client-iam": "^3.936.0",
111
- "@aws-sdk/client-iot": "^3.936.0",
112
- "@aws-sdk/client-iot-data-plane": "^3.936.0",
113
- "@aws-sdk/client-lambda": "^3.938.0",
114
- "@aws-sdk/client-s3": "^3.937.0",
115
- "@aws-sdk/credential-providers": "^3.936.0",
111
+ "@aws-sdk/client-cloudformation": "^3.940.0",
112
+ "@aws-sdk/client-iam": "^3.940.0",
113
+ "@aws-sdk/client-iot": "^3.940.0",
114
+ "@aws-sdk/client-iot-data-plane": "^3.940.0",
115
+ "@aws-sdk/client-lambda": "^3.940.0",
116
+ "@aws-sdk/client-s3": "^3.940.0",
117
+ "@aws-sdk/credential-providers": "^3.940.0",
116
118
  "@smithy/shared-ini-file-loader": "^4.4.0",
117
119
  "aws-iot-device-sdk": "^2.2.16",
118
120
  "chalk": "^5.6.2",
@@ -161,6 +163,7 @@
161
163
  "test/osls-esbuild",
162
164
  "test/osls-esbuild-cjs",
163
165
  "test/sam-basic",
166
+ "test/sam-nested",
164
167
  "test/sam-alt",
165
168
  "test/terraform-basic",
166
169
  "test/opentofu-basic"
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "@tsconfig/node22/tsconfig.json",
2
+ "extends": "@tsconfig/node24/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "./dist",
5
5
  "rootDir": "./src",
@@ -1,4 +1,4 @@
1
1
  {
2
- "extends": "@tsconfig/node22/tsconfig.json",
2
+ "extends": "@tsconfig/node24/tsconfig.json",
3
3
  "exclude": ["node_modules", "dist", "src/extension"]
4
4
  }