lambda-live-debugger 1.12.7 → 1.12.8

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 (308) hide show
  1. package/dist/extension/extension.zip +0 -0
  2. package/dist/extension/nodejs/node_modules/interceptor.js +258 -47
  3. package/dist/extension/nodejs/node_modules/interceptor.js.map +4 -4
  4. package/node_modules/@aws-sdk/checksums/package.json +5 -5
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
  7. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +1 -1
  8. package/node_modules/@aws-sdk/client-iam/package.json +9 -9
  9. package/node_modules/@aws-sdk/client-iot/dist-cjs/index.js +71 -9
  10. package/node_modules/@aws-sdk/client-iot/dist-es/models/enums.js +14 -0
  11. package/node_modules/@aws-sdk/client-iot/dist-es/schemas/schemas_0.js +49 -8
  12. package/node_modules/@aws-sdk/client-iot/dist-types/commands/AttachSecurityProfileCommand.d.ts +4 -1
  13. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CancelDetectMitigationActionsTaskCommand.d.ts +4 -1
  14. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateCustomMetricCommand.d.ts +4 -1
  15. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateDimensionCommand.d.ts +4 -1
  16. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateSecurityProfileCommand.d.ts +4 -1
  17. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateTopicRuleCommand.d.ts +34 -0
  18. package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateTopicRuleDestinationCommand.d.ts +14 -0
  19. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteCustomMetricCommand.d.ts +4 -1
  20. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteDimensionCommand.d.ts +4 -1
  21. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteSecurityProfileCommand.d.ts +4 -1
  22. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteTopicRuleDestinationCommand.d.ts +2 -1
  23. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteV2LoggingLevelCommand.d.ts +1 -1
  24. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeprecateThingTypeCommand.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeCustomMetricCommand.d.ts +4 -1
  26. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeDetectMitigationActionsTaskCommand.d.ts +4 -1
  27. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeDimensionCommand.d.ts +4 -1
  28. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeSecurityProfileCommand.d.ts +4 -1
  29. package/node_modules/@aws-sdk/client-iot/dist-types/commands/DetachSecurityProfileCommand.d.ts +4 -1
  30. package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetBehaviorModelTrainingSummariesCommand.d.ts +4 -1
  31. package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetTopicRuleCommand.d.ts +34 -0
  32. package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetTopicRuleDestinationCommand.d.ts +7 -0
  33. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListActiveViolationsCommand.d.ts +4 -1
  34. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListCustomMetricsCommand.d.ts +4 -1
  35. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDetectMitigationActionsExecutionsCommand.d.ts +4 -1
  36. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDetectMitigationActionsTasksCommand.d.ts +4 -1
  37. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDimensionsCommand.d.ts +4 -1
  38. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListSecurityProfilesCommand.d.ts +4 -1
  39. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListSecurityProfilesForTargetCommand.d.ts +4 -1
  40. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListStreamsCommand.d.ts +2 -1
  41. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  42. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTargetsForPolicyCommand.d.ts +1 -2
  43. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTargetsForSecurityProfileCommand.d.ts +4 -1
  44. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTopicRuleDestinationsCommand.d.ts +7 -0
  45. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListViolationEventsCommand.d.ts +4 -1
  46. package/node_modules/@aws-sdk/client-iot/dist-types/commands/PutVerificationStateOnViolationCommand.d.ts +4 -1
  47. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ReplaceTopicRuleCommand.d.ts +34 -0
  48. package/node_modules/@aws-sdk/client-iot/dist-types/commands/StartDetectMitigationActionsTaskCommand.d.ts +4 -1
  49. package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateCustomMetricCommand.d.ts +4 -1
  50. package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateDimensionCommand.d.ts +4 -1
  51. package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateSecurityProfileCommand.d.ts +4 -1
  52. package/node_modules/@aws-sdk/client-iot/dist-types/commands/ValidateSecurityProfileBehaviorsCommand.d.ts +4 -1
  53. package/node_modules/@aws-sdk/client-iot/dist-types/models/enums.d.ts +38 -0
  54. package/node_modules/@aws-sdk/client-iot/dist-types/models/models_0.d.ts +195 -45
  55. package/node_modules/@aws-sdk/client-iot/dist-types/models/models_1.d.ts +46 -69
  56. package/node_modules/@aws-sdk/client-iot/dist-types/models/models_2.d.ts +112 -2
  57. package/node_modules/@aws-sdk/client-iot/dist-types/schemas/schemas_0.d.ts +5 -0
  58. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeleteTopicRuleDestinationCommand.d.ts +2 -4
  59. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeleteV2LoggingLevelCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeprecateThingTypeCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +2 -1
  62. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  63. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListTargetsForPolicyCommand.d.ts +1 -2
  64. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/enums.d.ts +18 -0
  65. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_0.d.ts +36 -11
  66. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_1.d.ts +11 -18
  67. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_2.d.ts +28 -0
  68. package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
  69. package/node_modules/@aws-sdk/client-iot/package.json +8 -8
  70. package/node_modules/@aws-sdk/client-iot-data-plane/dist-cjs/index.js +1 -1
  71. package/node_modules/@aws-sdk/client-iot-data-plane/package.json +8 -8
  72. package/node_modules/@aws-sdk/client-lambda/README.md +21 -0
  73. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +83 -3
  74. package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +6 -0
  75. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
  76. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/GetResourcePolicyCommand.js +4 -0
  77. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/PutResourcePolicyCommand.js +4 -0
  78. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/index.js +3 -0
  79. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +5 -0
  80. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +52 -2
  81. package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +21 -0
  82. package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +5 -2
  83. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +6 -0
  85. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
  86. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +3 -0
  87. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +3 -0
  88. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  89. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetResourcePolicyCommand.d.ts +84 -0
  90. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +3 -0
  91. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +3 -0
  92. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +3 -0
  93. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutResourcePolicyCommand.d.ts +98 -0
  94. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
  95. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +3 -0
  96. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +6 -0
  97. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/index.d.ts +3 -0
  98. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +13 -0
  99. package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +1 -1
  100. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +95 -4
  101. package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +9 -0
  102. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +51 -0
  103. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/LambdaClient.d.ts +18 -0
  104. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
  105. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
  106. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
  107. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/index.d.ts +3 -0
  108. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
  109. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +25 -0
  110. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  111. package/node_modules/@aws-sdk/client-lambda/package.json +9 -9
  112. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  113. package/node_modules/@aws-sdk/client-s3/package.json +13 -13
  114. package/node_modules/@aws-sdk/core/package.json +5 -5
  115. package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +5 -5
  116. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  117. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  118. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  119. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  120. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
  121. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
  122. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  123. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  124. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  125. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  126. package/node_modules/@aws-sdk/credential-providers/package.json +15 -15
  127. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +6 -6
  128. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  129. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  130. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  131. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  132. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  133. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  134. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  135. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
  136. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
  137. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  138. package/node_modules/@aws-sdk/types/package.json +2 -2
  139. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  140. package/node_modules/@inquirer/ansi/package.json +3 -2
  141. package/node_modules/@inquirer/checkbox/dist/index.d.ts +12 -1
  142. package/node_modules/@inquirer/checkbox/package.json +7 -6
  143. package/node_modules/@inquirer/confirm/README.md +23 -0
  144. package/node_modules/@inquirer/confirm/dist/index.d.ts +27 -3
  145. package/node_modules/@inquirer/confirm/dist/index.js +40 -14
  146. package/node_modules/@inquirer/confirm/package.json +5 -4
  147. package/node_modules/@inquirer/core/README.md +9 -3
  148. package/node_modules/@inquirer/core/dist/lib/create-prompt.d.ts +10 -3
  149. package/node_modules/@inquirer/core/dist/lib/hook-engine.d.ts +2 -8
  150. package/node_modules/@inquirer/core/dist/lib/make-theme.js +1 -0
  151. package/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.d.ts +2 -3
  152. package/node_modules/@inquirer/core/dist/lib/theme.d.ts +1 -1
  153. package/node_modules/@inquirer/core/dist/lib/use-memo.js +1 -1
  154. package/node_modules/@inquirer/core/dist/lib/use-state.d.ts +5 -2
  155. package/node_modules/@inquirer/core/dist/lib/use-state.js +7 -2
  156. package/node_modules/@inquirer/core/package.json +7 -6
  157. package/node_modules/@inquirer/editor/dist/index.d.ts +10 -2
  158. package/node_modules/@inquirer/editor/package.json +6 -5
  159. package/node_modules/@inquirer/expand/README.md +1 -1
  160. package/node_modules/@inquirer/expand/dist/index.d.ts +12 -1
  161. package/node_modules/@inquirer/expand/package.json +5 -4
  162. package/node_modules/@inquirer/external-editor/README.md +13 -0
  163. package/node_modules/@inquirer/external-editor/package.json +4 -3
  164. package/node_modules/@inquirer/figures/package.json +4 -3
  165. package/node_modules/@inquirer/input/dist/index.d.ts +13 -1
  166. package/node_modules/@inquirer/input/package.json +5 -4
  167. package/node_modules/@inquirer/number/dist/index.d.ts +12 -2
  168. package/node_modules/@inquirer/number/dist/index.js +1 -6
  169. package/node_modules/@inquirer/number/dist/is-step-of.d.ts +1 -0
  170. package/node_modules/@inquirer/number/dist/is-step-of.js +22 -0
  171. package/node_modules/@inquirer/number/package.json +5 -4
  172. package/node_modules/@inquirer/password/README.md +24 -6
  173. package/node_modules/@inquirer/password/dist/index.d.ts +9 -1
  174. package/node_modules/@inquirer/password/dist/index.js +27 -8
  175. package/node_modules/@inquirer/password/package.json +6 -5
  176. package/node_modules/@inquirer/prompts/README.md +67 -7
  177. package/node_modules/@inquirer/prompts/package.json +14 -13
  178. package/node_modules/@inquirer/rawlist/dist/index.d.ts +8 -1
  179. package/node_modules/@inquirer/rawlist/package.json +5 -4
  180. package/node_modules/@inquirer/search/README.md +9 -8
  181. package/node_modules/@inquirer/search/dist/index.d.ts +13 -1
  182. package/node_modules/@inquirer/search/dist/index.js +6 -1
  183. package/node_modules/@inquirer/search/package.json +6 -5
  184. package/node_modules/@inquirer/select/dist/index.d.ts +9 -1
  185. package/node_modules/@inquirer/select/package.json +7 -6
  186. package/node_modules/@inquirer/type/dist/utils.d.ts +8 -3
  187. package/node_modules/@inquirer/type/package.json +3 -2
  188. package/node_modules/@smithy/core/CHANGELOG.md +7 -0
  189. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  190. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
  191. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  192. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  193. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  194. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
  195. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
  196. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
  197. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  198. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  199. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  200. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  201. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  202. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  203. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  204. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  205. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  206. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  207. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  208. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  209. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  210. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  211. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  212. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  213. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  214. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  215. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  216. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
  217. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
  218. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  219. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  220. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
  221. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  222. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  223. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  224. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  225. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  226. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  227. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  228. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  229. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  230. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  231. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  232. package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
  233. package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
  234. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  235. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  236. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  237. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
  238. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
  239. package/node_modules/@smithy/core/package.json +1 -1
  240. package/node_modules/@smithy/node-http-handler/CHANGELOG.md +23 -0
  241. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +18 -6
  242. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  243. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
  244. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  245. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
  246. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +8 -1
  247. package/node_modules/@smithy/node-http-handler/package.json +3 -3
  248. package/node_modules/@smithy/types/CHANGELOG.md +6 -0
  249. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
  250. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
  251. package/node_modules/@smithy/types/package.json +1 -1
  252. package/node_modules/@types/node/README.md +1 -1
  253. package/node_modules/@types/node/buffer.buffer.d.ts +10 -5
  254. package/node_modules/@types/node/crypto.d.ts +2 -4
  255. package/node_modules/@types/node/dgram.d.ts +119 -4
  256. package/node_modules/@types/node/ffi.d.ts +1 -1
  257. package/node_modules/@types/node/fs/promises.d.ts +61 -65
  258. package/node_modules/@types/node/fs.d.ts +86 -76
  259. package/node_modules/@types/node/http.d.ts +17 -1
  260. package/node_modules/@types/node/http2.d.ts +12 -4
  261. package/node_modules/@types/node/index.d.ts +1 -0
  262. package/node_modules/@types/node/inspector.d.ts +2 -1
  263. package/node_modules/@types/node/net.d.ts +108 -16
  264. package/node_modules/@types/node/package.json +2 -2
  265. package/node_modules/@types/node/process.d.ts +52 -0
  266. package/node_modules/@types/node/quic.d.ts +246 -38
  267. package/node_modules/@types/node/sqlite.d.ts +6 -2
  268. package/node_modules/@types/node/stream/iter.d.ts +4 -4
  269. package/node_modules/@types/node/test.d.ts +36 -0
  270. package/node_modules/@types/node/tls.d.ts +24 -0
  271. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
  272. package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
  273. package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
  274. package/node_modules/@types/node/tty.d.ts +4 -3
  275. package/node_modules/@types/node/vfs.d.ts +210 -0
  276. package/node_modules/@types/node/vm.d.ts +1 -1
  277. package/node_modules/fast-xml-parser/CHANGELOG.md +8 -1
  278. package/node_modules/fast-xml-parser/README.md +1 -1
  279. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  280. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  281. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  282. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  283. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  284. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
  285. package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
  286. package/node_modules/fast-xml-parser/package.json +2 -2
  287. package/node_modules/fast-xml-parser/src/fxp.d.ts +2 -0
  288. package/node_modules/fast-xml-parser/src/validator.js +98 -5
  289. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +16 -1
  290. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +23 -1
  291. package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +14 -0
  292. package/node_modules/inquirer/README.md +3 -9
  293. package/node_modules/inquirer/dist/index.d.ts +2 -3
  294. package/node_modules/inquirer/dist/index.js +1 -1
  295. package/node_modules/inquirer/dist/types.d.ts +3 -3
  296. package/node_modules/inquirer/package.json +7 -6
  297. package/node_modules/strnum/CHANGELOG.md +6 -0
  298. package/node_modules/strnum/package.json +1 -1
  299. package/node_modules/strnum/strnum.js +5 -1
  300. package/package.json +19 -19
  301. package/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.d.ts +0 -10
  302. package/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.js +0 -13
  303. package/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.d.ts +0 -10
  304. package/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.js +0 -13
  305. package/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.d.ts +0 -10
  306. package/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.js +0 -13
  307. package/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.d.ts +0 -10
  308. package/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.js +0 -13
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-providers",
3
- "version": "3.1111.0",
3
+ "version": "3.1127.0",
4
4
  "description": "A collection of credential providers, without requiring service clients like STS, Cognito",
