@cdklabs/cdk-ecs-codedeploy 0.0.431 → 0.0.433

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 (243) hide show
  1. package/.jsii +3 -3
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/api-canary/index.js +1 -1
  4. package/lib/ecs-appspec/index.js +1 -1
  5. package/lib/ecs-deployment/index.js +1 -1
  6. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  7. package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +2 -2
  8. package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +2 -2
  9. package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +1 -1
  10. package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
  11. package/node_modules/@aws-sdk/client-codedeploy/README.md +26 -46
  12. package/node_modules/@aws-sdk/client-codedeploy/package.json +39 -39
  13. package/node_modules/@aws-sdk/core/dist-cjs/index.js +11 -15
  14. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +11 -15
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -0
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -8
  17. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +3 -0
  18. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -7
  19. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -0
  20. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +4 -0
  21. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +3 -0
  22. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
  23. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -0
  24. package/node_modules/@aws-sdk/core/package.json +14 -14
  25. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  26. package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -11
  27. package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
  28. package/node_modules/@aws-sdk/credential-provider-login/package.json +9 -9
  29. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  30. package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
  31. package/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -9
  32. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
  33. package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
  34. package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
  35. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
  36. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +9 -9
  37. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +9 -9
  38. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +4 -2
  39. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +3 -3
  40. package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -8
  41. package/node_modules/@aws-sdk/nested-clients/package.json +39 -37
  42. package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
  43. package/node_modules/@aws-sdk/token-providers/package.json +8 -8
  44. package/node_modules/@aws-sdk/types/package.json +3 -3
  45. package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
  46. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  47. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
  48. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +87 -14
  49. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js +15 -0
  50. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js +14 -0
  51. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
  52. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +59 -8
  53. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getNodeModulesParentDirs.d.ts +10 -0
  54. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedDevTypeScriptVersion.d.ts +8 -0
  55. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
  56. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getNodeModulesParentDirs.d.ts +1 -0
  57. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedDevTypeScriptVersion.d.ts +3 -0
  58. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
  59. package/node_modules/@aws-sdk/util-user-agent-node/package.json +7 -6
  60. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +1 -0
  61. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +1 -0
  62. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +23 -0
  63. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
  64. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
  65. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  66. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +15 -1
  67. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  68. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  69. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  70. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  71. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
  72. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
  73. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +3 -2
  74. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +16 -0
  75. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +1 -1
  76. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +1 -26
  77. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +87 -87
  78. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +10 -10
  79. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
  80. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
  81. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
  82. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +17 -17
  83. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +22 -22
  84. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +85 -85
  85. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +34 -34
  86. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -284
  87. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +1 -1
  88. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +2 -0
  89. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +27 -5
  90. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -21
  91. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +38 -34
  92. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +10 -10
  93. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  94. package/node_modules/@smithy/abort-controller/package.json +3 -3
  95. package/node_modules/@smithy/config-resolver/package.json +7 -7
  96. package/node_modules/@smithy/core/dist-cjs/index.js +1 -2
  97. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +9 -9
  98. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
  99. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +1 -1
  100. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +11 -1
  101. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +42 -5
  102. package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -2
  103. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
  104. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +7 -1
  105. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +1 -0
  106. package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +17 -0
  107. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -1
  108. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -0
  109. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
  110. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -2
  111. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +31 -2
  112. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +5 -1
  113. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +1 -0
  114. package/node_modules/@smithy/core/dist-types/submodules/endpoints/toEndpointV1.d.ts +6 -0
  115. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
  116. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +6 -0
  117. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +1 -0
  118. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/toEndpointV1.d.ts +6 -0
  119. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
  120. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +6 -0
  121. package/node_modules/@smithy/core/endpoints.d.ts +7 -0
  122. package/node_modules/@smithy/core/endpoints.js +6 -0
  123. package/node_modules/@smithy/core/package.json +21 -12
  124. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  125. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +21 -4
  126. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +21 -4
  127. package/node_modules/@smithy/fetch-http-handler/package.json +7 -7
  128. package/node_modules/@smithy/hash-node/package.json +5 -5
  129. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  130. package/node_modules/@smithy/is-array-buffer/package.json +2 -2
  131. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  132. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +17 -1
  133. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +9 -0
  134. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +8 -1
  135. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -0
  136. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +1 -0
  137. package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
  138. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +9 -12
  139. package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +9 -12
  140. package/node_modules/@smithy/middleware-retry/package.json +10 -10
  141. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +3 -2
  142. package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +3 -2
  143. package/node_modules/@smithy/middleware-serde/package.json +5 -4
  144. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  145. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  146. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +68 -45
  147. package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
  148. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +41 -35
  149. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
  150. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -5
  151. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
  152. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
  153. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
  154. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
  155. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
  156. package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
  157. package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
  158. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
  159. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
  160. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
  161. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
  162. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
  163. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
  164. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
  165. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
  166. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
  167. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
  168. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
  169. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
  170. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
  171. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
  172. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
  173. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
  174. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
  175. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
  176. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
  177. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
  178. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
  179. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
  180. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
  181. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
  182. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
  183. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
  184. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  185. package/node_modules/@smithy/property-provider/package.json +3 -3
  186. package/node_modules/@smithy/protocol-http/package.json +3 -3
  187. package/node_modules/@smithy/querystring-builder/package.json +4 -4
  188. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  189. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  190. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  191. package/node_modules/@smithy/signature-v4/package.json +9 -9
  192. package/node_modules/@smithy/smithy-client/package.json +8 -8
  193. package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
  194. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
  195. package/node_modules/@smithy/types/package.json +1 -1
  196. package/node_modules/@smithy/url-parser/package.json +4 -4
  197. package/node_modules/@smithy/util-base64/package.json +4 -4
  198. package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
  199. package/node_modules/@smithy/util-body-length-node/package.json +2 -2
  200. package/node_modules/@smithy/util-buffer-from/package.json +3 -3
  201. package/node_modules/@smithy/util-config-provider/package.json +2 -2
  202. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
  203. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
  204. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  205. package/node_modules/@smithy/util-hex-encoding/package.json +2 -2
  206. package/node_modules/@smithy/util-middleware/package.json +3 -3
  207. package/node_modules/@smithy/util-retry/package.json +4 -4
  208. package/node_modules/@smithy/util-stream/package.json +9 -9
  209. package/node_modules/@smithy/util-uri-escape/package.json +2 -2
  210. package/node_modules/@smithy/util-utf8/package.json +3 -3
  211. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +1 -1
  212. package/node_modules/@smithy/util-waiter/dist-es/poller.js +1 -1
  213. package/node_modules/@smithy/util-waiter/package.json +4 -4
  214. package/node_modules/@smithy/uuid/package.json +2 -2
  215. package/node_modules/fast-xml-builder/CHANGELOG.md +16 -0
  216. package/node_modules/fast-xml-builder/LICENSE +21 -0
  217. package/node_modules/fast-xml-builder/README.md +23 -0
  218. package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -0
  219. package/node_modules/fast-xml-builder/lib/fxb.d.cts +180 -0
  220. package/node_modules/fast-xml-builder/lib/fxb.min.js +2 -0
  221. package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -0
  222. package/node_modules/fast-xml-builder/package.json +80 -0
  223. package/node_modules/fast-xml-builder/src/fxb.d.ts +180 -0
  224. package/node_modules/fast-xml-builder/src/fxb.js +529 -0
  225. package/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
  226. package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +292 -0
  227. package/node_modules/path-expression-matcher/LICENSE +21 -0
  228. package/node_modules/path-expression-matcher/README.md +635 -0
  229. package/node_modules/path-expression-matcher/lib/pem.cjs +1 -0
  230. package/node_modules/path-expression-matcher/lib/pem.d.cts +335 -0
  231. package/node_modules/path-expression-matcher/lib/pem.min.js +2 -0
  232. package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -0
  233. package/node_modules/path-expression-matcher/package.json +78 -0
  234. package/node_modules/path-expression-matcher/src/Expression.js +232 -0
  235. package/node_modules/path-expression-matcher/src/Matcher.js +414 -0
  236. package/node_modules/path-expression-matcher/src/index.d.ts +366 -0
  237. package/node_modules/path-expression-matcher/src/index.js +28 -0
  238. package/package.json +6 -6
  239. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +0 -14
  240. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +0 -9
  241. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +0 -1
  242. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +0 -134
  243. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/prettifyJs2Xml.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.972.6",
