@cdklabs/cdk-ecs-codedeploy 0.0.431 → 0.0.432

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 (182) 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-sdk/client-codedeploy/package.json +38 -38
  8. package/node_modules/@aws-sdk/core/dist-cjs/index.js +7 -15
  9. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +7 -15
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -8
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -7
  12. package/node_modules/@aws-sdk/core/package.json +13 -13
  13. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  14. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  15. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  16. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  17. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  18. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  19. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  20. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  21. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  22. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  23. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  24. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +9 -9
  25. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +9 -9
  26. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +4 -2
  27. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +3 -3
  28. package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -7
  29. package/node_modules/@aws-sdk/nested-clients/package.json +38 -36
  30. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  31. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  32. package/node_modules/@aws-sdk/types/package.json +2 -2
  33. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  34. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  35. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  36. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +36 -19
  37. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
  38. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPaths.js +17 -0
  39. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +17 -12
  40. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
  41. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPaths.d.ts +10 -0
  42. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
  43. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPaths.d.ts +3 -0
  44. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  45. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +1 -0
  46. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +1 -0
  47. package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
  48. package/node_modules/@smithy/abort-controller/package.json +2 -2
  49. package/node_modules/@smithy/config-resolver/package.json +6 -6
  50. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -8
  51. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +1 -1
  52. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +1 -1
  53. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
  54. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -1
  55. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +1 -1
  56. package/node_modules/@smithy/core/package.json +11 -11
  57. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  58. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +18 -4
  59. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +18 -4
  60. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  61. package/node_modules/@smithy/hash-node/package.json +4 -4
  62. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  63. package/node_modules/@smithy/is-array-buffer/package.json +2 -2
  64. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  65. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  66. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  67. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  68. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  69. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  70. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +21 -8
  71. package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +16 -0
  72. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -4
  73. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +3 -4
  74. package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +9 -0
  75. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +9 -0
  76. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  77. package/node_modules/@smithy/property-provider/package.json +2 -2
  78. package/node_modules/@smithy/protocol-http/package.json +2 -2
  79. package/node_modules/@smithy/querystring-builder/package.json +3 -3
  80. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  81. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  82. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  83. package/node_modules/@smithy/signature-v4/package.json +8 -8
  84. package/node_modules/@smithy/smithy-client/package.json +7 -7
  85. package/node_modules/@smithy/url-parser/package.json +3 -3
  86. package/node_modules/@smithy/util-base64/package.json +4 -4
  87. package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
  88. package/node_modules/@smithy/util-body-length-node/package.json +2 -2
  89. package/node_modules/@smithy/util-buffer-from/package.json +3 -3
  90. package/node_modules/@smithy/util-config-provider/package.json +2 -2
  91. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  92. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  93. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  94. package/node_modules/@smithy/util-hex-encoding/package.json +2 -2
  95. package/node_modules/@smithy/util-middleware/package.json +2 -2
  96. package/node_modules/@smithy/util-retry/package.json +3 -3
  97. package/node_modules/@smithy/util-stream/package.json +8 -8
  98. package/node_modules/@smithy/util-uri-escape/package.json +2 -2
  99. package/node_modules/@smithy/util-utf8/package.json +3 -3
  100. package/node_modules/@smithy/util-waiter/package.json +3 -3
  101. package/node_modules/@smithy/uuid/package.json +2 -2
  102. package/node_modules/fast-xml-builder/LICENSE +21 -0
  103. package/node_modules/fast-xml-builder/README.md +23 -0
  104. package/node_modules/fast-xml-builder/lib/builder.cjs +1 -0
  105. package/node_modules/fast-xml-builder/lib/builder.min.js +2 -0
  106. package/node_modules/fast-xml-builder/lib/builder.min.js.map +1 -0
  107. package/node_modules/fast-xml-builder/lib/fxb.d.cts +167 -0
  108. package/node_modules/fast-xml-builder/package.json +78 -0
  109. package/node_modules/fast-xml-builder/src/fxb.d.ts +156 -0
  110. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js → fast-xml-builder/src/fxb.js} +50 -50
  111. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/orderedJs2Xml.js +14 -3
  112. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/CHANGELOG.md +23 -0
  113. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
  114. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
  115. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
  116. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxp.d.cts +15 -1
  117. package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
  118. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
  119. package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
  120. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
  121. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +2 -0
  122. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -0
  123. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/package.json +3 -2
  124. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.d.ts +16 -0
  125. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.js +1 -1
  126. package/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
  127. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/util.js +1 -26
  128. package/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +106 -0
  129. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OptionsBuilder.js +10 -10
  130. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
  131. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
  132. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
  133. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/ParserOptionsBuilder.js +17 -17
  134. package/node_modules/fast-xml-parser/src/v6/Report.js +0 -0
  135. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XMLParser.js +22 -22
  136. package/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +105 -0
  137. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/validator.js +34 -34
  138. package/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +6 -0
  139. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/DocTypeReader.js +1 -1
  140. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OptionsBuilder.js +2 -0
  141. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OrderedObjParser.js +27 -5
  142. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/XMLParser.js +21 -21
  143. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/node2json.js +38 -34
  144. package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/xmlNode.js +10 -10
  145. package/package.json +6 -6
  146. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +0 -14
  147. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +0 -9
  148. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +0 -1
  149. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +0 -2
  150. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +0 -1
  151. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +0 -1
  152. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +0 -2
  153. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +0 -1
  154. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +0 -2
  155. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +0 -1
  156. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +0 -2
  157. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +0 -1
  158. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +0 -106
  159. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +0 -105
  160. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Report.js → fast-xml-builder/CHANGELOG.md} +0 -0
  161. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-builder}/src/ignoreAttributes.js +0 -0
  162. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/prettifyJs2Xml.js +0 -0
  163. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/LICENSE +0 -0
  164. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/README.md +0 -0
  165. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/cli.js +0 -0
  166. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/man.js +0 -0
  167. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/read.js +0 -0
  168. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/CharsSymbol.js +0 -0
  169. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -0
  170. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPath.js +0 -0
  171. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPathMatcher.js +0 -0
  172. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/Xml2JsParser.js +0 -0
  173. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlPartReader.js +0 -0
  174. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlSpecialTagsReader.js +0 -0
  175. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/BufferSource.js +0 -0
  176. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/StringSource.js +0 -0
  177. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParser.js +0 -0
  178. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParserExt.js +0 -0
  179. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/currency.js +0 -0
  180. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/join.js +0 -0
  181. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/number.js +0 -0
  182. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/trim.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "4.4.5",