5
5
  "keywords": [
6
6
  "aws",
@@ -54,21 +54,21 @@
54
54
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
55
55
  },
56
56
  "dependencies": {
57
- "@aws-sdk/core": "^3.977.8",
58
- "@aws-sdk/credential-provider-cognito-identity": "^3.972.68",
59
- "@aws-sdk/credential-provider-env": "^3.972.69",
60
- "@aws-sdk/credential-provider-http": "^3.972.71",
61
- "@aws-sdk/credential-provider-ini": "^3.973.14",
62
- "@aws-sdk/credential-provider-login": "^3.972.76",
63
- "@aws-sdk/credential-provider-node": "^3.972.80",
64
- "@aws-sdk/credential-provider-process": "^3.972.69",
65
- "@aws-sdk/credential-provider-sso": "^3.973.13",
66
- "@aws-sdk/credential-provider-web-identity": "^3.972.75",
67
- "@aws-sdk/nested-clients": "^3.997.43",
68
- "@aws-sdk/types": "^3.974.4",
69
- "@smithy/core": "^3.31.1",
57
+ "@aws-sdk/core": "^3.977.9",
58
+ "@aws-sdk/credential-provider-cognito-identity": "^3.972.69",
59
+ "@aws-sdk/credential-provider-env": "^3.972.70",
60
+ "@aws-sdk/credential-provider-http": "^3.972.72",
61
+ "@aws-sdk/credential-provider-ini": "^3.973.15",
62
+ "@aws-sdk/credential-provider-login": "^3.972.77",
63
+ "@aws-sdk/credential-provider-node": "^3.972.82",
64
+ "@aws-sdk/credential-provider-process": "^3.972.70",
65
+ "@aws-sdk/credential-provider-sso": "^3.973.14",
66
+ "@aws-sdk/credential-provider-web-identity": "^3.972.76",
67
+ "@aws-sdk/nested-clients": "^3.997.44",
68
+ "@aws-sdk/types": "^3.974.5",
69
+ "@smithy/core": "^3.33.3",
70
70
  "@smithy/credential-provider-imds": "^4.4.16",
71
- "@smithy/types": "^4.16.1",
71
+ "@smithy/types": "^4.17.2",
72
72
  "tslib": "^2.6.2"
73
73
  },