3
+ "version": "3.972.8",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-host-header",
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/types": "^3.973.4",
29
- "@smithy/protocol-http": "^5.3.10",
30
- "@smithy/types": "^4.13.0",
28
+ "@aws-sdk/types": "^3.973.6",
29
+ "@smithy/protocol-http": "^5.3.12",
30
+ "@smithy/types": "^4.13.1",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=20.0.0"
35
35
  },
36
36
  "typesVersions": {
37
- "<4.0": {
37
+ "<4.5": {
38
38
  "dist-types/*": [
39
39
  "dist-types/ts3.4/*"
40
40
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-logger",
3
- "version": "3.972.6",
3
+ "version": "3.972.8",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-logger",
@@ -25,8 +25,8 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "types": "./dist-types/index.d.ts",
27
27
  "dependencies": {
28
- "@aws-sdk/types": "^3.973.4",
29
- "@smithy/types": "^4.13.0",
28
+ "@aws-sdk/types": "^3.973.6",
29
+ "@smithy/types": "^4.13.1",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
@@ -41,7 +41,7 @@
41
41
  "node": ">=20.0.0"
42
42
  },
43
43
  "typesVersions": {
44
- "<4.0": {
44
+ "<4.5": {
45
45
  "dist-types/*": [
46
46
  "dist-types/ts3.4/*"
47
47
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-recursion-detection",
3
- "version": "3.972.6",
3
+ "version": "3.972.8",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
@@ -24,17 +24,17 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "^3.973.4",
27
+ "@aws-sdk/types": "^3.973.6",
28
28
  "@aws/lambda-invoke-store": "^0.2.2",
29
- "@smithy/protocol-http": "^5.3.10",
30
- "@smithy/types": "^4.13.0",
29
+ "@smithy/protocol-http": "^5.3.12",
30
+ "@smithy/types": "^4.13.1",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=20.0.0"
35
35
  },
36
36
  "typesVersions": {
37
- "<4.0": {
37
+ "<4.5": {
38
38
  "dist-types/*": [
39
39
  "dist-types/ts3.4/*"
40
40
  ]
@@ -4,6 +4,7 @@ var core = require('@smithy/core');
4
4
  var utilEndpoints = require('@aws-sdk/util-endpoints');
5
5
  var protocolHttp = require('@smithy/protocol-http');
6
6
  var core$1 = require('@aws-sdk/core');
7
+ var utilRetry = require('@smithy/util-retry');
7
8
 
8
9
  const DEFAULT_UA_APP_ID = undefined;
9
10
  function isValidUserAgentAppId(appId) {
@@ -41,16 +42,15 @@ async function checkFeatures(context, config, args) {
41
42
  }
42
43
  if (typeof config.retryStrategy === "function") {
43
44
  const retryStrategy = await config.retryStrategy();
44
- if (typeof retryStrategy.acquireInitialRetryToken === "function") {
45
- if (retryStrategy.constructor?.name?.includes("Adaptive")) {
46
- core$1.setFeature(context, "RETRY_MODE_ADAPTIVE", "F");
45
+ if (typeof retryStrategy.mode === "string") {
46
+ switch (retryStrategy.mode) {
47
+ case utilRetry.RETRY_MODES.ADAPTIVE:
48
+ core$1.setFeature(context, "RETRY_MODE_ADAPTIVE", "F");
49
+ break;
50
+ case utilRetry.RETRY_MODES.STANDARD:
51
+ core$1.setFeature(context, "RETRY_MODE_STANDARD", "E");
52
+ break;
47
53
  }
48
- else {
49
- core$1.setFeature(context, "RETRY_MODE_STANDARD", "E");
50
- }
51
- }
52
- else {
53
- core$1.setFeature(context, "RETRY_MODE_LEGACY", "D");
54
54
  }
55
55
  }
56
56
  if (typeof config.accountIdEndpointMode === "function") {
@@ -1,4 +1,5 @@
1
1
  import { setFeature } from "@aws-sdk/core";
2
+ import { RETRY_MODES } from "@smithy/util-retry";
2
3
  const ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
3
4
  export async function checkFeatures(context, config, args) {
4
5
  const request = args.request;
@@ -7,16 +8,15 @@ export async function checkFeatures(context, config, args) {
7
8
  }
8
9
  if (typeof config.retryStrategy === "function") {
9
10
  const retryStrategy = await config.retryStrategy();
10
- if (typeof retryStrategy.acquireInitialRetryToken === "function") {
11
- if (retryStrategy.constructor?.name?.includes("Adaptive")) {
12
- setFeature(context, "RETRY_MODE_ADAPTIVE", "F");
11
+ if (typeof retryStrategy.mode === "string") {
12
+ switch (retryStrategy.mode) {
13
+ case RETRY_MODES.ADAPTIVE:
14
+ setFeature(context, "RETRY_MODE_ADAPTIVE", "F");
15
+ break;
16
+ case RETRY_MODES.STANDARD:
17
+ setFeature(context, "RETRY_MODE_STANDARD", "E");
18
+ break;
13
19
  }
14
- else {
15
- setFeature(context, "RETRY_MODE_STANDARD", "E");
16
- }
17
- }
18
- else {
19
- setFeature(context, "RETRY_MODE_LEGACY", "D");
20
20
  }
21
21
  }
22
22
  if (typeof config.accountIdEndpointMode === "function") {
@@ -1,13 +1,15 @@
1
1
  import type { AccountIdEndpointMode } from "@aws-sdk/core/account-id-endpoint";
2
2
  import type { AwsHandlerExecutionContext } from "@aws-sdk/types";
3
- import type { AwsCredentialIdentityProvider, BuildHandlerArguments, Provider, RetryStrategy, RetryStrategyV2 } from "@smithy/types";
3
+ import type { AwsCredentialIdentityProvider, BuildHandlerArguments, Provider } from "@smithy/types";
4
4
  /**
5
5
  * @internal
6
6
  */
7
7
  type PreviouslyResolved = Partial<{
8
8
  credentials?: AwsCredentialIdentityProvider;
9
9
  accountIdEndpointMode?: Provider<AccountIdEndpointMode>;
10
- retryStrategy?: Provider<RetryStrategy | RetryStrategyV2>;
10
+ retryStrategy?: Provider<{
11
+ mode?: string;
12
+ }>;
11
13
  }>;
12
14
  /**
13
15
  * @internal
@@ -4,13 +4,13 @@ import {
4
4
  AwsCredentialIdentityProvider,
5
5
  BuildHandlerArguments,
6
6
  Provider,
7
- RetryStrategy,
8
- RetryStrategyV2,
9
7
  } from "@smithy/types";
10
8
  type PreviouslyResolved = Partial<{
11
9
  credentials?: AwsCredentialIdentityProvider;
12
10
  accountIdEndpointMode?: Provider<AccountIdEndpointMode>;
13
- retryStrategy?: Provider<RetryStrategy | RetryStrategyV2>;
11
+ retryStrategy?: Provider<{
12
+ mode?: string;
13
+ }>;
14
14
  }>;
15
15
  export declare function checkFeatures(
16
16
  context: AwsHandlerExecutionContext,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.972.15",
3
+ "version": "3.972.21",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -25,12 +25,13 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "^3.973.15",
29
- "@aws-sdk/types": "^3.973.4",
30
- "@aws-sdk/util-endpoints": "^3.996.3",
31
- "@smithy/core": "^3.23.6",
32
- "@smithy/protocol-http": "^5.3.10",
33
- "@smithy/types": "^4.13.0",
28
+ "@aws-sdk/core": "^3.973.20",
29
+ "@aws-sdk/types": "^3.973.6",
30
+ "@aws-sdk/util-endpoints": "^3.996.5",
31
+ "@smithy/core": "^3.23.11",
32
+ "@smithy/protocol-http": "^5.3.12",
33
+ "@smithy/types": "^4.13.1",
34
+ "@smithy/util-retry": "^4.2.12",
34
35
  "tslib": "^2.6.2"
35
36
  },
36
37
  "devDependencies": {
@@ -44,7 +45,7 @@
44
45
  "node": ">=20.0.0"
45
46
  },
46
47
  "typesVersions": {
47
- "<4.0": {
48
+ "<4.5": {
48
49
  "dist-types/*": [
49
50
  "dist-types/ts3.4/*"
50
51
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.996.3",
3
+ "version": "3.996.10",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,41 +29,41 @@
29
29
  "dependencies": {
30
30
  "@aws-crypto/sha256-browser": "5.2.0",
31
31
  "@aws-crypto/sha256-js": "5.2.0",
32
- "@aws-sdk/core": "^3.973.15",
33
- "@aws-sdk/middleware-host-header": "^3.972.6",
34
- "@aws-sdk/middleware-logger": "^3.972.6",
35
- "@aws-sdk/middleware-recursion-detection": "^3.972.6",
36
- "@aws-sdk/middleware-user-agent": "^3.972.15",
37
- "@aws-sdk/region-config-resolver": "^3.972.6",
38
- "@aws-sdk/types": "^3.973.4",
39
- "@aws-sdk/util-endpoints": "^3.996.3",
40
- "@aws-sdk/util-user-agent-browser": "^3.972.6",
41
- "@aws-sdk/util-user-agent-node": "^3.973.0",
42
- "@smithy/config-resolver": "^4.4.9",
43
- "@smithy/core": "^3.23.6",
44
- "@smithy/fetch-http-handler": "^5.3.11",
45
- "@smithy/hash-node": "^4.2.10",
46
- "@smithy/invalid-dependency": "^4.2.10",
47
- "@smithy/middleware-content-length": "^4.2.10",
48
- "@smithy/middleware-endpoint": "^4.4.20",
49
- "@smithy/middleware-retry": "^4.4.37",
50
- "@smithy/middleware-serde": "^4.2.11",
51
- "@smithy/middleware-stack": "^4.2.10",
52
- "@smithy/node-config-provider": "^4.3.10",
53
- "@smithy/node-http-handler": "^4.4.12",
54
- "@smithy/protocol-http": "^5.3.10",
55
- "@smithy/smithy-client": "^4.12.0",
56
- "@smithy/types": "^4.13.0",
57
- "@smithy/url-parser": "^4.2.10",
58
- "@smithy/util-base64": "^4.3.1",
59
- "@smithy/util-body-length-browser": "^4.2.1",
60
- "@smithy/util-body-length-node": "^4.2.2",
61
- "@smithy/util-defaults-mode-browser": "^4.3.36",
62
- "@smithy/util-defaults-mode-node": "^4.2.39",
63
- "@smithy/util-endpoints": "^3.3.1",
64
- "@smithy/util-middleware": "^4.2.10",
65
- "@smithy/util-retry": "^4.2.10",
66
- "@smithy/util-utf8": "^4.2.1",
32
+ "@aws-sdk/core": "^3.973.20",
33
+ "@aws-sdk/middleware-host-header": "^3.972.8",
34
+ "@aws-sdk/middleware-logger": "^3.972.8",
35
+ "@aws-sdk/middleware-recursion-detection": "^3.972.8",
36
+ "@aws-sdk/middleware-user-agent": "^3.972.21",
37
+ "@aws-sdk/region-config-resolver": "^3.972.8",
38
+ "@aws-sdk/types": "^3.973.6",
39
+ "@aws-sdk/util-endpoints": "^3.996.5",
40
+ "@aws-sdk/util-user-agent-browser": "^3.972.8",
41
+ "@aws-sdk/util-user-agent-node": "^3.973.7",
42
+ "@smithy/config-resolver": "^4.4.11",
43
+ "@smithy/core": "^3.23.11",
44
+ "@smithy/fetch-http-handler": "^5.3.15",
45
+ "@smithy/hash-node": "^4.2.12",
46
+ "@smithy/invalid-dependency": "^4.2.12",
47
+ "@smithy/middleware-content-length": "^4.2.12",
48
+ "@smithy/middleware-endpoint": "^4.4.25",
49
+ "@smithy/middleware-retry": "^4.4.42",
50
+ "@smithy/middleware-serde": "^4.2.14",
51
+ "@smithy/middleware-stack": "^4.2.12",
52
+ "@smithy/node-config-provider": "^4.3.12",
53
+ "@smithy/node-http-handler": "^4.4.16",
54
+ "@smithy/protocol-http": "^5.3.12",
55
+ "@smithy/smithy-client": "^4.12.5",
56
+ "@smithy/types": "^4.13.1",
57
+ "@smithy/url-parser": "^4.2.12",
58
+ "@smithy/util-base64": "^4.3.2",
59
+ "@smithy/util-body-length-browser": "^4.2.2",
60
+ "@smithy/util-body-length-node": "^4.2.3",
61
+ "@smithy/util-defaults-mode-browser": "^4.3.41",
62
+ "@smithy/util-defaults-mode-node": "^4.2.44",
63
+ "@smithy/util-endpoints": "^3.3.3",
64
+ "@smithy/util-middleware": "^4.2.12",
65
+ "@smithy/util-retry": "^4.2.12",
66
+ "@smithy/util-utf8": "^4.2.2",
67
67
  "tslib": "^2.6.2"
68
68
  },
69
69
  "devDependencies": {
@@ -73,7 +73,7 @@
73
73
  "typescript": "~5.8.3"
74
74
  },
75
75
  "typesVersions": {
76
- "<4.0": {
76
+ "<4.5": {
77
77
  "dist-types/*": [
78
78
  "dist-types/ts3.4/*"
79
79
  ]
@@ -93,8 +93,10 @@
93
93
  "dist-*/**"
94
94
  ],
95
95
  "browser": {
96
+ "./dist-es/submodules/cognito-identity/runtimeConfig": "./dist-es/submodules/cognito-identity/runtimeConfig.browser",
96
97
  "./dist-es/submodules/signin/runtimeConfig": "./dist-es/submodules/signin/runtimeConfig.browser",
97
98
  "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
99
+ "./dist-es/submodules/sso/runtimeConfig": "./dist-es/submodules/sso/runtimeConfig.browser",
98
100
  "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
99
101
  },
100
102
  "react-native": {},
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/region-config-resolver",
3
- "version": "3.972.6",
3
+ "version": "3.972.8",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/types": "^3.973.4",
27
- "@smithy/config-resolver": "^4.4.9",
28
- "@smithy/node-config-provider": "^4.3.10",
29
- "@smithy/types": "^4.13.0",
26
+ "@aws-sdk/types": "^3.973.6",
27
+ "@smithy/config-resolver": "^4.4.11",
28
+ "@smithy/node-config-provider": "^4.3.12",
29
+ "@smithy/types": "^4.13.1",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
@@ -40,7 +40,7 @@
40
40
  "node": ">=20.0.0"
41
41
  },
42
42
  "typesVersions": {
43
- "<4.0": {
43
+ "<4.5": {
44
44
  "dist-types/*": [
45
45
  "dist-types/ts3.4/*"
46
46
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.999.0",
3
+ "version": "3.1009.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/core": "^3.973.15",
33
- "@aws-sdk/nested-clients": "^3.996.3",
34
- "@aws-sdk/types": "^3.973.4",
35
- "@smithy/property-provider": "^4.2.10",
36
- "@smithy/shared-ini-file-loader": "^4.4.5",
37
- "@smithy/types": "^4.13.0",
32
+ "@aws-sdk/core": "^3.973.20",
33
+ "@aws-sdk/nested-clients": "^3.996.10",
34
+ "@aws-sdk/types": "^3.973.6",
35
+ "@smithy/property-provider": "^4.2.12",
36
+ "@smithy/shared-ini-file-loader": "^4.4.7",
37
+ "@smithy/types": "^4.13.1",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "devDependencies": {
@@ -50,7 +50,7 @@
50
50
  "node": ">=20.0.0"
51
51
  },
52
52
  "typesVersions": {
53
- "<4.0": {
53
+ "<4.5": {
54
54
  "dist-types/*": [
55
55
  "dist-types/ts3.4/*"
56
56
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.973.4",
3
+ "version": "3.973.6",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "node": ">=20.0.0"
27
27
  },
28
28
  "typesVersions": {
29
- "<4.0": {
29
+ "<4.5": {
30
30
  "dist-types/*": [
31
31
  "dist-types/ts3.4/*"
32
32
  ]
@@ -42,7 +42,7 @@
42
42
  "directory": "packages-internal/types"
43
43
  },
44
44
  "dependencies": {
45
- "@smithy/types": "^4.13.0",
45
+ "@smithy/types": "^4.13.1",
46
46
  "tslib": "^2.6.2"
47
47
  },
48
48
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.996.3",
3
+ "version": "3.996.5",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,17 +25,17 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/types": "^3.973.4",
29
- "@smithy/types": "^4.13.0",
30
- "@smithy/url-parser": "^4.2.10",
31
- "@smithy/util-endpoints": "^3.3.1",
28
+ "@aws-sdk/types": "^3.973.6",
29
+ "@smithy/types": "^4.13.1",
30
+ "@smithy/url-parser": "^4.2.12",
31
+ "@smithy/util-endpoints": "^3.3.3",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "engines": {
35
35
  "node": ">=20.0.0"
36
36
  },
37
37
  "typesVersions": {
38
- "<4.0": {
38
+ "<4.5": {
39
39
  "dist-types/*": [
40
40
  "dist-types/ts3.4/*"
41
41
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-locate-window",
3
- "version": "3.965.4",
3
+ "version": "3.965.5",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-locate-window",
@@ -36,7 +36,7 @@
36
36
  "node": ">=20.0.0"
37
37
  },
38
38
  "typesVersions": {
39
- "<4.0": {
39
+ "<4.5": {
40
40
  "dist-types/*": [
41
41
  "dist-types/ts3.4/*"
42
42
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.972.6",
3
+ "version": "3.972.8",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser",
@@ -24,8 +24,8 @@
24
24
  "license": "Apache-2.0",
25
25
  "react-native": "dist-es/index.native.js",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "^3.973.4",
28
- "@smithy/types": "^4.13.0",
27
+ "@aws-sdk/types": "^3.973.6",
28
+ "@smithy/types": "^4.13.1",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -37,7 +37,7 @@
37
37
  "typescript": "~5.8.3"
38
38
  },
39
39
  "typesVersions": {
40
- "<4.0": {
40
+ "<4.5": {
41
41
  "dist-types/*": [
42
42
  "dist-types/ts3.4/*"
43
43
  ]
@@ -2,6 +2,7 @@
2
2
 
3
3
  var node_os = require('node:os');
4
4
  var node_process = require('node:process');
5
+ var utilConfigProvider = require('@smithy/util-config-provider');
5
6
  var promises = require('node:fs/promises');
6
7
  var node_path = require('node:path');
7
8
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
@@ -16,21 +17,47 @@ const getRuntimeUserAgentPair = () => {
16
17
  return ["md/nodejs", node_process.versions.node];
17
18
  };
18
19
 
19
- const getTypeScriptPackageJsonPath = (dirname = "") => {
20
- let nodeModulesPath;
20
+ const getNodeModulesParentDirs = (dirname) => {
21
+ const cwd = process.cwd();
22
+ if (!dirname) {
23
+ return [cwd];
24
+ }
21
25
  const normalizedPath = node_path.normalize(dirname);
22
26
  const parts = normalizedPath.split(node_path.sep);
23
27
  const nodeModulesIndex = parts.indexOf("node_modules");
24
- if (nodeModulesIndex !== -1) {
25
- nodeModulesPath = parts.slice(0, nodeModulesIndex).join(node_path.sep);
28
+ const parentDir = nodeModulesIndex !== -1 ? parts.slice(0, nodeModulesIndex).join(node_path.sep) : normalizedPath;
29
+ if (cwd === parentDir) {
30
+ return [cwd];
26
31
  }
27
- else {
28
- nodeModulesPath = dirname;
32
+ return [parentDir, cwd];
33
+ };
34
+
35
+ const SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;
36
+ const getSanitizedTypeScriptVersion = (version = "") => {
37
+ const match = version.match(SEMVER_REGEX);
38
+ if (!match) {
39
+ return undefined;
29
40
  }
30
- return node_path.join(nodeModulesPath, "node_modules", "typescript", "package.json");
41
+ const [major, minor, patch, prerelease] = [match[1], match[2], match[3], match[4]];
42
+ return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
43
+ };
44
+
45
+ const ALLOWED_PREFIXES = ["^", "~", ">=", "<=", ">", "<"];
46
+ const ALLOWED_DIST_TAGS = ["latest", "beta", "dev", "rc", "insiders", "next"];
47
+ const getSanitizedDevTypeScriptVersion = (version = "") => {
48
+ if (ALLOWED_DIST_TAGS.includes(version)) {
49
+ return version;
50
+ }
51
+ const prefix = ALLOWED_PREFIXES.find((p) => version.startsWith(p)) ?? "";
52
+ const sanitizedTypeScriptVersion = getSanitizedTypeScriptVersion(version.slice(prefix.length));
53
+ if (!sanitizedTypeScriptVersion) {
54
+ return undefined;
55
+ }
56
+ return `${prefix}${sanitizedTypeScriptVersion}`;
31
57
  };
32
58
 
33
59
  let tscVersion;
60
+ const TS_PACKAGE_JSON = node_path.join("node_modules", "typescript", "package.json");
34
61
  const getTypeScriptUserAgentPair = async () => {
35
62
  if (tscVersion === null) {
36
63
  return undefined;
@@ -38,19 +65,65 @@ const getTypeScriptUserAgentPair = async () => {
38
65
  else if (typeof tscVersion === "string") {
39
66
  return ["md/tsc", tscVersion];
40
67
  }
68
+ let isTypeScriptDetectionDisabled = false;
41
69
  try {
42
- const packageJson = await promises.readFile(getTypeScriptPackageJsonPath(__dirname), "utf-8");
43
- const { version } = JSON.parse(packageJson);
44
- if (typeof version !== "string") {
45
- tscVersion = null;
46
- return undefined;
70
+ isTypeScriptDetectionDisabled =
71
+ utilConfigProvider.booleanSelector(process.env, "AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED", utilConfigProvider.SelectorType.ENV) || false;
72
+ }
73
+ catch { }
74
+ if (isTypeScriptDetectionDisabled) {
75
+ tscVersion = null;
76
+ return undefined;
77
+ }
78
+ const dirname = typeof __dirname !== "undefined" ? __dirname : undefined;
79
+ const nodeModulesParentDirs = getNodeModulesParentDirs(dirname);
80
+ let versionFromApp;
81
+ for (const nodeModulesParentDir of nodeModulesParentDirs) {
82
+ try {
83
+ const appPackageJsonPath = node_path.join(nodeModulesParentDir, "package.json");
84
+ const packageJson = await promises.readFile(appPackageJsonPath, "utf-8");
85
+ const { dependencies, devDependencies } = JSON.parse(packageJson);
86
+ const version = devDependencies?.typescript ?? dependencies?.typescript;
87
+ if (typeof version !== "string") {
88
+ continue;
89
+ }
90
+ versionFromApp = version;
91
+ break;
92
+ }
93
+ catch {
47
94
  }
48
- tscVersion = version;
95
+ }
96
+ if (!versionFromApp) {
97
+ tscVersion = null;
98
+ return undefined;
99
+ }
100
+ let versionFromNodeModules;
101
+ for (const nodeModulesParentDir of nodeModulesParentDirs) {
102
+ try {
103
+ const tsPackageJsonPath = node_path.join(nodeModulesParentDir, TS_PACKAGE_JSON);
104
+ const packageJson = await promises.readFile(tsPackageJsonPath, "utf-8");
105
+ const { version } = JSON.parse(packageJson);
106
+ const sanitizedVersion = getSanitizedTypeScriptVersion(version);
107
+ if (typeof sanitizedVersion !== "string") {
108
+ continue;
109
+ }
110
+ versionFromNodeModules = sanitizedVersion;
111
+ break;
112
+ }
113
+ catch {
114
+ }
115
+ }
116
+ if (versionFromNodeModules) {
117
+ tscVersion = versionFromNodeModules;
49
118
  return ["md/tsc", tscVersion];
50
119
  }
51
- catch {
120
+ const sanitizedVersion = getSanitizedDevTypeScriptVersion(versionFromApp);
121
+ if (typeof sanitizedVersion !== "string") {
52
122
  tscVersion = null;
123
+ return undefined;
53
124
  }
125
+ tscVersion = `dev_${sanitizedVersion}`;
126
+ return ["md/tsc", tscVersion];
54
127
  };
55
128
 
56
129
  const crtAvailability = {