cloudstructs 0.9.33 → 0.9.35

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 (909) hide show
  1. package/.jsii +4 -4
  2. package/assets/slack-app/provider.lambda/index.js +209 -33
  3. package/assets/slack-textract/detect.lambda/index.js +385 -163
  4. package/assets/ssl-server-test/analyze.lambda/index.js +209 -33
  5. package/lib/codecommit-mirror/index.js +2 -2
  6. package/lib/dmarc/index.js +1 -1
  7. package/lib/ecs-service-roller/index.js +2 -2
  8. package/lib/email-receiver/receiver.js +1 -1
  9. package/lib/mjml-template/index.js +1 -1
  10. package/lib/saml-identity-provider/index.js +2 -2
  11. package/lib/slack-app/manifest.js +1 -1
  12. package/lib/slack-app/slack-app.js +2 -2
  13. package/lib/slack-events/index.js +1 -1
  14. package/lib/slack-textract/index.js +1 -1
  15. package/lib/ssl-server-test/index.js +2 -2
  16. package/lib/state-machine-cr-provider/index.js +1 -1
  17. package/lib/static-website/index.js +1 -1
  18. package/lib/toolkit-cleaner/index.js +1 -1
  19. package/lib/url-shortener/index.js +1 -1
  20. package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +19 -24
  21. package/node_modules/@babel/runtime/helpers/esm/regenerator.js +89 -0
  22. package/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +8 -0
  23. package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +6 -0
  24. package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +33 -0
  25. package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +24 -0
  26. package/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +10 -0
  27. package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +66 -293
  28. package/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +19 -0
  29. package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +19 -24
  30. package/node_modules/@babel/runtime/helpers/regenerator.js +89 -0
  31. package/node_modules/@babel/runtime/helpers/regeneratorAsync.js +8 -0
  32. package/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +6 -0
  33. package/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +33 -0
  34. package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +24 -0
  35. package/node_modules/@babel/runtime/helpers/regeneratorKeys.js +10 -0
  36. package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +66 -293
  37. package/node_modules/@babel/runtime/helpers/regeneratorValues.js +19 -0
  38. package/node_modules/@babel/runtime/package.json +52 -10
  39. package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
  40. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +15 -54
  41. package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +90 -8
  42. package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +3 -0
  43. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +3 -4
  44. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +2 -2
  45. package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +16 -16
  46. package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +17 -17
  47. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +43 -37
  48. package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +1 -1
  49. package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
  50. package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +27 -1
  51. package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +72 -18
  52. package/node_modules/@slack/logger/node_modules/@types/node/dom-events.d.ts +60 -85
  53. package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +1 -1
  54. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +1 -2
  55. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +40 -35
  56. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +122 -29
  57. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +143 -287
  58. package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  59. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +28 -3
  60. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +78 -8
  61. package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +1 -1
  62. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +7 -5
  63. package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +39 -7
  64. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +149 -27
  65. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +17 -14
  66. package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +8 -7
  67. package/node_modules/@slack/logger/node_modules/@types/node/package.json +18 -3
  68. package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
  69. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +10 -10
  70. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +43 -11
  71. package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +1 -1
  72. package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +3 -4
  73. package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +0 -1
  74. package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +19 -14
  75. package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +14 -16
  76. package/node_modules/@slack/logger/node_modules/@types/node/sea.d.ts +1 -1
  77. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +217 -14
  78. package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +3 -3
  79. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +13 -18
  80. package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +1 -1
  81. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +107 -21
  82. package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +1 -1
  83. package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +1 -1
  84. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +36 -49
  85. package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +6 -6
  86. package/node_modules/@slack/logger/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  87. package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  88. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  89. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  90. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  91. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  92. package/node_modules/@slack/logger/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  93. package/node_modules/@slack/logger/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  94. package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +1 -1
  95. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +61 -19
  96. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +234 -381
  97. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +143 -32
  98. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +73 -13
  99. package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +1 -1
  100. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +55 -26
  101. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +170 -41
  102. package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +7 -7
  103. package/node_modules/@slack/logger/node_modules/undici-types/api.d.ts +24 -24
  104. package/node_modules/@slack/logger/node_modules/undici-types/balanced-pool.d.ts +11 -11
  105. package/node_modules/@slack/logger/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  106. package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +12 -13
  107. package/node_modules/@slack/logger/node_modules/undici-types/cookies.d.ts +2 -0
  108. package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  109. package/node_modules/@slack/logger/node_modules/undici-types/dispatcher.d.ts +117 -92
  110. package/node_modules/@slack/logger/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  111. package/node_modules/@slack/logger/node_modules/undici-types/errors.d.ts +69 -47
  112. package/node_modules/@slack/logger/node_modules/undici-types/fetch.d.ts +17 -16
  113. package/node_modules/@slack/logger/node_modules/undici-types/formdata.d.ts +7 -7
  114. package/node_modules/@slack/logger/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  115. package/node_modules/@slack/logger/node_modules/undici-types/global-origin.d.ts +5 -5
  116. package/node_modules/@slack/logger/node_modules/undici-types/h2c-client.d.ts +75 -0
  117. package/node_modules/@slack/logger/node_modules/undici-types/handlers.d.ts +7 -7
  118. package/node_modules/@slack/logger/node_modules/undici-types/header.d.ts +157 -1
  119. package/node_modules/@slack/logger/node_modules/undici-types/index.d.ts +51 -47
  120. package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +25 -8
  121. package/node_modules/@slack/logger/node_modules/undici-types/mock-agent.d.ts +33 -18
  122. package/node_modules/@slack/logger/node_modules/undici-types/mock-call-history.d.ts +111 -0
  123. package/node_modules/@slack/logger/node_modules/undici-types/mock-client.d.ts +4 -4
  124. package/node_modules/@slack/logger/node_modules/undici-types/mock-errors.d.ts +3 -3
  125. package/node_modules/@slack/logger/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  126. package/node_modules/@slack/logger/node_modules/undici-types/mock-pool.d.ts +4 -4
  127. package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
  128. package/node_modules/@slack/logger/node_modules/undici-types/patch.d.ts +0 -4
  129. package/node_modules/@slack/logger/node_modules/undici-types/pool-stats.d.ts +8 -8
  130. package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +12 -12
  131. package/node_modules/@slack/logger/node_modules/undici-types/proxy-agent.d.ts +4 -4
  132. package/node_modules/@slack/logger/node_modules/undici-types/readable.d.ts +18 -15
  133. package/node_modules/@slack/logger/node_modules/undici-types/retry-agent.d.ts +1 -1
  134. package/node_modules/@slack/logger/node_modules/undici-types/retry-handler.d.ts +10 -10
  135. package/node_modules/@slack/logger/node_modules/undici-types/util.d.ts +3 -3
  136. package/node_modules/@slack/logger/node_modules/undici-types/utility.d.ts +7 -0
  137. package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +44 -6
  138. package/node_modules/@slack/logger/node_modules/undici-types/websocket.d.ts +35 -1
  139. package/node_modules/@slack/web-api/dist/WebClient.d.ts +0 -2
  140. package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
  141. package/node_modules/@slack/web-api/dist/WebClient.js +28 -15
  142. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  143. package/node_modules/@slack/web-api/dist/errors.d.ts +0 -2
  144. package/node_modules/@slack/web-api/dist/errors.d.ts.map +1 -1
  145. package/node_modules/@slack/web-api/dist/errors.js +6 -6
  146. package/node_modules/@slack/web-api/dist/errors.js.map +1 -1
  147. package/node_modules/@slack/web-api/dist/file-upload.d.ts +1 -4
  148. package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
  149. package/node_modules/@slack/web-api/dist/file-upload.js +43 -38
  150. package/node_modules/@slack/web-api/dist/file-upload.js.map +1 -1
  151. package/node_modules/@slack/web-api/dist/helpers.js +1 -1
  152. package/node_modules/@slack/web-api/dist/helpers.js.map +1 -1
  153. package/node_modules/@slack/web-api/dist/index.d.ts +0 -1
  154. package/node_modules/@slack/web-api/dist/index.d.ts.map +1 -1
  155. package/node_modules/@slack/web-api/dist/instrument.js +19 -10
  156. package/node_modules/@slack/web-api/dist/instrument.js.map +1 -1
  157. package/node_modules/@slack/web-api/dist/logger.js +2 -2
  158. package/node_modules/@slack/web-api/dist/logger.js.map +1 -1
  159. package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts +2 -0
  160. package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts.map +1 -1
  161. package/node_modules/@slack/web-api/dist/types/request/files.d.ts +18 -5
  162. package/node_modules/@slack/web-api/dist/types/request/files.d.ts.map +1 -1
  163. package/node_modules/@slack/web-api/dist/types/request/users.d.ts +0 -3
  164. package/node_modules/@slack/web-api/dist/types/request/users.d.ts.map +1 -1
  165. package/node_modules/@slack/web-api/dist/types/response/AdminConversationsSearchResponse.d.ts +1 -0
  166. package/node_modules/@slack/web-api/dist/types/response/AdminConversationsSearchResponse.d.ts.map +1 -1
  167. package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.d.ts +3 -0
  168. package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.d.ts.map +1 -1
  169. package/node_modules/@slack/web-api/dist/types/response/AppsManifestCreateResponse.d.ts +2 -0
  170. package/node_modules/@slack/web-api/dist/types/response/AppsManifestCreateResponse.d.ts.map +1 -1
  171. package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.d.ts +64 -12
  172. package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.d.ts.map +1 -1
  173. package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.js +27 -8
  174. package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.js.map +1 -1
  175. package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.d.ts +35 -5
  176. package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.d.ts.map +1 -1
  177. package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.js.map +1 -1
  178. package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.d.ts +35 -5
  179. package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.d.ts.map +1 -1
  180. package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.js.map +1 -1
  181. package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.d.ts +65 -12
  182. package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.d.ts.map +1 -1
  183. package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.js +27 -8
  184. package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.js.map +1 -1
  185. package/node_modules/@slack/web-api/dist/types/response/ConversationsJoinResponse.d.ts +1 -0
  186. package/node_modules/@slack/web-api/dist/types/response/ConversationsJoinResponse.d.ts.map +1 -1
  187. package/node_modules/@slack/web-api/dist/types/response/ConversationsKickResponse.d.ts +2 -0
  188. package/node_modules/@slack/web-api/dist/types/response/ConversationsKickResponse.d.ts.map +1 -1
  189. package/node_modules/@slack/web-api/dist/types/response/ConversationsListResponse.d.ts +1 -0
  190. package/node_modules/@slack/web-api/dist/types/response/ConversationsListResponse.d.ts.map +1 -1
  191. package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.d.ts +26 -5
  192. package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.d.ts.map +1 -1
  193. package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.js.map +1 -1
  194. package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.d.ts +64 -12
  195. package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.d.ts.map +1 -1
  196. package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.js +27 -8
  197. package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.js.map +1 -1
  198. package/node_modules/@slack/web-api/dist/types/response/FilesCompleteUploadExternalResponse.d.ts +1 -0
  199. package/node_modules/@slack/web-api/dist/types/response/FilesCompleteUploadExternalResponse.d.ts.map +1 -1
  200. package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.d.ts +134 -108
  201. package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.d.ts.map +1 -1
  202. package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.js +21 -14
  203. package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.js.map +1 -1
  204. package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.d.ts +134 -108
  205. package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.d.ts.map +1 -1
  206. package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.js +21 -14
  207. package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.js.map +1 -1
  208. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.d.ts +134 -108
  209. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.d.ts.map +1 -1
  210. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.js +21 -14
  211. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.js.map +1 -1
  212. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.d.ts +134 -108
  213. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.d.ts.map +1 -1
  214. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.js +21 -14
  215. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.js.map +1 -1
  216. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.d.ts +134 -108
  217. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.d.ts.map +1 -1
  218. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.js +21 -14
  219. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.js.map +1 -1
  220. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.d.ts +134 -108
  221. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.d.ts.map +1 -1
  222. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.js +21 -14
  223. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.js.map +1 -1
  224. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.d.ts +134 -108
  225. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.d.ts.map +1 -1
  226. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.js +21 -14
  227. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.js.map +1 -1
  228. package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.d.ts +134 -108
  229. package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.d.ts.map +1 -1
  230. package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.js +21 -14
  231. package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.js.map +1 -1
  232. package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.d.ts +134 -108
  233. package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.d.ts.map +1 -1
  234. package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.js +21 -14
  235. package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.js.map +1 -1
  236. package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.d.ts +134 -108
  237. package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.d.ts.map +1 -1
  238. package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.js +21 -14
  239. package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.js.map +1 -1
  240. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.d.ts +134 -108
  241. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.d.ts.map +1 -1
  242. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +21 -14
  243. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js.map +1 -1
  244. package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.d.ts +35 -5
  245. package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.d.ts.map +1 -1
  246. package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.js.map +1 -1
  247. package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.d.ts +64 -12
  248. package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.d.ts.map +1 -1
  249. package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.js +27 -8
  250. package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.js.map +1 -1
  251. package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.d.ts +35 -2
  252. package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.d.ts.map +1 -1
  253. package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.js.map +1 -1
  254. package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.d.ts +42 -7
  255. package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.d.ts.map +1 -1
  256. package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js.map +1 -1
  257. package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.d.ts +37 -2
  258. package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.d.ts.map +1 -1
  259. package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js.map +1 -1
  260. package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.d.ts +35 -2
  261. package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.d.ts.map +1 -1
  262. package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.js.map +1 -1
  263. package/node_modules/@slack/web-api/dist/types/response/UsergroupsCreateResponse.d.ts +1 -0
  264. package/node_modules/@slack/web-api/dist/types/response/UsergroupsCreateResponse.d.ts.map +1 -1
  265. package/node_modules/@slack/web-api/dist/types/response/UsergroupsDisableResponse.d.ts +1 -0
  266. package/node_modules/@slack/web-api/dist/types/response/UsergroupsDisableResponse.d.ts.map +1 -1
  267. package/node_modules/@slack/web-api/dist/types/response/UsergroupsEnableResponse.d.ts +1 -0
  268. package/node_modules/@slack/web-api/dist/types/response/UsergroupsEnableResponse.d.ts.map +1 -1
  269. package/node_modules/@slack/web-api/dist/types/response/UsergroupsListResponse.d.ts +1 -0
  270. package/node_modules/@slack/web-api/dist/types/response/UsergroupsListResponse.d.ts.map +1 -1
  271. package/node_modules/@slack/web-api/dist/types/response/UsergroupsUpdateResponse.d.ts +1 -0
  272. package/node_modules/@slack/web-api/dist/types/response/UsergroupsUpdateResponse.d.ts.map +1 -1
  273. package/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersUpdateResponse.d.ts +1 -0
  274. package/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersUpdateResponse.d.ts.map +1 -1
  275. package/node_modules/@slack/web-api/dist/types/response/UsersConversationsResponse.d.ts +1 -0
  276. package/node_modules/@slack/web-api/dist/types/response/UsersConversationsResponse.d.ts.map +1 -1
  277. package/node_modules/@slack/web-api/dist/types/response/UsersInfoResponse.d.ts +1 -0
  278. package/node_modules/@slack/web-api/dist/types/response/UsersInfoResponse.d.ts.map +1 -1
  279. package/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.d.ts +1 -0
  280. package/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.d.ts.map +1 -1
  281. package/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.js.map +1 -1
  282. package/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.d.ts +1 -0
  283. package/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.d.ts.map +1 -1
  284. package/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.js.map +1 -1
  285. package/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.d.ts +1 -0
  286. package/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.d.ts.map +1 -1
  287. package/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.js.map +1 -1
  288. package/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.d.ts +1 -0
  289. package/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.d.ts.map +1 -1
  290. package/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.js.map +1 -1
  291. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
  292. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +15 -54
  293. package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +90 -8
  294. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +3 -0
  295. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +3 -4
  296. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +2 -2
  297. package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +16 -16
  298. package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +17 -17
  299. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +43 -37
  300. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +1 -1
  301. package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
  302. package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +27 -1
  303. package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +72 -18
  304. package/node_modules/@slack/web-api/node_modules/@types/node/dom-events.d.ts +60 -85
  305. package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +1 -1
  306. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +1 -2
  307. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +40 -35
  308. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +122 -29
  309. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +143 -287
  310. package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  311. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +28 -3
  312. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +78 -8
  313. package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +1 -1
  314. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +7 -5
  315. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +39 -7
  316. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +149 -27
  317. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +17 -14
  318. package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +8 -7
  319. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +18 -3
  320. package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
  321. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +10 -10
  322. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +43 -11
  323. package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +1 -1
  324. package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +3 -4
  325. package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +0 -1
  326. package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +19 -14
  327. package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +14 -16
  328. package/node_modules/@slack/web-api/node_modules/@types/node/sea.d.ts +1 -1
  329. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +217 -14
  330. package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +3 -3
  331. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +13 -18
  332. package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +1 -1
  333. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +107 -21
  334. package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +1 -1
  335. package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +1 -1
  336. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +36 -49
  337. package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +6 -6
  338. package/node_modules/@slack/web-api/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  339. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  340. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  341. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  342. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  343. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  344. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  345. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  346. package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +1 -1
  347. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +61 -19
  348. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +234 -381
  349. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +143 -32
  350. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +73 -13
  351. package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +1 -1
  352. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +55 -26
  353. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +170 -41
  354. package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +7 -7
  355. package/node_modules/@slack/web-api/node_modules/undici-types/api.d.ts +24 -24
  356. package/node_modules/@slack/web-api/node_modules/undici-types/balanced-pool.d.ts +11 -11
  357. package/node_modules/@slack/web-api/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  358. package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +12 -13
  359. package/node_modules/@slack/web-api/node_modules/undici-types/cookies.d.ts +2 -0
  360. package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  361. package/node_modules/@slack/web-api/node_modules/undici-types/dispatcher.d.ts +117 -92
  362. package/node_modules/@slack/web-api/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  363. package/node_modules/@slack/web-api/node_modules/undici-types/errors.d.ts +69 -47
  364. package/node_modules/@slack/web-api/node_modules/undici-types/fetch.d.ts +17 -16
  365. package/node_modules/@slack/web-api/node_modules/undici-types/formdata.d.ts +7 -7
  366. package/node_modules/@slack/web-api/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  367. package/node_modules/@slack/web-api/node_modules/undici-types/global-origin.d.ts +5 -5
  368. package/node_modules/@slack/web-api/node_modules/undici-types/h2c-client.d.ts +75 -0
  369. package/node_modules/@slack/web-api/node_modules/undici-types/handlers.d.ts +7 -7
  370. package/node_modules/@slack/web-api/node_modules/undici-types/header.d.ts +157 -1
  371. package/node_modules/@slack/web-api/node_modules/undici-types/index.d.ts +51 -47
  372. package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +25 -8
  373. package/node_modules/@slack/web-api/node_modules/undici-types/mock-agent.d.ts +33 -18
  374. package/node_modules/@slack/web-api/node_modules/undici-types/mock-call-history.d.ts +111 -0
  375. package/node_modules/@slack/web-api/node_modules/undici-types/mock-client.d.ts +4 -4
  376. package/node_modules/@slack/web-api/node_modules/undici-types/mock-errors.d.ts +3 -3
  377. package/node_modules/@slack/web-api/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  378. package/node_modules/@slack/web-api/node_modules/undici-types/mock-pool.d.ts +4 -4
  379. package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
  380. package/node_modules/@slack/web-api/node_modules/undici-types/patch.d.ts +0 -4
  381. package/node_modules/@slack/web-api/node_modules/undici-types/pool-stats.d.ts +8 -8
  382. package/node_modules/@slack/web-api/node_modules/undici-types/pool.d.ts +12 -12
  383. package/node_modules/@slack/web-api/node_modules/undici-types/proxy-agent.d.ts +4 -4
  384. package/node_modules/@slack/web-api/node_modules/undici-types/readable.d.ts +18 -15
  385. package/node_modules/@slack/web-api/node_modules/undici-types/retry-agent.d.ts +1 -1
  386. package/node_modules/@slack/web-api/node_modules/undici-types/retry-handler.d.ts +10 -10
  387. package/node_modules/@slack/web-api/node_modules/undici-types/util.d.ts +3 -3
  388. package/node_modules/@slack/web-api/node_modules/undici-types/utility.d.ts +7 -0
  389. package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +44 -6
  390. package/node_modules/@slack/web-api/node_modules/undici-types/websocket.d.ts +35 -1
  391. package/node_modules/@slack/web-api/package.json +5 -5
  392. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
  393. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +15 -54
  394. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +90 -8
  395. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +3 -0
  396. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +3 -4
  397. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -2
  398. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +16 -16
  399. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -17
  400. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +43 -37
  401. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +1 -1
  402. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
  403. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +27 -1
  404. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +72 -18
  405. package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +60 -85
  406. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
  407. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +1 -2
  408. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +40 -35
  409. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +122 -29
  410. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +143 -287
  411. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  412. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +28 -3
  413. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +78 -8
  414. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
  415. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +7 -5
  416. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +39 -7
  417. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +149 -27
  418. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +17 -14
  419. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +8 -7
  420. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +18 -3
  421. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  422. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +10 -10
  423. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +43 -11
  424. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  425. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +3 -4
  426. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +0 -1
  427. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +19 -14
  428. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +14 -16
  429. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
  430. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +217 -14
  431. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +3 -3
  432. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +13 -18
  433. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
  434. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +107 -21
  435. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +1 -1
  436. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  437. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +36 -49
  438. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +6 -6
  439. package/node_modules/@types/cacheable-request/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  440. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  441. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  442. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  443. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  444. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  445. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  446. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  447. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  448. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +61 -19
  449. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +234 -381
  450. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +143 -32
  451. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +73 -13
  452. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  453. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +55 -26
  454. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +170 -41
  455. package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +7 -7
  456. package/node_modules/@types/cacheable-request/node_modules/undici-types/api.d.ts +24 -24
  457. package/node_modules/@types/cacheable-request/node_modules/undici-types/balanced-pool.d.ts +11 -11
  458. package/node_modules/@types/cacheable-request/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  459. package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +12 -13
  460. package/node_modules/@types/cacheable-request/node_modules/undici-types/cookies.d.ts +2 -0
  461. package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  462. package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +117 -92
  463. package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  464. package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +69 -47
  465. package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +17 -16
  466. package/node_modules/@types/cacheable-request/node_modules/undici-types/formdata.d.ts +7 -7
  467. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  468. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-origin.d.ts +5 -5
  469. package/node_modules/@types/cacheable-request/node_modules/undici-types/h2c-client.d.ts +75 -0
  470. package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +7 -7
  471. package/node_modules/@types/cacheable-request/node_modules/undici-types/header.d.ts +157 -1
  472. package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +51 -47
  473. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +25 -8
  474. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +33 -18
  475. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-call-history.d.ts +111 -0
  476. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-client.d.ts +4 -4
  477. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-errors.d.ts +3 -3
  478. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  479. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-pool.d.ts +4 -4
  480. package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
  481. package/node_modules/@types/cacheable-request/node_modules/undici-types/patch.d.ts +0 -4
  482. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool-stats.d.ts +8 -8
  483. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +12 -12
  484. package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +4 -4
  485. package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +18 -15
  486. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +1 -1
  487. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +10 -10
  488. package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +3 -3
  489. package/node_modules/@types/cacheable-request/node_modules/undici-types/utility.d.ts +7 -0
  490. package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +44 -6
  491. package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +35 -1
  492. package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
  493. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +15 -54
  494. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +90 -8
  495. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +3 -0
  496. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +3 -4
  497. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -2
  498. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +16 -16
  499. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -17
  500. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +43 -37
  501. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +1 -1
  502. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
  503. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +27 -1
  504. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +72 -18
  505. package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +60 -85
  506. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
  507. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +1 -2
  508. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +40 -35
  509. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +122 -29
  510. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +143 -287
  511. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  512. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +28 -3
  513. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +78 -8
  514. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
  515. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +7 -5
  516. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +39 -7
  517. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +149 -27
  518. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +17 -14
  519. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +8 -7
  520. package/node_modules/@types/keyv/node_modules/@types/node/package.json +18 -3
  521. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  522. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +10 -10
  523. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +43 -11
  524. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  525. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +3 -4
  526. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +0 -1
  527. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +19 -14
  528. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +14 -16
  529. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
  530. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +217 -14
  531. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +3 -3
  532. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +13 -18
  533. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
  534. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +107 -21
  535. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +1 -1
  536. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  537. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +36 -49
  538. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +6 -6
  539. package/node_modules/@types/keyv/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  540. package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  541. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  542. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  543. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  544. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  545. package/node_modules/@types/keyv/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  546. package/node_modules/@types/keyv/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  547. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  548. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +61 -19
  549. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +234 -381
  550. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +143 -32
  551. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +73 -13
  552. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  553. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +55 -26
  554. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +170 -41
  555. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +7 -7
  556. package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +24 -24
  557. package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +11 -11
  558. package/node_modules/@types/keyv/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  559. package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +12 -13
  560. package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +2 -0
  561. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  562. package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +117 -92
  563. package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  564. package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +69 -47
  565. package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +17 -16
  566. package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +7 -7
  567. package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  568. package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +5 -5
  569. package/node_modules/@types/keyv/node_modules/undici-types/h2c-client.d.ts +75 -0
  570. package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +7 -7
  571. package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +157 -1
  572. package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +51 -47
  573. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +25 -8
  574. package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +33 -18
  575. package/node_modules/@types/keyv/node_modules/undici-types/mock-call-history.d.ts +111 -0
  576. package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +4 -4
  577. package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +3 -3
  578. package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  579. package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +4 -4
  580. package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
  581. package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +0 -4
  582. package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +8 -8
  583. package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +12 -12
  584. package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +4 -4
  585. package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +18 -15
  586. package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +1 -1
  587. package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +10 -10
  588. package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +3 -3
  589. package/node_modules/@types/keyv/node_modules/undici-types/utility.d.ts +7 -0
  590. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +44 -6
  591. package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +35 -1
  592. package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
  593. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +15 -54
  594. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +90 -8
  595. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +3 -0
  596. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +3 -4
  597. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -2
  598. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +16 -16
  599. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -17
  600. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +43 -37
  601. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +1 -1
  602. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
  603. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +27 -1
  604. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +72 -18
  605. package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +60 -85
  606. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
  607. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +1 -2
  608. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +40 -35
  609. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +122 -29
  610. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +143 -287
  611. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  612. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +28 -3
  613. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +78 -8
  614. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
  615. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +7 -5
  616. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +39 -7
  617. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +149 -27
  618. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +17 -14
  619. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +8 -7
  620. package/node_modules/@types/responselike/node_modules/@types/node/package.json +18 -3
  621. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  622. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +10 -10
  623. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +43 -11
  624. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  625. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +3 -4
  626. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +0 -1
  627. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +19 -14
  628. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +14 -16
  629. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
  630. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +217 -14
  631. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +3 -3
  632. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +13 -18
  633. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
  634. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +107 -21
  635. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +1 -1
  636. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  637. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +36 -49
  638. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +6 -6
  639. package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +12 -0
  640. package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  641. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  642. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  643. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  644. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  645. package/node_modules/@types/responselike/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  646. package/node_modules/@types/responselike/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  647. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  648. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +61 -19
  649. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +234 -381
  650. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +143 -32
  651. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +73 -13
  652. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  653. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +55 -26
  654. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +170 -41
  655. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +7 -7
  656. package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +24 -24
  657. package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +11 -11
  658. package/node_modules/@types/responselike/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  659. package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +12 -13
  660. package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +2 -0
  661. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  662. package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +117 -92
  663. package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  664. package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +69 -47
  665. package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +17 -16
  666. package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +7 -7
  667. package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  668. package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +5 -5
  669. package/node_modules/@types/responselike/node_modules/undici-types/h2c-client.d.ts +75 -0
  670. package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +7 -7
  671. package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +157 -1
  672. package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +51 -47
  673. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +25 -8
  674. package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +33 -18
  675. package/node_modules/@types/responselike/node_modules/undici-types/mock-call-history.d.ts +111 -0
  676. package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +4 -4
  677. package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +3 -3
  678. package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  679. package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +4 -4
  680. package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
  681. package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +0 -4
  682. package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +8 -8
  683. package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +12 -12
  684. package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +4 -4
  685. package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +18 -15
  686. package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +1 -1
  687. package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +10 -10
  688. package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +3 -3
  689. package/node_modules/@types/responselike/node_modules/undici-types/utility.d.ts +7 -0
  690. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +44 -6
  691. package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +35 -1
  692. package/node_modules/axios/CHANGELOG.md +51 -0
  693. package/node_modules/axios/README.md +24 -21
  694. package/node_modules/axios/dist/axios.js +36 -17
  695. package/node_modules/axios/dist/axios.js.map +1 -1
  696. package/node_modules/axios/dist/axios.min.js +2 -2
  697. package/node_modules/axios/dist/axios.min.js.map +1 -1
  698. package/node_modules/axios/dist/browser/axios.cjs +36 -14
  699. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  700. package/node_modules/axios/dist/esm/axios.js +36 -14
  701. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  702. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  703. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  704. package/node_modules/axios/dist/node/axios.cjs +37 -15
  705. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  706. package/node_modules/axios/index.d.cts +3 -3
  707. package/node_modules/axios/index.d.ts +5 -3
  708. package/node_modules/axios/lib/adapters/fetch.js +2 -2
  709. package/node_modules/axios/lib/core/Axios.js +1 -1
  710. package/node_modules/axios/lib/core/AxiosHeaders.js +15 -3
  711. package/node_modules/axios/lib/env/data.js +1 -1
  712. package/node_modules/axios/lib/helpers/formDataToStream.js +1 -1
  713. package/node_modules/axios/lib/helpers/toFormData.js +4 -0
  714. package/node_modules/axios/lib/utils.js +12 -6
  715. package/node_modules/axios/package.json +13 -4
  716. package/node_modules/brace-expansion/index.js +1 -1
  717. package/node_modules/brace-expansion/package.json +4 -1
  718. package/node_modules/end-of-stream/index.js +3 -1
  719. package/node_modules/end-of-stream/package.json +1 -1
  720. package/node_modules/form-data/README.md.bak +355 -0
  721. package/node_modules/form-data/Readme.md +34 -37
  722. package/node_modules/form-data/lib/browser.js +3 -1
  723. package/node_modules/form-data/lib/form_data.js +124 -129
  724. package/node_modules/form-data/lib/populate.js +5 -5
  725. package/node_modules/form-data/package.json +7 -15
  726. package/node_modules/http-cache-semantics/README.md +116 -51
  727. package/node_modules/http-cache-semantics/index.js +300 -46
  728. package/node_modules/http-cache-semantics/package.json +8 -4
  729. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +4 -4
  730. package/node_modules/parse5/dist/cjs/parser/index.d.ts +1 -1
  731. package/node_modules/parse5/dist/cjs/parser/index.js +13 -8
  732. package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +2 -2
  733. package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +11 -7
  734. package/node_modules/parse5/dist/cjs/serializer/index.js +3 -3
  735. package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +1 -1
  736. package/node_modules/parse5/dist/cjs/tokenizer/index.js +3 -3
  737. package/node_modules/parse5/dist/parser/formatting-element-list.js +4 -4
  738. package/node_modules/parse5/dist/parser/index.d.ts +1 -1
  739. package/node_modules/parse5/dist/parser/index.js +13 -8
  740. package/node_modules/parse5/dist/parser/open-element-stack.d.ts +2 -2
  741. package/node_modules/parse5/dist/parser/open-element-stack.js +11 -7
  742. package/node_modules/parse5/dist/serializer/index.js +1 -1
  743. package/node_modules/parse5/dist/tokenizer/index.d.ts +1 -1
  744. package/node_modules/parse5/dist/tokenizer/index.js +1 -1
  745. package/node_modules/parse5/node_modules/entities/LICENSE +11 -0
  746. package/node_modules/parse5/node_modules/entities/decode.d.ts +1 -0
  747. package/node_modules/parse5/node_modules/entities/decode.js +3 -0
  748. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
  749. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
  750. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  751. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  752. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts +209 -0
  753. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
  754. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js +511 -0
  755. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  756. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
  757. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
  758. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js +73 -0
  759. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js.map +1 -0
  760. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts +43 -0
  761. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
  762. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js +121 -0
  763. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js.map +1 -0
  764. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
  765. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
  766. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js +10 -0
  767. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  768. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
  769. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
  770. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +10 -0
  771. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  772. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +8 -0
  773. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
  774. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js +13 -0
  775. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
  776. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts +96 -0
  777. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
  778. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js +131 -0
  779. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js.map +1 -0
  780. package/node_modules/parse5/node_modules/entities/dist/commonjs/package.json +3 -0
  781. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
  782. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
  783. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
  784. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
  785. package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts +209 -0
  786. package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
  787. package/node_modules/parse5/node_modules/entities/dist/esm/decode.js +497 -0
  788. package/node_modules/parse5/node_modules/entities/dist/esm/decode.js.map +1 -0
  789. package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts +22 -0
  790. package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
  791. package/node_modules/parse5/node_modules/entities/dist/esm/encode.js +69 -0
  792. package/node_modules/parse5/node_modules/entities/dist/esm/encode.js.map +1 -0
  793. package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts +43 -0
  794. package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
  795. package/node_modules/parse5/node_modules/entities/dist/esm/escape.js +117 -0
  796. package/node_modules/parse5/node_modules/entities/dist/esm/escape.js.map +1 -0
  797. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
  798. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
  799. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
  800. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
  801. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
  802. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
  803. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js +7 -0
  804. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
  805. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts +8 -0
  806. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
  807. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js +10 -0
  808. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
  809. package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts +96 -0
  810. package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts.map +1 -0
  811. package/node_modules/parse5/node_modules/entities/dist/esm/index.js +107 -0
  812. package/node_modules/parse5/node_modules/entities/dist/esm/index.js.map +1 -0
  813. package/node_modules/parse5/node_modules/entities/dist/esm/package.json +3 -0
  814. package/node_modules/parse5/node_modules/entities/escape.d.ts +1 -0
  815. package/node_modules/parse5/node_modules/entities/escape.js +3 -0
  816. package/node_modules/parse5/node_modules/entities/package.json +118 -0
  817. package/node_modules/parse5/node_modules/entities/readme.md +122 -0
  818. package/node_modules/parse5/node_modules/entities/src/decode-codepoint.ts +81 -0
  819. package/node_modules/parse5/node_modules/entities/src/decode.spec.ts +320 -0
  820. package/node_modules/parse5/node_modules/entities/src/decode.ts +620 -0
  821. package/node_modules/parse5/node_modules/entities/src/encode.spec.ts +78 -0
  822. package/node_modules/parse5/node_modules/entities/src/encode.ts +77 -0
  823. package/node_modules/parse5/node_modules/entities/src/escape.spec.ts +14 -0
  824. package/node_modules/parse5/node_modules/entities/src/escape.ts +148 -0
  825. package/node_modules/parse5/node_modules/entities/src/generated/.eslintrc.json +10 -0
  826. package/node_modules/parse5/node_modules/entities/src/generated/decode-data-html.ts +8 -0
  827. package/node_modules/parse5/node_modules/entities/src/generated/decode-data-xml.ts +8 -0
  828. package/node_modules/parse5/node_modules/entities/src/generated/encode-html.ts +17 -0
  829. package/node_modules/parse5/node_modules/entities/src/index.spec.ts +125 -0
  830. package/node_modules/parse5/node_modules/entities/src/index.ts +188 -0
  831. package/node_modules/parse5/package.json +3 -3
  832. package/node_modules/pump/index.js +1 -1
  833. package/node_modules/pump/package.json +1 -1
  834. package/node_modules/semver/bin/semver.js +2 -0
  835. package/node_modules/semver/classes/comparator.js +2 -0
  836. package/node_modules/semver/classes/index.js +2 -0
  837. package/node_modules/semver/classes/range.js +2 -0
  838. package/node_modules/semver/classes/semver.js +4 -3
  839. package/node_modules/semver/functions/clean.js +2 -0
  840. package/node_modules/semver/functions/cmp.js +2 -0
  841. package/node_modules/semver/functions/coerce.js +2 -0
  842. package/node_modules/semver/functions/compare-build.js +2 -0
  843. package/node_modules/semver/functions/compare-loose.js +2 -0
  844. package/node_modules/semver/functions/compare.js +2 -0
  845. package/node_modules/semver/functions/diff.js +2 -0
  846. package/node_modules/semver/functions/eq.js +2 -0
  847. package/node_modules/semver/functions/gt.js +2 -0
  848. package/node_modules/semver/functions/gte.js +2 -0
  849. package/node_modules/semver/functions/inc.js +2 -0
  850. package/node_modules/semver/functions/lt.js +2 -0
  851. package/node_modules/semver/functions/lte.js +2 -0
  852. package/node_modules/semver/functions/major.js +2 -0
  853. package/node_modules/semver/functions/minor.js +2 -0
  854. package/node_modules/semver/functions/neq.js +2 -0
  855. package/node_modules/semver/functions/parse.js +2 -0
  856. package/node_modules/semver/functions/patch.js +2 -0
  857. package/node_modules/semver/functions/prerelease.js +2 -0
  858. package/node_modules/semver/functions/rcompare.js +2 -0
  859. package/node_modules/semver/functions/rsort.js +2 -0
  860. package/node_modules/semver/functions/satisfies.js +2 -0
  861. package/node_modules/semver/functions/sort.js +2 -0
  862. package/node_modules/semver/functions/valid.js +2 -0
  863. package/node_modules/semver/index.js +2 -0
  864. package/node_modules/semver/internal/constants.js +2 -0
  865. package/node_modules/semver/internal/debug.js +2 -0
  866. package/node_modules/semver/internal/identifiers.js +2 -0
  867. package/node_modules/semver/internal/lrucache.js +2 -0
  868. package/node_modules/semver/internal/parse-options.js +2 -0
  869. package/node_modules/semver/internal/re.js +8 -4
  870. package/node_modules/semver/package.json +3 -3
  871. package/node_modules/semver/preload.js +2 -0
  872. package/node_modules/semver/ranges/gtr.js +2 -0
  873. package/node_modules/semver/ranges/intersects.js +2 -0
  874. package/node_modules/semver/ranges/ltr.js +2 -0
  875. package/node_modules/semver/ranges/max-satisfying.js +2 -0
  876. package/node_modules/semver/ranges/min-satisfying.js +2 -0
  877. package/node_modules/semver/ranges/min-version.js +2 -0
  878. package/node_modules/semver/ranges/outside.js +2 -0
  879. package/node_modules/semver/ranges/simplify.js +2 -0
  880. package/node_modules/semver/ranges/subset.js +2 -0
  881. package/node_modules/semver/ranges/to-comparators.js +2 -0
  882. package/node_modules/semver/ranges/valid.js +2 -0
  883. package/package.json +20 -20
  884. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/index.d.ts +0 -9
  885. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  886. package/node_modules/@slack/logger/node_modules/undici-types/file.d.ts +0 -39
  887. package/node_modules/@slack/logger/node_modules/undici-types/filereader.d.ts +0 -54
  888. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/index.d.ts +0 -9
  889. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  890. package/node_modules/@slack/web-api/node_modules/undici-types/file.d.ts +0 -39
  891. package/node_modules/@slack/web-api/node_modules/undici-types/filereader.d.ts +0 -54
  892. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +0 -9
  893. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  894. package/node_modules/@types/cacheable-request/node_modules/undici-types/file.d.ts +0 -39
  895. package/node_modules/@types/cacheable-request/node_modules/undici-types/filereader.d.ts +0 -54
  896. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +0 -9
  897. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  898. package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +0 -39
  899. package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +0 -54
  900. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  901. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +0 -9
  902. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  903. package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +0 -39
  904. package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +0 -54
  905. package/node_modules/regenerator-runtime/LICENSE +0 -21
  906. package/node_modules/regenerator-runtime/README.md +0 -31
  907. package/node_modules/regenerator-runtime/package.json +0 -19
  908. package/node_modules/regenerator-runtime/path.js +0 -11
  909. package/node_modules/regenerator-runtime/runtime.js +0 -761