74
74
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3",
3
- "version": "3.972.74",
3
+ "version": "3.972.75",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-sdk-s3",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -94,11 +94,11 @@
94
94
  "test:types": "tsc -p tsconfig.test.json"
95
95
  },
96
96
  "dependencies": {
97
- "@aws-sdk/core": "^3.977.8",
98
- "@aws-sdk/signature-v4-multi-region": "^3.996.45",
99
- "@aws-sdk/types": "^3.974.4",
100
- "@smithy/core": "^3.31.1",
101
- "@smithy/types": "^4.16.1",
97
+ "@aws-sdk/core": "^3.977.9",
98
+ "@aws-sdk/signature-v4-multi-region": "^3.996.46",
99
+ "@aws-sdk/types": "^3.974.5",
100
+ "@smithy/core": "^3.33.3",
101
+ "@smithy/types": "^4.17.2",
102
102
  "tslib": "^2.6.2"
103
103
  },
104
104
  "devDependencies": {
@@ -83,7 +83,7 @@ const commonParams = {
83
83
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
84
84
  };
85
85
 
86
- var version = "3.997.42";
86
+ var version = "3.997.43";
87
87
  var packageInfo = {
88
88
  version: version};
89
89
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.42";
81
+ var version = "3.997.43";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.42";
81
+ var version = "3.997.43";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.42";
81
+ var version = "3.997.43";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -258,7 +258,7 @@ const commonParams = {
258
258
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
259
259
  };
260
260
 
261
- var version = "3.997.42";
261
+ var version = "3.997.43";
262
262
  var packageInfo = {
263
263
  version: version};
264
264
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.997.43",
3
+ "version": "3.997.44",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
6
6
  "license": "Apache-2.0",
@@ -100,13 +100,13 @@
100
100
  "test:watch": "yarn g:vitest watch"
101
101
  },
