@cdklabs/cdk-construct-connect-datalake 0.0.0 → 0.0.2

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 (355) hide show
  1. package/.jsii +10 -10
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +2 -2
  5. package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +2 -2
  6. package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +1 -1
  7. package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
  8. package/node_modules/@aws-sdk/client-cloudformation/README.md +26 -46
  9. package/node_modules/@aws-sdk/client-cloudformation/package.json +39 -39
  10. package/node_modules/@aws-sdk/client-connect/README.md +47 -46
  11. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +43 -0
  12. package/node_modules/@aws-sdk/client-connect/dist-cjs/schemas/schemas_0.js +109 -41
  13. package/node_modules/@aws-sdk/client-connect/dist-es/Connect.js +6 -0
  14. package/node_modules/@aws-sdk/client-connect/dist-es/commands/AssociateQueueEmailAddressesCommand.js +16 -0
  15. package/node_modules/@aws-sdk/client-connect/dist-es/commands/DisassociateQueueEmailAddressesCommand.js +16 -0
  16. package/node_modules/@aws-sdk/client-connect/dist-es/commands/ListQueueEmailAddressesCommand.js +16 -0
  17. package/node_modules/@aws-sdk/client-connect/dist-es/commands/index.js +3 -0
  18. package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +1 -0
  19. package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +78 -10
  20. package/node_modules/@aws-sdk/client-connect/dist-types/Connect.d.ts +21 -0
  21. package/node_modules/@aws-sdk/client-connect/dist-types/ConnectClient.d.ts +5 -2
  22. package/node_modules/@aws-sdk/client-connect/dist-types/commands/AssociateQueueEmailAddressesCommand.d.ts +120 -0
  23. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateQueueCommand.d.ts +5 -0
  24. package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateTestCaseCommand.d.ts +4 -1
  25. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeContactEvaluationCommand.d.ts +4 -2
  26. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeTestCaseCommand.d.ts +4 -1
  27. package/node_modules/@aws-sdk/client-connect/dist-types/commands/DisassociateQueueEmailAddressesCommand.d.ts +109 -0
  28. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetTestCaseExecutionSummaryCommand.d.ts +2 -1
  29. package/node_modules/@aws-sdk/client-connect/dist-types/commands/GetTrafficDistributionCommand.d.ts +1 -2
  30. package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListQueueEmailAddressesCommand.d.ts +121 -0
  31. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchContactEvaluationsCommand.d.ts +1 -2
  32. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchRoutingProfilesCommand.d.ts +1 -2
  33. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchSecurityProfilesCommand.d.ts +1 -2
  34. package/node_modules/@aws-sdk/client-connect/dist-types/commands/SearchTestCasesCommand.d.ts +5 -3
  35. package/node_modules/@aws-sdk/client-connect/dist-types/commands/UpdateTestCaseCommand.d.ts +4 -1
  36. package/node_modules/@aws-sdk/client-connect/dist-types/commands/index.d.ts +3 -0
  37. package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +1 -0
  38. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +62 -88
  39. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +137 -81
  40. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +147 -148
  41. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +150 -3
  42. package/node_modules/@aws-sdk/client-connect/dist-types/schemas/schemas_0.d.ts +10 -0
  43. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/Connect.d.ts +51 -0
  44. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/ConnectClient.d.ts +18 -0
  45. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/AssociateQueueEmailAddressesCommand.d.ts +47 -0
  46. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/DisassociateQueueEmailAddressesCommand.d.ts +47 -0
  47. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetTestCaseExecutionSummaryCommand.d.ts +2 -4
  48. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/GetTrafficDistributionCommand.d.ts +4 -2
  49. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/ListQueueEmailAddressesCommand.d.ts +51 -0
  50. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchRoutingProfilesCommand.d.ts +4 -2
  51. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchSecurityProfilesCommand.d.ts +4 -2
  52. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/SearchTestCasesCommand.d.ts +4 -2
  53. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/commands/index.d.ts +3 -0
  54. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +1 -0
  55. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_0.d.ts +14 -20
  56. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_1.d.ts +30 -24
  57. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +35 -35
  58. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_3.d.ts +34 -3
  59. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -0
  60. package/node_modules/@aws-sdk/client-connect/package.json +38 -38
  61. package/node_modules/@aws-sdk/client-glue/README.md +26 -46
  62. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +5 -0
  63. package/node_modules/@aws-sdk/client-glue/dist-cjs/schemas/schemas_0.js +5 -4
  64. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +4 -0
  65. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +5 -4
  66. package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetPartitionCommand.d.ts +16 -0
  67. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCatalogCommand.d.ts +1 -0
  68. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateDataQualityRulesetCommand.d.ts +1 -2
  69. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCatalogCommand.d.ts +1 -0
  70. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +12 -0
  71. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +50 -43
  72. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +41 -21
  73. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +23 -33
  74. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateDataQualityRulesetCommand.d.ts +4 -2
  75. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +6 -0
  76. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +13 -9
  77. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +9 -5
  78. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +6 -8
  79. package/node_modules/@aws-sdk/client-glue/package.json +38 -38
  80. package/node_modules/@aws-sdk/client-lakeformation/README.md +26 -46
  81. package/node_modules/@aws-sdk/client-lakeformation/package.json +39 -39
  82. package/node_modules/@aws-sdk/client-ram/README.md +26 -46
  83. package/node_modules/@aws-sdk/client-ram/dist-cjs/schemas/schemas_0.js +14 -6
  84. package/node_modules/@aws-sdk/client-ram/dist-es/schemas/schemas_0.js +12 -4
  85. package/node_modules/@aws-sdk/client-ram/dist-types/commands/CreateResourceShareCommand.d.ts +6 -0
  86. package/node_modules/@aws-sdk/client-ram/dist-types/commands/GetResourceSharesCommand.d.ts +3 -0
  87. package/node_modules/@aws-sdk/client-ram/dist-types/commands/UpdateResourceShareCommand.d.ts +3 -0
  88. package/node_modules/@aws-sdk/client-ram/dist-types/models/models_0.d.ts +21 -0
  89. package/node_modules/@aws-sdk/client-ram/dist-types/schemas/schemas_0.d.ts +1 -0
  90. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/models/models_0.d.ts +5 -0
  91. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  92. package/node_modules/@aws-sdk/client-ram/package.json +38 -38
  93. package/node_modules/@aws-sdk/client-sts/README.md +26 -46
  94. package/node_modules/@aws-sdk/client-sts/package.json +43 -39
  95. package/node_modules/@aws-sdk/core/dist-cjs/index.js +11 -15
  96. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +11 -15
  97. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -0
  98. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -8
  99. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +3 -0
  100. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -7
  101. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -0
  102. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +4 -0
  103. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +3 -0
  104. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
  105. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -0
  106. package/node_modules/@aws-sdk/core/package.json +14 -14
  107. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  108. package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -11
  109. package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
  110. package/node_modules/@aws-sdk/credential-provider-login/package.json +9 -9
  111. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  112. package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
  113. package/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -9
  114. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
  115. package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
  116. package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
  117. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
  118. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +9 -9
  119. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +9 -9
  120. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +4 -2
  121. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +3 -3
  122. package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -8
  123. package/node_modules/@aws-sdk/nested-clients/package.json +39 -37
  124. package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
  125. package/node_modules/@aws-sdk/token-providers/package.json +8 -8
  126. package/node_modules/@aws-sdk/types/package.json +3 -3
  127. package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
  128. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  129. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
  130. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +87 -14
  131. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js +15 -0
  132. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js +14 -0
  133. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
  134. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +59 -8
  135. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getNodeModulesParentDirs.d.ts +10 -0
  136. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedDevTypeScriptVersion.d.ts +8 -0
  137. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
  138. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getNodeModulesParentDirs.d.ts +1 -0
  139. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedDevTypeScriptVersion.d.ts +3 -0
  140. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
  141. package/node_modules/@aws-sdk/util-user-agent-node/package.json +7 -6
  142. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +21 -11
  143. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +5 -0
  144. package/node_modules/@aws-sdk/xml-builder/dist-es/escape-attribute.js +8 -1
  145. package/node_modules/@aws-sdk/xml-builder/dist-es/escape-element.js +13 -10
  146. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +5 -0
  147. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +59 -0
  148. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/README.md +8 -7
  149. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
  150. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
  151. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  152. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +97 -21
  153. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  154. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  155. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  156. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  157. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
  158. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
  159. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/pem.d.cts +148 -0
  160. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +5 -3
  161. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +91 -19
  162. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +1 -1
  163. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/pem.d.ts +135 -0
  164. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +18 -25
  165. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +87 -87
  166. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +10 -10
  167. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
  168. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
  169. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
  170. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +17 -17
  171. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +22 -22
  172. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +85 -85
  173. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +34 -34
  174. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -284
  175. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +37 -18
  176. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +78 -5
  177. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +317 -113
  178. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +23 -23
  179. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +96 -42
  180. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +10 -10
  181. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +9 -2
  182. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +1 -0
  183. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +3 -3
  184. package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/strnum.js +161 -0
  185. package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/tests/infinity_test.js +18 -0
  186. package/node_modules/{strnum/strnum.test.js → @aws-sdk/xml-builder/node_modules/strnum/tests/strnum_test.js} +70 -68
  187. package/node_modules/@aws-sdk/xml-builder/node_modules/strnum/tests/temp.js +8 -0
  188. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  189. package/node_modules/@smithy/abort-controller/package.json +3 -3
  190. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +12 -0
  191. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +5 -0
  192. package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +5 -0
  193. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +6 -0
  194. package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +6 -0
  195. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +6 -0
  196. package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +6 -0
  197. package/node_modules/@smithy/config-resolver/package.json +7 -7
  198. package/node_modules/@smithy/core/dist-cjs/index.js +1 -2
  199. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +9 -9
  200. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
  201. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +1 -1
  202. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +11 -1
  203. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +42 -5
  204. package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -2
  205. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
  206. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +7 -1
  207. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +1 -0
  208. package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +17 -0
  209. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -1
  210. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -0
  211. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
  212. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -2
  213. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +31 -2
  214. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +5 -1
  215. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +1 -0
  216. package/node_modules/@smithy/core/dist-types/submodules/endpoints/toEndpointV1.d.ts +6 -0
  217. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
  218. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +6 -0
  219. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +1 -0
  220. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/toEndpointV1.d.ts +6 -0
  221. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
  222. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +6 -0
  223. package/node_modules/@smithy/core/endpoints.d.ts +7 -0
  224. package/node_modules/@smithy/core/endpoints.js +6 -0
  225. package/node_modules/@smithy/core/package.json +21 -12
  226. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  227. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +21 -4
  228. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +21 -4
  229. package/node_modules/@smithy/fetch-http-handler/package.json +7 -7
  230. package/node_modules/@smithy/hash-node/package.json +5 -5
  231. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  232. package/node_modules/@smithy/is-array-buffer/package.json +2 -2
  233. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  234. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +17 -1
  235. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +9 -0
  236. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +8 -1
  237. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -0
  238. package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +2 -2
  239. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +1 -0
  240. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +2 -2
  241. package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
  242. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +9 -12
  243. package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +9 -12
  244. package/node_modules/@smithy/middleware-retry/package.json +10 -10
  245. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +3 -2
  246. package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +3 -2
  247. package/node_modules/@smithy/middleware-serde/package.json +5 -4
  248. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  249. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  250. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +68 -45
  251. package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
  252. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +41 -35
  253. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
  254. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -5
  255. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
  256. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
  257. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
  258. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
  259. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
  260. package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
  261. package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
  262. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
  263. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
  264. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
  265. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
  266. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
  267. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
  268. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
  269. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
  270. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
  271. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
  272. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
  273. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
  274. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
  275. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
  276. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
  277. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
  278. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
  279. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
  280. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
  281. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
  282. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
  283. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
  284. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
  285. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
  286. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
  287. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
  288. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  289. package/node_modules/@smithy/property-provider/package.json +3 -3
  290. package/node_modules/@smithy/protocol-http/package.json +3 -3
  291. package/node_modules/@smithy/querystring-builder/package.json +4 -4
  292. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  293. package/node_modules/@smithy/service-error-classification/package.json +3 -3
  294. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  295. package/node_modules/@smithy/signature-v4/package.json +9 -9
  296. package/node_modules/@smithy/smithy-client/package.json +8 -8
  297. package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
  298. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
  299. package/node_modules/@smithy/types/package.json +1 -1
  300. package/node_modules/@smithy/url-parser/package.json +4 -4
  301. package/node_modules/@smithy/util-base64/package.json +4 -4
  302. package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
  303. package/node_modules/@smithy/util-body-length-node/package.json +2 -2
  304. package/node_modules/@smithy/util-buffer-from/package.json +3 -3
  305. package/node_modules/@smithy/util-config-provider/package.json +2 -2
  306. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
  307. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
  308. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  309. package/node_modules/@smithy/util-hex-encoding/package.json +2 -2
  310. package/node_modules/@smithy/util-middleware/package.json +3 -3
  311. package/node_modules/@smithy/util-retry/package.json +4 -4
  312. package/node_modules/@smithy/util-stream/package.json +9 -9
  313. package/node_modules/@smithy/util-uri-escape/package.json +2 -2
  314. package/node_modules/@smithy/util-utf8/package.json +3 -3
  315. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +1 -1
  316. package/node_modules/@smithy/util-waiter/dist-es/poller.js +1 -1
  317. package/node_modules/@smithy/util-waiter/package.json +4 -4
  318. package/node_modules/@smithy/uuid/package.json +2 -2
  319. package/node_modules/fast-xml-builder/CHANGELOG.md +16 -0
  320. package/node_modules/fast-xml-builder/LICENSE +21 -0
  321. package/node_modules/fast-xml-builder/README.md +23 -0
  322. package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -0
  323. package/node_modules/fast-xml-builder/lib/fxb.d.cts +180 -0
  324. package/node_modules/fast-xml-builder/lib/fxb.min.js +2 -0
  325. package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -0
  326. package/node_modules/fast-xml-builder/package.json +80 -0
  327. package/node_modules/fast-xml-builder/src/fxb.d.ts +180 -0
  328. package/node_modules/fast-xml-builder/src/fxb.js +529 -0
  329. package/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
  330. package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +292 -0
  331. package/node_modules/path-expression-matcher/LICENSE +21 -0
  332. package/node_modules/path-expression-matcher/README.md +720 -0
  333. package/node_modules/path-expression-matcher/lib/pem.cjs +1 -0
  334. package/node_modules/path-expression-matcher/lib/pem.d.cts +523 -0
  335. package/node_modules/path-expression-matcher/lib/pem.min.js +2 -0
  336. package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -0
  337. package/node_modules/path-expression-matcher/package.json +78 -0
  338. package/node_modules/path-expression-matcher/src/Expression.js +232 -0
  339. package/node_modules/path-expression-matcher/src/Matcher.js +498 -0
  340. package/node_modules/path-expression-matcher/src/index.d.ts +518 -0
  341. package/node_modules/path-expression-matcher/src/index.js +28 -0
  342. package/node_modules/xml2js/node_modules/sax/lib/sax.js +151 -7
  343. package/node_modules/xml2js/node_modules/sax/package.json +5 -2
  344. package/package.json +10 -10
  345. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +0 -14
  346. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +0 -9
  347. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +0 -1
  348. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +0 -134
  349. package/node_modules/strnum/strnum.js +0 -129
  350. package/node_modules/strnum/test.js +0 -9
  351. /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/.github/SECURITY.md +0 -0
  352. /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/.vscode/launch.json +0 -0
  353. /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
  354. /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/algo.stflow +0 -0
  355. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/prettifyJs2Xml.js +0 -0