3
+ "version": "4.4.6",
4
4
  "dependencies": {
5
5
  "@smithy/types": "^4.13.0",
6
6
  "tslib": "^2.6.2"
@@ -49,7 +49,7 @@
49
49
  "node": ">=18.0.0"
50
50
  },
51
51
  "typesVersions": {
52
- "<4.0": {
52
+ "<4.5": {
53
53
  "dist-types/*": [
54
54
  "dist-types/ts3.4/*"
55
55
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/signature-v4",
3
- "version": "5.3.10",
3
+ "version": "5.3.11",
4
4
  "description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,13 +26,13 @@
26
26
  "license": "Apache-2.0",
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@smithy/is-array-buffer": "^4.2.1",
30
- "@smithy/protocol-http": "^5.3.10",
29
+ "@smithy/is-array-buffer": "^4.2.2",
30
+ "@smithy/protocol-http": "^5.3.11",
31
31
  "@smithy/types": "^4.13.0",
32
- "@smithy/util-hex-encoding": "^4.2.1",
33
- "@smithy/util-middleware": "^4.2.10",
34
- "@smithy/util-uri-escape": "^4.2.1",
35
- "@smithy/util-utf8": "^4.2.1",
32
+ "@smithy/util-hex-encoding": "^4.2.2",
33
+ "@smithy/util-middleware": "^4.2.11",
34
+ "@smithy/util-uri-escape": "^4.2.2",
35
+ "@smithy/util-utf8": "^4.2.2",
36
36
  "tslib": "^2.6.2"
37
37
  },
38
38
  "devDependencies": {
@@ -46,7 +46,7 @@
46
46
  "node": ">=18.0.0"
47
47
  },
48
48
  "typesVersions": {
49
- "<4.0": {
49
+ "<4.5": {
50
50
  "dist-types/*": [
51
51
  "dist-types/ts3.4/*"
52
52
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.12.0",
3
+ "version": "4.12.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline smithy-client",
@@ -27,19 +27,19 @@
27
27
  "license": "Apache-2.0",
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
- "@smithy/core": "^3.23.6",
31
- "@smithy/middleware-endpoint": "^4.4.20",
32
- "@smithy/middleware-stack": "^4.2.10",
33
- "@smithy/protocol-http": "^5.3.10",
30
+ "@smithy/core": "^3.23.9",
31
+ "@smithy/middleware-endpoint": "^4.4.23",
32
+ "@smithy/middleware-stack": "^4.2.11",
33
+ "@smithy/protocol-http": "^5.3.11",
34
34
  "@smithy/types": "^4.13.0",
35
- "@smithy/util-stream": "^4.5.15",
35
+ "@smithy/util-stream": "^4.5.17",
36
36
  "tslib": "^2.6.2"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=18.0.0"
40
40
  },
41
41
  "typesVersions": {
42
- "<4.0": {
42
+ "<4.5": {
43
43
  "dist-types/*": [
44
44
  "dist-types/ts3.4/*"
45
45
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/url-parser",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline url-parser",
@@ -24,12 +24,12 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/querystring-parser": "^4.2.10",
27
+ "@smithy/querystring-parser": "^4.2.11",
28
28
  "@smithy/types": "^4.13.0",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "typesVersions": {
32
- "<4.0": {
32
+ "<4.5": {
33
33
  "dist-types/*": [
34
34
  "dist-types/ts3.4/*"
35
35
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-base64",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "A Base64 <-> UInt8Array converter",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,8 +24,8 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/util-buffer-from": "^4.2.1",
28
- "@smithy/util-utf8": "^4.2.1",
27
+ "@smithy/util-buffer-from": "^4.2.2",
28
+ "@smithy/util-utf8": "^4.2.2",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "devDependencies": {
@@ -40,7 +40,7 @@
40
40
  "node": ">=18.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@smithy/util-body-length-browser",
3
3
  "description": "Determines the length of a request body in browsers",
4
- "version": "4.2.1",
4
+ "version": "4.2.2",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
7
7
  "build:cjs": "node ../../scripts/inline util-body-length-browser",
@@ -28,7 +28,7 @@
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "typesVersions": {
31
- "<4.0": {
31
+ "<4.5": {
32
32
  "dist-types/*": [
33
33
  "dist-types/ts3.4/*"
34
34
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@smithy/util-body-length-node",
3
3
  "description": "Determines the length of a request body in node.js",
4
- "version": "4.2.2",
4
+ "version": "4.2.3",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
7
7
  "build:cjs": "node ../../scripts/inline util-body-length-node",
@@ -38,7 +38,7 @@
38
38
  "node": ">=18.0.0"
39
39
  },
40
40
  "typesVersions": {
41
- "<4.0": {
41
+ "<4.5": {
42
42
  "dist-types/*": [
43
43
  "dist-types/ts3.4/*"
44
44
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-buffer-from",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-buffer-from",
@@ -21,7 +21,7 @@
21
21
  "license": "Apache-2.0",
22
22
  "sideEffects": false,
23
23
  "dependencies": {
24
- "@smithy/is-array-buffer": "^4.2.1",
24
+ "@smithy/is-array-buffer": "^4.2.2",
25
25
  "tslib": "^2.6.2"
26
26
  },
27
27
  "devDependencies": {
@@ -38,7 +38,7 @@
38
38
  "node": ">=18.0.0"
39
39
  },
40
40
  "typesVersions": {
41
- "<4.0": {
41
+ "<4.5": {
42
42
  "dist-types/*": [
43
43
  "dist-types/ts3.4/*"
44
44
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-config-provider",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Utilities package for configuration providers",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -39,7 +39,7 @@
39
39
  "node": ">=18.0.0"
40
40
  },
41
41
  "typesVersions": {
42
- "<4.0": {
42
+ "<4.5": {
43
43
  "dist-types/*": [
44
44
  "dist-types/ts3.4/*"
45
45
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.3.36",
3
+ "version": "4.3.39",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
@@ -24,8 +24,8 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/property-provider": "^4.2.10",
28
- "@smithy/smithy-client": "^4.12.0",
27
+ "@smithy/property-provider": "^4.2.11",
28
+ "@smithy/smithy-client": "^4.12.3",
29
29
  "@smithy/types": "^4.13.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -40,7 +40,7 @@
40
40
  "node": ">=18.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": "@smithy/util-defaults-mode-node",
3
- "version": "4.2.39",
3
+ "version": "4.2.42",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
@@ -24,11 +24,11 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/config-resolver": "^4.4.9",
28
- "@smithy/credential-provider-imds": "^4.2.10",
29
- "@smithy/node-config-provider": "^4.3.10",
30
- "@smithy/property-provider": "^4.2.10",
31
- "@smithy/smithy-client": "^4.12.0",
27
+ "@smithy/config-resolver": "^4.4.10",
28
+ "@smithy/credential-provider-imds": "^4.2.11",
29
+ "@smithy/node-config-provider": "^4.3.11",
30
+ "@smithy/property-provider": "^4.2.11",
31
+ "@smithy/smithy-client": "^4.12.3",
32
32
  "@smithy/types": "^4.13.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
@@ -43,7 +43,7 @@
43
43
  "node": ">=18.0.0"
44
44
  },
45
45
  "typesVersions": {
46
- "<4.0": {
46
+ "<4.5": {
47
47
  "dist-types/*": [
48
48
  "dist-types/ts3.4/*"
49
49
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,7 +29,7 @@
29
29
  "license": "Apache-2.0",
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@smithy/node-config-provider": "^4.3.10",
32
+ "@smithy/node-config-provider": "^4.3.11",
33
33
  "@smithy/types": "^4.13.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
@@ -45,7 +45,7 @@
45
45
  "node": ">=18.0.0"
46
46
  },
47
47
  "typesVersions": {
48
- "<4.0": {
48
+ "<4.5": {
49
49
  "types/*": [
50
50
  "types/ts3.4/*"
51
51
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-hex-encoding",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Converts binary buffers to and from lowercase hexadecimal encoding",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -31,7 +31,7 @@
31
31
  "node": ">=18.0.0"
32
32
  },
33
33
  "typesVersions": {
34
- "<4.0": {
34
+ "<4.5": {
35
35
  "dist-types/*": [
36
36
  "dist-types/ts3.4/*"
37
37
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -43,7 +43,7 @@
43
43
  "node": ">=18.0.0"
44
44
  },
45
45
  "typesVersions": {
46
- "<4.0": {
46
+ "<4.5": {
47
47
  "types/*": [
48
48
  "types/ts3.4/*"
49
49
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -31,7 +31,7 @@
31
31
  "license": "Apache-2.0",
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
- "@smithy/service-error-classification": "^4.2.10",
34
+ "@smithy/service-error-classification": "^4.2.11",
35
35
  "@smithy/types": "^4.13.0",
36
36
  "tslib": "^2.6.2"
37
37
  },
@@ -47,7 +47,7 @@
47
47
  "node": ">=18.0.0"
48
48
  },
49
49
  "typesVersions": {
50
- "<4.0": {
50
+ "<4.5": {
51
51
  "types/*": [
52
52
  "types/ts3.4/*"
53
53
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "4.5.15",
3
+ "version": "4.5.17",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-stream",
@@ -29,13 +29,13 @@
29
29
  "license": "Apache-2.0",
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@smithy/fetch-http-handler": "^5.3.11",
33
- "@smithy/node-http-handler": "^4.4.12",
32
+ "@smithy/fetch-http-handler": "^5.3.13",
33
+ "@smithy/node-http-handler": "^4.4.14",
34
34
  "@smithy/types": "^4.13.0",
35
- "@smithy/util-base64": "^4.3.1",
36
- "@smithy/util-buffer-from": "^4.2.1",
37
- "@smithy/util-hex-encoding": "^4.2.1",
38
- "@smithy/util-utf8": "^4.2.1",
35
+ "@smithy/util-base64": "^4.3.2",
36
+ "@smithy/util-buffer-from": "^4.2.2",
37
+ "@smithy/util-hex-encoding": "^4.2.2",
38
+ "@smithy/util-utf8": "^4.2.2",
39
39
  "tslib": "^2.6.2"
40
40
  },
41
41
  "devDependencies": {
@@ -50,7 +50,7 @@
50
50
  "node": ">=18.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": "@smithy/util-uri-escape",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-uri-escape",
@@ -30,7 +30,7 @@
30
30
  "node": ">=18.0.0"
31
31
  },
32
32
  "typesVersions": {
33
- "<4.0": {
33
+ "<4.5": {
34
34
  "dist-types/*": [
35
35
  "dist-types/ts3.4/*"
36
36
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-utf8",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "A UTF-8 string <-> UInt8Array converter",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/util-buffer-from": "^4.2.1",
27
+ "@smithy/util-buffer-from": "^4.2.2",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "devDependencies": {
@@ -38,7 +38,7 @@
38
38
  "node": ">=18.0.0"
39
39
  },
40
40
  "typesVersions": {
41
- "<4.0": {
41
+ "<4.5": {
42
42
  "dist-types/*": [
43
43
  "dist-types/ts3.4/*"
44
44
  ]
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/abort-controller": "^4.2.10",
6
+ "@smithy/abort-controller": "^4.2.11",
7
7
  "@smithy/types": "^4.13.0",
8
8
  "tslib": "^2.6.2"
9
9
  },
@@ -33,7 +33,7 @@
33
33
  "node": ">=18.0.0"
34
34
  },
35
35
  "typesVersions": {
36
- "<4.0": {
36
+ "<4.5": {
37
37
  "dist-types/*": [
38
38
  "dist-types/ts3.4/*"
39
39
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/uuid",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Polyfill for generating UUID v4",
5
5
  "dependencies": {
6
6
  "tslib": "^2.6.2"
@@ -31,7 +31,7 @@
31
31
  "node": ">=18.0.0"
32
32
  },
33
33
  "typesVersions": {
34
- "<4.0": {
34
+ "<4.5": {
35
35
  "dist-types/*": [
36
36
  "dist-types/ts3.4/*"
37
37
  ]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Natural Intelligence
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.
@@ -0,0 +1,23 @@
1
+ # fast-xml-builder
2
+ Build XML from JSON
3
+
4
+
5
+ XML Builder was the part of [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) for years. But considering that any bug in parser may false-alarm the users who are only using builder, we have decided to split it into a separate package.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install fast-xml-builder
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```javascript
16
+ import { XMLBuilder } from 'fast-xml-builder';
17
+
18
+ const builder = new XMLBuilder();
19
+ const xml = builder.build({ name: 'value' });
20
+ ```
21
+
22
+ fast-xml-builder fully support the response generated by fast-xml-parser. So you can use the maximum options as you are using for fast-xml-parser like `preserveOrder`, `ignoreAttributes`, `attributeNamePrefix`, `textNodeName`, `cdataTagName`, `cdataPositionChar`, `format`, `indentBy`, `suppressEmptyNode` and many more. Any change in parser will reflect here time to time.
23
+
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t,e){let i="";return e.format&&e.indentBy.length>0&&(i="\n"),s(t,e,"",i)}function s(t,e,i,p){let u="",h=!1;if(!Array.isArray(t)){if(null!=t){let i=t.toString();return i=a(i,e),i}return""}for(let l=0;l<t.length;l++){const d=t[l],c=n(d);if(void 0===c)continue;let f="";if(f=0===i.length?c:`${i}.${c}`,c===e.textNodeName){let t=d[c];r(f,e)||(t=e.tagValueProcessor(c,t),t=a(t,e)),h&&(u+=p),u+=t,h=!1;continue}if(c===e.cdataPropName){h&&(u+=p),u+=`<![CDATA[${d[c][0][e.textNodeName]}]]>`,h=!1;continue}if(c===e.commentPropName){u+=p+`\x3c!--${d[c][0][e.textNodeName]}--\x3e`,h=!0;continue}if("?"===c[0]){const t=o(d[":@"],e),i="?xml"===c?"":p;let s=d[c][0][e.textNodeName];s=0!==s.length?" "+s:"",u+=i+`<${c}${s}${t}?>`,h=!0;continue}let g=p;""!==g&&(g+=e.indentBy);const N=p+`<${c}${o(d[":@"],e)}`,b=s(d[c],e,f,g);-1!==e.unpairedTags.indexOf(c)?e.suppressUnpairedNode?u+=N+">":u+=N+"/>":b&&0!==b.length||!e.suppressEmptyNode?b&&b.endsWith(">")?u+=N+`>${b}${p}</${c}>`:(u+=N+">",b&&""!==p&&(b.includes("/>")||b.includes("</"))?u+=p+e.indentBy+b+p:u+=b,u+=`</${c}>`):u+=N+"/>",h=!0}return u}function n(t){const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];if(Object.prototype.hasOwnProperty.call(t,s)&&":@"!==s)return s}}function o(t,e){let i="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=e.attributeValueProcessor(s,t[s]);n=a(n,e),!0===n&&e.suppressBooleanAttributes?i+=` ${s.substr(e.attributeNamePrefix.length)}`:i+=` ${s.substr(e.attributeNamePrefix.length)}="${n}"`}return i}function r(t,e){let i=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let s in e.stopNodes)if(e.stopNodes[s]===t||e.stopNodes[s]==="*."+i)return!0;return!1}function a(t,e){if(t&&t.length>0&&e.processEntities)for(let i=0;i<e.entities.length;i++){const s=e.entities[i];t=t.replace(s.regex,s.val)}return t}t.r(e),t.d(e,{default:()=>u});const p={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function u(t){var e;this.options=Object.assign({},p,t),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(e=this.options.ignoreAttributes)?e:Array.isArray(e)?t=>{for(const i of e){if("string"==typeof i&&t===i)return!0;if(i instanceof RegExp&&i.test(t))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=d),this.processTextOrObjNode=h,this.options.format?(this.indentate=l,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function h(t,e,i,s){const n=this.j2x(t,i+1,s.concat(e));return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,i):this.buildObjectNode(n.val,e,n.attrStr,i)}function l(t){return this.options.indentBy.repeat(t)}function d(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}u.prototype.build=function(t){return this.options.preserveOrder?i(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)},u.prototype.j2x=function(t,e,i){let s="",n="";const o=i.join(".");for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r))if(void 0===t[r])this.isAttribute(r)&&(n+="");else if(null===t[r])this.isAttribute(r)||r===this.options.cdataPropName?n+="":"?"===r[0]?n+=this.indentate(e)+"<"+r+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+r+"/"+this.tagEndChar;else if(t[r]instanceof Date)n+=this.buildTextValNode(t[r],r,"",e);else if("object"!=typeof t[r]){const i=this.isAttribute(r);if(i&&!this.ignoreAttributesFn(i,o))s+=this.buildAttrPairStr(i,""+t[r]);else if(!i)if(r===this.options.textNodeName){let e=this.options.tagValueProcessor(r,""+t[r]);n+=this.replaceEntitiesValue(e)}else n+=this.buildTextValNode(t[r],r,"",e)}else if(Array.isArray(t[r])){const s=t[r].length;let o="",a="";for(let p=0;p<s;p++){const s=t[r][p];if(void 0===s);else if(null===s)"?"===r[0]?n+=this.indentate(e)+"<"+r+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+r+"/"+this.tagEndChar;else if("object"==typeof s)if(this.options.oneListGroup){const t=this.j2x(s,e+1,i.concat(r));o+=t.val,this.options.attributesGroupName&&s.hasOwnProperty(this.options.attributesGroupName)&&(a+=t.attrStr)}else o+=this.processTextOrObjNode(s,r,e,i);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(r,s);t=this.replaceEntitiesValue(t),o+=t}else o+=this.buildTextValNode(s,r,"",e)}this.options.oneListGroup&&(o=this.buildObjectNode(o,r,a,e)),n+=o}else if(this.options.attributesGroupName&&r===this.options.attributesGroupName){const e=Object.keys(t[r]),i=e.length;for(let n=0;n<i;n++)s+=this.buildAttrPairStr(e[n],""+t[r][e[n]])}else n+=this.processTextOrObjNode(t[r],r,e,i);return{attrStr:s,val:n}},u.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},u.prototype.buildObjectNode=function(t,e,i,s){if(""===t)return"?"===e[0]?this.indentate(s)+"<"+e+i+"?"+this.tagEndChar:this.indentate(s)+"<"+e+i+this.closeTag(e)+this.tagEndChar;{let n="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",n=""),!i&&""!==i||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(s)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(s)+"<"+e+i+o+this.tagEndChar+t+this.indentate(s)+n:this.indentate(s)+"<"+e+i+o+">"+t+n}},u.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},u.prototype.buildTextValNode=function(t,e,i,s){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(s)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(s)+"<"+e+i+"?"+this.tagEndChar;{let n=this.options.tagValueProcessor(e,t);return n=this.replaceEntitiesValue(n),""===n?this.indentate(s)+"<"+e+i+this.closeTag(e)+this.tagEndChar:this.indentate(s)+"<"+e+i+">"+n+"</"+e+this.tagEndChar}},u.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const i=this.options.entities[e];t=t.replace(i.regex,i.val)}return t},module.exports=e})();
@@ -0,0 +1,2 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.fxpBuilder=e():t.fxpBuilder=e()}(this,()=>(()=>{"use strict";var t={d:(e,r)=>{for(var i in r)t.o(r,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function r(t,e){var r="";return e.format&&e.indentBy.length>0&&(r="\n"),i(t,e,"",r)}function i(t,e,r,u){var p="",h=!1;if(!Array.isArray(t)){if(null!=t){var l=t.toString();return a(l,e)}return""}for(var d=0;d<t.length;d++){var f=t[d],c=n(f);if(void 0!==c){var g;if(g=0===r.length?c:r+"."+c,c!==e.textNodeName)if(c!==e.cdataPropName)if(c!==e.commentPropName)if("?"!==c[0]){var b=u;""!==b&&(b+=e.indentBy);var m=u+"<"+c+o(f[":@"],e),v=i(f[c],e,g,b);-1!==e.unpairedTags.indexOf(c)?e.suppressUnpairedNode?p+=m+">":p+=m+"/>":v&&0!==v.length||!e.suppressEmptyNode?v&&v.endsWith(">")?p+=m+">"+v+u+"</"+c+">":(p+=m+">",v&&""!==u&&(v.includes("/>")||v.includes("</"))?p+=u+e.indentBy+v+u:p+=v,p+="</"+c+">"):p+=m+"/>",h=!0}else{var N=o(f[":@"],e),y="?xml"===c?"":u,x=f[c][0][e.textNodeName];p+=y+"<"+c+(x=0!==x.length?" "+x:"")+N+"?>",h=!0}else p+=u+"\x3c!--"+f[c][0][e.textNodeName]+"--\x3e",h=!0;else h&&(p+=u),p+="<![CDATA["+f[c][0][e.textNodeName]+"]]>",h=!1;else{var P=f[c];s(g,e)||(P=a(P=e.tagValueProcessor(c,P),e)),h&&(p+=u),p+=P,h=!1}}}return p}function n(t){for(var e=Object.keys(t),r=0;r<e.length;r++){var i=e[r];if(Object.prototype.hasOwnProperty.call(t,i)&&":@"!==i)return i}}function o(t,e){var r="";if(t&&!e.ignoreAttributes)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=e.attributeValueProcessor(i,t[i]);!0===(n=a(n,e))&&e.suppressBooleanAttributes?r+=" "+i.substr(e.attributeNamePrefix.length):r+=" "+i.substr(e.attributeNamePrefix.length)+'="'+n+'"'}return r}function s(t,e){var r=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(var i in e.stopNodes)if(e.stopNodes[i]===t||e.stopNodes[i]==="*."+r)return!0;return!1}function a(t,e){if(t&&t.length>0&&e.processEntities)for(var r=0;r<e.entities.length;r++){var i=e.entities[r];t=t.replace(i.regex,i.val)}return t}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}t.r(e),t.d(e,{default:()=>h});var p={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function h(t){var e;this.options=Object.assign({},p,t),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(e=this.options.ignoreAttributes)?e:Array.isArray(e)?function(t){for(var r,i=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(r=i()).done;){var n=r.value;if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:function(){return!1},this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=f),this.processTextOrObjNode=l,this.options.format?(this.indentate=d,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function l(t,e,r,i){var n=this.j2x(t,r+1,i.concat(e));return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r):this.buildObjectNode(n.val,e,n.attrStr,r)}function d(t){return this.options.indentBy.repeat(t)}function f(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}return h.prototype.build=function(t){return this.options.preserveOrder?r(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&((e={})[this.options.arrayNodeName]=t,t=e),this.j2x(t,0,[]).val);var e},h.prototype.j2x=function(t,e,r){var i="",n="",o=r.join(".");for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))if(void 0===t[s])this.isAttribute(s)&&(n+="");else if(null===t[s])this.isAttribute(s)||s===this.options.cdataPropName?n+="":"?"===s[0]?n+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if(t[s]instanceof Date)n+=this.buildTextValNode(t[s],s,"",e);else if("object"!=typeof t[s]){var a=this.isAttribute(s);if(a&&!this.ignoreAttributesFn(a,o))i+=this.buildAttrPairStr(a,""+t[s]);else if(!a)if(s===this.options.textNodeName){var u=this.options.tagValueProcessor(s,""+t[s]);n+=this.replaceEntitiesValue(u)}else n+=this.buildTextValNode(t[s],s,"",e)}else if(Array.isArray(t[s])){for(var p=t[s].length,h="",l="",d=0;d<p;d++){var f=t[s][d];if(void 0===f);else if(null===f)"?"===s[0]?n+=this.indentate(e)+"<"+s+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+s+"/"+this.tagEndChar;else if("object"==typeof f)if(this.options.oneListGroup){var c=this.j2x(f,e+1,r.concat(s));h+=c.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(l+=c.attrStr)}else h+=this.processTextOrObjNode(f,s,e,r);else if(this.options.oneListGroup){var g=this.options.tagValueProcessor(s,f);h+=g=this.replaceEntitiesValue(g)}else h+=this.buildTextValNode(f,s,"",e)}this.options.oneListGroup&&(h=this.buildObjectNode(h,s,l,e)),n+=h}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName)for(var b=Object.keys(t[s]),m=b.length,v=0;v<m;v++)i+=this.buildAttrPairStr(b[v],""+t[s][b[v]]);else n+=this.processTextOrObjNode(t[s],s,e,r);return{attrStr:i,val:n}},h.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},h.prototype.buildObjectNode=function(t,e,r,i){if(""===t)return"?"===e[0]?this.indentate(i)+"<"+e+r+"?"+this.tagEndChar:this.indentate(i)+"<"+e+r+this.closeTag(e)+this.tagEndChar;var n="</"+e+this.tagEndChar,o="";return"?"===e[0]&&(o="?",n=""),!r&&""!==r||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===o.length?this.indentate(i)+"\x3c!--"+t+"--\x3e"+this.newLine:this.indentate(i)+"<"+e+r+o+this.tagEndChar+t+this.indentate(i)+n:this.indentate(i)+"<"+e+r+o+">"+t+n},h.prototype.closeTag=function(t){var e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":"></"+t,e},h.prototype.buildTextValNode=function(t,e,r,i){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(i)+"<![CDATA["+t+"]]>"+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(i)+"\x3c!--"+t+"--\x3e"+this.newLine;if("?"===e[0])return this.indentate(i)+"<"+e+r+"?"+this.tagEndChar;var n=this.options.tagValueProcessor(e,t);return""===(n=this.replaceEntitiesValue(n))?this.indentate(i)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(i)+"<"+e+r+">"+n+"</"+e+this.tagEndChar},h.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(var e=0;e<this.options.entities.length;e++){var r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t},e})());
2
+ //# sourceMappingURL=builder.min.js.map