102
102
  "dependencies": {
103
- "@aws-sdk/core": "^3.977.8",
104
- "@aws-sdk/signature-v4-multi-region": "^3.996.45",
105
- "@aws-sdk/types": "^3.974.4",
106
- "@smithy/core": "^3.31.1",
107
- "@smithy/fetch-http-handler": "^5.6.13",
108
- "@smithy/node-http-handler": "^4.9.13",
109
- "@smithy/types": "^4.16.1",
103
+ "@aws-sdk/core": "^3.977.9",
104
+ "@aws-sdk/signature-v4-multi-region": "^3.996.46",
105
+ "@aws-sdk/types": "^3.974.5",
106
+ "@smithy/core": "^3.33.3",
107
+ "@smithy/fetch-http-handler": "^5.7.2",
108
+ "@smithy/node-http-handler": "^4.11.3",
109
+ "@smithy/types": "^4.17.2",
110
110
  "tslib": "^2.6.2"
111
111
  },
112
112
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.996.45",
3
+ "version": "3.996.46",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/signature-v4-multi-region",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -42,9 +42,9 @@
42
42
  "test:browser": "yarn build:browser && yarn g:vitest run -c vitest.config.browser.mts"
43
43
  },
44
44
  "dependencies": {
45
- "@aws-sdk/types": "^3.974.4",
45
+ "@aws-sdk/types": "^3.974.5",
46
46
  "@smithy/signature-v4": "^5.6.12",
47
- "@smithy/types": "^4.16.1",
47
+ "@smithy/types": "^4.17.2",
48
48
  "tslib": "^2.6.2"
49
49
  },