@@ -63,9 +63,13 @@
63
63
  clearBuffers(parser)
64
64
  parser.q = parser.c = ''
65
65
  parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH
66
+ parser.encoding = null;
66
67
  parser.opt = opt || {}
67
68
  parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags
68
69
  parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase'
70
+ parser.opt.maxEntityCount = parser.opt.maxEntityCount || 512
71
+ parser.opt.maxEntityDepth = parser.opt.maxEntityDepth || 4
72
+ parser.entityCount = parser.entityDepth = 0
69
73
  parser.tags = []
70
74
  parser.closed = parser.closedRoot = parser.sawRoot = false
71
75
  parser.tag = parser.error = null
@@ -204,6 +208,39 @@
204
208
  return new SAXStream(strict, opt)
205
209
  }
206
210
 
211
+ function determineBufferEncoding(data, isEnd) {
212
+ // BOM-based detection is the most reliable signal when present.
213
+ if (data.length >= 2) {
214
+ if (data[0] === 0xff && data[1] === 0xfe) {
215
+ return 'utf-16le'
216
+ }
217
+
218
+ if (data[0] === 0xfe && data[1] === 0xff) {
219
+ return 'utf-16be'
220
+ }
221
+ }
222
+
223
+ if (data.length >= 3 && data[0] === 0xef && data[1] === 0xbb && data[2] === 0xbf) {
224
+ return 'utf8'
225
+ }
226
+
227
+ if (data.length >= 4) {
228
+ // XML documents without a BOM still start with "<?xml", which is enough
229
+ // to distinguish UTF-16LE/BE from UTF-8 by looking at the zero bytes.
230
+ if (data[0] === 0x3c && data[1] === 0x00 && data[2] === 0x3f && data[3] === 0x00) {
231
+ return 'utf-16le'
232
+ }
233
+
234
+ if (data[0] === 0x00 && data[1] === 0x3c && data[2] === 0x00 && data[3] === 0x3f) {
235
+ return 'utf-16be'
236
+ }
237
+
238
+ return 'utf8'
239
+ }
240
+
241
+ return isEnd ? 'utf8' : null
242
+ }
243
+
207
244
  function SAXStream(strict, opt) {
208
245
  if (!(this instanceof SAXStream)) {
209
246
  return new SAXStream(strict, opt)
@@ -230,7 +267,7 @@
230
267
  }
231
268
 
232
269
  this._decoder = null
233
-
270
+ this._decoderBuffer = null
234
271
  streamWraps.forEach(function (ev) {
235
272
  Object.defineProperty(me, 'on' + ev, {
236
273
  get: function () {
@@ -256,16 +293,47 @@
256
293
  },
257
294
  })
258
295
 
296
+ SAXStream.prototype._decodeBuffer = function (data, isEnd) {
297
+ if (this._decoderBuffer) {
298
+ // Keep incomplete leading bytes until we have enough data to infer the
299
+ // stream encoding, then decode the buffered prefix together with the next chunk.
300
+ data = Buffer.concat([this._decoderBuffer, data])
301
+ this._decoderBuffer = null
302
+ }
303
+
304
+ if (!this._decoder) {
305
+ var encoding = determineBufferEncoding(data, isEnd)
306
+ if (!encoding) {
307
+ // A very short first chunk may not contain enough bytes to detect the
308
+ // encoding yet, so defer decoding until the next write/end call.
309
+ this._decoderBuffer = data
310
+ return ''
311
+ }
312
+
313
+ // Store the detected transport encoding so strict mode can compare it
314
+ // with the optional encoding declared in the XML prolog later on.
315
+ this._parser.encoding = encoding
316
+ this._decoder = new TextDecoder(encoding)
317
+ }
318
+
319
+ return this._decoder.decode(data, { stream: !isEnd })
320
+ }
321
+
259
322
  SAXStream.prototype.write = function (data) {
260
323
  if (
261
324
  typeof Buffer === 'function' &&
262
325
  typeof Buffer.isBuffer === 'function' &&
263
326
  Buffer.isBuffer(data)
264
327
  ) {
265
- if (!this._decoder) {
266
- this._decoder = new TextDecoder('utf8')
328
+ data = this._decodeBuffer(data, false)
329
+ } else if (this._decoderBuffer) {
330
+ // Flush any buffered binary prefix before handling a string chunk.
331
+ // This only matters if the caller mixes Buffer and string writes (used in test).
332
+ var remaining = this._decodeBuffer(Buffer.alloc(0), true)
333
+ if (remaining) {
334
+ this._parser.write(remaining)
335
+ this.emit('data', remaining)
267
336
  }
268
- data = this._decoder.decode(data, { stream: true })
269
337
  }
270
338
 
271
339
  this._parser.write(data.toString())
@@ -278,7 +346,13 @@
278
346
  this.write(chunk)
279
347
  }
280
348
  // Flush any remaining decoded data from the TextDecoder
281
- if (this._decoder) {
349
+ if (this._decoderBuffer) {
350
+ var finalChunk = this._decodeBuffer(Buffer.alloc(0), true)
351
+ if (finalChunk) {
352
+ this._parser.write(finalChunk)
353
+ this.emit('data', finalChunk)
354
+ }
355
+ } else if (this._decoder) {
282
356
  var remaining = this._decoder.decode()
283
357
  if (remaining) {
284
358
  this._parser.write(remaining)
@@ -671,6 +745,59 @@
671
745
  parser[event] && parser[event](data)
672
746
  }
673
747
 
748
+ function getDeclaredEncoding(body) {
749
+ var match = body && body.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i)
750
+ return match ? match[2] : null
751
+ }
752
+
753
+ function normalizeEncodingName(encoding) {
754
+ if (!encoding) {
755
+ return null
756
+ }
757
+
758
+ return encoding.toLowerCase().replace(/[^a-z0-9]/g, '')
759
+ }
760
+
761
+ function encodingsMatch(detectedEncoding, declaredEncoding) {
762
+ const detected = normalizeEncodingName(detectedEncoding)
763
+ const declared = normalizeEncodingName(declaredEncoding)
764
+
765
+ if (!detected || !declared) {
766
+ return true
767
+ }
768
+
769
+ if (declared === 'utf16') {
770
+ return detected === 'utf16le' || detected === 'utf16be'
771
+ }
772
+
773
+ return detected === declared
774
+ }
775
+
776
+ function validateXmlDeclarationEncoding(parser, data) {
777
+ if (
778
+ !parser.strict ||
779
+ !parser.encoding ||
780
+ !data ||
781
+ data.name !== 'xml'
782
+ ) {
783
+ return
784
+ }
785
+
786
+ var declaredEncoding = getDeclaredEncoding(data.body)
787
+ if (
788
+ declaredEncoding &&
789
+ !encodingsMatch(parser.encoding, declaredEncoding)
790
+ ) {
791
+ strictFail(
792
+ parser,
793
+ 'XML declaration encoding ' +
794
+ declaredEncoding +
795
+ ' does not match detected stream encoding ' +
796
+ parser.encoding.toUpperCase()
797
+ )
798
+ }
799
+ }
800
+
674
801
  function emitNode(parser, nodeType, data) {
675
802
  if (parser.textNode) closeText(parser)
676
803
  emit(parser, nodeType, data)
@@ -1376,10 +1503,12 @@
1376
1503
 
1377
1504
  case S.PROC_INST_ENDING:
1378
1505
  if (c === '>') {
1379
- emitNode(parser, 'onprocessinginstruction', {
1506
+ const procInstEndData = {
1380
1507
  name: parser.procInstName,
1381
1508
  body: parser.procInstBody,
1382
- })
1509
+ }
1510
+ validateXmlDeclarationEncoding(parser, procInstEndData)
1511
+ emitNode(parser, 'onprocessinginstruction', procInstEndData)
1383
1512
  parser.procInstName = parser.procInstBody = ''
1384
1513
  parser.state = S.TEXT
1385
1514
  } else {
@@ -1611,9 +1740,24 @@
1611
1740
  parser.opt.unparsedEntities &&
1612
1741
  !Object.values(sax.XML_ENTITIES).includes(parsedEntity)
1613
1742
  ) {
1743
+ if ((parser.entityCount += 1) > parser.opt.maxEntityCount) {
1744
+ error(
1745
+ parser,
1746
+ 'Parsed entity count exceeds max entity count'
1747
+ )
1748
+ }
1749
+
1750
+ if ((parser.entityDepth += 1) > parser.opt.maxEntityDepth) {
1751
+ error(
1752
+ parser,
1753
+ 'Parsed entity depth exceeds max entity depth'
1754
+ )
1755
+ }
1756
+
1614
1757
  parser.entity = ''
1615
1758
  parser.state = returnState
1616
1759
  parser.write(parsedEntity)
1760
+ parser.entityDepth -= 1
1617
1761
  } else {
1618
1762
  parser[buffer] += parsedEntity
1619
1763
  parser.entity = ''
@@ -2,7 +2,7 @@
2
2
  "name": "sax",
3
3
  "description": "An evented streaming XML parser in JavaScript",
4
4
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
5
- "version": "1.4.4",
5
+ "version": "1.6.0",
6
6
  "main": "lib/sax.js",
7
7
  "license": "BlueOak-1.0.0",
8
8
  "scripts": {
@@ -12,7 +12,10 @@
12
12
  "postpublish": "git push origin --all; git push origin --tags",
13
13
  "format": "prettier --write . --log-level warn"
14
14
  },
15
- "repository": "git://github.com/isaacs/sax-js.git",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+ssh://git@github.com/isaacs/sax-js.git"
18
+ },
16
19
  "files": [
17
20
  "lib/sax.js",
18
21
  "LICENSE",
package/package.json CHANGED
@@ -59,13 +59,13 @@
59
59
  "eslint-import-resolver-typescript": "^4.4.4",
60
60
  "eslint-plugin-import": "^2.32.0",
61
61
  "eslint-plugin-prettier": "^5.5.5",
62
- "jest": "^30.2.0",
62
+ "jest": "^30.3.0",
63
63
  "jest-junit": "^16",
64
64
  "jsii": "~5.9",
65
65
  "jsii-diff": "^1.127.0",
66
66
  "jsii-docgen": "^10.5.0",
67
67
  "jsii-pacmak": "^1.127.0",
68
- "jsii-rosetta": "^5.9.32",
68
+ "jsii-rosetta": "^5.9.36",
69
69
  "prettier": "^3.8.1",
70
70
  "projen": "^0.99.17",
71
71
  "ts-jest": "^29.4.6",
@@ -77,13 +77,13 @@
77
77
  "constructs": "^10.5.1"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.999.0",
81
- "@aws-sdk/client-connect": "^3.999.0",
82
- "@aws-sdk/client-glue": "^3.999.0",
83
- "@aws-sdk/client-lakeformation": "^3.999.0",
84
- "@aws-sdk/client-ram": "^3.999.0",
85
- "@aws-sdk/client-sts": "^3.999.0",
86
- "@aws-sdk/types": "^3.973.4",
80
+ "@aws-sdk/client-cloudformation": "^3.1014.0",
81
+ "@aws-sdk/client-connect": "^3.1014.0",
82
+ "@aws-sdk/client-glue": "^3.1014.0",
83
+ "@aws-sdk/client-lakeformation": "^3.1014.0",
84
+ "@aws-sdk/client-ram": "^3.1014.0",
85
+ "@aws-sdk/client-sts": "^3.1014.0",
86
+ "@aws-sdk/types": "^3.973.6",
87
87
  "@types/aws-lambda": "^8.10.161",
88
88
  "aws-lambda": "^1.0.7"
89
89
  },
@@ -112,7 +112,7 @@
112
112
  "publishConfig": {
113
113
  "access": "public"
114
114
  },
115
- "version": "0.0.0",
115
+ "version": "0.0.2",
116
116
  "jest": {
117
117
  "coverageProvider": "v8",
118
118
  "moduleNameMapper": {
@@ -1,14 +0,0 @@
1
- import { join, normalize, sep } from "node:path";
2
- export const getTypeScriptPackageJsonPath = (dirname = "") => {
3
- let nodeModulesPath;
4
- const normalizedPath = normalize(dirname);
5
- const parts = normalizedPath.split(sep);
6
- const nodeModulesIndex = parts.indexOf("node_modules");
7
- if (nodeModulesIndex !== -1) {
8
- nodeModulesPath = parts.slice(0, nodeModulesIndex).join(sep);
9
- }
10
- else {
11
- nodeModulesPath = dirname;
12
- }
13
- return join(nodeModulesPath, "node_modules", "typescript", "package.json");
14
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * Returns the path to the TypeScript package.json file relative to the given directory.
3
- *
4
- * @param dirname - The directory path to resolve from.
5
- * @returns The path to the TypeScript package.json file.
6
- *
7
- * @internal
8
- */
9
- export declare const getTypeScriptPackageJsonPath: (dirname?: string) => string;
@@ -1 +0,0 @@
1
- export declare const getTypeScriptPackageJsonPath: (dirname?: string) => string;
@@ -1,134 +0,0 @@
1
- const EOL = "\n";
2
-
3
- /**
4
- *
5
- * @param {array} jArray
6
- * @param {any} options
7
- * @returns
8
- */
9
- export default function toXml(jArray, options) {
10
- let indentation = "";
11
- if (options.format && options.indentBy.length > 0) {
12
- indentation = EOL;
13
- }
14
- return arrToStr(jArray, options, "", indentation);
15
- }
16
-
17
- function arrToStr(arr, options, jPath, indentation) {
18
- let xmlStr = "";
19
- let isPreviousElementTag = false;
20
-
21
- for (let i = 0; i < arr.length; i++) {
22
- const tagObj = arr[i];
23
- const tagName = propName(tagObj);
24
- if(tagName === undefined) continue;
25
-
26
- let newJPath = "";
27
- if (jPath.length === 0) newJPath = tagName
28
- else newJPath = `${jPath}.${tagName}`;
29
-
30
- if (tagName === options.textNodeName) {
31
- let tagText = tagObj[tagName];
32
- if (!isStopNode(newJPath, options)) {
33
- tagText = options.tagValueProcessor(tagName, tagText);
34
- tagText = replaceEntitiesValue(tagText, options);
35
- }
36
- if (isPreviousElementTag) {
37
- xmlStr += indentation;
38
- }
39
- xmlStr += tagText;
40
- isPreviousElementTag = false;
41
- continue;
42
- } else if (tagName === options.cdataPropName) {
43
- if (isPreviousElementTag) {
44
- xmlStr += indentation;
45
- }
46
- xmlStr += `<![CDATA[${tagObj[tagName][0][options.textNodeName]}]]>`;
47
- isPreviousElementTag = false;
48
- continue;
49
- } else if (tagName === options.commentPropName) {
50
- xmlStr += indentation + `<!--${tagObj[tagName][0][options.textNodeName]}-->`;
51
- isPreviousElementTag = true;
52
- continue;
53
- } else if (tagName[0] === "?") {
54
- const attStr = attr_to_str(tagObj[":@"], options);
55
- const tempInd = tagName === "?xml" ? "" : indentation;
56
- let piTextNodeName = tagObj[tagName][0][options.textNodeName];
57
- piTextNodeName = piTextNodeName.length !== 0 ? " " + piTextNodeName : ""; //remove extra spacing
58
- xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr}?>`;
59
- isPreviousElementTag = true;
60
- continue;
61
- }
62
- let newIdentation = indentation;
63
- if (newIdentation !== "") {
64
- newIdentation += options.indentBy;
65
- }
66
- const attStr = attr_to_str(tagObj[":@"], options);
67
- const tagStart = indentation + `<${tagName}${attStr}`;
68
- const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation);
69
- if (options.unpairedTags.indexOf(tagName) !== -1) {
70
- if (options.suppressUnpairedNode) xmlStr += tagStart + ">";
71
- else xmlStr += tagStart + "/>";
72
- } else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) {
73
- xmlStr += tagStart + "/>";
74
- } else if (tagValue && tagValue.endsWith(">")) {
75
- xmlStr += tagStart + `>${tagValue}${indentation}</${tagName}>`;
76
- } else {
77
- xmlStr += tagStart + ">";
78
- if (tagValue && indentation !== "" && (tagValue.includes("/>") || tagValue.includes("</"))) {
79
- xmlStr += indentation + options.indentBy + tagValue + indentation;
80
- } else {
81
- xmlStr += tagValue;
82
- }
83
- xmlStr += `</${tagName}>`;
84
- }
85
- isPreviousElementTag = true;
86
- }
87
-
88
- return xmlStr;
89
- }
90
-
91
- function propName(obj) {
92
- const keys = Object.keys(obj);
93
- for (let i = 0; i < keys.length; i++) {
94
- const key = keys[i];
95
- if(!obj.hasOwnProperty(key)) continue;
96
- if (key !== ":@") return key;
97
- }
98
- }
99
-
100
- function attr_to_str(attrMap, options) {
101
- let attrStr = "";
102
- if (attrMap && !options.ignoreAttributes) {
103
- for (let attr in attrMap) {
104
- if(!attrMap.hasOwnProperty(attr)) continue;
105
- let attrVal = options.attributeValueProcessor(attr, attrMap[attr]);
106
- attrVal = replaceEntitiesValue(attrVal, options);
107
- if (attrVal === true && options.suppressBooleanAttributes) {
108
- attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`;
109
- } else {
110
- attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${attrVal}"`;
111
- }
112
- }
113
- }
114
- return attrStr;
115
- }
116
-
117
- function isStopNode(jPath, options) {
118
- jPath = jPath.substr(0, jPath.length - options.textNodeName.length - 1);
119
- let tagName = jPath.substr(jPath.lastIndexOf(".") + 1);
120
- for (let index in options.stopNodes) {
121
- if (options.stopNodes[index] === jPath || options.stopNodes[index] === "*." + tagName) return true;
122
- }
123
- return false;
124
- }
125
-
126
- function replaceEntitiesValue(textValue, options) {
127
- if (textValue && textValue.length > 0 && options.processEntities) {
128
- for (let i = 0; i < options.entities.length; i++) {
129
- const entity = options.entities[i];
130
- textValue = textValue.replace(entity.regex, entity.val);
131
- }
132
- }
133
- return textValue;
134
- }
@@ -1,129 +0,0 @@
1
- const hexRegex = /^[-+]?0x[a-fA-F0-9]+$/;
2
- const numRegex = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;
3
- // const octRegex = /^0x[a-z0-9]+/;
4
- // const binRegex = /0x[a-z0-9]+/;
5
-
6
-
7
- const consider = {
8
- hex : true,
9
- // oct: false,
10
- leadingZeros: true,
11
- decimalPoint: "\.",
12
- eNotation: true,
13
- //skipLike: /regex/
14
- };
15
-
16
- export default function toNumber(str, options = {}){
17
- options = Object.assign({}, consider, options );
18
- if(!str || typeof str !== "string" ) return str;
19
-
20
- let trimmedStr = str.trim();
21
-
22
- if(options.skipLike !== undefined && options.skipLike.test(trimmedStr)) return str;
23
- else if(str==="0") return 0;
24
- else if (options.hex && hexRegex.test(trimmedStr)) {
25
- return parse_int(trimmedStr, 16);
26
- // }else if (options.oct && octRegex.test(str)) {
27
- // return Number.parseInt(val, 8);
28
- }else if (trimmedStr.includes('e') || trimmedStr.includes('E')) { //eNotation
29
- return resolveEnotation(str,trimmedStr,options);
30
- // }else if (options.parseBin && binRegex.test(str)) {
31
- // return Number.parseInt(val, 2);
32
- }else{
33
- //separate negative sign, leading zeros, and rest number
34
- const match = numRegex.exec(trimmedStr);
35
- // +00.123 => [ , '+', '00', '.123', ..
36
- if(match){
37
- const sign = match[1] || "";
38
- const leadingZeros = match[2];
39
- let numTrimmedByZeros = trimZeros(match[3]); //complete num without leading zeros
40
- const decimalAdjacentToLeadingZeros = sign ? // 0., -00., 000.
41
- str[leadingZeros.length+1] === "."
42
- : str[leadingZeros.length] === ".";
43
-
44
- //trim ending zeros for floating number
45
- if(!options.leadingZeros //leading zeros are not allowed
46
- && (leadingZeros.length > 1
47
- || (leadingZeros.length === 1 && !decimalAdjacentToLeadingZeros))){
48
- // 00, 00.3, +03.24, 03, 03.24
49
- return str;
50
- }
51
- else{//no leading zeros or leading zeros are allowed
52
- const num = Number(trimmedStr);
53
- const parsedStr = String(num);
54
-
55
- if( num === 0) return num;
56
- if(parsedStr.search(/[eE]/) !== -1){ //given number is long and parsed to eNotation
57
- if(options.eNotation) return num;
58
- else return str;
59
- }else if(trimmedStr.indexOf(".") !== -1){ //floating number
60
- if(parsedStr === "0") return num; //0.0
61
- else if(parsedStr === numTrimmedByZeros) return num; //0.456. 0.79000
62
- else if( parsedStr === `${sign}${numTrimmedByZeros}`) return num;
63
- else return str;
64
- }
65
-
66
- let n = leadingZeros? numTrimmedByZeros : trimmedStr;
67
- if(leadingZeros){
68
- // -009 => -9
69
- return (n === parsedStr) || (sign+n === parsedStr) ? num : str
70
- }else {
71
- // +9
72
- return (n === parsedStr) || (n === sign+parsedStr) ? num : str
73
- }
74
- }
75
- }else{ //non-numeric string
76
- return str;
77
- }
78
- }
79
- }
80
-
81
- const eNotationRegx = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
82
- function resolveEnotation(str,trimmedStr,options){
83
- if(!options.eNotation) return str;
84
- const notation = trimmedStr.match(eNotationRegx);
85
- if(notation){
86
- let sign = notation[1] || "";
87
- const eChar = notation[3].indexOf("e") === -1 ? "E" : "e";
88
- const leadingZeros = notation[2];
89
- const eAdjacentToLeadingZeros = sign ? // 0E.
90
- str[leadingZeros.length+1] === eChar
91
- : str[leadingZeros.length] === eChar;
92
-
93
- if(leadingZeros.length > 1 && eAdjacentToLeadingZeros) return str;
94
- else if(leadingZeros.length === 1
95
- && (notation[3].startsWith(`.${eChar}`) || notation[3][0] === eChar)){
96
- return Number(trimmedStr);
97
- }else if(options.leadingZeros && !eAdjacentToLeadingZeros){ //accept with leading zeros
98
- //remove leading 0s
99
- trimmedStr = (notation[1] || "") + notation[3];
100
- return Number(trimmedStr);
101
- }else return str;
102
- }else{
103
- return str;
104
- }
105
- }
106
-
107
- /**
108
- *
109
- * @param {string} numStr without leading zeros
110
- * @returns
111
- */
112
- function trimZeros(numStr){
113
- if(numStr && numStr.indexOf(".") !== -1){//float
114
- numStr = numStr.replace(/0+$/, ""); //remove ending zeros
115
- if(numStr === ".") numStr = "0";
116
- else if(numStr[0] === ".") numStr = "0"+numStr;
117
- else if(numStr[numStr.length-1] === ".") numStr = numStr.substring(0,numStr.length-1);
118
- return numStr;
119
- }
120
- return numStr;
121
- }
122
-
123
- function parse_int(numStr, base){
124
- //polyfill
125
- if(parseInt) return parseInt(numStr, base);
126
- else if(Number.parseInt) return Number.parseInt(numStr, base);
127
- else if(window && window.parseInt) return window.parseInt(numStr, base);
128
- else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")
129
- }
@@ -1,9 +0,0 @@
1
- import toNumber from "./strnum.js";
2
-
3
- describe("Should convert all the valid numeric strings to number", () => {
4
- it("should return undefined, null, empty string, or non-numeric as it is", () => {
5
- // expect(toNumber("+ 90")).toEqual("+ 90");
6
- // expect(toNumber("- 90")).toEqual("- 90");
7
- expect(toNumber("-10E2")).toEqual(100);
8
- });
9
- });