@cdklabs/cdk-construct-connect-datalake 0.0.15 → 0.0.16

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 (295) hide show
  1. package/.jsii +9 -9
  2. package/lib/index.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
  4. package/node_modules/@aws-sdk/client-connect/package.json +3 -3
  5. package/node_modules/@aws-sdk/client-glue/package.json +3 -3
  6. package/node_modules/@aws-sdk/client-lakeformation/package.json +3 -3
  7. package/node_modules/@aws-sdk/client-ram/package.json +3 -3
  8. package/node_modules/@aws-sdk/client-sts/package.json +3 -3
  9. package/node_modules/@aws-sdk/core/account-id-endpoint.d.ts +1 -3
  10. package/node_modules/@aws-sdk/core/client.d.ts +1 -3
  11. package/node_modules/@aws-sdk/core/httpAuthSchemes.d.ts +1 -3
  12. package/node_modules/@aws-sdk/core/package.json +8 -14
  13. package/node_modules/@aws-sdk/core/protocols.d.ts +1 -3
  14. package/node_modules/@aws-sdk/core/util.d.ts +1 -3
  15. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  16. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +172 -1
  17. package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -10
  18. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  19. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  20. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  21. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  22. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  23. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -3
  24. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -8
  25. package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +1 -3
  26. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  27. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  28. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  29. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  30. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  31. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +1 -1
  32. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -1
  33. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +1 -1
  34. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +1 -1
  35. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -1
  36. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +1 -1
  37. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +1 -1
  38. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -1
  39. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +1 -1
  40. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +1 -1
  41. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -1
  42. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +1 -1
  43. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +1 -1
  44. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
  45. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +1 -1
  46. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +7 -1
  47. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +7 -1
  48. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +7 -1
  49. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +7 -1
  50. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +7 -1
  51. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +7 -1
  52. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +7 -1
  53. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +7 -1
  54. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +7 -1
  55. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +7 -1
  56. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +7 -1
  57. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +7 -1
  58. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +7 -1
  59. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +7 -1
  60. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +7 -1
  61. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  62. package/node_modules/@aws-sdk/nested-clients/signin.d.ts +1 -3
  63. package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +1 -3
  64. package/node_modules/@aws-sdk/nested-clients/sso.d.ts +1 -3
  65. package/node_modules/@aws-sdk/nested-clients/sts.d.ts +1 -3
  66. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  67. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  68. package/node_modules/@aws-sdk/types/package.json +2 -2
  69. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +236 -3
  70. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +1 -1
  71. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +233 -43
  72. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -1
  73. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +2 -1
  74. package/node_modules/@aws-sdk/xml-builder/package.json +6 -7
  75. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +355 -145
  76. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +456 -142
  77. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +355 -145
  78. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -2
  79. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +30 -36
  80. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +54 -110
  81. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +30 -36
  82. package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js +27 -0
  83. package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js +21 -0
  84. package/node_modules/@smithy/core/dist-es/submodules/checksum/index.browser.js +7 -1
  85. package/node_modules/@smithy/core/dist-es/submodules/checksum/index.js +7 -1
  86. package/node_modules/@smithy/core/dist-es/submodules/checksum/index.native.js +7 -1
  87. package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Js.js +92 -0
  88. package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Node.js +29 -0
  89. package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Js.js +179 -0
  90. package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Node.js +59 -0
  91. package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256WebCrypto.js +71 -0
  92. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -1
  93. package/node_modules/@smithy/core/dist-es/submodules/serde/concatBytes.js +15 -0
  94. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +2 -0
  95. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +2 -0
  96. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +2 -0
  97. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js +4 -0
  98. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.js +2 -1
  99. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +12 -38
  100. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js +18 -33
  101. package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.browser.js +3 -0
  102. package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js +3 -0
  103. package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Js.d.ts +13 -0
  104. package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Node.d.ts +13 -0
  105. package/node_modules/@smithy/core/dist-types/submodules/checksum/index.browser.d.ts +7 -1
  106. package/node_modules/@smithy/core/dist-types/submodules/checksum/index.d.ts +7 -1
  107. package/node_modules/@smithy/core/dist-types/submodules/checksum/index.native.d.ts +7 -1
  108. package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Js.d.ts +19 -0
  109. package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Node.d.ts +17 -0
  110. package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Js.d.ts +28 -0
  111. package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Node.d.ts +13 -0
  112. package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256WebCrypto.d.ts +22 -0
  113. package/node_modules/@smithy/core/dist-types/submodules/serde/concatBytes.d.ts +6 -0
  114. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +2 -0
  115. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +2 -0
  116. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +2 -0
  117. package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +9 -0
  118. package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.browser.d.ts +8 -2
  119. package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.d.ts +4 -1
  120. package/node_modules/@smithy/core/package.json +4 -3
  121. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  122. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -55
  123. package/node_modules/@smithy/fetch-http-handler/dist-es/index.js +2 -2
  124. package/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +2 -2
  125. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  126. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -51
  127. package/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
  128. package/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -3
  129. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  130. package/node_modules/@smithy/signature-v4/package.json +2 -2
  131. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/README.md +3 -0
  132. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/dist/js-yaml.js +7 -1
  133. package/node_modules/aws-lambda/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
  134. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/loader.js +6 -0
  135. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/package.json +4 -1
  136. package/package.json +10 -10
  137. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +0 -869
  138. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +0 -862
  139. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +0 -42
  140. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +0 -27
  141. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +0 -71
  142. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +0 -49
  143. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +0 -13
  144. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +0 -2
  145. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +0 -29
  146. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +0 -25
  147. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +0 -333
  148. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +0 -57
  149. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +0 -44
  150. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-external/nodable_entities.js +0 -332
  151. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-external/nodable_entities.d.ts +0 -66
  152. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-external/nodable_entities.d.ts +0 -65
  153. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +0 -827
  154. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/LICENSE +0 -21
  155. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/README.md +0 -202
  156. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +0 -2
  157. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +0 -1
  158. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +0 -1
  159. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +0 -770
  160. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +0 -2
  161. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +0 -1
  162. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +0 -2
  163. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +0 -1
  164. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +0 -2
  165. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +0 -1
  166. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +0 -93
  167. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/cli.js +0 -97
  168. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/man.js +0 -17
  169. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/read.js +0 -43
  170. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +0 -739
  171. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +0 -14
  172. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/ignoreAttributes.js +0 -18
  173. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +0 -61
  174. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/CharsSymbol.js +0 -16
  175. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +0 -106
  176. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +0 -61
  177. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -69
  178. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +0 -103
  179. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -100
  180. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +0 -154
  181. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +0 -94
  182. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Report.js +0 -0
  183. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/TagPath.js +0 -81
  184. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/TagPathMatcher.js +0 -13
  185. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +0 -83
  186. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Xml2JsParser.js +0 -235
  187. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XmlPartReader.js +0 -210
  188. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XmlSpecialTagsReader.js +0 -111
  189. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/inputSource/BufferSource.js +0 -116
  190. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/inputSource/StringSource.js +0 -121
  191. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +0 -105
  192. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParser.js +0 -22
  193. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParserExt.js +0 -19
  194. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/currency.js +0 -38
  195. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/join.js +0 -13
  196. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/number.js +0 -14
  197. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/trim.js +0 -6
  198. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +0 -425
  199. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +0 -6
  200. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +0 -407
  201. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +0 -163
  202. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +0 -840
  203. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +0 -71
  204. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +0 -177
  205. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +0 -40
  206. package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/CHANGELOG.md +0 -51
  207. package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/LICENSE +0 -21
  208. package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/README.md +0 -113
  209. package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/package.json +0 -36
  210. package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/strnum.js +0 -171
  211. package/node_modules/@nodable/entities/README.md +0 -41
  212. package/node_modules/@nodable/entities/package.json +0 -57
  213. package/node_modules/@nodable/entities/src/EntityDecoder.js +0 -644
  214. package/node_modules/@nodable/entities/src/EntityEncoder.js +0 -194
  215. package/node_modules/@nodable/entities/src/entities.js +0 -1159
  216. package/node_modules/@nodable/entities/src/entityTries.js +0 -49
  217. package/node_modules/@nodable/entities/src/index.d.ts +0 -341
  218. package/node_modules/@nodable/entities/src/index.js +0 -29
  219. package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/constants.js +0 -3
  220. package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/md5.js +0 -168
  221. package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/constants.d.ts +0 -12
  222. package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/md5.d.ts +0 -16
  223. package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +0 -53
  224. package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +0 -2
  225. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
  226. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
  227. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
  228. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -7
  229. package/node_modules/anynum/LICENSE +0 -21
  230. package/node_modules/anynum/README.md +0 -142
  231. package/node_modules/anynum/anynum.js +0 -135
  232. package/node_modules/anynum/digitTable.js +0 -116
  233. package/node_modules/anynum/package.json +0 -42
  234. package/node_modules/fast-xml-builder/CHANGELOG.md +0 -40
  235. package/node_modules/fast-xml-builder/LICENSE +0 -21
  236. package/node_modules/fast-xml-builder/README.md +0 -74
  237. package/node_modules/fast-xml-builder/lib/fxb.cjs +0 -1
  238. package/node_modules/fast-xml-builder/lib/fxb.d.cts +0 -270
  239. package/node_modules/fast-xml-builder/lib/fxb.min.js +0 -2
  240. package/node_modules/fast-xml-builder/lib/fxb.min.js.map +0 -1
  241. package/node_modules/fast-xml-builder/package.json +0 -81
  242. package/node_modules/fast-xml-builder/src/fxb.d.ts +0 -270
  243. package/node_modules/fast-xml-builder/src/fxb.js +0 -599
  244. package/node_modules/fast-xml-builder/src/ignoreAttributes.js +0 -18
  245. package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +0 -359
  246. package/node_modules/fast-xml-builder/src/prettifyJs2Xml.js +0 -0
  247. package/node_modules/fast-xml-builder/src/util.js +0 -16
  248. package/node_modules/js-yaml/dist/js-yaml.min.js +0 -1
  249. package/node_modules/path-expression-matcher/LICENSE +0 -21
  250. package/node_modules/path-expression-matcher/README.md +0 -947
  251. package/node_modules/path-expression-matcher/lib/pem.cjs +0 -1
  252. package/node_modules/path-expression-matcher/lib/pem.d.cts +0 -715
  253. package/node_modules/path-expression-matcher/lib/pem.min.js +0 -2
  254. package/node_modules/path-expression-matcher/lib/pem.min.js.map +0 -1
  255. package/node_modules/path-expression-matcher/package.json +0 -79
  256. package/node_modules/path-expression-matcher/src/Expression.js +0 -232
  257. package/node_modules/path-expression-matcher/src/ExpressionSet.js +0 -225
  258. package/node_modules/path-expression-matcher/src/Matcher.js +0 -660
  259. package/node_modules/path-expression-matcher/src/index.d.ts +0 -589
  260. package/node_modules/path-expression-matcher/src/index.js +0 -29
  261. package/node_modules/xml-naming/README.md +0 -189
  262. package/node_modules/xml-naming/package.json +0 -54
  263. package/node_modules/xml-naming/src/index.d.ts +0 -74
  264. package/node_modules/xml-naming/src/index.js +0 -270
  265. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/LICENSE +0 -0
  266. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/bin/js-yaml.js +0 -0
  267. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/index.js +0 -0
  268. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/common.js +0 -0
  269. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/dumper.js +0 -0
  270. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/exception.js +0 -0
  271. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/mark.js +0 -0
  272. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/core.js +0 -0
  273. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_full.js +0 -0
  274. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_safe.js +0 -0
  275. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/failsafe.js +0 -0
  276. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/json.js +0 -0
  277. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema.js +0 -0
  278. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/binary.js +0 -0
  279. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/bool.js +0 -0
  280. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/float.js +0 -0
  281. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/int.js +0 -0
  282. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/function.js +0 -0
  283. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/regexp.js +0 -0
  284. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/undefined.js +0 -0
  285. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/map.js +0 -0
  286. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/merge.js +0 -0
  287. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/null.js +0 -0
  288. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/omap.js +0 -0
  289. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/pairs.js +0 -0
  290. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/seq.js +0 -0
  291. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/set.js +0 -0
  292. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/str.js +0 -0
  293. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/timestamp.js +0 -0
  294. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type.js +0 -0
  295. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml.js +0 -0