50
50
  "devDependencies": {
@@ -61,7 +61,7 @@ const writeSSOTokenToFile = (id, ssoToken) => {
61
61
  return writeFile(tokenFilepath, tokenString);
62
62
  };
63
63
 
64
- const lastRefreshAttemptTime = new Date(0);
64
+ const lastRefreshAttemptTimes = new Map();
65
65
  const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
66
66
  init.logger?.debug("@aws-sdk/token-providers - fromSso");
67
67
  const profiles = await parseKnownFiles(init);
@@ -98,11 +98,15 @@ const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
98
98
  validateTokenKey("accessToken", ssoToken.accessToken);
99
99
  validateTokenKey("expiresAt", ssoToken.expiresAt);
100
100
  const { accessToken, expiresAt } = ssoToken;
101
- const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
101
+ const existingToken = {
102
+ token: accessToken,
103
+ expiration: new Date(expiresAt),
104
+ };
102
105
  if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
103
106
  return existingToken;
104
107
  }
105
- if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) {
108
+ const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;
109
+ if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {
106
110
  validateTokenExpiry(existingToken);
107
111
  return existingToken;
108
112
  }
@@ -110,7 +114,7 @@ const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
110
114
  validateTokenKey("clientSecret", ssoToken.clientSecret, true);
111
115
  validateTokenKey("refreshToken", ssoToken.refreshToken, true);
112
116
  try {
113
- lastRefreshAttemptTime.setTime(Date.now());
117
+ lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
114
118
  const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
115
119
  validateTokenKey("accessToken", newSsoOidcToken.accessToken);
116
120
  validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
@@ -4,7 +4,7 @@ import { getNewSsoOidcToken } from "./getNewSsoOidcToken";
4
4
  import { validateTokenExpiry } from "./validateTokenExpiry";
5
5
  import { validateTokenKey } from "./validateTokenKey";
6
6
  import { writeSSOTokenToFile } from "./writeSSOTokenToFile";
7
- const lastRefreshAttemptTime = new Date(0);
7
+ const lastRefreshAttemptTimes = new Map();
8
8
  export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
9
9
  init.logger?.debug("@aws-sdk/token-providers - fromSso");
10
10
  const profiles = await parseKnownFiles(init);
@@ -41,11 +41,15 @@ export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
41
41
  validateTokenKey("accessToken", ssoToken.accessToken);
42
42
  validateTokenKey("expiresAt", ssoToken.expiresAt);
43
43
  const { accessToken, expiresAt } = ssoToken;
44
- const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
44
+ const existingToken = {
45
+ token: accessToken,
46
+ expiration: new Date(expiresAt),
47
+ };
45
48
  if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
46
49
  return existingToken;
47
50
  }
48
- if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) {
51
+ const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;
52
+ if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {
49
53
  validateTokenExpiry(existingToken);
50
54
  return existingToken;
51
55
  }
@@ -53,7 +57,7 @@ export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
53
57
  validateTokenKey("clientSecret", ssoToken.clientSecret, true);
54
58
  validateTokenKey("refreshToken", ssoToken.refreshToken, true);
55
59
  try {
56
- lastRefreshAttemptTime.setTime(Date.now());
60
+ lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
57
61
  const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
58
62
  validateTokenKey("accessToken", newSsoOidcToken.accessToken);
59
63
  validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.1111.0",
3
+ "version": "3.1116.0",
4
4
  "description": "A collection of token providers",
5
5
  "keywords": [
6
6
  "aws",
@@ -48,11 +48,11 @@
48
48
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.977.8",
52
- "@aws-sdk/nested-clients": "^3.997.43",
53
- "@aws-sdk/types": "^3.974.4",
54
- "@smithy/core": "^3.31.1",
55
- "@smithy/types": "^4.16.1",
51
+ "@aws-sdk/core": "^3.977.9",
52
+ "@aws-sdk/nested-clients": "^3.997.44",
53
+ "@aws-sdk/types": "^3.974.5",
54
+ "@smithy/core": "^3.33.3",
55
+ "@smithy/types": "^4.17.2",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.974.4",
3
+ "version": "3.974.5",
4
4
  "description": "Types for the AWS SDK",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/types",
6
6
  "license": "Apache-2.0",
@@ -41,7 +41,7 @@
41
41
  "test": "tsc -p tsconfig.test.json"
42
42
  },
43
43
  "dependencies": {
44
- "@smithy/types": "^4.16.1",
44
+ "@smithy/types": "^4.17.2",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.972.39",
3
+ "version": "3.972.40",
4
4
  "description": "XML utilities for the AWS SDK",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/xml-builder",
6
6
  "license": "Apache-2.0",
@@ -47,7 +47,7 @@
47
47
  "test:fuzz": "jazzer tests/xml-parser.fuzz.js corpus --sync -i xml-parser -- -max_total_time=300"
48
48
  },
49
49
  "dependencies": {
50
- "@smithy/types": "^4.16.1",
50
+ "@smithy/types": "^4.17.2",
51
51
  "tslib": "^2.6.2"
52
52
  },
53
53
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/ansi",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "keywords": [
5
5
  "ansi",
6
6
  "answer",
@@ -67,6 +67,7 @@
67
67
  "tsc": "tsc"
68
68
  },
69
69
  "devDependencies": {
70
+ "@repo/tsconfig": "0.0.0",
70
71
  "typescript": "^6.0.2"
71
72
  },
72
73
  "engines": {
@@ -74,5 +75,5 @@
74
75
  },
75
76
  "main": "./dist/index.js",
76
77
  "types": "./dist/index.d.ts",
77
- "gitHead": "b43359d803733b1a7c4638addcc270987fb894c3"
78
+ "gitHead": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
78
79
  }
