@psnext/slingcli 3.5.20261007-3 → 3.5.20261019-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 (377) hide show
  1. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -3
  2. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +94 -1589
  3. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
  4. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -7
  5. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
  6. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
  7. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -8
  8. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  9. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  10. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  11. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  12. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -10
  13. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  14. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  15. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  16. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  17. package/node_modules/@aws-sdk/core/package.json +3 -3
  18. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  19. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  20. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  21. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  22. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  23. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  24. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
  25. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
  26. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +4 -4
  27. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  28. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  29. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
  30. package/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
  31. package/node_modules/@aws-sdk/middleware-websocket/package.json +4 -4
  32. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +11 -1
  33. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +6 -1
  34. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +6 -1
  35. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +13 -1
  36. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +9 -1
  37. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
  38. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
  39. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
  40. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
  41. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
  42. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
  43. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
  44. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
  45. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
  46. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
  47. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
  48. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
  49. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
  50. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +4 -0
  51. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
  52. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
  53. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
  54. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
  55. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
  56. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
  57. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
  58. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
  61. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
  62. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
  63. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
  64. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
  65. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
  66. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
  67. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  68. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  69. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +2 -0
  70. package/node_modules/@earendil-works/pi-codemode/dist/runtime/host.js +21 -86
  71. package/node_modules/@earendil-works/pi-codemode/dist/runtime/prelude-source.js +3 -103
  72. package/node_modules/@earendil-works/pi-codemode/package.json +1 -1
  73. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-TFS67BSI.js → chunk-23QDZLZG.js} +20 -14
  74. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-IB6ONE3U.js → chunk-QPFSTNX5.js} +1 -1
  75. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{virtual-modules-P5ROWYIG.js → virtual-modules-GRXGP6ZA.js} +1 -1
  76. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli-runtime.js +1 -1
  77. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
  78. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
  79. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Agent.md +8 -8
  80. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
  81. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +11 -6
  82. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
  83. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Dispatcher.md +12 -0
  84. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Errors.md +101 -1
  85. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Fetch.md +10 -0
  86. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
  87. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Interceptors.md +17 -9
  88. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Pool.md +5 -6
  89. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
  90. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/index.md +22 -13
  91. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/type-map.json +66 -66
  92. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +1 -2
  93. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
  94. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
  95. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +10 -4
  96. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/constants.js +12 -1
  97. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/errors.js +38 -1
  98. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/request.js +39 -3
  99. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +2 -0
  100. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/util.js +26 -40
  101. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +6 -2
  102. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +127 -84
  103. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +97 -21
  104. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +10 -2
  105. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
  106. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
  107. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
  108. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
  109. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool-base.js +117 -19
  110. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/pool.js +99 -13
  111. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +34 -11
  112. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
  113. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
  114. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +153 -15
  115. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +126 -52
  116. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +31 -6
  117. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +116 -24
  118. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +15 -4
  119. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +253 -73
  120. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +11 -0
  121. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/response-error.js +72 -28
  122. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/LICENSE.md +7 -0
  123. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/no-simd.js +1002 -0
  124. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/milo/simd.js +1002 -0
  125. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +11 -0
  126. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
  127. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
  128. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +11 -5
  129. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cache.js +17 -8
  130. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
  131. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/index.js +19 -7
  132. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/util.js +21 -2
  133. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
  134. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +50 -3
  135. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/body.js +69 -53
  136. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/data-url.js +6 -6
  137. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
  138. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/formdata.js +30 -36
  139. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/headers.js +36 -33
  140. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +54 -29
  141. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +74 -79
  142. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/response.js +43 -44
  143. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +7 -7
  144. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/infra/index.js +16 -1
  145. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  146. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +2 -14
  147. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +33 -12
  148. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/events.js +43 -26
  149. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/receiver.js +27 -4
  150. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
  151. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +19 -4
  152. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +44 -41
  153. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +7 -5
  154. package/node_modules/@earendil-works/pi-coding-agent/package.json +2 -2
  155. package/node_modules/@hono/node-server/README.md +2 -0
  156. package/node_modules/@hono/node-server/dist/index.cjs +1 -1
  157. package/node_modules/@hono/node-server/dist/index.mjs +1 -1
  158. package/node_modules/@hono/node-server/dist/serve-static.cjs +2 -1
  159. package/node_modules/@hono/node-server/dist/serve-static.mjs +2 -1
  160. package/node_modules/@hono/node-server/package.json +2 -2
  161. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  162. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
  163. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1695 -3
  164. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
  165. package/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
  166. package/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
  167. package/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
  168. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +8 -0
  169. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +102 -0
  170. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +8 -1
  171. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +8 -1
  172. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +13 -2
  173. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +11 -1
  174. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/parseJsonBody.js +16 -1
  175. package/node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js +3 -0
  176. package/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
  177. package/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
  178. package/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
  179. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +9 -0
  180. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
  181. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
  182. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +16 -0
  183. package/node_modules/@smithy/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  184. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
  185. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
  186. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
  187. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -0
  188. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
  189. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +28 -0
  190. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -11
  191. package/node_modules/{@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json → @smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +7 -4
  192. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
  193. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
  194. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  195. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -9
  196. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
  197. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
  198. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
  199. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
  200. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
  201. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
  202. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
  203. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +4 -0
  204. package/node_modules/@smithy/core/package.json +2 -1
  205. package/node_modules/@types/node/README.md +1 -1
  206. package/node_modules/@types/node/package.json +2 -2
  207. package/node_modules/@types/node/util.d.ts +6 -3
  208. package/node_modules/content-disposition/README.md +105 -35
  209. package/node_modules/content-disposition/dist/index.d.ts +72 -0
  210. package/node_modules/content-disposition/dist/index.js +388 -0
  211. package/node_modules/content-disposition/dist/index.js.map +1 -0
  212. package/node_modules/content-disposition/package.json +31 -19
  213. package/node_modules/express/Readme.md +15 -9
  214. package/node_modules/express/lib/application.js +2 -2
  215. package/node_modules/express/lib/request.js +32 -19
  216. package/node_modules/express/lib/response.js +27 -30
  217. package/node_modules/express/node_modules/content-type/LICENSE +22 -0
  218. package/node_modules/express/node_modules/content-type/README.md +71 -0
  219. package/node_modules/express/node_modules/content-type/dist/index.d.ts +46 -0
  220. package/node_modules/express/node_modules/content-type/dist/index.js +176 -0
  221. package/node_modules/express/node_modules/content-type/dist/index.js.map +1 -0
  222. package/node_modules/express/node_modules/content-type/package.json +52 -0
  223. package/node_modules/express/package.json +10 -10
  224. package/node_modules/fast-uri/.github/workflows/release.yml +35 -0
  225. package/node_modules/fast-uri/README.md +8 -0
  226. package/node_modules/fast-uri/index.js +98 -18
  227. package/node_modules/fast-uri/lib/utils.js +52 -0
  228. package/node_modules/fast-uri/package.json +1 -1
  229. package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
  230. package/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
  231. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +32 -4
  232. package/node_modules/fast-uri/test/scheme-validation.test.js +53 -14
  233. package/node_modules/ip-address/README.md +70 -70
  234. package/node_modules/ip-address/dist/ipv6.js +7 -4
  235. package/node_modules/ip-address/dist/ipv6.js.map +1 -1
  236. package/node_modules/ip-address/dist/v6/constants.d.ts +3 -0
  237. package/node_modules/ip-address/dist/v6/constants.js +3 -0
  238. package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
  239. package/node_modules/ip-address/package.json +2 -1
  240. package/node_modules/jose/README.md +2 -2
  241. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +5 -4
  242. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -4
  243. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +5 -4
  244. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +5 -5
  245. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +5 -4
  246. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +5 -5
  247. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -4
  248. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +5 -5
  249. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -4
  250. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +6 -5
  251. package/node_modules/jose/dist/types/jws/general/sign.d.ts +9 -6
  252. package/node_modules/jose/dist/types/jws/general/verify.d.ts +7 -5
  253. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +7 -6
  254. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +1 -1
  255. package/node_modules/jose/dist/types/jwt/sign.d.ts +1 -1
  256. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +1 -1
  257. package/node_modules/jose/dist/types/jwt/verify.d.ts +3 -5
  258. package/node_modules/jose/dist/types/key/export.d.ts +1 -1
  259. package/node_modules/jose/dist/types/key/generate_secret.d.ts +1 -1
  260. package/node_modules/jose/dist/types/key/import.d.ts +2 -2
  261. package/node_modules/jose/dist/types/types.d.ts +165 -107
  262. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +2 -2
  263. package/node_modules/jose/dist/types/util/errors.d.ts +1 -1
  264. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
  265. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
  266. package/node_modules/jose/dist/webapi/jwks/local.js +2 -1
  267. package/node_modules/jose/dist/webapi/jwks/remote.js +4 -4
  268. package/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
  269. package/node_modules/jose/dist/webapi/jws/general/verify.js +3 -3
  270. package/node_modules/jose/dist/webapi/jwt/encrypt.js +2 -2
  271. package/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
  272. package/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
  273. package/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
  274. package/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
  275. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
  276. package/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
  277. package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +14 -14
  278. package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +3 -3
  279. package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
  280. package/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
  281. package/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
  282. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +44 -43
  283. package/node_modules/jose/dist/webapi/lib/key.js +4 -4
  284. package/node_modules/jose/dist/webapi/lib/key_management.js +17 -17
  285. package/node_modules/jose/dist/webapi/lib/validate.js +10 -10
  286. package/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
  287. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
  288. package/node_modules/jose/package.json +1 -1
  289. package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
  290. package/node_modules/qs/CHANGELOG.md +38 -14
  291. package/node_modules/qs/README.md +31 -3
  292. package/node_modules/qs/dist/qs.js +20 -20
  293. package/node_modules/qs/lib/parse.js +94 -4
  294. package/node_modules/qs/lib/stringify.js +4 -4
  295. package/node_modules/qs/lib/utils.js +130 -6
  296. package/node_modules/qs/package.json +4 -4
  297. package/node_modules/qs/test/parse.js +174 -0
  298. package/node_modules/qs/test/stringify.js +263 -33
  299. package/node_modules/qs/test/utils.js +184 -0
  300. package/node_modules/undici/docs/docs/api/Client.md +2 -0
  301. package/node_modules/undici/lib/core/connect.js +10 -4
  302. package/node_modules/undici/lib/core/symbols.js +1 -0
  303. package/node_modules/undici/lib/dispatcher/agent.js +6 -2
  304. package/node_modules/undici/lib/dispatcher/client-h1.js +0 -2
  305. package/node_modules/undici/lib/dispatcher/client-h2.js +0 -4
  306. package/node_modules/undici/lib/dispatcher/client.js +3 -2
  307. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +12 -0
  308. package/node_modules/undici/lib/handler/cache-handler.js +48 -0
  309. package/node_modules/undici/lib/handler/deduplication-handler.js +57 -13
  310. package/node_modules/undici/lib/handler/redirect-handler.js +8 -1
  311. package/node_modules/undici/lib/interceptor/decompress.js +15 -5
  312. package/node_modules/undici/lib/web/cookies/index.js +3 -1
  313. package/node_modules/undici/lib/web/cookies/parse.js +138 -137
  314. package/node_modules/undici/lib/web/cookies/util.js +21 -2
  315. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +90 -9
  316. package/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
  317. package/node_modules/undici/lib/web/fetch/index.js +3 -3
  318. package/node_modules/undici/lib/web/infra/index.js +14 -0
  319. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  320. package/node_modules/undici/lib/web/websocket/receiver.js +13 -0
  321. package/node_modules/undici/package.json +1 -1
  322. package/node_modules/undici/types/client.d.ts +14 -0
  323. package/node_modules/zod/package.json +1 -1
  324. package/node_modules/zod/src/v4/classic/tests/array.test.ts +27 -0
  325. package/node_modules/zod/src/v4/classic/tests/map.test.ts +7 -0
  326. package/node_modules/zod/src/v4/classic/tests/set.test.ts +6 -0
  327. package/node_modules/zod/src/v4/core/compile.ts +9 -0
  328. package/node_modules/zod/src/v4/core/schemas.ts +35 -1
  329. package/node_modules/zod/src/v4/core/util.ts +13 -0
  330. package/node_modules/zod/src/v4/core/versions.ts +1 -1
  331. package/node_modules/zod/v4/core/compile.cjs +8 -0
  332. package/node_modules/zod/v4/core/compile.js +8 -0
  333. package/node_modules/zod/v4/core/schemas.cjs +30 -0
  334. package/node_modules/zod/v4/core/schemas.d.cts +3 -1
  335. package/node_modules/zod/v4/core/schemas.d.ts +3 -1
  336. package/node_modules/zod/v4/core/schemas.js +30 -0
  337. package/node_modules/zod/v4/core/util.cjs +15 -0
  338. package/node_modules/zod/v4/core/util.d.cts +2 -0
  339. package/node_modules/zod/v4/core/util.d.ts +2 -0
  340. package/node_modules/zod/v4/core/util.js +14 -0
  341. package/node_modules/zod/v4/core/versions.cjs +1 -1
  342. package/node_modules/zod/v4/core/versions.js +1 -1
  343. package/package.json +5 -4
  344. package/slingshot/index.js +124 -124
  345. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
  346. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
  347. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
  348. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
  349. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
  350. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
  351. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
  352. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
  353. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
  354. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
  355. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
  356. package/node_modules/content-disposition/index.js +0 -536
  357. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -0
  358. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -0
  359. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -0
  360. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -0
  361. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -0
  362. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -0
  363. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -0
  364. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -0
  365. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/needsReviver.js +0 -0
  366. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -0
  367. /package/node_modules/{@aws-sdk/core/dist-types/submodules/protocols/json → @smithy/core/dist-types/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +0 -0
  368. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -0
  369. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -0
  370. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -0
  371. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -0
  372. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -0
  373. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -0
  374. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
  375. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -0
  376. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -0
  377. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -0
@@ -1,4 +1,5 @@
1
1
  import { HttpRequest } from "@smithy/core/protocols";
2
+ import { SMITHY_CONTEXT_KEY } from "@smithy/types";
2
3
  import { getAgeHeader, getDateHeader, getSkewCorrectedDate, getUpdatedSystemClockOffset } from "../utils";
3
4
  const throwSigningPropertyError = (name, property) => {
4
5
  if (!property) {
@@ -6,6 +7,12 @@ const throwSigningPropertyError = (name, property) => {
6
7
  }
7
8
  return property;
8
9
  };
10
+ const hasEventStreamOutput = (signingProperties) => {
11
+ const context = signingProperties.context;
12
+ const eventStream = context?.[SMITHY_CONTEXT_KEY]
13
+ ?.eventStream;
14
+ return eventStream?.output === true;
15
+ };
9
16
  export const validateSigningProperties = async (signingProperties) => {
10
17
  const context = throwSigningPropertyError("context", signingProperties.context);
11
18
  const config = throwSigningPropertyError("config", signingProperties.config);
@@ -41,7 +48,9 @@ export class AwsSdkSigV4Signer {
41
48
  }
42
49
  const noSkewCorrection = (await config.disableClockSkewCorrection?.()) === true;
43
50
  signingProperties._disableClockSkewCorrection = noSkewCorrection;
44
- if (!noSkewCorrection) {
51
+ const skipSkewSampling = noSkewCorrection || hasEventStreamOutput(signingProperties);
52
+ signingProperties._skipClockSkewSampling = skipSkewSampling;
53
+ if (!skipSkewSampling) {
45
54
  signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
46
55
  signingProperties._requestSentAt = Date.now();
47
56
  }
@@ -55,7 +64,7 @@ export class AwsSdkSigV4Signer {
55
64
  errorHandler(signingProperties) {
56
65
  return (error) => {
57
66
  const errorException = error;
58
- if (!signingProperties._disableClockSkewCorrection) {
67
+ if (!signingProperties._skipClockSkewSampling && !signingProperties._disableClockSkewCorrection) {
59
68
  const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
60
69
  if (serverTime) {
61
70
  const config = throwSigningPropertyError("config", signingProperties.config);
@@ -76,7 +85,7 @@ export class AwsSdkSigV4Signer {
76
85
  };
77
86
  }
78
87
  successHandler(httpResponse, signingProperties) {
79
- if (signingProperties._disableClockSkewCorrection) {
88
+ if (signingProperties._skipClockSkewSampling || signingProperties._disableClockSkewCorrection) {
80
89
  return;
81
90
  }
82
91
  const dateHeader = getDateHeader(httpResponse);
@@ -3,13 +3,7 @@ export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
3
3
  export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
4
4
  export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
5
5
  export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
6
- export { JsonCodec } from "./json/codec-v1/JsonCodec";
7
- export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
8
- export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
9
- export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
10
- export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
11
- export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
12
- export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
6
+ export { JsonCodec, JsonCodec2, JsonShapeDeserializer, JsonShapeDeserializer2, JsonShapeSerializer, JsonShapeSerializer2, loadJsonRpcErrorCode, loadRestJsonErrorCode, parseJsonBody, parseJsonErrorBody, } from "@smithy/core/protocols";
13
7
  export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
14
8
  export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
15
9
  export { QueryShapeSerializer } from "./query/QueryShapeSerializer";
@@ -1,8 +1,6 @@
1
- import { RpcProtocol } from "@smithy/core/protocols";
1
+ import { JsonCodec2, loadJsonRpcErrorCode, RpcProtocol } from "@smithy/core/protocols";
2
2
  import { deref, NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
- import { JsonCodec2 } from "./codec-v2/JsonCodec2";
5
- import { loadJsonRpcErrorCode } from "./parseJsonBody";
6
4
  export class AwsJsonRpcProtocol extends RpcProtocol {
7
5
  serializer;
8
6
  deserializer;
@@ -1,8 +1,6 @@
1
- import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
1
+ import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, JsonCodec2, loadRestJsonErrorCode, } from "@smithy/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
- import { JsonCodec2 } from "./codec-v2/JsonCodec2";
5
- import { loadRestJsonErrorCode } from "./parseJsonBody";
6
4
  export class AwsRestJsonProtocol extends HttpBindingProtocol {
7
5
  serializer;
8
6
  deserializer;
@@ -3,14 +3,8 @@ export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
3
3
  export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
4
4
  export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
5
5
  export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
6
- export { JsonCodec } from "./json/codec-v1/JsonCodec";
7
- export type { JsonSettings } from "./json/JsonSettings";
8
- export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
9
- export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
10
- export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
11
- export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
12
- export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
13
- export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
6
+ export { JsonCodec, JsonCodec2, JsonShapeDeserializer, JsonShapeDeserializer2, JsonShapeSerializer, JsonShapeSerializer2, loadJsonRpcErrorCode, loadRestJsonErrorCode, parseJsonBody, parseJsonErrorBody, } from "@smithy/core/protocols";
7
+ export type { JsonSettings } from "@smithy/core/protocols";
14
8
  export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
15
9
  export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
16
10
  export type { QuerySerializerSettings } from "./query/QuerySerializerSettings";
@@ -1,7 +1,6 @@
1
1
  import type { TypeRegistry } from "@smithy/core/schema";
2
+ import type { JsonCodec, JsonCodec2 } from "@smithy/core/protocols";
2
3
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
3
- import type { JsonCodec } from "./codec-v1/JsonCodec";
4
- import type { JsonCodec2 } from "./codec-v2/JsonCodec2";
5
4
  /**
6
5
  * @public
7
6
  * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
@@ -1,7 +1,6 @@
1
1
  import type { TypeRegistry } from "@smithy/core/schema";
2
+ import type { JsonCodec, JsonCodec2 } from "@smithy/core/protocols";
2
3
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
3
- import type { JsonCodec } from "./codec-v1/JsonCodec";
4
- import type { JsonCodec2 } from "./codec-v2/JsonCodec2";
5
4
  /**
6
5
  * @public
7
6
  * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
@@ -1,8 +1,7 @@
1
- import { RpcProtocol } from "@smithy/core/protocols";
1
+ import { JsonCodec2, RpcProtocol } from "@smithy/core/protocols";
2
+ import type { JsonCodec } from "@smithy/core/protocols";
2
3
  import type { TypeRegistry } from "@smithy/core/schema";
3
4
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
4
- import type { JsonCodec } from "./codec-v1/JsonCodec";
5
- import { JsonCodec2 } from "./codec-v2/JsonCodec2";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -1,8 +1,7 @@
1
- import { HttpBindingProtocol } from "@smithy/core/protocols";
1
+ import { HttpBindingProtocol, JsonCodec2 } from "@smithy/core/protocols";
2
+ import type { JsonCodec } from "@smithy/core/protocols";
2
3
  import type { TypeRegistry } from "@smithy/core/schema";
3
4
  import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
4
- import type { JsonCodec } from "./codec-v1/JsonCodec";
5
- import { JsonCodec2 } from "./codec-v2/JsonCodec2";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -3,19 +3,19 @@ export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
3
3
  export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
4
4
  export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
5
5
  export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
6
- export { JsonCodec } from "./json/codec-v1/JsonCodec";
7
- export { JsonSettings } from "./json/JsonSettings";
8
- export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
9
- export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
10
- export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
11
- export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
12
- export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
13
6
  export {
7
+ JsonCodec,
8
+ JsonCodec2,
9
+ JsonShapeDeserializer,
10
+ JsonShapeDeserializer2,
11
+ JsonShapeSerializer,
12
+ JsonShapeSerializer2,
13
+ loadJsonRpcErrorCode,
14
+ loadRestJsonErrorCode,
14
15
  parseJsonBody,
15
16
  parseJsonErrorBody,
16
- loadRestJsonErrorCode,
17
- loadJsonRpcErrorCode,
18
- } from "./json/parseJsonBody";
17
+ } from "@smithy/core/protocols";
18
+ export { JsonSettings } from "@smithy/core/protocols";
19
19
  export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
20
20
  export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
21
21
  export { QuerySerializerSettings } from "./query/QuerySerializerSettings";
@@ -1,7 +1,6 @@
1
1
  import { TypeRegistry } from "@smithy/core/schema";
2
+ import { JsonCodec, JsonCodec2 } from "@smithy/core/protocols";
2
3
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
3
- import { JsonCodec } from "./codec-v1/JsonCodec";
4
- import { JsonCodec2 } from "./codec-v2/JsonCodec2";
5
4
  export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
6
5
  constructor({
7
6
  defaultNamespace,
@@ -1,7 +1,6 @@
1
1
  import { TypeRegistry } from "@smithy/core/schema";
2
+ import { JsonCodec, JsonCodec2 } from "@smithy/core/protocols";
2
3
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
3
- import { JsonCodec } from "./codec-v1/JsonCodec";
4
- import { JsonCodec2 } from "./codec-v2/JsonCodec2";
5
4
  export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
6
5
  constructor({
7
6
  defaultNamespace,
@@ -1,4 +1,5 @@
1
- import { RpcProtocol } from "@smithy/core/protocols";
1
+ import { JsonCodec2, RpcProtocol } from "@smithy/core/protocols";
2
+ import { JsonCodec } from "@smithy/core/protocols";
2
3
  import { TypeRegistry } from "@smithy/core/schema";
3
4
  import {
4
5
  EndpointBearer,
@@ -11,8 +12,6 @@ import {
11
12
  ShapeDeserializer,
12
13
  ShapeSerializer,
13
14
  } from "@smithy/types";
14
- import { JsonCodec } from "./codec-v1/JsonCodec";
15
- import { JsonCodec2 } from "./codec-v2/JsonCodec2";
16
15
  export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
17
16
  protected serializer: ShapeSerializer<string | Uint8Array>;
18
17
  protected deserializer: ShapeDeserializer<string | Uint8Array>;
@@ -1,4 +1,5 @@
1
- import { HttpBindingProtocol } from "@smithy/core/protocols";
1
+ import { HttpBindingProtocol, JsonCodec2 } from "@smithy/core/protocols";
2
+ import { JsonCodec } from "@smithy/core/protocols";
2
3
  import { TypeRegistry } from "@smithy/core/schema";
3
4
  import {
4
5
  EndpointBearer,
@@ -12,8 +13,6 @@ import {
12
13
  ShapeDeserializer,
13
14
  ShapeSerializer,
14
15
  } from "@smithy/types";
15
- import { JsonCodec } from "./codec-v1/JsonCodec";
16
- import { JsonCodec2 } from "./codec-v2/JsonCodec2";
17
16
  export declare class AwsRestJsonProtocol extends HttpBindingProtocol {
18
17
  protected serializer: ShapeSerializer<string | Uint8Array>;
19
18
  protected deserializer: ShapeDeserializer<string | Uint8Array>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.978.1",
3
+ "version": "3.978.4",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
6
6
  "license": "Apache-2.0",
@@ -127,8 +127,8 @@
127
127
  "@aws-sdk/types": "^3.974.6",
128
128
  "@aws-sdk/xml-builder": "^3.972.41",
129
129
  "@aws/lambda-invoke-store": "^0.3.0",
130
- "@smithy/core": "^3.35.0",
131
- "@smithy/signature-v4": "^5.7.3",
130
+ "@smithy/core": "^3.36.0",
131
+ "@smithy/signature-v4": "^5.7.4",
132
132
  "@smithy/types": "^4.19.0",
133
133
  "bowser": "^2.11.0",
134
134
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.972.72",
3
+ "version": "3.972.75",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "keywords": [
6
6
  "aws",
@@ -43,9 +43,9 @@
43
43
  "test:watch": "yarn g:vitest watch"
44
44
  },
45
45
  "dependencies": {
46
- "@aws-sdk/core": "^3.978.1",
46
+ "@aws-sdk/core": "^3.978.4",
47
47
  "@aws-sdk/types": "^3.974.6",
48
- "@smithy/core": "^3.35.0",
48
+ "@smithy/core": "^3.36.0",
49
49
  "@smithy/types": "^4.19.0",
50
50
  "tslib": "^2.6.2"
51
51
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.972.74",
3
+ "version": "3.972.77",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "keywords": [
6
6
  "aws",
@@ -53,9 +53,9 @@
53
53
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
54
54
  },
55
55
  "dependencies": {
56
- "@aws-sdk/core": "^3.978.1",
56
+ "@aws-sdk/core": "^3.978.4",
57
57
  "@aws-sdk/types": "^3.974.6",
58
- "@smithy/core": "^3.35.0",
58
+ "@smithy/core": "^3.36.0",
59
59
  "@smithy/fetch-http-handler": "^5.8.0",
60
60
  "@smithy/node-http-handler": "^4.12.1",
61
61
  "@smithy/types": "^4.19.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.973.17",
3
+ "version": "3.973.20",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,16 +45,16 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.978.1",
49
- "@aws-sdk/credential-provider-env": "^3.972.72",
50
- "@aws-sdk/credential-provider-http": "^3.972.74",
51
- "@aws-sdk/credential-provider-login": "^3.972.79",
52
- "@aws-sdk/credential-provider-process": "^3.972.72",
53
- "@aws-sdk/credential-provider-sso": "^3.973.16",
54
- "@aws-sdk/credential-provider-web-identity": "^3.972.78",
55
- "@aws-sdk/nested-clients": "^3.997.46",
48
+ "@aws-sdk/core": "^3.978.4",
49
+ "@aws-sdk/credential-provider-env": "^3.972.75",
50
+ "@aws-sdk/credential-provider-http": "^3.972.77",
51
+ "@aws-sdk/credential-provider-login": "^3.972.82",
52
+ "@aws-sdk/credential-provider-process": "^3.972.75",
53
+ "@aws-sdk/credential-provider-sso": "^3.973.19",
54
+ "@aws-sdk/credential-provider-web-identity": "^3.972.81",
55
+ "@aws-sdk/nested-clients": "^3.997.49",
56
56
  "@aws-sdk/types": "^3.974.6",
57
- "@smithy/core": "^3.35.0",
57
+ "@smithy/core": "^3.36.0",
58
58
  "@smithy/credential-provider-imds": "^4.5.2",
59
59
  "@smithy/types": "^4.19.0",
60
60
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-login",
3
- "version": "3.972.79",
3
+ "version": "3.972.82",
4
4
  "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,10 +45,10 @@
45
45
  "test:watch": "yarn g:vitest watch"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.978.1",
49
- "@aws-sdk/nested-clients": "^3.997.46",
48
+ "@aws-sdk/core": "^3.978.4",
49
+ "@aws-sdk/nested-clients": "^3.997.49",
50
50
  "@aws-sdk/types": "^3.974.6",
51
- "@smithy/core": "^3.35.0",
51
+ "@smithy/core": "^3.36.0",
52
52
  "@smithy/types": "^4.19.0",
53
53
  "tslib": "^2.6.2"
54
54
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.84",
3
+ "version": "3.972.87",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,14 +45,14 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/credential-provider-env": "^3.972.72",
49
- "@aws-sdk/credential-provider-http": "^3.972.74",
50
- "@aws-sdk/credential-provider-ini": "^3.973.17",
51
- "@aws-sdk/credential-provider-process": "^3.972.72",
52
- "@aws-sdk/credential-provider-sso": "^3.973.16",
53
- "@aws-sdk/credential-provider-web-identity": "^3.972.78",
48
+ "@aws-sdk/credential-provider-env": "^3.972.75",
49
+ "@aws-sdk/credential-provider-http": "^3.972.77",
50
+ "@aws-sdk/credential-provider-ini": "^3.973.20",
51
+ "@aws-sdk/credential-provider-process": "^3.972.75",
52
+ "@aws-sdk/credential-provider-sso": "^3.973.19",
53
+ "@aws-sdk/credential-provider-web-identity": "^3.972.81",
54
54
  "@aws-sdk/types": "^3.974.6",
55
- "@smithy/core": "^3.35.0",
55
+ "@smithy/core": "^3.36.0",
56
56
  "@smithy/credential-provider-imds": "^4.5.2",
57
57
  "@smithy/types": "^4.19.0",
58
58
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.972.72",
3
+ "version": "3.972.75",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -43,9 +43,9 @@
43
43
  "test:watch": "yarn g:vitest watch"
44
44
  },
45
45
  "dependencies": {
46
- "@aws-sdk/core": "^3.978.1",
46
+ "@aws-sdk/core": "^3.978.4",
47
47
  "@aws-sdk/types": "^3.974.6",
48
- "@smithy/core": "^3.35.0",
48
+ "@smithy/core": "^3.36.0",
49
49
  "@smithy/types": "^4.19.0",
50
50
  "tslib": "^2.6.2"
51
51
  },
@@ -62,6 +62,7 @@ const writeSSOTokenToFile = (id, ssoToken) => {
62
62
  };
63
63
 
64
64
  const lastRefreshAttemptTimes = new Map();
65
+ const inFlightRefreshes = new Map();
65
66
  const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
66
67
  init.logger?.debug("@aws-sdk/token-providers - fromSso");
67
68
  const profiles = await parseKnownFiles(init);
@@ -76,6 +77,10 @@ const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
76
77
  throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
77
78
  }
78
79
  const ssoSessionName = profile["sso_session"];
80
+ const inFlightRefresh = inFlightRefreshes.get(ssoSessionName);
81
+ if (inFlightRefresh) {
82
+ return await inFlightRefresh;
83
+ }
79
84
  const ssoSessions = await loadSsoSessionData(init);
80
85
  const ssoSession = ssoSessions[ssoSessionName];
81
86
  if (!ssoSession) {
@@ -105,6 +110,10 @@ const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
105
110
  if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
106
111
  return existingToken;
107
112
  }
113
+ const inFlightRefreshAfterReadingToken = inFlightRefreshes.get(ssoSessionName);
114
+ if (inFlightRefreshAfterReadingToken) {
115
+ return await inFlightRefreshAfterReadingToken;
116
+ }
108
117
  const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;
109
118
  if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {
110
119
  validateTokenExpiry(existingToken);
@@ -113,30 +122,39 @@ const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
113
122
  validateTokenKey("clientId", ssoToken.clientId, true);
114
123
  validateTokenKey("clientSecret", ssoToken.clientSecret, true);
115
124
  validateTokenKey("refreshToken", ssoToken.refreshToken, true);
116
- try {
117
- lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
118
- const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
119
- validateTokenKey("accessToken", newSsoOidcToken.accessToken);
120
- validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
121
- const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);
125
+ const refresh = (async () => {
122
126
  try {
123
- await writeSSOTokenToFile(ssoSessionName, {
124
- ...ssoToken,
125
- accessToken: newSsoOidcToken.accessToken,
126
- expiresAt: newTokenExpiration.toISOString(),
127
- refreshToken: newSsoOidcToken.refreshToken,
128
- });
127
+ lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
128
+ const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
129
+ validateTokenKey("accessToken", newSsoOidcToken.accessToken);
130
+ validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
131
+ const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);
132
+ try {
133
+ await writeSSOTokenToFile(ssoSessionName, {
134
+ ...ssoToken,
135
+ accessToken: newSsoOidcToken.accessToken,
136
+ expiresAt: newTokenExpiration.toISOString(),
137
+ refreshToken: newSsoOidcToken.refreshToken,
138
+ });
139
+ }
140
+ catch (error) {
141
+ }
142
+ return {
143
+ token: newSsoOidcToken.accessToken,
144
+ expiration: newTokenExpiration,
145
+ };
129
146
  }
130
147
  catch (error) {
148
+ validateTokenExpiry(existingToken);
149
+ return existingToken;
131
150
  }
132
- return {
133
- token: newSsoOidcToken.accessToken,
134
- expiration: newTokenExpiration,
135
- };
151
+ })();
152
+ inFlightRefreshes.set(ssoSessionName, refresh);
153
+ try {
154
+ return await refresh;
136
155
  }
137
- catch (error) {
138
- validateTokenExpiry(existingToken);
139
- return existingToken;
156
+ finally {
157
+ inFlightRefreshes.delete(ssoSessionName);
140
158
  }
141
159
  };
142
160
 
@@ -5,6 +5,7 @@ import { validateTokenExpiry } from "./validateTokenExpiry";
5
5
  import { validateTokenKey } from "./validateTokenKey";
6
6
  import { writeSSOTokenToFile } from "./writeSSOTokenToFile";
7
7
  const lastRefreshAttemptTimes = new Map();
8
+ const inFlightRefreshes = new Map();
8
9
  export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
9
10
  init.logger?.debug("@aws-sdk/token-providers - fromSso");
10
11
  const profiles = await parseKnownFiles(init);
@@ -19,6 +20,10 @@ export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
19
20
  throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
20
21
  }
21
22
  const ssoSessionName = profile["sso_session"];
23
+ const inFlightRefresh = inFlightRefreshes.get(ssoSessionName);
24
+ if (inFlightRefresh) {
25
+ return await inFlightRefresh;
26
+ }
22
27
  const ssoSessions = await loadSsoSessionData(init);
23
28
  const ssoSession = ssoSessions[ssoSessionName];
24
29
  if (!ssoSession) {
@@ -48,6 +53,10 @@ export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
48
53
  if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
49
54
  return existingToken;
50
55
  }
56
+ const inFlightRefreshAfterReadingToken = inFlightRefreshes.get(ssoSessionName);
57
+ if (inFlightRefreshAfterReadingToken) {
58
+ return await inFlightRefreshAfterReadingToken;
59
+ }
51
60
  const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;
52
61
  if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {
53
62
  validateTokenExpiry(existingToken);
@@ -56,29 +65,38 @@ export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
56
65
  validateTokenKey("clientId", ssoToken.clientId, true);
57
66
  validateTokenKey("clientSecret", ssoToken.clientSecret, true);
58
67
  validateTokenKey("refreshToken", ssoToken.refreshToken, true);
59
- try {
60
- lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
61
- const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
62
- validateTokenKey("accessToken", newSsoOidcToken.accessToken);
63
- validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
64
- const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);
68
+ const refresh = (async () => {
65
69
  try {
66
- await writeSSOTokenToFile(ssoSessionName, {
67
- ...ssoToken,
68
- accessToken: newSsoOidcToken.accessToken,
69
- expiresAt: newTokenExpiration.toISOString(),
70
- refreshToken: newSsoOidcToken.refreshToken,
71
- });
70
+ lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
71
+ const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
72
+ validateTokenKey("accessToken", newSsoOidcToken.accessToken);
73
+ validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
74
+ const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000);
75
+ try {
76
+ await writeSSOTokenToFile(ssoSessionName, {
77
+ ...ssoToken,
78
+ accessToken: newSsoOidcToken.accessToken,
79
+ expiresAt: newTokenExpiration.toISOString(),
80
+ refreshToken: newSsoOidcToken.refreshToken,
81
+ });
82
+ }
83
+ catch (error) {
84
+ }
85
+ return {
86
+ token: newSsoOidcToken.accessToken,
87
+ expiration: newTokenExpiration,
88
+ };
72
89
  }
73
90
  catch (error) {
91
+ validateTokenExpiry(existingToken);
92
+ return existingToken;
74
93
  }
75
- return {
76
- token: newSsoOidcToken.accessToken,
77
- expiration: newTokenExpiration,
78
- };
94
+ })();
95
+ inFlightRefreshes.set(ssoSessionName, refresh);
96
+ try {
97
+ return await refresh;
79
98
  }
80
- catch (error) {
81
- validateTokenExpiry(existingToken);
82
- return existingToken;
99
+ finally {
100
+ inFlightRefreshes.delete(ssoSessionName);
83
101
  }
84
102
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.1138.0",
3
+ "version": "3.1153.0",
4
4
  "description": "A collection of token providers",
5
5
  "keywords": [
6
6
  "aws",
@@ -48,10 +48,10 @@
48
48
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.978.1",
52
- "@aws-sdk/nested-clients": "^3.997.46",
51
+ "@aws-sdk/core": "^3.978.4",
52
+ "@aws-sdk/nested-clients": "^3.997.49",
53
53
  "@aws-sdk/types": "^3.974.6",
54
- "@smithy/core": "^3.35.0",
54
+ "@smithy/core": "^3.36.0",
55
55
  "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.973.16",
3
+ "version": "3.973.19",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,11 +45,11 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.978.1",
49
- "@aws-sdk/nested-clients": "^3.997.46",
50
- "@aws-sdk/token-providers": "3.1138.0",
48
+ "@aws-sdk/core": "^3.978.4",
49
+ "@aws-sdk/nested-clients": "^3.997.49",
50
+ "@aws-sdk/token-providers": "3.1153.0",
51
51
  "@aws-sdk/types": "^3.974.6",
52
- "@smithy/core": "^3.35.0",
52
+ "@smithy/core": "^3.36.0",
53
53
  "@smithy/types": "^4.19.0",
54
54
  "tslib": "^2.6.2"
55
55
  },