@@ -1,38 +0,0 @@
1
- const defaultOptions = {
2
- maxLength: 200,
3
- // locale: "en-IN"
4
- }
5
- const localeMap = {
6
- "$":"en-US",
7
- "€":"de-DE",
8
- "£":"en-GB",
9
- "¥":"ja-JP",
10
- "₹":"en-IN",
11
- }
12
- const sign = "(?:-|\+)?";
13
- const digitsAndSeparator = "(?:\d+|\d{1,3}(?:,\d{3})+)";
14
- const decimalPart = "(?:\.\d{1,2})?";
15
- const symbol = "(?:\$|€|¥|₹)?";
16
-
17
- const currencyCheckRegex = /^\s*(?:-|\+)?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d{1,2})?\s*(?:\$|€|¥|₹)?\s*$/u;
18
-
19
- export default class CurrencyParser{
20
- constructor(options){
21
- this.options = options || defaultOptions;
22
- }
23
- parse(val){
24
- if (typeof val === 'string' && val.length <= this.options.maxLength) {
25
- if(val.indexOf(",,") !== -1 && val.indexOf(".." !== -1)){
26
- const match = val.match(currencyCheckRegex);
27
- if(match){
28
- const locale = this.options.locale || localeMap[match[2]||match[5]||"₹"];
29
- const formatter = new Intl.NumberFormat(locale)
30
- val = val.replace(/[^0-9,.]/g, '').trim();
31
- val = Number(val.replace(formatter.format(1000)[1], ''));
32
- }
33
- }
34
- }
35
- return val;
36
- }
37
- }
38
- CurrencyParser.defaultOptions = defaultOptions;
@@ -1,13 +0,0 @@
1
- /**
2
- *
3
- * @param {array} val
4
- * @param {string} by
5
- * @returns
6
- */
7
- export default function join(val, by=" "){
8
- if(isArray(val)){
9
- val.join(by)
10
- }
11
- return val;
12
- }
13
-
@@ -1,14 +0,0 @@
1
- import toNumber from "strnum";
2
-
3
-
4
- export default class numParser{
5
- constructor(options){
6
- this.options = options;
7
- }
8
- parse(val){
9
- if (typeof val === 'string') {
10
- val = toNumber(val,this.options);
11
- }
12
- return val;
13
- }
14
- }
@@ -1,6 +0,0 @@
1
- export default class trimmer{
2
- parse(val){
3
- if(typeof val === "string") return val.trim();
4
- else return val;
5
- }
6
- }
@@ -1,425 +0,0 @@
1
- 'use strict';
2
-
3
- import { getAllMatches, isName } from './util.js';
4
-
5
- const defaultOptions = {
6
- allowBooleanAttributes: false, //A tag can have attributes without any value
7
- unpairedTags: []
8
- };
9
-
10
- //const tagsPattern = new RegExp("<\\/?([\\w:\\-_\.]+)\\s*\/?>","g");
11
- export function validate(xmlData, options) {
12
- options = Object.assign({}, defaultOptions, options);
13
-
14
- //xmlData = xmlData.replace(/(\r\n|\n|\r)/gm,"");//make it single line
15
- //xmlData = xmlData.replace(/(^\s*<\?xml.*?\?>)/g,"");//Remove XML starting tag
16
- //xmlData = xmlData.replace(/(<!DOCTYPE[\s\w\"\.\/\-\:]+(\[.*\])*\s*>)/g,"");//Remove DOCTYPE
17
- const tags = [];
18
- let tagFound = false;
19
-
20
- //indicates that the root tag has been closed (aka. depth 0 has been reached)
21
- let reachedRoot = false;
22
-
23
- if (xmlData[0] === '\ufeff') {
24
- // check for byte order mark (BOM)
25
- xmlData = xmlData.substr(1);
26
- }
27
-
28
- for (let i = 0; i < xmlData.length; i++) {
29
-
30
- if (xmlData[i] === '<' && xmlData[i + 1] === '?') {
31
- i += 2;
32
- i = readPI(xmlData, i);
33
- if (i.err) return i;
34
- } else if (xmlData[i] === '<') {
35
- //starting of tag
36
- //read until you reach to '>' avoiding any '>' in attribute value
37
- let tagStartPos = i;
38
- i++;
39
-
40
- if (xmlData[i] === '!') {
41
- i = readCommentAndCDATA(xmlData, i);
42
- continue;
43
- } else {
44
- let closingTag = false;
45
- if (xmlData[i] === '/') {
46
- //closing tag
47
- closingTag = true;
48
- i++;
49
- }
50
- //read tagname
51
- let tagName = '';
52
- for (; i < xmlData.length &&
53
- xmlData[i] !== '>' &&
54
- xmlData[i] !== ' ' &&
55
- xmlData[i] !== '\t' &&
56
- xmlData[i] !== '\n' &&
57
- xmlData[i] !== '\r'; i++
58
- ) {
59
- tagName += xmlData[i];
60
- }
61
- tagName = tagName.trim();
62
- //console.log(tagName);
63
-
64
- if (tagName[tagName.length - 1] === '/') {
65
- //self closing tag without attributes
66
- tagName = tagName.substring(0, tagName.length - 1);
67
- //continue;
68
- i--;
69
- }
70
- if (!validateTagName(tagName)) {
71
- let msg;
72
- if (tagName.trim().length === 0) {
73
- msg = "Invalid space after '<'.";
74
- } else {
75
- msg = "Tag '" + tagName + "' is an invalid name.";
76
- }
77
- return getErrorObject('InvalidTag', msg, getLineNumberForPosition(xmlData, i));
78
- }
79
-
80
- const result = readAttributeStr(xmlData, i);
81
- if (result === false) {
82
- return getErrorObject('InvalidAttr', "Attributes for '" + tagName + "' have open quote.", getLineNumberForPosition(xmlData, i));
83
- }
84
- let attrStr = result.value;
85
- i = result.index;
86
-
87
- if (attrStr[attrStr.length - 1] === '/') {
88
- //self closing tag
89
- const attrStrStart = i - attrStr.length;
90
- attrStr = attrStr.substring(0, attrStr.length - 1);
91
- const isValid = validateAttributeString(attrStr, options);
92
- if (isValid === true) {
93
- tagFound = true;
94
- //continue; //text may presents after self closing tag
95
- } else {
96
- //the result from the nested function returns the position of the error within the attribute
97
- //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute
98
- //this gives us the absolute index in the entire xml, which we can use to find the line at last
99
- return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line));
100
- }
101
- } else if (closingTag) {
102
- if (!result.tagClosed) {
103
- return getErrorObject('InvalidTag', "Closing tag '" + tagName + "' doesn't have proper closing.", getLineNumberForPosition(xmlData, i));
104
- } else if (attrStr.trim().length > 0) {
105
- return getErrorObject('InvalidTag', "Closing tag '" + tagName + "' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos));
106
- } else if (tags.length === 0) {
107
- return getErrorObject('InvalidTag', "Closing tag '" + tagName + "' has not been opened.", getLineNumberForPosition(xmlData, tagStartPos));
108
- } else {
109
- const otg = tags.pop();
110
- if (tagName !== otg.tagName) {
111
- let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos);
112
- return getErrorObject('InvalidTag',
113
- "Expected closing tag '" + otg.tagName + "' (opened in line " + openPos.line + ", col " + openPos.col + ") instead of closing tag '" + tagName + "'.",
114
- getLineNumberForPosition(xmlData, tagStartPos));
115
- }
116
-
117
- //when there are no more tags, we reached the root level.
118
- if (tags.length == 0) {
119
- reachedRoot = true;
120
- }
121
- }
122
- } else {
123
- const isValid = validateAttributeString(attrStr, options);
124
- if (isValid !== true) {
125
- //the result from the nested function returns the position of the error within the attribute
126
- //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute
127
- //this gives us the absolute index in the entire xml, which we can use to find the line at last
128
- return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line));
129
- }
130
-
131
- //if the root level has been reached before ...
132
- if (reachedRoot === true) {
133
- return getErrorObject('InvalidXml', 'Multiple possible root nodes found.', getLineNumberForPosition(xmlData, i));
134
- } else if (options.unpairedTags.indexOf(tagName) !== -1) {
135
- //don't push into stack
136
- } else {
137
- tags.push({ tagName, tagStartPos });
138
- }
139
- tagFound = true;
140
- }
141
-
142
- //skip tag text value
143
- //It may include comments and CDATA value
144
- for (i++; i < xmlData.length; i++) {
145
- if (xmlData[i] === '<') {
146
- if (xmlData[i + 1] === '!') {
147
- //comment or CADATA
148
- i++;
149
- i = readCommentAndCDATA(xmlData, i);
150
- continue;
151
- } else if (xmlData[i + 1] === '?') {
152
- i = readPI(xmlData, ++i);
153
- if (i.err) return i;
154
- } else {
155
- break;
156
- }
157
- } else if (xmlData[i] === '&') {
158
- const afterAmp = validateAmpersand(xmlData, i);
159
- if (afterAmp == -1)
160
- return getErrorObject('InvalidChar', "char '&' is not expected.", getLineNumberForPosition(xmlData, i));
161
- i = afterAmp;
162
- } else {
163
- if (reachedRoot === true && !isWhiteSpace(xmlData[i])) {
164
- return getErrorObject('InvalidXml', "Extra text at the end", getLineNumberForPosition(xmlData, i));
165
- }
166
- }
167
- } //end of reading tag text value
168
- if (xmlData[i] === '<') {
169
- i--;
170
- }
171
- }
172
- } else {
173
- if (isWhiteSpace(xmlData[i])) {
174
- continue;
175
- }
176
- return getErrorObject('InvalidChar', "char '" + xmlData[i] + "' is not expected.", getLineNumberForPosition(xmlData, i));
177
- }
178
- }
179
-
180
- if (!tagFound) {
181
- return getErrorObject('InvalidXml', 'Start tag expected.', 1);
182
- } else if (tags.length == 1) {
183
- return getErrorObject('InvalidTag', "Unclosed tag '" + tags[0].tagName + "'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos));
184
- } else if (tags.length > 0) {
185
- return getErrorObject('InvalidXml', "Invalid '" +
186
- JSON.stringify(tags.map(t => t.tagName), null, 4).replace(/\r?\n/g, '') +
187
- "' found.", { line: 1, col: 1 });
188
- }
189
-
190
- return true;
191
- };
192
-
193
- function isWhiteSpace(char) {
194
- return char === ' ' || char === '\t' || char === '\n' || char === '\r';
195
- }
196
- /**
197
- * Read Processing insstructions and skip
198
- * @param {*} xmlData
199
- * @param {*} i
200
- */
201
- function readPI(xmlData, i) {
202
- const start = i;
203
- for (; i < xmlData.length; i++) {
204
- if (xmlData[i] == '?' || xmlData[i] == ' ') {
205
- //tagname
206
- const tagname = xmlData.substr(start, i - start);
207
- if (i > 5 && tagname === 'xml') {
208
- return getErrorObject('InvalidXml', 'XML declaration allowed only at the start of the document.', getLineNumberForPosition(xmlData, i));
209
- } else if (xmlData[i] == '?' && xmlData[i + 1] == '>') {
210
- //check if valid attribut string
211
- i++;
212
- break;
213
- } else {
214
- continue;
215
- }
216
- }
217
- }
218
- return i;
219
- }
220
-
221
- function readCommentAndCDATA(xmlData, i) {
222
- if (xmlData.length > i + 5 && xmlData[i + 1] === '-' && xmlData[i + 2] === '-') {
223
- //comment
224
- for (i += 3; i < xmlData.length; i++) {
225
- if (xmlData[i] === '-' && xmlData[i + 1] === '-' && xmlData[i + 2] === '>') {
226
- i += 2;
227
- break;
228
- }
229
- }
230
- } else if (
231
- xmlData.length > i + 8 &&
232
- xmlData[i + 1] === 'D' &&
233
- xmlData[i + 2] === 'O' &&
234
- xmlData[i + 3] === 'C' &&
235
- xmlData[i + 4] === 'T' &&
236
- xmlData[i + 5] === 'Y' &&
237
- xmlData[i + 6] === 'P' &&
238
- xmlData[i + 7] === 'E'
239
- ) {
240
- let angleBracketsCount = 1;
241
- for (i += 8; i < xmlData.length; i++) {
242
- if (xmlData[i] === '<') {
243
- angleBracketsCount++;
244
- } else if (xmlData[i] === '>') {
245
- angleBracketsCount--;
246
- if (angleBracketsCount === 0) {
247
- break;
248
- }
249
- }
250
- }
251
- } else if (
252
- xmlData.length > i + 9 &&
253
- xmlData[i + 1] === '[' &&
254
- xmlData[i + 2] === 'C' &&
255
- xmlData[i + 3] === 'D' &&
256
- xmlData[i + 4] === 'A' &&
257
- xmlData[i + 5] === 'T' &&
258
- xmlData[i + 6] === 'A' &&
259
- xmlData[i + 7] === '['
260
- ) {
261
- for (i += 8; i < xmlData.length; i++) {
262
- if (xmlData[i] === ']' && xmlData[i + 1] === ']' && xmlData[i + 2] === '>') {
263
- i += 2;
264
- break;
265
- }
266
- }
267
- }
268
-
269
- return i;
270
- }
271
-
272
- const doubleQuote = '"';
273
- const singleQuote = "'";
274
-
275
- /**
276
- * Keep reading xmlData until '<' is found outside the attribute value.
277
- * @param {string} xmlData
278
- * @param {number} i
279
- */
280
- function readAttributeStr(xmlData, i) {
281
- let attrStr = '';
282
- let startChar = '';
283
- let tagClosed = false;
284
- for (; i < xmlData.length; i++) {
285
- if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) {
286
- if (startChar === '') {
287
- startChar = xmlData[i];
288
- } else if (startChar !== xmlData[i]) {
289
- //if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa
290
- } else {
291
- startChar = '';
292
- }
293
- } else if (xmlData[i] === '>') {
294
- if (startChar === '') {
295
- tagClosed = true;
296
- break;
297
- }
298
- }
299
- attrStr += xmlData[i];
300
- }
301
- if (startChar !== '') {
302
- return false;
303
- }
304
-
305
- return {
306
- value: attrStr,
307
- index: i,
308
- tagClosed: tagClosed
309
- };
310
- }
311
-
312
- /**
313
- * Select all the attributes whether valid or invalid.
314
- */
315
- const validAttrStrRegxp = new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?', 'g');
316
-
317
- //attr, ="sd", a="amit's", a="sd"b="saf", ab cd=""
318
-
319
- function validateAttributeString(attrStr, options) {
320
- //console.log("start:"+attrStr+":end");
321
-
322
- //if(attrStr.trim().length === 0) return true; //empty string
323
-
324
- const matches = getAllMatches(attrStr, validAttrStrRegxp);
325
- const attrNames = {};
326
-
327
- for (let i = 0; i < matches.length; i++) {
328
- if (matches[i][1].length === 0) {
329
- //nospace before attribute name: a="sd"b="saf"
330
- return getErrorObject('InvalidAttr', "Attribute '" + matches[i][2] + "' has no space in starting.", getPositionFromMatch(matches[i]))
331
- } else if (matches[i][3] !== undefined && matches[i][4] === undefined) {
332
- return getErrorObject('InvalidAttr', "Attribute '" + matches[i][2] + "' is without value.", getPositionFromMatch(matches[i]));
333
- } else if (matches[i][3] === undefined && !options.allowBooleanAttributes) {
334
- //independent attribute: ab
335
- return getErrorObject('InvalidAttr', "boolean attribute '" + matches[i][2] + "' is not allowed.", getPositionFromMatch(matches[i]));
336
- }
337
- /* else if(matches[i][6] === undefined){//attribute without value: ab=
338
- return { err: { code:"InvalidAttr",msg:"attribute " + matches[i][2] + " has no value assigned."}};
339
- } */
340
- const attrName = matches[i][2];
341
- if (!validateAttrName(attrName)) {
342
- return getErrorObject('InvalidAttr', "Attribute '" + attrName + "' is an invalid name.", getPositionFromMatch(matches[i]));
343
- }
344
- if (!Object.prototype.hasOwnProperty.call(attrNames, attrName)) {
345
- //check for duplicate attribute.
346
- attrNames[attrName] = 1;
347
- } else {
348
- return getErrorObject('InvalidAttr', "Attribute '" + attrName + "' is repeated.", getPositionFromMatch(matches[i]));
349
- }
350
- }
351
-
352
- return true;
353
- }
354
-
355
- function validateNumberAmpersand(xmlData, i) {
356
- let re = /\d/;
357
- if (xmlData[i] === 'x') {
358
- i++;
359
- re = /[\da-fA-F]/;
360
- }
361
- for (; i < xmlData.length; i++) {
362
- if (xmlData[i] === ';')
363
- return i;
364
- if (!xmlData[i].match(re))
365
- break;
366
- }
367
- return -1;
368
- }
369
-
370
- function validateAmpersand(xmlData, i) {
371
- // https://www.w3.org/TR/xml/#dt-charref
372
- i++;
373
- if (xmlData[i] === ';')
374
- return -1;
375
- if (xmlData[i] === '#') {
376
- i++;
377
- return validateNumberAmpersand(xmlData, i);
378
- }
379
- let count = 0;
380
- for (; i < xmlData.length; i++, count++) {
381
- if (xmlData[i].match(/\w/) && count < 20)
382
- continue;
383
- if (xmlData[i] === ';')
384
- break;
385
- return -1;
386
- }
387
- return i;
388
- }
389
-
390
- function getErrorObject(code, message, lineNumber) {
391
- return {
392
- err: {
393
- code: code,
394
- msg: message,
395
- line: lineNumber.line || lineNumber,
396
- col: lineNumber.col,
397
- },
398
- };
399
- }
400
-
401
- function validateAttrName(attrName) {
402
- return isName(attrName);
403
- }
404
-
405
- // const startsWithXML = /^xml/i;
406
-
407
- function validateTagName(tagname) {
408
- return isName(tagname) /* && !tagname.match(startsWithXML) */;
409
- }
410
-
411
- //this function returns the line number for the character at the given index
412
- function getLineNumberForPosition(xmlData, index) {
413
- const lines = xmlData.substring(0, index).split(/\r?\n/);
414
- return {
415
- line: lines.length,
416
-
417
- // column number is last line's length + 1, because column numbering starts at 1:
418
- col: lines[lines.length - 1].length + 1
419
- };
420
- }
421
-
422
- //this function returns the position of the first character of match within attrStr
423
- function getPositionFromMatch(match) {
424
- return match.startIndex + match[1].length;
425
- }
@@ -1,6 +0,0 @@
1
- // Re-export from fast-xml-builder for backward compatibility
2
- import XMLBuilder from 'fast-xml-builder';
3
- export default XMLBuilder;
4
-
5
- // If there are any named exports you also want to re-export:
6
- export * from 'fast-xml-builder';