@@ -41,6 +41,17 @@ type NormalizedChoice<Value> = {
41
41
  disabled: boolean | string;
42
42
  checked: boolean;
43
43
  };
44
+ type CheckboxConfig<Value = string> = {
45
+ message: string;
46
+ prefix?: string;
47
+ pageSize?: number;
48
+ choices: ReadonlyArray<Value | Choice<Value> | Separator>;
49
+ loop?: boolean;
50
+ required?: boolean;
51
+ validate?: (choices: readonly NormalizedChoice<Value>[]) => boolean | string | Promise<string | boolean>;
52
+ theme?: PartialDeep<Theme<CheckboxTheme>>;
53
+ shortcuts?: CheckboxShortcuts;
54
+ };
44
55
  declare const _default: <const Value>(config: {
45
56
  message: string;
46
57
  prefix?: string | undefined;
@@ -51,6 +62,6 @@ declare const _default: <const Value>(config: {
51
62
  validate?: ((choices: readonly NormalizedChoice<Value>[]) => boolean | string | Promise<string | boolean>) | undefined;
52
63
  theme?: PartialDeep<Theme<CheckboxTheme>> | undefined;
53
64
  shortcuts?: CheckboxShortcuts | undefined;
54
- }, context?: import("@inquirer/type").Context) => Promise<Value[]>;
65
+ } & CheckboxConfig<Value>, context?: import("@inquirer/type").Context) => Promise<Value[]>;
55
66
  export default _default;
56
67
  export { Separator } from '@inquirer/core';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/checkbox",
3
- "version": "5.2.1",
3
+ "version": "5.2.4",
4
4
  "description": "Inquirer checkbox prompt",
5
5
  "keywords": [
6
6
  "answer",
@@ -67,12 +67,13 @@
67
67
  "tsc": "tsc"
68
68
  },
69
69
  "dependencies": {
70
- "@inquirer/ansi": "^2.0.7",
71
- "@inquirer/core": "^11.2.1",
72
- "@inquirer/figures": "^2.0.7",
73
- "@inquirer/type": "^4.0.7"
70
+ "@inquirer/ansi": "^2.0.8",
71
+ "@inquirer/core": "^12.0.2",
72
+ "@inquirer/figures": "^2.0.9",
73
+ "@inquirer/type": "4.1.1"
74
74
  },
75
75
  "devDependencies": {
76
+ "@repo/tsconfig": "0.0.0",
76
77
  "typescript": "^6.0.2"
77
78
  },
78
79
  "peerDependencies": {
@@ -88,5 +89,5 @@
88
89
  },
89
90
  "main": "./dist/index.js",
90
91
  "types": "./dist/index.d.ts",
91
- "gitHead": "b43359d803733b1a7c4638addcc270987fb894c3"
92
+ "gitHead": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
92
93
  }
@@ -78,14 +78,37 @@ type Theme = {
78
78
  interval: number;
79
79
  frames: string[];
80
80
  };
81
+ keywords: {
82
+ yes: string;
83
+ no: string;
84
+ };
81
85
  style: {
82
86
  answer: (text: string) => string;
83
87
  message: (text: string, status: 'idle' | 'done' | 'loading') => string;
84
88
  defaultAnswer: (text: string) => string;
89
+ confirmDefault: (text: string) => string;
85
90
  };
