@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
@@ -0,0 +1,292 @@
1
+ import { Expression, Matcher } from 'path-expression-matcher';
2
+
3
+ const EOL = "\n";
4
+
5
+ /**
6
+ *
7
+ * @param {array} jArray
8
+ * @param {any} options
9
+ * @returns
10
+ */
11
+ export default function toXml(jArray, options) {
12
+ let indentation = "";
13
+ if (options.format && options.indentBy.length > 0) {
14
+ indentation = EOL;
15
+ }
16
+
17
+ // Pre-compile stopNode expressions for pattern matching
18
+ const stopNodeExpressions = [];
19
+ if (options.stopNodes && Array.isArray(options.stopNodes)) {
20
+ for (let i = 0; i < options.stopNodes.length; i++) {
21
+ const node = options.stopNodes[i];
22
+ if (typeof node === 'string') {
23
+ stopNodeExpressions.push(new Expression(node));
24
+ } else if (node instanceof Expression) {
25
+ stopNodeExpressions.push(node);
26
+ }
27
+ }
28
+ }
29
+
30
+ // Initialize matcher for path tracking
31
+ const matcher = new Matcher();
32
+
33
+ return arrToStr(jArray, options, indentation, matcher, stopNodeExpressions);
34
+ }
35
+
36
+ function arrToStr(arr, options, indentation, matcher, stopNodeExpressions) {
37
+ let xmlStr = "";
38
+ let isPreviousElementTag = false;
39
+
40
+ if (options.maxNestedTags && matcher.getDepth() > options.maxNestedTags) {
41
+ throw new Error("Maximum nested tags exceeded");
42
+ }
43
+
44
+ if (!Array.isArray(arr)) {
45
+ // Non-array values (e.g. string tag values) should be treated as text content
46
+ if (arr !== undefined && arr !== null) {
47
+ let text = arr.toString();
48
+ text = replaceEntitiesValue(text, options);
49
+ return text;
50
+ }
51
+ return "";
52
+ }
53
+
54
+ for (let i = 0; i < arr.length; i++) {
55
+ const tagObj = arr[i];
56
+ const tagName = propName(tagObj);
57
+ if (tagName === undefined) continue;
58
+
59
+ // Extract attributes from ":@" property
60
+ const attrValues = extractAttributeValues(tagObj[":@"], options);
61
+
62
+ // Push tag to matcher WITH attributes
63
+ matcher.push(tagName, attrValues);
64
+
65
+ // Check if this is a stop node using Expression matching
66
+ const isStopNode = checkStopNode(matcher, stopNodeExpressions);
67
+
68
+ if (tagName === options.textNodeName) {
69
+ let tagText = tagObj[tagName];
70
+ if (!isStopNode) {
71
+ tagText = options.tagValueProcessor(tagName, tagText);
72
+ tagText = replaceEntitiesValue(tagText, options);
73
+ }
74
+ if (isPreviousElementTag) {
75
+ xmlStr += indentation;
76
+ }
77
+ xmlStr += tagText;
78
+ isPreviousElementTag = false;
79
+ matcher.pop();
80
+ continue;
81
+ } else if (tagName === options.cdataPropName) {
82
+ if (isPreviousElementTag) {
83
+ xmlStr += indentation;
84
+ }
85
+ xmlStr += `<![CDATA[${tagObj[tagName][0][options.textNodeName]}]]>`;
86
+ isPreviousElementTag = false;
87
+ matcher.pop();
88
+ continue;
89
+ } else if (tagName === options.commentPropName) {
90
+ xmlStr += indentation + `<!--${tagObj[tagName][0][options.textNodeName]}-->`;
91
+ isPreviousElementTag = true;
92
+ matcher.pop();
93
+ continue;
94
+ } else if (tagName[0] === "?") {
95
+ const attStr = attr_to_str(tagObj[":@"], options, isStopNode);
96
+ const tempInd = tagName === "?xml" ? "" : indentation;
97
+ let piTextNodeName = tagObj[tagName][0][options.textNodeName];
98
+ piTextNodeName = piTextNodeName.length !== 0 ? " " + piTextNodeName : ""; //remove extra spacing
99
+ xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr}?>`;
100
+ isPreviousElementTag = true;
101
+ matcher.pop();
102
+ continue;
103
+ }
104
+
105
+ let newIdentation = indentation;
106
+ if (newIdentation !== "") {
107
+ newIdentation += options.indentBy;
108
+ }
109
+
110
+ // Pass isStopNode to attr_to_str so attributes are also not processed for stopNodes
111
+ const attStr = attr_to_str(tagObj[":@"], options, isStopNode);
112
+ const tagStart = indentation + `<${tagName}${attStr}`;
113
+
114
+ // If this is a stopNode, get raw content without processing
115
+ let tagValue;
116
+ if (isStopNode) {
117
+ tagValue = getRawContent(tagObj[tagName], options);
118
+ } else {
119
+
120
+ tagValue = arrToStr(tagObj[tagName], options, newIdentation, matcher, stopNodeExpressions);
121
+ }
122
+
123
+ if (options.unpairedTags.indexOf(tagName) !== -1) {
124
+ if (options.suppressUnpairedNode) xmlStr += tagStart + ">";
125
+ else xmlStr += tagStart + "/>";
126
+ } else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {
127
+ xmlStr += tagStart + "/>";
128
+ } else if (tagValue && tagValue.endsWith(">")) {
129
+ xmlStr += tagStart + `>${tagValue}${indentation}</${tagName}>`;
130
+ } else {
131
+ xmlStr += tagStart + ">";
132
+ if (tagValue && indentation !== "" && (tagValue.includes("/>") || tagValue.includes("</"))) {
133
+ xmlStr += indentation + options.indentBy + tagValue + indentation;
134
+ } else {
135
+ xmlStr += tagValue;
136
+ }
137
+ xmlStr += `</${tagName}>`;
138
+ }
139
+ isPreviousElementTag = true;
140
+
141
+ // Pop tag from matcher
142
+ matcher.pop();
143
+ }
144
+
145
+ return xmlStr;
146
+ }
147
+
148
+ /**
149
+ * Extract attribute values from the ":@" object and return as plain object
150
+ * for passing to matcher.push()
151
+ */
152
+ function extractAttributeValues(attrMap, options) {
153
+ if (!attrMap || options.ignoreAttributes) return null;
154
+
155
+ const attrValues = {};
156
+ let hasAttrs = false;
157
+
158
+ for (let attr in attrMap) {
159
+ if (!Object.prototype.hasOwnProperty.call(attrMap, attr)) continue;
160
+ // Remove the attribute prefix to get clean attribute name
161
+ const cleanAttrName = attr.startsWith(options.attributeNamePrefix)
162
+ ? attr.substr(options.attributeNamePrefix.length)
163
+ : attr;
164
+ attrValues[cleanAttrName] = attrMap[attr];
165
+ hasAttrs = true;
166
+ }
167
+
168
+ return hasAttrs ? attrValues : null;
169
+ }
170
+
171
+ /**
172
+ * Extract raw content from a stopNode without any processing
173
+ * This preserves the content exactly as-is, including special characters
174
+ */
175
+ function getRawContent(arr, options) {
176
+ if (!Array.isArray(arr)) {
177
+ // Non-array values return as-is
178
+ if (arr !== undefined && arr !== null) {
179
+ return arr.toString();
180
+ }
181
+ return "";
182
+ }
183
+
184
+ let content = "";
185
+ for (let i = 0; i < arr.length; i++) {
186
+ const item = arr[i];
187
+ const tagName = propName(item);
188
+
189
+ if (tagName === options.textNodeName) {
190
+ // Raw text content - NO processing, NO entity replacement
191
+ content += item[tagName];
192
+ } else if (tagName === options.cdataPropName) {
193
+ // CDATA content
194
+ content += item[tagName][0][options.textNodeName];
195
+ } else if (tagName === options.commentPropName) {
196
+ // Comment content
197
+ content += item[tagName][0][options.textNodeName];
198
+ } else if (tagName && tagName[0] === "?") {
199
+ // Processing instruction - skip for stopNodes
200
+ continue;
201
+ } else if (tagName) {
202
+ // Nested tags within stopNode
203
+ // Recursively get raw content and reconstruct the tag
204
+ // For stopNodes, we don't process attributes either
205
+ const attStr = attr_to_str_raw(item[":@"], options);
206
+ const nestedContent = getRawContent(item[tagName], options);
207
+
208
+ if (!nestedContent || nestedContent.length === 0) {
209
+ content += `<${tagName}${attStr}/>`;
210
+ } else {
211
+ content += `<${tagName}${attStr}>${nestedContent}</${tagName}>`;
212
+ }
213
+ }
214
+ }
215
+ return content;
216
+ }
217
+
218
+ /**
219
+ * Build attribute string for stopNodes - NO entity replacement
220
+ */
221
+ function attr_to_str_raw(attrMap, options) {
222
+ let attrStr = "";
223
+ if (attrMap && !options.ignoreAttributes) {
224
+ for (let attr in attrMap) {
225
+ if (!Object.prototype.hasOwnProperty.call(attrMap, attr)) continue;
226
+ // For stopNodes, use raw value without processing
227
+ let attrVal = attrMap[attr];
228
+ if (attrVal === true && options.suppressBooleanAttributes) {
229
+ attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;
230
+ } else {
231
+ attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${attrVal}"`;
232
+ }
233
+ }
234
+ }
235
+ return attrStr;
236
+ }
237
+
238
+ function propName(obj) {
239
+ const keys = Object.keys(obj);
240
+ for (let i = 0; i < keys.length; i++) {
241
+ const key = keys[i];
242
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
243
+ if (key !== ":@") return key;
244
+ }
245
+ }
246
+
247
+ function attr_to_str(attrMap, options, isStopNode) {
248
+ let attrStr = "";
249
+ if (attrMap && !options.ignoreAttributes) {
250
+ for (let attr in attrMap) {
251
+ if (!Object.prototype.hasOwnProperty.call(attrMap, attr)) continue;
252
+ let attrVal;
253
+
254
+ if (isStopNode) {
255
+ // For stopNodes, use raw value without any processing
256
+ attrVal = attrMap[attr];
257
+ } else {
258
+ // Normal processing: apply attributeValueProcessor and entity replacement
259
+ attrVal = options.attributeValueProcessor(attr, attrMap[attr]);
260
+ attrVal = replaceEntitiesValue(attrVal, options);
261
+ }
262
+
263
+ if (attrVal === true && options.suppressBooleanAttributes) {
264
+ attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;
265
+ } else {
266
+ attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${attrVal}"`;
267
+ }
268
+ }
269
+ }
270
+ return attrStr;
271
+ }
272
+
273
+ function checkStopNode(matcher, stopNodeExpressions) {
274
+ if (!stopNodeExpressions || stopNodeExpressions.length === 0) return false;
275
+
276
+ for (let i = 0; i < stopNodeExpressions.length; i++) {
277
+ if (matcher.matches(stopNodeExpressions[i])) {
278
+ return true;
279
+ }
280
+ }
281
+ return false;
282
+ }
283
+
284
+ function replaceEntitiesValue(textValue, options) {
285
+ if (textValue && textValue.length > 0 && options.processEntities) {
286
+ for (let i = 0; i < options.entities.length; i++) {
287
+ const entity = options.entities[i];
288
+ textValue = textValue.replace(entity.regex, entity.val);
289
+ }
290
+ }
291
+ return textValue;
292
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.