@@ -0,0 +1,620 @@
1
+ import { htmlDecodeTree } from "./generated/decode-data-html.js";
2
+ import { xmlDecodeTree } from "./generated/decode-data-xml.js";
3
+ import { replaceCodePoint, fromCodePoint } from "./decode-codepoint.js";
4
+
5
+ const enum CharCodes {
6
+ NUM = 35, // "#"
7
+ SEMI = 59, // ";"
8
+ EQUALS = 61, // "="
9
+ ZERO = 48, // "0"
10
+ NINE = 57, // "9"
11
+ LOWER_A = 97, // "a"
12
+ LOWER_F = 102, // "f"
13
+ LOWER_X = 120, // "x"
14
+ LOWER_Z = 122, // "z"
15
+ UPPER_A = 65, // "A"
16
+ UPPER_F = 70, // "F"
17
+ UPPER_Z = 90, // "Z"
18
+ }
19
+
20
+ /** Bit that needs to be set to convert an upper case ASCII character to lower case */
21
+ const TO_LOWER_BIT = 0b10_0000;
22
+
23
+ export enum BinTrieFlags {
24
+ VALUE_LENGTH = 0b1100_0000_0000_0000,
25
+ BRANCH_LENGTH = 0b0011_1111_1000_0000,
26
+ JUMP_TABLE = 0b0000_0000_0111_1111,
27
+ }
28
+
29
+ function isNumber(code: number): boolean {
30
+ return code >= CharCodes.ZERO && code <= CharCodes.NINE;
31
+ }
32
+
33
+ function isHexadecimalCharacter(code: number): boolean {
34
+ return (
35
+ (code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F) ||
36
+ (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F)
37
+ );
38
+ }
39
+
40
+ function isAsciiAlphaNumeric(code: number): boolean {
41
+ return (
42
+ (code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z) ||
43
+ (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z) ||
44
+ isNumber(code)
45
+ );
46
+ }
47
+
48
+ /**
49
+ * Checks if the given character is a valid end character for an entity in an attribute.
50
+ *
51
+ * Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.
52
+ * See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
53
+ */
54
+ function isEntityInAttributeInvalidEnd(code: number): boolean {
55
+ return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
56
+ }
57
+
58
+ const enum EntityDecoderState {
59
+ EntityStart,
60
+ NumericStart,
61
+ NumericDecimal,
62
+ NumericHex,
63
+ NamedEntity,
64
+ }
65
+
66
+ export enum DecodingMode {
67
+ /** Entities in text nodes that can end with any character. */
68
+ Legacy = 0,
69
+ /** Only allow entities terminated with a semicolon. */
70
+ Strict = 1,
71
+ /** Entities in attributes have limitations on ending characters. */
72
+ Attribute = 2,
73
+ }
74
+
75
+ /**
76
+ * Producers for character reference errors as defined in the HTML spec.
77
+ */
78
+ export interface EntityErrorProducer {
79
+ missingSemicolonAfterCharacterReference(): void;
80
+ absenceOfDigitsInNumericCharacterReference(
81
+ consumedCharacters: number,
82
+ ): void;
83
+ validateNumericCharacterReference(code: number): void;
84
+ }
85
+
86
+ /**
87
+ * Token decoder with support of writing partial entities.
88
+ */
89
+ export class EntityDecoder {
90
+ constructor(
91
+ /** The tree used to decode entities. */
92
+ private readonly decodeTree: Uint16Array,
93
+ /**
94
+ * The function that is called when a codepoint is decoded.
95
+ *
96
+ * For multi-byte named entities, this will be called multiple times,
97
+ * with the second codepoint, and the same `consumed` value.
98
+ *
99
+ * @param codepoint The decoded codepoint.
100
+ * @param consumed The number of bytes consumed by the decoder.
101
+ */
102
+ private readonly emitCodePoint: (cp: number, consumed: number) => void,
103
+ /** An object that is used to produce errors. */
104
+ private readonly errors?: EntityErrorProducer | undefined,
105
+ ) {}
106
+
107
+ /** The current state of the decoder. */
108
+ private state = EntityDecoderState.EntityStart;
109
+ /** Characters that were consumed while parsing an entity. */
110
+ private consumed = 1;
111
+ /**
112
+ * The result of the entity.
113
+ *
114
+ * Either the result index of a numeric entity, or the codepoint of a
115
+ * numeric entity.
116
+ */
117
+ private result = 0;
118
+
119
+ /** The current index in the decode tree. */
120
+ private treeIndex = 0;
121
+ /** The number of characters that were consumed in excess. */
122
+ private excess = 1;
123
+ /** The mode in which the decoder is operating. */
124
+ private decodeMode = DecodingMode.Strict;
125
+
126
+ /** Resets the instance to make it reusable. */
127
+ startEntity(decodeMode: DecodingMode): void {
128
+ this.decodeMode = decodeMode;
129
+ this.state = EntityDecoderState.EntityStart;
130
+ this.result = 0;
131
+ this.treeIndex = 0;
132
+ this.excess = 1;
133
+ this.consumed = 1;
134
+ }
135
+
136
+ /**
137
+ * Write an entity to the decoder. This can be called multiple times with partial entities.
138
+ * If the entity is incomplete, the decoder will return -1.
139
+ *
140
+ * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
141
+ * entity is incomplete, and resume when the next string is written.
142
+ *
143
+ * @param input The string containing the entity (or a continuation of the entity).
144
+ * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
145
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
146
+ */
147
+ write(input: string, offset: number): number {
148
+ switch (this.state) {
149
+ case EntityDecoderState.EntityStart: {
150
+ if (input.charCodeAt(offset) === CharCodes.NUM) {
151
+ this.state = EntityDecoderState.NumericStart;
152
+ this.consumed += 1;
153
+ return this.stateNumericStart(input, offset + 1);
154
+ }
155
+ this.state = EntityDecoderState.NamedEntity;
156
+ return this.stateNamedEntity(input, offset);
157
+ }
158
+
159
+ case EntityDecoderState.NumericStart: {
160
+ return this.stateNumericStart(input, offset);
161
+ }
162
+
163
+ case EntityDecoderState.NumericDecimal: {
164
+ return this.stateNumericDecimal(input, offset);
165
+ }
166
+
167
+ case EntityDecoderState.NumericHex: {
168
+ return this.stateNumericHex(input, offset);
169
+ }
170
+
171
+ case EntityDecoderState.NamedEntity: {
172
+ return this.stateNamedEntity(input, offset);
173
+ }
174
+ }
175
+ }
176
+
177
+ /**
178
+ * Switches between the numeric decimal and hexadecimal states.
179
+ *
180
+ * Equivalent to the `Numeric character reference state` in the HTML spec.
181
+ *
182
+ * @param input The string containing the entity (or a continuation of the entity).
183
+ * @param offset The current offset.
184
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
185
+ */
186
+ private stateNumericStart(input: string, offset: number): number {
187
+ if (offset >= input.length) {
188
+ return -1;
189
+ }
190
+
191
+ if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
192
+ this.state = EntityDecoderState.NumericHex;
193
+ this.consumed += 1;
194
+ return this.stateNumericHex(input, offset + 1);
195
+ }
196
+
197
+ this.state = EntityDecoderState.NumericDecimal;
198
+ return this.stateNumericDecimal(input, offset);
199
+ }
200
+
201
+ private addToNumericResult(
202
+ input: string,
203
+ start: number,
204
+ end: number,
205
+ base: number,
206
+ ): void {
207
+ if (start !== end) {
208
+ const digitCount = end - start;
209
+ this.result =
210
+ this.result * Math.pow(base, digitCount) +
211
+ Number.parseInt(input.substr(start, digitCount), base);
212
+ this.consumed += digitCount;
213
+ }
214
+ }
215
+
216
+ /**
217
+ * Parses a hexadecimal numeric entity.
218
+ *
219
+ * Equivalent to the `Hexademical character reference state` in the HTML spec.
220
+ *
221
+ * @param input The string containing the entity (or a continuation of the entity).
222
+ * @param offset The current offset.
223
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
224
+ */
225
+ private stateNumericHex(input: string, offset: number): number {
226
+ const startIndex = offset;
227
+
228
+ while (offset < input.length) {
229
+ const char = input.charCodeAt(offset);
230
+ if (isNumber(char) || isHexadecimalCharacter(char)) {
231
+ offset += 1;
232
+ } else {
233
+ this.addToNumericResult(input, startIndex, offset, 16);
234
+ return this.emitNumericEntity(char, 3);
235
+ }
236
+ }
237
+
238
+ this.addToNumericResult(input, startIndex, offset, 16);
239
+
240
+ return -1;
241
+ }
242
+
243
+ /**
244
+ * Parses a decimal numeric entity.
245
+ *
246
+ * Equivalent to the `Decimal character reference state` in the HTML spec.
247
+ *
248
+ * @param input The string containing the entity (or a continuation of the entity).
249
+ * @param offset The current offset.
250
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
251
+ */
252
+ private stateNumericDecimal(input: string, offset: number): number {
253
+ const startIndex = offset;
254
+
255
+ while (offset < input.length) {
256
+ const char = input.charCodeAt(offset);
257
+ if (isNumber(char)) {
258
+ offset += 1;
259
+ } else {
260
+ this.addToNumericResult(input, startIndex, offset, 10);
261
+ return this.emitNumericEntity(char, 2);
262
+ }
263
+ }
264
+
265
+ this.addToNumericResult(input, startIndex, offset, 10);
266
+
267
+ return -1;
268
+ }
269
+
270
+ /**
271
+ * Validate and emit a numeric entity.
272
+ *
273
+ * Implements the logic from the `Hexademical character reference start
274
+ * state` and `Numeric character reference end state` in the HTML spec.
275
+ *
276
+ * @param lastCp The last code point of the entity. Used to see if the
277
+ * entity was terminated with a semicolon.
278
+ * @param expectedLength The minimum number of characters that should be
279
+ * consumed. Used to validate that at least one digit
280
+ * was consumed.
281
+ * @returns The number of characters that were consumed.
282
+ */
283
+ private emitNumericEntity(lastCp: number, expectedLength: number): number {
284
+ // Ensure we consumed at least one digit.
285
+ if (this.consumed <= expectedLength) {
286
+ this.errors?.absenceOfDigitsInNumericCharacterReference(
287
+ this.consumed,
288
+ );
289
+ return 0;
290
+ }
291
+
292
+ // Figure out if this is a legit end of the entity
293
+ if (lastCp === CharCodes.SEMI) {
294
+ this.consumed += 1;
295
+ } else if (this.decodeMode === DecodingMode.Strict) {
296
+ return 0;
297
+ }
298
+
299
+ this.emitCodePoint(replaceCodePoint(this.result), this.consumed);
300
+
301
+ if (this.errors) {
302
+ if (lastCp !== CharCodes.SEMI) {
303
+ this.errors.missingSemicolonAfterCharacterReference();
304
+ }
305
+
306
+ this.errors.validateNumericCharacterReference(this.result);
307
+ }
308
+
309
+ return this.consumed;
310
+ }
311
+
312
+ /**
313
+ * Parses a named entity.
314
+ *
315
+ * Equivalent to the `Named character reference state` in the HTML spec.
316
+ *
317
+ * @param input The string containing the entity (or a continuation of the entity).
318
+ * @param offset The current offset.
319
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
320
+ */
321
+ private stateNamedEntity(input: string, offset: number): number {
322
+ const { decodeTree } = this;
323
+ let current = decodeTree[this.treeIndex];
324
+ // The mask is the number of bytes of the value, including the current byte.
325
+ let valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
326
+
327
+ for (; offset < input.length; offset++, this.excess++) {
328
+ const char = input.charCodeAt(offset);
329
+
330
+ this.treeIndex = determineBranch(
331
+ decodeTree,
332
+ current,
333
+ this.treeIndex + Math.max(1, valueLength),
334
+ char,
335
+ );
336
+
337
+ if (this.treeIndex < 0) {
338
+ return this.result === 0 ||
339
+ // If we are parsing an attribute
340
+ (this.decodeMode === DecodingMode.Attribute &&
341
+ // We shouldn't have consumed any characters after the entity,
342
+ (valueLength === 0 ||
343
+ // And there should be no invalid characters.
344
+ isEntityInAttributeInvalidEnd(char)))
345
+ ? 0
346
+ : this.emitNotTerminatedNamedEntity();
347
+ }
348
+
349
+ current = decodeTree[this.treeIndex];
350
+ valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
351
+
352
+ // If the branch is a value, store it and continue
353
+ if (valueLength !== 0) {
354
+ // If the entity is terminated by a semicolon, we are done.
355
+ if (char === CharCodes.SEMI) {
356
+ return this.emitNamedEntityData(
357
+ this.treeIndex,
358
+ valueLength,
359
+ this.consumed + this.excess,
360
+ );
361
+ }
362
+
363
+ // If we encounter a non-terminated (legacy) entity while parsing strictly, then ignore it.
364
+ if (this.decodeMode !== DecodingMode.Strict) {
365
+ this.result = this.treeIndex;
366
+ this.consumed += this.excess;
367
+ this.excess = 0;
368
+ }
369
+ }
370
+ }
371
+
372
+ return -1;
373
+ }
374
+
375
+ /**
376
+ * Emit a named entity that was not terminated with a semicolon.
377
+ *
378
+ * @returns The number of characters consumed.
379
+ */
380
+ private emitNotTerminatedNamedEntity(): number {
381
+ const { result, decodeTree } = this;
382
+
383
+ const valueLength =
384
+ (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
385
+
386
+ this.emitNamedEntityData(result, valueLength, this.consumed);
387
+ this.errors?.missingSemicolonAfterCharacterReference();
388
+
389
+ return this.consumed;
390
+ }
391
+
392
+ /**
393
+ * Emit a named entity.
394
+ *
395
+ * @param result The index of the entity in the decode tree.
396
+ * @param valueLength The number of bytes in the entity.
397
+ * @param consumed The number of characters consumed.
398
+ *
399
+ * @returns The number of characters consumed.
400
+ */
401
+ private emitNamedEntityData(
402
+ result: number,
403
+ valueLength: number,
404
+ consumed: number,
405
+ ): number {
406
+ const { decodeTree } = this;
407
+
408
+ this.emitCodePoint(
409
+ valueLength === 1
410
+ ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH
411
+ : decodeTree[result + 1],
412
+ consumed,
413
+ );
414
+ if (valueLength === 3) {
415
+ // For multi-byte values, we need to emit the second byte.
416
+ this.emitCodePoint(decodeTree[result + 2], consumed);
417
+ }
418
+
419
+ return consumed;
420
+ }
421
+
422
+ /**
423
+ * Signal to the parser that the end of the input was reached.
424
+ *
425
+ * Remaining data will be emitted and relevant errors will be produced.
426
+ *
427
+ * @returns The number of characters consumed.
428
+ */
429
+ end(): number {
430
+ switch (this.state) {
431
+ case EntityDecoderState.NamedEntity: {
432
+ // Emit a named entity if we have one.
433
+ return this.result !== 0 &&
434
+ (this.decodeMode !== DecodingMode.Attribute ||
435
+ this.result === this.treeIndex)
436
+ ? this.emitNotTerminatedNamedEntity()
437
+ : 0;
438
+ }
439
+ // Otherwise, emit a numeric entity if we have one.
440
+ case EntityDecoderState.NumericDecimal: {
441
+ return this.emitNumericEntity(0, 2);
442
+ }
443
+ case EntityDecoderState.NumericHex: {
444
+ return this.emitNumericEntity(0, 3);
445
+ }
446
+ case EntityDecoderState.NumericStart: {
447
+ this.errors?.absenceOfDigitsInNumericCharacterReference(
448
+ this.consumed,
449
+ );
450
+ return 0;
451
+ }
452
+ case EntityDecoderState.EntityStart: {
453
+ // Return 0 if we have no entity.
454
+ return 0;
455
+ }
456
+ }
457
+ }
458
+ }
459
+
460
+ /**
461
+ * Creates a function that decodes entities in a string.
462
+ *
463
+ * @param decodeTree The decode tree.
464
+ * @returns A function that decodes entities in a string.
465
+ */
466
+ function getDecoder(decodeTree: Uint16Array) {
467
+ let returnValue = "";
468
+ const decoder = new EntityDecoder(
469
+ decodeTree,
470
+ (data) => (returnValue += fromCodePoint(data)),
471
+ );
472
+
473
+ return function decodeWithTrie(
474
+ input: string,
475
+ decodeMode: DecodingMode,
476
+ ): string {
477
+ let lastIndex = 0;
478
+ let offset = 0;
479
+
480
+ while ((offset = input.indexOf("&", offset)) >= 0) {
481
+ returnValue += input.slice(lastIndex, offset);
482
+
483
+ decoder.startEntity(decodeMode);
484
+
485
+ const length = decoder.write(
486
+ input,
487
+ // Skip the "&"
488
+ offset + 1,
489
+ );
490
+
491
+ if (length < 0) {
492
+ lastIndex = offset + decoder.end();
493
+ break;
494
+ }
495
+
496
+ lastIndex = offset + length;
497
+ // If `length` is 0, skip the current `&` and continue.
498
+ offset = length === 0 ? lastIndex + 1 : lastIndex;
499
+ }
500
+
501
+ const result = returnValue + input.slice(lastIndex);
502
+
503
+ // Make sure we don't keep a reference to the final string.
504
+ returnValue = "";
505
+
506
+ return result;
507
+ };
508
+ }
509
+
510
+ /**
511
+ * Determines the branch of the current node that is taken given the current
512
+ * character. This function is used to traverse the trie.
513
+ *
514
+ * @param decodeTree The trie.
515
+ * @param current The current node.
516
+ * @param nodeIdx The index right after the current node and its value.
517
+ * @param char The current character.
518
+ * @returns The index of the next node, or -1 if no branch is taken.
519
+ */
520
+ export function determineBranch(
521
+ decodeTree: Uint16Array,
522
+ current: number,
523
+ nodeIndex: number,
524
+ char: number,
525
+ ): number {
526
+ const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
527
+ const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
528
+
529
+ // Case 1: Single branch encoded in jump offset
530
+ if (branchCount === 0) {
531
+ return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
532
+ }
533
+
534
+ // Case 2: Multiple branches encoded in jump table
535
+ if (jumpOffset) {
536
+ const value = char - jumpOffset;
537
+
538
+ return value < 0 || value >= branchCount
539
+ ? -1
540
+ : decodeTree[nodeIndex + value] - 1;
541
+ }
542
+
543
+ // Case 3: Multiple branches encoded in dictionary
544
+
545
+ // Binary search for the character.
546
+ let lo = nodeIndex;
547
+ let hi = lo + branchCount - 1;
548
+
549
+ while (lo <= hi) {
550
+ const mid = (lo + hi) >>> 1;
551
+ const midValue = decodeTree[mid];
552
+
553
+ if (midValue < char) {
554
+ lo = mid + 1;
555
+ } else if (midValue > char) {
556
+ hi = mid - 1;
557
+ } else {
558
+ return decodeTree[mid + branchCount];
559
+ }
560
+ }
561
+
562
+ return -1;
563
+ }
564
+
565
+ const htmlDecoder = /* #__PURE__ */ getDecoder(htmlDecodeTree);
566
+ const xmlDecoder = /* #__PURE__ */ getDecoder(xmlDecodeTree);
567
+
568
+ /**
569
+ * Decodes an HTML string.
570
+ *
571
+ * @param htmlString The string to decode.
572
+ * @param mode The decoding mode.
573
+ * @returns The decoded string.
574
+ */
575
+ export function decodeHTML(
576
+ htmlString: string,
577
+ mode: DecodingMode = DecodingMode.Legacy,
578
+ ): string {
579
+ return htmlDecoder(htmlString, mode);
580
+ }
581
+
582
+ /**
583
+ * Decodes an HTML string in an attribute.
584
+ *
585
+ * @param htmlAttribute The string to decode.
586
+ * @returns The decoded string.
587
+ */
588
+ export function decodeHTMLAttribute(htmlAttribute: string): string {
589
+ return htmlDecoder(htmlAttribute, DecodingMode.Attribute);
590
+ }
591
+
592
+ /**
593
+ * Decodes an HTML string, requiring all entities to be terminated by a semicolon.
594
+ *
595
+ * @param htmlString The string to decode.
596
+ * @returns The decoded string.
597
+ */
598
+ export function decodeHTMLStrict(htmlString: string): string {
599
+ return htmlDecoder(htmlString, DecodingMode.Strict);
600
+ }
601
+
602
+ /**
603
+ * Decodes an XML string, requiring all entities to be terminated by a semicolon.
604
+ *
605
+ * @param xmlString The string to decode.
606
+ * @returns The decoded string.
607
+ */
608
+ export function decodeXML(xmlString: string): string {
609
+ return xmlDecoder(xmlString, DecodingMode.Strict);
610
+ }
611
+
612
+ // Re-export for use by eg. htmlparser2
613
+ export { htmlDecodeTree } from "./generated/decode-data-html.js";
614
+ export { xmlDecodeTree } from "./generated/decode-data-xml.js";
615
+
616
+ export {
617
+ decodeCodePoint,
618
+ replaceCodePoint,
619
+ fromCodePoint,
620
+ } from "./decode-codepoint.js";
@@ -0,0 +1,78 @@
1
+ import { describe, it, expect } from "vitest";
2
+ import * as entities from "./index.js";
3
+
4
+ describe("Encode->decode test", () => {
5
+ const testcases = [
6
+ {
7
+ input: "asdf & ÿ ü '",
8
+ xml: "asdf &amp; &#xff; &#xfc; &apos;",
9
+ html: "asdf &amp; &yuml; &uuml; &apos;",
10
+ },
11
+ {
12
+ input: "&#38;",
13
+ xml: "&amp;#38;",
14
+ html: "&amp;&num;38&semi;",
15
+ },
16
+ ];
17
+
18
+ for (const { input, xml, html } of testcases) {
19
+ const encodedXML = entities.encodeXML(input);
20
+ it(`should XML encode ${input}`, () => expect(encodedXML).toBe(xml));
21
+ it(`should default to XML encode ${input}`, () =>
22
+ expect(entities.encode(input)).toBe(xml));
23
+ it(`should XML decode ${encodedXML}`, () =>
24
+ expect(entities.decodeXML(encodedXML)).toBe(input));
25
+ it(`should default to XML encode ${encodedXML}`, () =>
26
+ expect(entities.decode(encodedXML)).toBe(input));
27
+ it(`should default strict to XML encode ${encodedXML}`, () =>
28
+ expect(entities.decodeStrict(encodedXML)).toBe(input));
29
+
30
+ const encodedHTML5 = entities.encodeHTML5(input);
31
+ it(`should HTML5 encode ${input}`, () =>
32
+ expect(encodedHTML5).toBe(html));
33
+ it(`should HTML5 decode ${encodedHTML5}`, () =>
34
+ expect(entities.decodeHTML(encodedHTML5)).toBe(input));
35
+ it("should encode emojis", () =>
36
+ expect(entities.encodeHTML5("😄🍾🥳💥😇")).toBe(
37
+ "&#x1f604;&#x1f37e;&#x1f973;&#x1f4a5;&#x1f607;",
38
+ ));
39
+ }
40
+
41
+ it("should encode data URIs (issue #16)", () => {
42
+ const data =
43
+ "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAALAAABAAEAAAIBRAA7";
44
+ expect(entities.decode(entities.encode(data))).toBe(data);
45
+ });
46
+
47
+ it("should HTML encode all ASCII characters", () => {
48
+ for (let index = 0; index < 128; index++) {
49
+ const char = String.fromCharCode(index);
50
+ const encoded = entities.encodeHTML(char);
51
+ const decoded = entities.decodeHTML(encoded);
52
+ expect(decoded).toBe(char);
53
+ }
54
+ });
55
+
56
+ it("should encode trailing parts of entities", () =>
57
+ expect(entities.encodeHTML("\uD835")).toBe("&#xd835;"));
58
+
59
+ it("should encode surrogate pair with first surrogate equivalent of entity, without corresponding entity", () =>
60
+ expect(entities.encodeHTML("\u{1D4A4}")).toBe("&#x1d4a4;"));
61
+ });
62
+
63
+ describe("encodeNonAsciiHTML", () => {
64
+ it("should encode all non-ASCII characters", () =>
65
+ expect(entities.encodeNonAsciiHTML("<test> #123! übermaßen")).toBe(
66
+ "&lt;test&gt; #123! &uuml;berma&szlig;en",
67
+ ));
68
+
69
+ it("should encode emojis", () =>
70
+ expect(entities.encodeNonAsciiHTML("😄🍾🥳💥😇")).toBe(
71
+ "&#x1f604;&#x1f37e;&#x1f973;&#x1f4a5;&#x1f607;",
72
+ ));
73
+
74
+ it("should encode chars above surrogates", () =>
75
+ expect(entities.encodeNonAsciiHTML("♒️♓️♈️♉️♊️♋️♌️♍️♎️♏️♐️♑️")).toBe(
76
+ "&#x2652;&#xfe0f;&#x2653;&#xfe0f;&#x2648;&#xfe0f;&#x2649;&#xfe0f;&#x264a;&#xfe0f;&#x264b;&#xfe0f;&#x264c;&#xfe0f;&#x264d;&#xfe0f;&#x264e;&#xfe0f;&#x264f;&#xfe0f;&#x2650;&#xfe0f;&#x2651;&#xfe0f;",
77
+ ));
78
+ });