86
91
  };
87
92
  ```
88
93
 
94
+ The `keywords` property defines the words accepted as "yes" and "no". Matching is
95
+ prefix-based and case-insensitive, and the first character of each word is shown in
96
+ the hint (e.g. `Y/n`). The matched word is also displayed once the prompt is answered.
97
+ Overriding `keywords` is how `@inquirer/i18n` localizes the prompt:
98
+
99
+ ```ts
100
+ confirm({
101
+ message: '¿Continuar?',
102
+ theme: {
103
+ keywords: { yes: 'Sí', no: 'No' },
104
+ },
105
+ });
106
+ ```
107
+
108
+ The `confirmDefault` style marks the character representing the default answer in the
109
+ hint. By default it uppercases the character (`Y/n`); for scripts without case
110
+ (e.g. Chinese) it highlights the character with a color instead.
111
+
89
112
  # License
90
113
 
91
114
  Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>
@@ -2,9 +2,33 @@ import { type Theme } from '@inquirer/core';
2
2
  import type { PartialDeep } from '@inquirer/type';
3
3
  type ConfirmConfig = {
4
4
  message: string;
5
- default?: boolean;
5
+ default?: boolean | undefined;
6
6
  transformer?: (value: boolean) => string;
7
- theme?: PartialDeep<Theme>;
7
+ theme?: PartialDeep<Theme<ConfirmTheme>>;
8
8
  };
9
- declare const _default: import("@inquirer/type").Prompt<boolean, ConfirmConfig>;
9
+ type ConfirmTheme = {
10
+ /**
11
+ * Words accepted as "yes" and "no" answers. Matching is prefix-based and
12
+ * case-insensitive, and the first character of each word is shown in the
13
+ * hint. These words are also displayed once the prompt is answered.
14
+ */
15
+ keywords: {
16
+ yes: string;
17
+ no: string;
18
+ };
19
+ style: {
20
+ /**
21
+ * Style the character representing the default answer in the hint (e.g.
22
+ * "Y/n"). Uppercases it by default; scripts without case (e.g. Chinese)
23
+ * are highlighted with a color instead.
24
+ */
25
+ confirmDefault: (text: string) => string;
26
+ };
27
+ };
28
+ declare const _default: import("@inquirer/type").Prompt<boolean, {
29
+ message: string;
30
+ default?: boolean | undefined | undefined;
31
+ transformer?: ((value: boolean) => string) | undefined;
32
+ theme?: PartialDeep<Theme<ConfirmTheme>> | undefined;
33
+ } & ConfirmConfig>;
10
34
  export default _default;
@@ -1,21 +1,47 @@
1
1
  import { createPrompt, useState, useKeypress, isEnterKey, isTabKey, usePrefix, makeTheme, } from '@inquirer/core';
2
- function getBooleanValue(value, defaultValue) {
3
- let answer = defaultValue !== false;
4
- if (/^(y|yes)/i.test(value))
5
- answer = true;
6
- else if (/^(n|no)/i.test(value))
7
- answer = false;
8
- return answer;
9
- }
10
- function boolToString(value) {
11
- return value ? 'Yes' : 'No';
12
- }
2
+ import { styleText } from 'node:util';
3
+ const confirmTheme = {
4
+ keywords: {
5
+ yes: 'Yes',
6
+ no: 'No',
7
+ },
8
+ style: {
9
+ confirmDefault: (text) => {
10
+ const first = text[0] ?? '';
11
+ if (first.toLowerCase() === first.toUpperCase()) {
12
+ return styleText('cyan', text);
13
+ }
14
+ return first.toUpperCase() + text.slice(1);
15
+ },
16
+ },
17
+ };
13
18
  export default createPrompt((config, done) => {
14
- const { transformer = boolToString } = config;
15
19
  const [status, setStatus] = useState('idle');
16
20
  const [value, setValue] = useState('');
17
- const theme = makeTheme(config.theme);
21
+ const theme = makeTheme(confirmTheme, config.theme);
18
22
  const prefix = usePrefix({ status, theme });
23
+ const { yes, no } = theme.keywords;
24
+ // The hint shows the first character of each label, lowercased; the default
25
+ // side is then uppercased (or colored) by `confirmDefault`.
26
+ const yesHint = (yes[0] ?? '').toLowerCase();
27
+ const noHint = (no[0] ?? '').toLowerCase();
28
+ const hint = config.default === false
29
+ ? `${yesHint}/${theme.style.confirmDefault(noHint)}`
30
+ : `${theme.style.confirmDefault(yesHint)}/${noHint}`;
31
+ function boolToString(value) {
32
+ return value ? yes : no;
33
+ }
34
+ const { transformer = boolToString } = config;
35
+ function getBooleanValue(value, defaultValue) {
36
+ const v = value.toLowerCase();
37
+ if (v === '')
38
+ return defaultValue !== false;
39
+ if (yes.toLowerCase().startsWith(v))
40
+ return true;
41
+ if (no.toLowerCase().startsWith(v))
42
+ return false;
43
+ return defaultValue !== false;
44
+ }
19
45
  useKeypress((key, rl) => {
20
46
  if (status !== 'idle')
21
47
  return;
@@ -41,7 +67,7 @@ export default createPrompt((config, done) => {
41
67
  formattedValue = theme.style.answer(value);
42
68
  }
43
69
  else {
44
- defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? 'y/N' : 'Y/n')}`;
70
+ defaultValue = ` ${theme.style.defaultAnswer(hint)}`;
45
71
  }
