lambda-live-debugger 1.12.8 → 1.12.9

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 (744) hide show
  1. package/dist/extension/extension.zip +0 -0
  2. package/dist/extension/nodejs/node_modules/interceptor.js +9759 -9028
  3. package/dist/extension/nodejs/node_modules/interceptor.js.map +4 -4
  4. package/node_modules/@aws-sdk/checksums/dist-cjs/submodules/flexible-checksums/index.js +2 -1
  5. package/node_modules/@aws-sdk/checksums/dist-cjs/submodules/sha/index.js +464 -40
  6. package/node_modules/@aws-sdk/checksums/dist-cjs/submodules/xxh/index.js +914 -0
  7. package/node_modules/@aws-sdk/checksums/dist-es/submodules/flexible-checksums/stringUnionSelector.js +2 -1
  8. package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/index.browser.js +2 -0
  9. package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/index.js +3 -0
  10. package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha512/Sha512.js +71 -0
  11. package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha512/Sha512Js.js +276 -0
  12. package/node_modules/@aws-sdk/checksums/dist-es/submodules/sha/sha512/Sha512WebCrypto.js +76 -0
  13. package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/U64.js +190 -0
  14. package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/Xxh3.js +274 -0
  15. package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/index.js +3 -0
  16. package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/xxhash3_128/Xxh3_128.js +179 -0
  17. package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/xxhash3_64/Xxh3_64.js +117 -0
  18. package/node_modules/@aws-sdk/checksums/dist-es/submodules/xxh/xxhash64/Xxh64.js +150 -0
  19. package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/index.browser.d.ts +2 -0
  20. package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/index.d.ts +3 -0
  21. package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/sha512/Sha512.d.ts +17 -0
  22. package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/sha512/Sha512Js.d.ts +29 -0
  23. package/node_modules/@aws-sdk/checksums/dist-types/submodules/sha/sha512/Sha512WebCrypto.d.ts +22 -0
  24. package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/U64.d.ts +110 -0
  25. package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/Xxh3.d.ts +139 -0
  26. package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/index.d.ts +3 -0
  27. package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/xxhash3_128/Xxh3_128.d.ts +37 -0
  28. package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/xxhash3_64/Xxh3_64.d.ts +27 -0
  29. package/node_modules/@aws-sdk/checksums/dist-types/submodules/xxh/xxhash64/Xxh64.d.ts +41 -0
  30. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/index.browser.d.ts +2 -0
  31. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/index.d.ts +3 -0
  32. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/sha512/Sha512.d.ts +12 -0
  33. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/sha512/Sha512Js.d.ts +22 -0
  34. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/sha/sha512/Sha512WebCrypto.d.ts +14 -0
  35. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/U64.d.ts +27 -0
  36. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/Xxh3.d.ts +65 -0
  37. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/index.d.ts +3 -0
  38. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/xxhash3_128/Xxh3_128.d.ts +12 -0
  39. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/xxhash3_64/Xxh3_64.d.ts +10 -0
  40. package/node_modules/@aws-sdk/checksums/dist-types/ts3.4/submodules/xxh/xxhash64/Xxh64.d.ts +17 -0
  41. package/node_modules/@aws-sdk/checksums/package.json +16 -6
  42. package/node_modules/@aws-sdk/checksums/xxh.d.ts +5 -0
  43. package/node_modules/@aws-sdk/checksums/xxh.js +5 -0
  44. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +38 -6
  45. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/CloudFormationServiceException.js +1 -0
  46. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/errors.js +29 -0
  47. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +2 -1
  48. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +5 -4
  49. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +187 -181
  50. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +2 -1
  51. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +4 -0
  52. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/CloudFormationServiceException.d.ts +1 -0
  53. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/errors.d.ts +29 -0
  54. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +27 -3
  55. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -0
  56. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +184 -180
  57. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/CloudFormationServiceException.d.ts +1 -0
  58. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/errors.d.ts +29 -0
  59. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +1 -0
  60. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  61. package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
  62. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +44 -4
  63. package/node_modules/@aws-sdk/client-iam/dist-es/models/IAMServiceException.js +1 -0
  64. package/node_modules/@aws-sdk/client-iam/dist-es/models/errors.js +38 -0
  65. package/node_modules/@aws-sdk/client-iam/dist-es/runtimeConfig.js +2 -1
  66. package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +2 -2
  67. package/node_modules/@aws-sdk/client-iam/dist-types/IAM.d.ts +367 -361
  68. package/node_modules/@aws-sdk/client-iam/dist-types/IAMClient.d.ts +2 -1
  69. package/node_modules/@aws-sdk/client-iam/dist-types/models/IAMServiceException.d.ts +1 -0
  70. package/node_modules/@aws-sdk/client-iam/dist-types/models/errors.d.ts +38 -0
  71. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +1 -0
  72. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAM.d.ts +364 -363
  73. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/IAMServiceException.d.ts +1 -0
  74. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/errors.d.ts +38 -0
  75. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  76. package/node_modules/@aws-sdk/client-iam/package.json +9 -9
  77. package/node_modules/@aws-sdk/client-iot/dist-cjs/index.js +39 -4
  78. package/node_modules/@aws-sdk/client-iot/dist-es/models/IoTServiceException.js +1 -0
  79. package/node_modules/@aws-sdk/client-iot/dist-es/models/errors.js +33 -0
  80. package/node_modules/@aws-sdk/client-iot/dist-es/runtimeConfig.js +2 -1
  81. package/node_modules/@aws-sdk/client-iot/dist-es/schemas/schemas_0.js +2 -2
  82. package/node_modules/@aws-sdk/client-iot/dist-types/IoT.d.ts +551 -545
  83. package/node_modules/@aws-sdk/client-iot/dist-types/IoTClient.d.ts +2 -1
  84. package/node_modules/@aws-sdk/client-iot/dist-types/models/IoTServiceException.d.ts +1 -0
  85. package/node_modules/@aws-sdk/client-iot/dist-types/models/errors.d.ts +33 -0
  86. package/node_modules/@aws-sdk/client-iot/dist-types/models/models_1.d.ts +2 -1
  87. package/node_modules/@aws-sdk/client-iot/dist-types/models/models_2.d.ts +2 -1
  88. package/node_modules/@aws-sdk/client-iot/dist-types/runtimeConfig.d.ts +1 -0
  89. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/IoT.d.ts +548 -547
  90. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/IoTServiceException.d.ts +1 -0
  91. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/errors.d.ts +33 -0
  92. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  93. package/node_modules/@aws-sdk/client-iot/package.json +8 -8
  94. package/node_modules/@aws-sdk/client-iot-data-plane/dist-cjs/index.js +18 -4
  95. package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/models/IoTDataPlaneServiceException.js +1 -0
  96. package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/models/errors.js +12 -0
  97. package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/runtimeConfig.js +2 -1
  98. package/node_modules/@aws-sdk/client-iot-data-plane/dist-es/schemas/schemas_0.js +2 -2
  99. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/IoTDataPlane.d.ts +29 -23
  100. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/IoTDataPlaneClient.d.ts +2 -1
  101. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/models/IoTDataPlaneServiceException.d.ts +1 -0
  102. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/models/errors.d.ts +12 -0
  103. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/runtimeConfig.d.ts +1 -0
  104. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/ts3.4/IoTDataPlane.d.ts +29 -22
  105. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/ts3.4/models/IoTDataPlaneServiceException.d.ts +1 -0
  106. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/ts3.4/models/errors.d.ts +12 -0
  107. package/node_modules/@aws-sdk/client-iot-data-plane/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  108. package/node_modules/@aws-sdk/client-iot-data-plane/package.json +8 -8
  109. package/node_modules/@aws-sdk/client-lambda/README.md +1 -1
  110. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +83 -12
  111. package/node_modules/@aws-sdk/client-lambda/dist-es/models/LambdaServiceException.js +1 -0
  112. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +12 -0
  113. package/node_modules/@aws-sdk/client-lambda/dist-es/models/errors.js +56 -0
  114. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +12 -11
  115. package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +184 -178
  116. package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +3 -2
  117. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CheckpointDurableExecutionCommand.d.ts +1 -0
  118. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  119. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateCapacityProviderCommand.d.ts +1 -1
  120. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +9 -7
  121. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +1 -1
  122. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
  123. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +4 -3
  124. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
  125. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteFunctionConcurrencyCommand.d.ts +1 -1
  126. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetAliasCommand.d.ts +1 -1
  127. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +4 -3
  128. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +1 -1
  129. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +1 -1
  130. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  131. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeCommand.d.ts +1 -1
  132. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +10 -1
  133. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListAliasesCommand.d.ts +1 -1
  134. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +4 -3
  135. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionEventInvokeConfigsCommand.d.ts +1 -1
  136. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
  137. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +1 -1
  138. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +1 -1
  139. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionConcurrencyCommand.d.ts +1 -1
  140. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutFunctionRecursionConfigCommand.d.ts +1 -1
  141. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateAliasCommand.d.ts +1 -1
  142. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +8 -6
  143. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +1 -1
  144. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +1 -1
  145. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +1 -1
  146. package/node_modules/@aws-sdk/client-lambda/dist-types/index.d.ts +1 -1
  147. package/node_modules/@aws-sdk/client-lambda/dist-types/models/LambdaServiceException.d.ts +1 -0
  148. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +20 -0
  149. package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +56 -0
  150. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +30 -20
  151. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +180 -176
  152. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/LambdaServiceException.d.ts +1 -0
  153. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +14 -0
  154. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/errors.d.ts +56 -0
  155. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +3 -0
  156. package/node_modules/@aws-sdk/client-lambda/package.json +9 -9
  157. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +63 -17
  158. package/node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js +1 -0
  159. package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +8 -0
  160. package/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js +21 -0
  161. package/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js +30 -16
  162. package/node_modules/@aws-sdk/client-s3/dist-types/S3.d.ts +231 -225
  163. package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +3 -2
  164. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CopyObjectCommand.d.ts +3 -0
  165. package/node_modules/@aws-sdk/client-s3/dist-types/commands/CreateMultipartUploadCommand.d.ts +3 -0
  166. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  167. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +3 -3
  168. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectCommand.d.ts +3 -0
  169. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +4 -0
  170. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetObjectRetentionCommand.d.ts +5 -0
  171. package/node_modules/@aws-sdk/client-s3/dist-types/commands/HeadObjectCommand.d.ts +3 -0
  172. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  173. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  174. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +3 -3
  175. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectCommand.d.ts +3 -0
  176. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +4 -0
  177. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutObjectRetentionCommand.d.ts +5 -0
  178. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  179. package/node_modules/@aws-sdk/client-s3/dist-types/models/S3ServiceException.d.ts +1 -0
  180. package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +16 -0
  181. package/node_modules/@aws-sdk/client-s3/dist-types/models/errors.d.ts +21 -0
  182. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +186 -49
  183. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_1.d.ts +43 -1
  184. package/node_modules/@aws-sdk/client-s3/dist-types/schemas/schemas_0.d.ts +1 -0
  185. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3.d.ts +228 -224
  186. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +1 -1
  187. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  188. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/S3ServiceException.d.ts +1 -0
  189. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +9 -0
  190. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/errors.d.ts +21 -0
  191. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_0.d.ts +23 -7
  192. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/models_1.d.ts +14 -1
  193. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  194. package/node_modules/@aws-sdk/client-s3/package.json +13 -13
  195. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -13
  196. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +19 -10
  197. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +104 -1549
  198. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +7 -1
  199. package/node_modules/@aws-sdk/core/dist-es/submodules/client/getDefaultSocketTimeout.js +10 -0
  200. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +1 -0
  201. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
  202. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +1 -0
  203. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
  204. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
  205. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
  206. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
  207. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
  208. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -4
  209. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -7
  210. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
  211. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
  212. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
  213. package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
  214. package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
  215. package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
  216. package/node_modules/@aws-sdk/core/dist-types/submodules/client/getDefaultSocketTimeout.d.ts +11 -0
  217. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.browser.d.ts +1 -0
  218. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
  219. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.native.d.ts +1 -0
  220. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +3 -7
  221. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +3 -8
  222. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  223. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  224. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  225. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  226. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +25 -0
  227. package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
  228. package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
  229. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/getDefaultSocketTimeout.d.ts +4 -0
  230. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +1 -0
  231. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
  232. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +1 -0
  233. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +11 -10
  234. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -2
  235. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -2
  236. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -3
  237. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +2 -3
  238. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.d.ts +36 -0
  239. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
  240. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
  241. package/node_modules/@aws-sdk/core/package.json +6 -6
  242. package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +5 -5
  243. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  244. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  245. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  246. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  247. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  248. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  249. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  250. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  251. package/node_modules/@aws-sdk/credential-providers/README.md +1 -1
  252. package/node_modules/@aws-sdk/credential-providers/package.json +16 -16
  253. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js +36 -17
  254. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3-control/index.js +6 -3
  255. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-bucket-endpoint/bucketHostnameUtils.js +6 -3
  256. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-region-redirect/region-redirect-middleware.js +2 -0
  257. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.js +8 -4
  258. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.js +18 -8
  259. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3/middleware-ssec/middleware-ssec.js +2 -1
  260. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-process-arnables/parse-outpost-arnables.js +4 -2
  261. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/submodules/s3-control/middleware-redirect-from-postid/redirect-from-postid.js +2 -1
  262. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.d.ts +1 -0
  263. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -1
  264. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityCache.d.ts +1 -0
  265. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/submodules/s3/middleware-s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +3 -1
  266. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +6 -6
  267. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +15 -4
  268. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +17 -4
  269. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +10 -4
  270. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +17 -4
  271. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +24 -12
  272. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
  273. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
  274. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -1
  275. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +2 -2
  276. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
  277. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/enums.js +7 -0
  278. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
  279. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -1
  280. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +2 -2
  281. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
  282. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
  283. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -1
  284. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +2 -2
  285. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
  286. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
  287. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
  288. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +2 -2
  289. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
  290. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
  291. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
  292. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +13 -10
  293. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +11 -5
  294. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +2 -1
  295. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
  296. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
  297. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  298. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +12 -7
  299. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -3
  300. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +5 -59
  301. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +5 -33
  302. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -2
  303. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
  304. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/enums.d.ts +16 -9
  305. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +12 -39
  306. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +36 -48
  307. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -0
  308. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSO.d.ts +9 -3
  309. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSOClient.d.ts +2 -1
  310. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
  311. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
  312. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -0
  313. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +9 -3
  314. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +2 -1
  315. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
  316. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
  317. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  318. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +33 -8
  319. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +24 -4
  320. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -0
  321. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -0
  322. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +22 -3
  323. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
  324. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
  325. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/models_0.d.ts +40 -0
  326. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
  327. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +14 -5
  328. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
  329. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
  330. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  331. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +11 -5
  332. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
  333. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/enums.d.ts +7 -0
  334. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
  335. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -0
  336. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/SSO.d.ts +9 -3
  337. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
  338. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
  339. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -0
  340. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +9 -3
  341. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
  342. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
  343. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  344. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STS.d.ts +11 -5
  345. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
  346. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
  347. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +6 -0
  348. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -0
  349. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  350. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  351. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
  352. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
  353. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  354. package/node_modules/@aws-sdk/types/dist-types/feature-ids.d.ts +4 -0
  355. package/node_modules/@aws-sdk/types/dist-types/ts3.4/feature-ids.d.ts +4 -0
  356. package/node_modules/@aws-sdk/types/package.json +2 -2
  357. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  358. package/node_modules/@inquirer/ansi/README.md +35 -3
  359. package/node_modules/@inquirer/ansi/package.json +4 -4
  360. package/node_modules/@inquirer/checkbox/README.md +75 -5
  361. package/node_modules/@inquirer/checkbox/dist/index.d.ts +7 -7
  362. package/node_modules/@inquirer/checkbox/dist/index.js +4 -0
  363. package/node_modules/@inquirer/checkbox/package.json +8 -8
  364. package/node_modules/@inquirer/confirm/README.md +81 -5
  365. package/node_modules/@inquirer/confirm/dist/index.d.ts +13 -3
  366. package/node_modules/@inquirer/confirm/dist/index.js +30 -7
  367. package/node_modules/@inquirer/confirm/package.json +6 -6
  368. package/node_modules/@inquirer/core/README.md +35 -3
  369. package/node_modules/@inquirer/core/dist/index.js +12 -12
  370. package/node_modules/@inquirer/core/dist/lib/create-prompt.js +84 -55
  371. package/node_modules/@inquirer/core/dist/lib/hook-engine.js +9 -11
  372. package/node_modules/@inquirer/core/dist/lib/make-theme.js +3 -3
  373. package/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js +2 -2
  374. package/node_modules/@inquirer/core/dist/lib/screen-manager.js +1 -1
  375. package/node_modules/@inquirer/core/dist/lib/theme.js +1 -1
  376. package/node_modules/@inquirer/core/dist/lib/use-effect.js +1 -1
  377. package/node_modules/@inquirer/core/dist/lib/use-keypress.js +3 -3
  378. package/node_modules/@inquirer/core/dist/lib/use-memo.js +1 -1
  379. package/node_modules/@inquirer/core/dist/lib/use-prefix.js +3 -3
  380. package/node_modules/@inquirer/core/dist/lib/use-ref.js +1 -1
  381. package/node_modules/@inquirer/core/dist/lib/use-state.js +1 -1
  382. package/node_modules/@inquirer/core/dist/lib/utils.js +1 -1
  383. package/node_modules/@inquirer/core/package.json +7 -7
  384. package/node_modules/@inquirer/editor/README.md +75 -5
  385. package/node_modules/@inquirer/editor/dist/index.d.ts +6 -6
  386. package/node_modules/@inquirer/editor/package.json +7 -7
  387. package/node_modules/@inquirer/expand/README.md +75 -5
  388. package/node_modules/@inquirer/expand/dist/index.d.ts +3 -3
  389. package/node_modules/@inquirer/expand/dist/index.js +3 -3
  390. package/node_modules/@inquirer/expand/package.json +6 -6
  391. package/node_modules/@inquirer/external-editor/README.md +35 -3
  392. package/node_modules/@inquirer/external-editor/dist/index.js +4 -4
  393. package/node_modules/@inquirer/external-editor/package.json +4 -4
  394. package/node_modules/@inquirer/figures/package.json +3 -3
  395. package/node_modules/@inquirer/input/README.md +75 -5
  396. package/node_modules/@inquirer/input/dist/index.d.ts +9 -9
  397. package/node_modules/@inquirer/input/package.json +6 -6
  398. package/node_modules/@inquirer/number/README.md +75 -5
  399. package/node_modules/@inquirer/number/dist/index.d.ts +5 -5
  400. package/node_modules/@inquirer/number/dist/index.js +2 -2
  401. package/node_modules/@inquirer/number/package.json +6 -6
  402. package/node_modules/@inquirer/password/README.md +75 -5
  403. package/node_modules/@inquirer/password/dist/index.d.ts +4 -4
  404. package/node_modules/@inquirer/password/dist/index.js +1 -1
  405. package/node_modules/@inquirer/password/package.json +7 -7
  406. package/node_modules/@inquirer/prompts/README.md +24 -6
  407. package/node_modules/@inquirer/prompts/package.json +15 -15
  408. package/node_modules/@inquirer/rawlist/README.md +75 -5
  409. package/node_modules/@inquirer/rawlist/dist/index.d.ts +3 -3
  410. package/node_modules/@inquirer/rawlist/dist/index.js +5 -4
  411. package/node_modules/@inquirer/rawlist/package.json +6 -6
  412. package/node_modules/@inquirer/search/README.md +74 -4
  413. package/node_modules/@inquirer/search/dist/index.d.ts +4 -4
  414. package/node_modules/@inquirer/search/dist/index.js +1 -1
  415. package/node_modules/@inquirer/search/package.json +7 -7
  416. package/node_modules/@inquirer/select/README.md +75 -5
  417. package/node_modules/@inquirer/select/dist/index.d.ts +4 -4
  418. package/node_modules/@inquirer/select/package.json +8 -8
  419. package/node_modules/@inquirer/type/dist/index.js +2 -2
  420. package/node_modules/@inquirer/type/dist/utils.d.ts +11 -0
  421. package/node_modules/@inquirer/type/dist/utils.js +15 -1
  422. package/node_modules/@inquirer/type/package.json +3 -3
  423. package/node_modules/@nodable/entities/package.json +2 -2
  424. package/node_modules/@nodable/entities/src/index.d.ts +5 -2
  425. package/node_modules/@smithy/core/CHANGELOG.md +95 -0
  426. package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  427. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +67 -90
  428. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +100 -23
  429. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
  430. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
  431. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
  432. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +4 -2
  433. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +12 -6
  434. package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
  435. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +28 -9
  436. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +28 -9
  437. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1785 -19
  438. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +64 -25
  439. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +68 -27
  440. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +15 -7
  441. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +15 -4
  442. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +32 -9
  443. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +15 -4
  444. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
  445. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  446. package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
  447. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +34 -59
  448. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
  449. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
  450. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
  451. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
  452. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -16
  453. package/node_modules/@smithy/core/dist-es/submodules/client/index.js +1 -1
  454. package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
  455. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +25 -3
  456. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
  457. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +44 -5
  458. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
  459. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
  460. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
  461. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js +10 -4
  462. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
  463. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
  464. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
  465. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
  466. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
  467. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
  468. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
  469. package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
  470. package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
  471. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
  472. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +12 -1
  473. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
  474. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
  475. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
  476. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
  477. package/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
  478. package/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
  479. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
  480. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +53 -10
  481. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -2
  482. package/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js +26 -0
  483. package/node_modules/@smithy/core/dist-es/submodules/protocols/common.js +3 -0
  484. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +9 -0
  485. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +79 -0
  486. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +12 -3
  487. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +12 -3
  488. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +17 -4
  489. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +20 -7
  490. package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/parseJsonBody.js +16 -1
  491. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
  492. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
  493. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
  494. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
  495. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +17 -8
  496. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
  497. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
  498. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/race.js +22 -0
  499. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +15 -7
  500. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  501. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  502. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  503. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
  504. package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
  505. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.browser.js +2 -0
  506. package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/getAwsChunkedEncodingStream.js +23 -8
  507. package/node_modules/@smithy/core/dist-es/submodules/serde/writeKey.js +3 -0
  508. package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
  509. package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
  510. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
  511. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  512. package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +3 -0
  513. package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +1 -1
  514. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/client.d.ts +11 -3
  515. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/exceptions.d.ts +1 -0
  516. package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
  517. package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
  518. package/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  519. package/node_modules/@smithy/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
  520. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +17 -7
  521. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
  522. package/node_modules/@smithy/core/dist-types/submodules/protocols/UnionSerde.d.ts +24 -0
  523. package/node_modules/@smithy/core/dist-types/submodules/protocols/common.d.ts +2 -0
  524. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +10 -0
  525. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +13 -0
  526. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +19 -0
  527. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +16 -0
  528. package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  529. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  530. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/race.d.ts +3 -0
  531. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +2 -2
  532. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  533. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  534. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  535. package/node_modules/@smithy/core/dist-types/submodules/serde/writeKey.d.ts +4 -0
  536. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  537. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/parseCborBody.d.ts +3 -0
  538. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -1
  539. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/client.d.ts +11 -3
  540. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/exceptions.d.ts +1 -0
  541. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
  542. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
  543. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  544. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
  545. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +21 -7
  546. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
  547. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +24 -0
  548. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -0
  549. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +10 -0
  550. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +13 -0
  551. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +19 -0
  552. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -11
  553. package/node_modules/{@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json → @smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +7 -4
  554. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +14 -0
  555. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +29 -0
  556. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  557. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -9
  558. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
  559. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
  560. package/node_modules/{@aws-sdk → @smithy}/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
  561. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +21 -0
  562. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +15 -0
  563. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +11 -0
  564. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +38 -0
  565. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +1 -0
  566. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  567. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/race.d.ts +3 -0
  568. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +2 -2
  569. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  570. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  571. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  572. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/writeKey.d.ts +4 -0
  573. package/node_modules/@smithy/core/errors.d.ts +5 -0
  574. package/node_modules/@smithy/core/errors.js +5 -0
  575. package/node_modules/@smithy/core/package.json +12 -2
  576. package/node_modules/@smithy/fetch-http-handler/CHANGELOG.md +17 -0
  577. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +12 -5
  578. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +8 -3
  579. package/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js +4 -2
  580. package/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts +12 -1
  581. package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +12 -1
  582. package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
  583. package/node_modules/@smithy/node-http-handler/CHANGELOG.md +45 -0
  584. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +84 -29
  585. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
  586. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +23 -11
  587. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +26 -2
  588. package/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
  589. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +30 -15
  590. package/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
  591. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +10 -1
  592. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
  593. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +10 -1
  594. package/node_modules/@smithy/node-http-handler/package.json +3 -3
  595. package/node_modules/@smithy/signature-v4/CHANGELOG.md +24 -0
  596. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +39 -12
  597. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +7 -2
  598. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
  599. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +9 -2
  600. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +5 -1
  601. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +5 -1
  602. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +13 -3
  603. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +5 -1
  604. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +5 -1
  605. package/node_modules/@smithy/signature-v4/package.json +3 -3
  606. package/node_modules/@smithy/types/CHANGELOG.md +12 -0
  607. package/node_modules/@smithy/types/dist-types/metrics.d.ts +8 -7
  608. package/node_modules/@smithy/types/dist-types/middleware.d.ts +11 -0
  609. package/node_modules/@smithy/types/dist-types/ts3.4/metrics.d.ts +8 -7
  610. package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +11 -0
  611. package/node_modules/@smithy/types/package.json +1 -1
  612. package/node_modules/@types/node/README.md +2 -2
  613. package/node_modules/@types/node/buffer.d.ts +1 -0
  614. package/node_modules/@types/node/child_process.d.ts +1 -1
  615. package/node_modules/@types/node/crypto.d.ts +22 -10
  616. package/node_modules/@types/node/dgram.d.ts +1 -1
  617. package/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  618. package/node_modules/@types/node/ffi.d.ts +14 -0
  619. package/node_modules/@types/node/http.d.ts +1 -1
  620. package/node_modules/@types/node/http2.d.ts +3 -2
  621. package/node_modules/@types/node/net.d.ts +16 -4
  622. package/node_modules/@types/node/package.json +3 -18
  623. package/node_modules/@types/node/perf_hooks.d.ts +31 -19
  624. package/node_modules/@types/node/process.d.ts +1 -0
  625. package/node_modules/@types/node/quic.d.ts +45 -5
  626. package/node_modules/@types/node/stream/iter.d.ts +9 -12
  627. package/node_modules/@types/node/stream/web.d.ts +20 -0
  628. package/node_modules/@types/node/test/reporters.d.ts +1 -0
  629. package/node_modules/@types/node/test.d.ts +72 -0
  630. package/node_modules/@types/node/tls.d.ts +40 -25
  631. package/node_modules/@types/node/util.d.ts +6 -3
  632. package/node_modules/@types/node/vfs.d.ts +7 -6
  633. package/node_modules/@types/node/vm.d.ts +2 -1
  634. package/node_modules/@types/node/web-globals/streams.d.ts +4 -0
  635. package/node_modules/@types/node/worker_threads.d.ts +4 -1
  636. package/node_modules/@types/node/zlib.d.ts +775 -0
  637. package/node_modules/chalk/package.json +1 -1
  638. package/node_modules/chalk/source/index.js +2 -1
  639. package/node_modules/commander/Readme.md +6 -32
  640. package/node_modules/commander/index.js +1 -1
  641. package/node_modules/commander/lib/command.js +22 -9
  642. package/node_modules/commander/lib/help.js +6 -2
  643. package/node_modules/commander/lib/option.js +1 -1
  644. package/node_modules/commander/package.json +2 -1
  645. package/node_modules/commander/typings/index.d.ts +6 -3
  646. package/node_modules/fast-xml-builder/CHANGELOG.md +12 -0
  647. package/node_modules/fast-xml-builder/README.md +4 -1
  648. package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -1
  649. package/node_modules/fast-xml-builder/lib/fxb.min.js +1 -1
  650. package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -1
  651. package/node_modules/fast-xml-builder/package.json +6 -10
  652. package/node_modules/fast-xml-builder/src/fxb.js +34 -24
  653. package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +18 -17
  654. package/node_modules/fast-xml-builder/src/util.js +10 -3
  655. package/node_modules/fast-xml-parser/CHANGELOG.md +15 -0
  656. package/node_modules/fast-xml-parser/README.md +9 -9
  657. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
  658. package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
  659. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  660. package/node_modules/fast-xml-parser/lib/fxp.d.cts +3 -1
  661. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  662. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  663. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  664. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  665. package/node_modules/fast-xml-parser/package.json +6 -6
  666. package/node_modules/fast-xml-parser/src/fxp.d.ts +1 -1
  667. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +47 -11
  668. package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +7 -1
  669. package/node_modules/inquirer/README.md +35 -3
  670. package/node_modules/inquirer/dist/index.js +2 -1
  671. package/node_modules/inquirer/dist/ui/prompt.js +3 -2
  672. package/node_modules/inquirer/package.json +8 -8
  673. package/node_modules/is-unsafe/README.md +34 -1
  674. package/node_modules/is-unsafe/package.json +3 -3
  675. package/node_modules/is-unsafe/src/contexts/xml.js +2 -1
  676. package/node_modules/is-unsafe/src/index.d.ts +9 -1
  677. package/node_modules/is-unsafe/src/index.js +29 -2
  678. package/node_modules/is-unsafe/src/util/decode-entities.js +48 -0
  679. package/node_modules/strnum/CHANGELOG.md +6 -0
  680. package/node_modules/strnum/package.json +1 -1
  681. package/node_modules/strnum/strnum.js +10 -9
  682. package/node_modules/toml/lib/compiler.js +101 -144
  683. package/node_modules/toml/lib/parser.js +20 -4
  684. package/node_modules/toml/package.json +1 -1
  685. package/node_modules/undici-types/client.d.ts +8 -3
  686. package/node_modules/undici-types/connector.d.ts +1 -0
  687. package/node_modules/undici-types/cookies.d.ts +1 -1
  688. package/node_modules/undici-types/dispatcher.d.ts +3 -3
  689. package/node_modules/undici-types/errors.d.ts +10 -0
  690. package/node_modules/undici-types/fetch.d.ts +5 -1
  691. package/node_modules/undici-types/handlers.d.ts +2 -0
  692. package/node_modules/undici-types/interceptors.d.ts +1 -1
  693. package/node_modules/undici-types/mock-interceptor.d.ts +5 -1
  694. package/node_modules/undici-types/package.json +1 -1
  695. package/node_modules/undici-types/proxy-agent.d.ts +7 -0
  696. package/node_modules/xml-naming/README.md +99 -1
  697. package/node_modules/xml-naming/package.json +4 -2
  698. package/node_modules/xml-naming/src/index.d.ts +34 -0
  699. package/node_modules/xml-naming/src/index.js +134 -22
  700. package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +19 -18
  701. package/node_modules/yaml/browser/dist/nodes/Alias.js +25 -23
  702. package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +19 -18
  703. package/node_modules/yaml/dist/nodes/Alias.js +25 -23
  704. package/node_modules/yaml/package.json +1 -1
  705. package/package.json +25 -25
  706. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -7
  707. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +0 -4
  708. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -13
  709. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -18
  710. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -27
  711. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -15
  712. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -39
  713. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +0 -7
  714. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +0 -7
  715. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +0 -2
  716. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +0 -14
  717. package/node_modules/@inquirer/core/dist/lib/promise-polyfill.d.ts +0 -7
  718. package/node_modules/@inquirer/core/dist/lib/promise-polyfill.js +0 -14
  719. package/node_modules/fast-xml-parser/node_modules/xml-naming/README.md +0 -287
  720. package/node_modules/fast-xml-parser/node_modules/xml-naming/package.json +0 -56
  721. package/node_modules/fast-xml-parser/node_modules/xml-naming/src/index.d.ts +0 -108
  722. package/node_modules/fast-xml-parser/node_modules/xml-naming/src/index.js +0 -382
  723. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -0
  724. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -0
  725. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -0
  726. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -0
  727. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -0
  728. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -0
  729. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -0
  730. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -0
  731. /package/node_modules/{@aws-sdk → @smithy}/core/dist-es/submodules/protocols/json/needsReviver.js +0 -0
  732. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +0 -0
  733. /package/node_modules/{@aws-sdk/core/dist-types/submodules/protocols/json → @smithy/core/dist-types/submodules/protocols/json/codec-v1}/JsonSettings.d.ts +0 -0
  734. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +0 -0
  735. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +0 -0
  736. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +0 -0
  737. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +0 -0
  738. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +0 -0
  739. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +0 -0
  740. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +0 -0
  741. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +0 -0
  742. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +0 -0
  743. /package/node_modules/{@aws-sdk → @smithy}/core/dist-types/submodules/protocols/json/needsReviver.d.ts +0 -0
  744. /package/node_modules/{fast-xml-parser/node_modules/xml-naming → xml-naming}/LICENSE +0 -0
@@ -1,4 +1,7 @@
1
1
  # xml-naming
2
+ [![xml-naming downloads](https://img.shields.io/npm/dw/xml-naming.svg)](https://npm-compare.com/xml-naming)
3
+ [![xml-naming version](https://img.shields.io/npm/v/xml-naming.svg)](https://www.npmjs.com/package/xml-naming)
4
+ [![xml-naming license](https://img.shields.io/npm/l/xml-naming.svg)](https://github.com/NaturalIntelligence/xml-naming)
2
5
 
3
6
  Validates XML name productions as defined in the [XML 1.0](https://www.w3.org/TR/xml/) and [XML 1.1](https://www.w3.org/TR/xml11/) specifications.
4
7
 
@@ -71,6 +74,88 @@ name('\uD800\uDC00', { xmlVersion: '1.1' }) // true
71
74
 
72
75
  ---
73
76
 
77
+ ### ASCII-only fast path
78
+
79
+ All validators, `validate`, `validateAll`, and `sanitize` also accept `{ asciiOnly: true }`.
80
+ When set, matching is restricted to the ASCII subset of the NameStartChar/NameChar
81
+ productions and skips unicode-aware regex matching entirely — no `\u00C0-\uFFFD`-style
82
+ ranges, and (for XML 1.1) no `/u` regex flag. Unicode-aware regexes are measurably slower
83
+ than plain ASCII matching in JS engines, so this is a real performance win when you know
84
+ your input is ASCII-only, which is the common case for HTML/SVG ids and most XML tags.
85
+
86
+ **This is opt-in and defaults to `false`** for backward compatibility: turning it on
87
+ changes behavior, since it rejects legitimate non-ASCII XML names that would otherwise be
88
+ valid. Only enable it when you control the input and know it's ASCII (e.g. internal
89
+ identifiers, machine-generated names), not for validating arbitrary user- or
90
+ externally-supplied XML/SVG content.
91
+
92
+ ```js
93
+ import { name, sanitize } from 'xml-naming';
94
+
95
+ name('café', { asciiOnly: true }) // false — 'é' is not ASCII, even though it's
96
+ name('café') // true a valid XML 1.0/1.1 NameChar
97
+
98
+ sanitize('café', 'name', { asciiOnly: true }) // 'caf_' — non-ASCII replaced too
99
+ sanitize('café', 'name') // 'café' — left untouched by default
100
+ ```
101
+
102
+ ---
103
+
104
+ ### Memoized validator (`createValidator`)
105
+
106
+ Real documents tend to reuse a small vocabulary of tag/attribute names across many
107
+ siblings (`id`, `class`, `href`, ... repeated across hundreds of elements). Calling the
108
+ plain boolean validators re-runs the regex on every call, even for names seen before.
109
+
110
+ `createValidator(production, opts)` returns a memoized validator function: `xmlVersion`
111
+ and `asciiOnly` are fixed at creation time (so the regex is resolved once, not per call),
112
+ and repeated inputs after the first are served from an internal cache instead of
113
+ re-matching the regex.
114
+
115
+ ```js
116
+ import { createValidator } from 'xml-naming';
117
+
118
+ const isQName = createValidator('qName', { xmlVersion: '1.0' });
119
+
120
+ isQName('sku'); // false → regex test (cache miss), result cached
121
+ isQName('sku'); // false → cache hit, no regex run
122
+ ```
123
+
124
+ Use one instance per document/parse (or reuse across a session — your choice), rather
125
+ than creating one per call:
126
+
127
+ ```js
128
+ // e.g. inside a parser, once per parse call:
129
+ const isValidTag = createValidator('qName', { asciiOnly: true });
130
+
131
+ for (const tagName of tagNames) {
132
+ if (!isValidTag(tagName)) throw new Error(`Invalid tag name: ${tagName}`);
133
+ }
134
+ ```
135
+
136
+ Because the validator is a plain function, this loop already gets short-circuit
137
+ behaviour (via `break`/`throw` on first failure) and zero extra allocation on the happy
138
+ path — no separate "bulk" API is needed for that.
139
+
140
+ **Cache bound:** the internal cache is capped by `maxCacheSize` (default `2048`). Once
141
+ the cap is reached, new distinct strings are still validated correctly, they're just no
142
+ longer cached — existing cached entries keep being served. This keeps memory bounded
143
+ even against high-cardinality or adversarial input (e.g. externally-supplied names that
144
+ never repeat), without the cost of a full LRU or the perf cliff of reset-and-refill.
145
+
146
+ Call `.reset()` on the returned function to clear the cache manually, e.g. between
147
+ unrelated parse calls if you're reusing one validator instance across a long-running
148
+ process:
149
+
150
+ ```js
151
+ isQName.reset();
152
+ ```
153
+
154
+ The cache is private to each `createValidator()` instance — there's no shared/global
155
+ cache, so unrelated callers never interfere with each other.
156
+
157
+ ---
158
+
74
159
  ### Diagnostic validation
75
160
 
76
161
  ```js
@@ -169,21 +254,34 @@ sanitize('my element', 'name', { replacement: '-' }) // 'my-element'
169
254
 
170
255
  `opts`:
171
256
  - `xmlVersion`: `'1.0'` (default) | `'1.1'`
257
+ - `asciiOnly`: boolean (default `false`) — ASCII-only fast path, see above
258
+
259
+ ### `createValidator(production, opts?)` → memoized `(str) => boolean`, with `.reset()`
260
+
261
+ `opts`:
262
+ - `xmlVersion`: `'1.0'` (default) | `'1.1'`
263
+ - `asciiOnly`: boolean (default `false`)
264
+ - `maxCacheSize`: number (default `2048`) — cache stops accepting new entries once reached; existing entries keep serving hits
172
265
 
173
266
  ### `validate(str, production, opts?)` → `ValidationResult`
174
267
 
175
268
  `production`: `'name'` | `'ncName'` | `'qName'` | `'nmToken'` | `'nmTokens'`
176
269
 
270
+ `opts`: same as boolean validators (`xmlVersion`, `asciiOnly`)
271
+
177
272
  ### `validateAll(strings[], production, opts?)` → `ValidationResult[]`
178
273
 
274
+ `opts`: same as `validate`
275
+
179
276
  ### `sanitize(str, production?, opts?)` → `string`
180
277
 
181
278
  `opts`:
182
279
  - `xmlVersion`: `'1.0'` | `'1.1'`
183
280
  - `replacement`: string (default `'_'`)
281
+ - `asciiOnly`: boolean (default `false`) — also replaces non-ASCII characters, not just XML-illegal ones
184
282
 
185
283
  ---
186
284
 
187
285
  ## License
188
286
 
189
- MIT
287
+ MIT
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xml-naming",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Validates XML name productions — Name, NCName, QName, NMToken, NMTokens — for XML 1.0 and 1.1",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -16,9 +16,11 @@
16
16
  "README.md"
17
17
  ],
18
18
  "scripts": {
19
- "test": "jasmine specs/*spec.js"
19
+ "test": "jasmine specs/*spec.js",
20
+ "perf": "node specs/perf.js"
20
21
  },
21
22
  "keywords": [
23
+ "fast",
22
24
  "xml",
23
25
  "xml-name",
24
26
  "ncname",
@@ -1,6 +1,15 @@
1
1
  export interface ValidationOptions {
2
2
  /** XML specification version to validate against. Defaults to '1.0'. */
3
3
  xmlVersion?: '1.0' | '1.1';
4
+ /**
5
+ * Restrict matching to the ASCII subset of the NameStartChar/NameChar
6
+ * productions and skip unicode-aware regex matching entirely. Faster,
7
+ * especially for XML 1.1 (which otherwise requires the `/u` regex flag),
8
+ * but rejects legitimate non-ASCII XML names. Off by default for
9
+ * backward compatibility — opt in only when inputs are known to be ASCII.
10
+ * Defaults to false.
11
+ */
12
+ asciiOnly?: boolean;
4
13
  }
5
14
 
6
15
  export interface SanitizeOptions extends ValidationOptions {
@@ -55,6 +64,31 @@ export function nmToken(str: string, opts?: ValidationOptions): boolean;
55
64
  */
56
65
  export function nmTokens(str: string, opts?: ValidationOptions): boolean;
57
66
 
67
+ export interface CreateValidatorOptions extends ValidationOptions {
68
+ /**
69
+ * Max number of distinct strings to cache. Once reached, new strings are
70
+ * still validated correctly but are no longer cached; existing cached
71
+ * entries keep being served. Defaults to 2048.
72
+ */
73
+ maxCacheSize?: number;
74
+ }
75
+
76
+ export interface MemoizedValidator {
77
+ (str: string): boolean;
78
+ /** Clears the internal cache. */
79
+ reset(): void;
80
+ }
81
+
82
+ /**
83
+ * Returns a memoized boolean validator function for a single production.
84
+ * `opts` (xmlVersion, asciiOnly) are fixed at creation time. Repeated calls
85
+ * with the same string after the first are served from an internal cache
86
+ * instead of re-running the regex — useful when validating a small, reused
87
+ * vocabulary of names (e.g. tag/attribute names across many siblings in a
88
+ * document) many times.
89
+ */
90
+ export function createValidator(production: Production, opts?: CreateValidatorOptions): MemoizedValidator;
91
+
58
92
  /**
59
93
  * Validates a string against a named XML production and returns a detailed result.
60
94
  */
@@ -110,8 +110,36 @@ const buildRegexes = (startChar, char, flags = '') => {
110
110
  const regexes10 = buildRegexes(nameStartChar10, nameChar10); // no /u — BMP only
111
111
  const regexes11 = buildRegexes(nameStartChar11, nameChar11, 'u'); // /u — enables \u{10000}-\u{EFFFF}
112
112
 
113
- const getRegexes = (xmlVersion = '1.0') =>
114
- xmlVersion === '1.1' ? regexes11 : regexes10;
113
+ // ---------------------------------------------------------------------------
114
+ // ASCII-only fast path (opt-in, off by default)
115
+ //
116
+ // The XML 1.0 vs 1.1 NameStartChar/NameChar productions differ *only* in
117
+ // their non-ASCII ranges (merged vs split Latin-1 ranges, \u0487, and
118
+ // supplementary planes). Restricted to ASCII, both versions collapse to the
119
+ // same character classes, so a single regex pair covers both xmlVersion
120
+ // values — no /u flag needed.
121
+ //
122
+ // Rationale: unicode-aware regexes (the /u flag, required for XML 1.1's
123
+ // supplementary-plane range) are measurably slower in V8 than plain
124
+ // non-unicode regexes on the same input, even when the input is pure ASCII.
125
+ // For the common case — HTML/SVG ids, XML tags — names are ASCII, so callers
126
+ // who know this can opt in to skip the unicode-aware matching path entirely.
127
+ // This is a real but *conditional* win: mainly for XML 1.1 input (avoids /u),
128
+ // or at scale where the larger unicode character classes add engine
129
+ // overhead. It also changes behaviour (rejects legitimate non-ASCII XML
130
+ // 1.0/1.1 names), so it must never be silently enabled — hence off by
131
+ // default.
132
+ // ---------------------------------------------------------------------------
133
+
134
+ const nameStartCharAscii = ':A-Za-z_';
135
+ const nameCharAscii = nameStartCharAscii + '\\-\\.\\d';
136
+
137
+ const regexesAscii = buildRegexes(nameStartCharAscii, nameCharAscii); // no /u — ASCII only
138
+
139
+ const getRegexes = (xmlVersion = '1.0', asciiOnly = false) => {
140
+ if (asciiOnly) return regexesAscii;
141
+ return xmlVersion === '1.1' ? regexes11 : regexes10;
142
+ };
115
143
 
116
144
  // ---------------------------------------------------------------------------
117
145
  // Boolean validators
@@ -121,57 +149,131 @@ const getRegexes = (xmlVersion = '1.0') =>
121
149
  * Returns true if the string is a valid XML Name.
122
150
  * Colons are allowed anywhere (Name production).
123
151
  * Used for: DOCTYPE entity names, notation names, DTD element declarations.
152
+ *
153
+ * @param {{ xmlVersion?: '1.0'|'1.1', asciiOnly?: boolean }} [opts]
154
+ * asciiOnly: skip unicode-aware matching, ASCII names only (default false).
124
155
  */
125
- export const name = (str, { xmlVersion = '1.0' } = {}) =>
126
- getRegexes(xmlVersion).name.test(str);
156
+ export const name = (str, { xmlVersion = '1.0', asciiOnly = false } = {}) =>
157
+ getRegexes(xmlVersion, asciiOnly).name.test(str);
127
158
 
128
159
  /**
129
160
  * Returns true if the string is a valid NCName (Non-Colonized Name).
130
161
  * Colons are not permitted.
131
162
  * Used for: namespace prefixes, local names, SVG id attributes.
163
+ *
164
+ * @param {{ xmlVersion?: '1.0'|'1.1', asciiOnly?: boolean }} [opts]
165
+ * asciiOnly: skip unicode-aware matching, ASCII names only (default false).
132
166
  */
133
- export const ncName = (str, { xmlVersion = '1.0' } = {}) =>
134
- getRegexes(xmlVersion).ncName.test(str);
167
+ export const ncName = (str, { xmlVersion = '1.0', asciiOnly = false } = {}) =>
168
+ getRegexes(xmlVersion, asciiOnly).ncName.test(str);
135
169
 
136
170
  /**
137
171
  * Returns true if the string is a valid QName (Qualified Name).
138
172
  * Allows exactly one colon as a prefix separator: prefix:localName.
139
173
  * Used for: element and attribute names in namespace-aware XML/SVG.
174
+ *
175
+ * @param {{ xmlVersion?: '1.0'|'1.1', asciiOnly?: boolean }} [opts]
176
+ * asciiOnly: skip unicode-aware matching, ASCII names only (default false).
140
177
  */
141
- export const qName = (str, { xmlVersion = '1.0' } = {}) =>
142
- getRegexes(xmlVersion).qName.test(str);
178
+ export const qName = (str, { xmlVersion = '1.0', asciiOnly = false } = {}) =>
179
+ getRegexes(xmlVersion, asciiOnly).qName.test(str);
143
180
 
144
181
  /**
145
182
  * Returns true if the string is a valid NMToken.
146
183
  * Like Name but no restriction on the first character.
147
184
  * Used for: DTD NMTOKEN attribute values.
185
+ *
186
+ * @param {{ xmlVersion?: '1.0'|'1.1', asciiOnly?: boolean }} [opts]
187
+ * asciiOnly: skip unicode-aware matching, ASCII names only (default false).
148
188
  */
149
- export const nmToken = (str, { xmlVersion = '1.0' } = {}) =>
150
- getRegexes(xmlVersion).nmToken.test(str);
189
+ export const nmToken = (str, { xmlVersion = '1.0', asciiOnly = false } = {}) =>
190
+ getRegexes(xmlVersion, asciiOnly).nmToken.test(str);
151
191
 
152
192
  /**
153
193
  * Returns true if the string is a valid NMTokens value.
154
194
  * A whitespace-separated list of NMToken values.
155
195
  * Used for: DTD NMTOKENS attribute values.
196
+ *
197
+ * @param {{ xmlVersion?: '1.0'|'1.1', asciiOnly?: boolean }} [opts]
198
+ * asciiOnly: skip unicode-aware matching, ASCII names only (default false).
156
199
  */
157
- export const nmTokens = (str, { xmlVersion = '1.0' } = {}) =>
158
- getRegexes(xmlVersion).nmTokens.test(str);
200
+ export const nmTokens = (str, { xmlVersion = '1.0', asciiOnly = false } = {}) =>
201
+ getRegexes(xmlVersion, asciiOnly).nmTokens.test(str);
159
202
 
160
203
  // ---------------------------------------------------------------------------
161
- // Diagnostic validator
204
+ // Memoized validator factory
205
+ //
206
+ // Real documents reuse a small vocabulary of tag/attribute names across many
207
+ // siblings (e.g. `id`, `class`, `href` repeated across hundreds of elements).
208
+ // The plain boolean validators above re-run the regex on every call
209
+ // regardless of repeats. `createValidator` returns a closure with a private
210
+ // string -> boolean cache, so repeated names after the first become O(1)
211
+ // lookups instead of regex tests.
212
+ //
213
+ // - opts (xmlVersion, asciiOnly) are fixed at creation time, so the regex is
214
+ // resolved once, not on every call.
215
+ // - The cache is private to the returned closure — no shared/global state,
216
+ // no cross-caller pollution.
217
+ // - `maxCacheSize` bounds memory: once the cache reaches this many entries,
218
+ // it stops accepting new ones (existing entries keep serving hits; new
219
+ // misses just fall through to the regex, uncached). This avoids unbounded
220
+ // growth against adversarial/high-cardinality input (e.g. validating
221
+ // attacker-supplied names with no repeats) without the cost/complexity of
222
+ // a full LRU, and without the perf cliff of reset-and-refill thrashing.
223
+ // - Call `.reset()` on the returned function to clear the cache manually
224
+ // (e.g. between unrelated parse calls).
162
225
  // ---------------------------------------------------------------------------
163
226
 
164
227
  const PRODUCTIONS = ['name', 'ncName', 'qName', 'nmToken', 'nmTokens'];
165
228
 
229
+ /**
230
+ * Returns a memoized boolean validator function for a single production,
231
+ * with opts fixed at creation time.
232
+ *
233
+ * @param {'name'|'ncName'|'qName'|'nmToken'|'nmTokens'} production
234
+ * @param {{ xmlVersion?: '1.0'|'1.1', asciiOnly?: boolean, maxCacheSize?: number }} [opts]
235
+ * maxCacheSize: max number of distinct strings to cache (default 2048).
236
+ * Once reached, new strings are validated but not cached; existing cached
237
+ * entries keep being served.
238
+ * @returns {((str: string) => boolean) & { reset: () => void }}
239
+ */
240
+ export const createValidator = (production, { xmlVersion = '1.0', asciiOnly = false, maxCacheSize = 2048 } = {}) => {
241
+ if (!PRODUCTIONS.includes(production)) {
242
+ throw new TypeError(
243
+ `Unknown production "${production}". Must be one of: ${PRODUCTIONS.join(', ')}`
244
+ );
245
+ }
246
+
247
+ const regex = getRegexes(xmlVersion, asciiOnly)[production];
248
+ let cache = new Map();
249
+
250
+ const validator = (str) => {
251
+ const cached = cache.get(str);
252
+ if (cached !== undefined) return cached;
253
+
254
+ const result = regex.test(str);
255
+ if (cache.size < maxCacheSize) cache.set(str, result);
256
+ return result;
257
+ };
258
+
259
+ validator.reset = () => { cache = new Map(); };
260
+
261
+ return validator;
262
+ };
263
+
264
+ // ---------------------------------------------------------------------------
265
+ // Diagnostic validator
266
+ // ---------------------------------------------------------------------------
267
+
166
268
  /**
167
269
  * Validates a string against a named production and returns a detailed result.
168
270
  *
169
271
  * @param {string} str
170
272
  * @param {'name'|'ncName'|'qName'|'nmToken'|'nmTokens'} production
171
- * @param {{ xmlVersion?: '1.0'|'1.1' }} [opts]
273
+ * @param {{ xmlVersion?: '1.0'|'1.1', asciiOnly?: boolean }} [opts]
172
274
  * @returns {{ valid: boolean, production: string, input: string, reason?: string, position?: number }}
173
275
  */
174
- export const validate = (str, production, { xmlVersion = '1.0' } = {}) => {
276
+ export const validate = (str, production, { xmlVersion = '1.0', asciiOnly = false } = {}) => {
175
277
  if (!PRODUCTIONS.includes(production)) {
176
278
  throw new TypeError(
177
279
  `Unknown production "${production}". Must be one of: ${PRODUCTIONS.join(', ')}`
@@ -179,13 +281,20 @@ export const validate = (str, production, { xmlVersion = '1.0' } = {}) => {
179
281
  }
180
282
 
181
283
  const validators = { name, ncName, qName, nmToken, nmTokens };
182
- const isValid = validators[production](str, { xmlVersion });
284
+ const isValid = validators[production](str, { xmlVersion, asciiOnly });
183
285
 
184
286
  if (isValid) return { valid: true, production, input: str };
185
287
 
186
288
  let reason = 'Does not match the production rules';
187
289
  let position;
188
290
 
291
+ // Diagnostic fallback char checks must mirror the same character set the
292
+ // boolean validator above used, or the reported reason/position could
293
+ // contradict the `valid: false` result (e.g. flagging a char as illegal
294
+ // that the unicode-aware check would have accepted).
295
+ const startCharPattern = asciiOnly ? /^[:A-Za-z_]/ : /^[:A-Za-z_\u00C0-\uFFFD]/;
296
+ const namePattern = asciiOnly ? /[\w\-\\.:]/ : /[\w\-\\.:\u00B7\u00C0-\uFFFD]/;
297
+
189
298
  if (str.length === 0) {
190
299
  reason = 'Input is empty';
191
300
  } else if (production === 'ncName' && str.includes(':')) {
@@ -202,13 +311,13 @@ export const validate = (str, production, { xmlVersion = '1.0' } = {}) => {
202
311
  position = str.lastIndexOf(':');
203
312
  } else if (
204
313
  ['name', 'ncName', 'qName'].includes(production) &&
205
- !/^[:A-Za-z_\u00C0-\uFFFD]/.test(str[0])
314
+ !startCharPattern.test(str[0])
206
315
  ) {
207
316
  reason = `First character "${str[0]}" is not a valid NameStartChar`;
208
317
  position = 0;
209
318
  } else {
210
319
  for (let i = 0; i < str.length; i++) {
211
- if (!/[\w\-\\.:\u00B7\u00C0-\uFFFD]/.test(str[i])) {
320
+ if (!namePattern.test(str[i])) {
212
321
  reason = `Character "${str[i]}" at position ${i} is not a valid NameChar`;
213
322
  position = i;
214
323
  break;
@@ -228,7 +337,7 @@ export const validate = (str, production, { xmlVersion = '1.0' } = {}) => {
228
337
  *
229
338
  * @param {string[]} strings
230
339
  * @param {'name'|'ncName'|'qName'|'nmToken'|'nmTokens'} production
231
- * @param {{ xmlVersion?: '1.0'|'1.1' }} [opts]
340
+ * @param {{ xmlVersion?: '1.0'|'1.1', asciiOnly?: boolean }} [opts]
232
341
  * @returns {Array<{ valid: boolean, production: string, input: string, reason?: string, position?: number }>}
233
342
  */
234
343
  export const validateAll = (strings, production, opts = {}) =>
@@ -243,10 +352,12 @@ export const validateAll = (strings, production, opts = {}) =>
243
352
  *
244
353
  * @param {string} str
245
354
  * @param {'name'|'ncName'|'qName'|'nmToken'|'nmTokens'} production
246
- * @param {{ replacement?: string }} [opts]
355
+ * @param {{ replacement?: string, asciiOnly?: boolean }} [opts]
356
+ * asciiOnly: also replace any non-ASCII character, not just XML-illegal
357
+ * ones (default false).
247
358
  * @returns {string}
248
359
  */
249
- export const sanitize = (str, production = 'name', { replacement = '_' } = {}) => {
360
+ export const sanitize = (str, production = 'name', { replacement = '_', asciiOnly = false } = {}) => {
250
361
  if (!str) return replacement;
251
362
 
252
363
  let result = str;
@@ -257,7 +368,8 @@ export const sanitize = (str, production = 'name', { replacement = '_' } = {}) =
257
368
  }
258
369
 
259
370
  // Replace illegal characters
260
- result = result.replace(/[^\w\-\.:\u00B7\u00C0-\uFFFD]/g, replacement);
371
+ const allowedCharPattern = asciiOnly ? /[^\w\-\.:]/g : /[^\w\-\.:\u00B7\u00C0-\uFFFD]/g;
372
+ result = result.replace(allowedCharPattern, replacement);
261
373
 
262
374
  // Fix invalid start character for Name / NCName / QName
263
375
  if (production !== 'nmToken' && production !== 'nmTokens') {
@@ -64,46 +64,47 @@ function plainValue(source, onError) {
64
64
  }
65
65
  if (badChar)
66
66
  onError(0, 'BAD_SCALAR_START', `Plain value cannot start with ${badChar}`);
67
- return foldLines(source);
67
+ return unfoldLines(source);
68
68
  }
69
69
  function singleQuotedValue(source, onError) {
70
70
  if (source[source.length - 1] !== "'" || source.length === 1)
71
71
  onError(source.length, 'MISSING_CHAR', "Missing closing 'quote");
72
- return foldLines(source.slice(1, -1)).replace(/''/g, "'");
72
+ return unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
73
73
  }
74
- function foldLines(source) {
74
+ function unfoldLines(source) {
75
+ const line = /(.*?)\r?\n/sy;
76
+ let match = line.exec(source);
77
+ if (!match)
78
+ return source;
75
79
  /**
76
- * The negative lookbehind here and in the `re` RegExp is to
80
+ * The negative lookbehinds in these RegExps are to
77
81
  * prevent causing a polynomial search time in certain cases.
78
82
  *
79
- * The try-catch is for Safari, which doesn't support this yet:
83
+ * The try-catch is for Safari < 16.4 and other old browsers:
80
84
  * https://caniuse.com/js-regexp-lookbehind
81
85
  */
82
- let first, line;
86
+ let trimEnd, trimBoth;
83
87
  try {
84
- first = new RegExp('(.*?)(?<![ \t])[ \t]*\r?\n', 'sy');
85
- line = new RegExp('[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n', 'sy');
88
+ trimEnd = new RegExp('(?<![ \t])[ \t]+$');
89
+ trimBoth = new RegExp('^[ \t]+|(?<![ \t])[ \t]+$', 'g');
86
90
  }
87
91
  catch {
88
- first = /(.*?)[ \t]*\r?\n/sy;
89
- line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
92
+ trimEnd = /[ \t]+$/;
93
+ trimBoth = /^[ \t]+|[ \t]+$/g;
90
94
  }
91
- let match = first.exec(source);
92
- if (!match)
93
- return source;
94
- let res = match[1];
95
+ let res = match[1].replace(trimEnd, '');
95
96
  let sep = ' ';
96
- let pos = first.lastIndex;
97
- line.lastIndex = pos;
97
+ let pos = line.lastIndex;
98
98
  while ((match = line.exec(source))) {
99
- if (match[1] === '') {
99
+ const lm = match[1].replace(trimBoth, '');
100
+ if (lm === '') {
100
101
  if (sep === '\n')
101
102
  res += sep;
102
103
  else
103
104
  sep = '\n';
104
105
  }
105
106
  else {
106
- res += sep + match[1];
107
+ res += sep + lm;
107
108
  sep = ' ';
108
109
  }
109
110
  pos = line.lastIndex;
@@ -43,38 +43,40 @@ class Alias extends NodeBase {
43
43
  if (node.anchor === this.source)
44
44
  found = node;
45
45
  }
46
+ if (found && ctx) {
47
+ const { anchors, doc, maxAliasCount } = ctx;
48
+ let data = anchors.get(found);
49
+ if (!data) {
50
+ // Resolve anchors for Node.prototype.toJS()
51
+ toJS(found, null, ctx);
52
+ data = anchors.get(found);
53
+ }
54
+ /* istanbul ignore if */
55
+ if (data?.res === undefined) {
56
+ const msg = 'This should not happen: Alias anchor was not resolved?';
57
+ throw new ReferenceError(msg);
58
+ }
59
+ if (maxAliasCount >= 0) {
60
+ data.count += 1;
61
+ if (data.aliasCount === 0)
62
+ data.aliasCount = getAliasCount(doc, found, anchors);
63
+ if (data.count * data.aliasCount > maxAliasCount) {
64
+ const msg = 'Excessive alias count indicates a resource exhaustion attack';
65
+ throw new ReferenceError(msg);
66
+ }
67
+ }
68
+ }
46
69
  return found;
47
70
  }
48
71
  toJSON(_arg, ctx) {
49
72
  if (!ctx)
50
73
  return { source: this.source };
51
- const { anchors, doc, maxAliasCount } = ctx;
52
- const source = this.resolve(doc, ctx);
74
+ const source = this.resolve(ctx.doc, ctx);
53
75
  if (!source) {
54
76
  const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
55
77
  throw new ReferenceError(msg);
56
78
  }
57
- let data = anchors.get(source);
58
- if (!data) {
59
- // Resolve anchors for Node.prototype.toJS()
60
- toJS(source, null, ctx);
61
- data = anchors.get(source);
62
- }
63
- /* istanbul ignore if */
64
- if (data?.res === undefined) {
65
- const msg = 'This should not happen: Alias anchor was not resolved?';
66
- throw new ReferenceError(msg);
67
- }
68
- if (maxAliasCount >= 0) {
69
- data.count += 1;
70
- if (data.aliasCount === 0)
71
- data.aliasCount = getAliasCount(doc, source, anchors);
72
- if (data.count * data.aliasCount > maxAliasCount) {
73
- const msg = 'Excessive alias count indicates a resource exhaustion attack';
74
- throw new ReferenceError(msg);
75
- }
76
- }
77
- return data.res;
79
+ return ctx.anchors.get(source).res;
78
80
  }
79
81
  toString(ctx, _onComment, _onChompKeep) {
80
82
  const src = `*${this.source}`;
@@ -66,46 +66,47 @@ function plainValue(source, onError) {
66
66
  }
67
67
  if (badChar)
68
68
  onError(0, 'BAD_SCALAR_START', `Plain value cannot start with ${badChar}`);
69
- return foldLines(source);
69
+ return unfoldLines(source);
70
70
  }
71
71
  function singleQuotedValue(source, onError) {
72
72
  if (source[source.length - 1] !== "'" || source.length === 1)
73
73
  onError(source.length, 'MISSING_CHAR', "Missing closing 'quote");
74
- return foldLines(source.slice(1, -1)).replace(/''/g, "'");
74
+ return unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
75
75
  }
76
- function foldLines(source) {
76
+ function unfoldLines(source) {
77
+ const line = /(.*?)\r?\n/sy;
78
+ let match = line.exec(source);
79
+ if (!match)
80
+ return source;
77
81
  /**
78
- * The negative lookbehind here and in the `re` RegExp is to
82
+ * The negative lookbehinds in these RegExps are to
79
83
  * prevent causing a polynomial search time in certain cases.
80
84
  *
81
- * The try-catch is for Safari, which doesn't support this yet:
85
+ * The try-catch is for Safari < 16.4 and other old browsers:
82
86
  * https://caniuse.com/js-regexp-lookbehind
83
87
  */
84
- let first, line;
88
+ let trimEnd, trimBoth;
85
89
  try {
86
- first = new RegExp('(.*?)(?<![ \t])[ \t]*\r?\n', 'sy');
87
- line = new RegExp('[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n', 'sy');
90
+ trimEnd = new RegExp('(?<![ \t])[ \t]+$');
91
+ trimBoth = new RegExp('^[ \t]+|(?<![ \t])[ \t]+$', 'g');
88
92
  }
89
93
  catch {
90
- first = /(.*?)[ \t]*\r?\n/sy;
91
- line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
94
+ trimEnd = /[ \t]+$/;
95
+ trimBoth = /^[ \t]+|[ \t]+$/g;
92
96
  }
93
- let match = first.exec(source);
94
- if (!match)
95
- return source;
96
- let res = match[1];
97
+ let res = match[1].replace(trimEnd, '');
97
98
  let sep = ' ';
98
- let pos = first.lastIndex;
99
- line.lastIndex = pos;
99
+ let pos = line.lastIndex;
100
100
  while ((match = line.exec(source))) {
101
- if (match[1] === '') {
101
+ const lm = match[1].replace(trimBoth, '');
102
+ if (lm === '') {
102
103
  if (sep === '\n')
103
104
  res += sep;
104
105
  else
105
106
  sep = '\n';
106
107
  }
107
108
  else {
108
- res += sep + match[1];
109
+ res += sep + lm;
109
110
  sep = ' ';
110
111
  }
111
112
  pos = line.lastIndex;