46
72
  const message = theme.style.message(config.message, status);
47
73
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/confirm",
3
- "version": "6.1.1",
3
+ "version": "6.3.1",
4
4
  "description": "Inquirer confirm prompt",
5
5
  "keywords": [
6
6
  "answer",
@@ -67,10 +67,11 @@
67
67
  "tsc": "tsc"
68
68
  },
69
69
  "dependencies": {
70
- "@inquirer/core": "^11.2.1",
71
- "@inquirer/type": "^4.0.7"
70
+ "@inquirer/core": "^12.0.2",
71
+ "@inquirer/type": "4.1.1"
72
72
  },
73
73
  "devDependencies": {
74
+ "@repo/tsconfig": "0.0.0",
74
75
  "typescript": "^6.0.2"
75
76
  },
76
77
  "peerDependencies": {
@@ -86,5 +87,5 @@
86
87
  },
87
88
  "main": "./dist/index.js",
88
89
  "types": "./dist/index.d.ts",
89
- "gitHead": "b43359d803733b1a7c4638addcc270987fb894c3"
90
+ "gitHead": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
90
91
  }
@@ -49,9 +49,7 @@ const input = createPrompt((config, done) => {
49
49
  });
50
50
 
51
51
  // And it is then called as
52
- const answer = await input({
53
- /* config */
54
- });
52
+ const answer = await input({/* config */});
55
53
  ```
56
54
 
57
55
  ## Hooks
@@ -64,6 +62,14 @@ State lets a component “remember” information like user input. For example,
64
62
 
65
63
  `useState` declares a state variable that you can update directly.
66
64
 
65
+ The setter also accepts an updater function to compute the next state from the current one (mirroring React):
66
+
67
+ ```ts
68
+ const [index, setIndex] = useState(0);
69
+
70
+ setIndex((current) => current + 1);
71
+ ```
72
+
67
73
  ```ts
68
74
  import { createPrompt, useState } from '@inquirer/core';
69
75
 
@@ -1,4 +1,11 @@
1
- import { type Prompt, type Prettify } from '@inquirer/type';
2
- type ViewFunction<Value, Config> = (config: Prettify<Config>, done: (value: Value) => void) => string | [string, string | undefined];
3
- export declare function createPrompt<Value, Config>(view: ViewFunction<Value, Config>): Prompt<Value, Config>;
1
+ import { type Prompt } from '@inquirer/type';
2
+ type ViewFunction<Value, Config> = (config: Config, done: (value: Value) => void) => string | [string, string | undefined];
3
+ /**
4
+ * Expand the top-level keys of a type for better IDE display, without
5
+ * recursing into nested fields (so generic values stay compatible).
6
+ */
7
+ type ShallowPrettify<T> = {
8
+ [K in keyof T]: T[K];
9
+ } & {};
10
+ export declare function createPrompt<Value, Config>(view: ViewFunction<Value, Config>): Prompt<Value, ShallowPrettify<Config> & Config>;
4
11
  export {};
@@ -2,17 +2,11 @@ import type { InquirerReadline } from '@inquirer/type';
2
2
  export declare function withHooks<T>(rl: InquirerReadline, cb: (cycle: (render: () => void) => void) => T): T;
3
3
  export declare function readline(): InquirerReadline;
4
4
  export declare function withUpdates<Args extends unknown[], R>(fn: (...args: Args) => R): (...args: Args) => R;
5
- type SetPointer<Value> = {
5
+ type Pointer<Value> = {
6
6
  get(): Value;
7
7
  set(value: Value): void;
8
- initialized: true;
8
+ initialized: boolean;
9
9
  };
10
- type UnsetPointer<Value> = {
11
- get(): void;
12
- set(value: Value): void;
13
- initialized: false;
14
- };
15
- type Pointer<Value> = SetPointer<Value> | UnsetPointer<Value>;
16
10
  export declare function withPointer<Value, ReturnValue>(cb: (pointer: Pointer<Value>) => ReturnValue): ReturnValue;
17
11
  export declare function handleChange(): void;
18
12
  export declare const effectScheduler: {
@@ -28,5 +28,6 @@ export function makeTheme(...themes) {
28
28
  getDefaultTheme(),
29
29
  ...themes.filter((theme) => theme != null),
30
30
  ];
31
+ // oxlint-disable-next-line typescript/no-unsafe-type-assertion
31
32
  return deepMerge(...themesToMerge);
32
33
  }