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,497 @@
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
+ var CharCodes;
5
+ (function (CharCodes) {
6
+ CharCodes[CharCodes["NUM"] = 35] = "NUM";
7
+ CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
8
+ CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
9
+ CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
10
+ CharCodes[CharCodes["NINE"] = 57] = "NINE";
11
+ CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
12
+ CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
13
+ CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
14
+ CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
15
+ CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
16
+ CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
17
+ CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
18
+ })(CharCodes || (CharCodes = {}));
19
+ /** Bit that needs to be set to convert an upper case ASCII character to lower case */
20
+ const TO_LOWER_BIT = 32;
21
+ export var BinTrieFlags;
22
+ (function (BinTrieFlags) {
23
+ BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
24
+ BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
25
+ BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
26
+ })(BinTrieFlags || (BinTrieFlags = {}));
27
+ function isNumber(code) {
28
+ return code >= CharCodes.ZERO && code <= CharCodes.NINE;
29
+ }
30
+ function isHexadecimalCharacter(code) {
31
+ return ((code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F) ||
32
+ (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F));
33
+ }
34
+ function isAsciiAlphaNumeric(code) {
35
+ return ((code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z) ||
36
+ (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z) ||
37
+ isNumber(code));
38
+ }
39
+ /**
40
+ * Checks if the given character is a valid end character for an entity in an attribute.
41
+ *
42
+ * Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.
43
+ * See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
44
+ */
45
+ function isEntityInAttributeInvalidEnd(code) {
46
+ return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
47
+ }
48
+ var EntityDecoderState;
49
+ (function (EntityDecoderState) {
50
+ EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
51
+ EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
52
+ EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
53
+ EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
54
+ EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
55
+ })(EntityDecoderState || (EntityDecoderState = {}));
56
+ export var DecodingMode;
57
+ (function (DecodingMode) {
58
+ /** Entities in text nodes that can end with any character. */
59
+ DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
60
+ /** Only allow entities terminated with a semicolon. */
61
+ DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
62
+ /** Entities in attributes have limitations on ending characters. */
63
+ DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
64
+ })(DecodingMode || (DecodingMode = {}));
65
+ /**
66
+ * Token decoder with support of writing partial entities.
67
+ */
68
+ export class EntityDecoder {
69
+ constructor(
70
+ /** The tree used to decode entities. */
71
+ decodeTree,
72
+ /**
73
+ * The function that is called when a codepoint is decoded.
74
+ *
75
+ * For multi-byte named entities, this will be called multiple times,
76
+ * with the second codepoint, and the same `consumed` value.
77
+ *
78
+ * @param codepoint The decoded codepoint.
79
+ * @param consumed The number of bytes consumed by the decoder.
80
+ */
81
+ emitCodePoint,
82
+ /** An object that is used to produce errors. */
83
+ errors) {
84
+ this.decodeTree = decodeTree;
85
+ this.emitCodePoint = emitCodePoint;
86
+ this.errors = errors;
87
+ /** The current state of the decoder. */
88
+ this.state = EntityDecoderState.EntityStart;
89
+ /** Characters that were consumed while parsing an entity. */
90
+ this.consumed = 1;
91
+ /**
92
+ * The result of the entity.
93
+ *
94
+ * Either the result index of a numeric entity, or the codepoint of a
95
+ * numeric entity.
96
+ */
97
+ this.result = 0;
98
+ /** The current index in the decode tree. */
99
+ this.treeIndex = 0;
100
+ /** The number of characters that were consumed in excess. */
101
+ this.excess = 1;
102
+ /** The mode in which the decoder is operating. */
103
+ this.decodeMode = DecodingMode.Strict;
104
+ }
105
+ /** Resets the instance to make it reusable. */
106
+ startEntity(decodeMode) {
107
+ this.decodeMode = decodeMode;
108
+ this.state = EntityDecoderState.EntityStart;
109
+ this.result = 0;
110
+ this.treeIndex = 0;
111
+ this.excess = 1;
112
+ this.consumed = 1;
113
+ }
114
+ /**
115
+ * Write an entity to the decoder. This can be called multiple times with partial entities.
116
+ * If the entity is incomplete, the decoder will return -1.
117
+ *
118
+ * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
119
+ * entity is incomplete, and resume when the next string is written.
120
+ *
121
+ * @param input The string containing the entity (or a continuation of the entity).
122
+ * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
123
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
124
+ */
125
+ write(input, offset) {
126
+ switch (this.state) {
127
+ case EntityDecoderState.EntityStart: {
128
+ if (input.charCodeAt(offset) === CharCodes.NUM) {
129
+ this.state = EntityDecoderState.NumericStart;
130
+ this.consumed += 1;
131
+ return this.stateNumericStart(input, offset + 1);
132
+ }
133
+ this.state = EntityDecoderState.NamedEntity;
134
+ return this.stateNamedEntity(input, offset);
135
+ }
136
+ case EntityDecoderState.NumericStart: {
137
+ return this.stateNumericStart(input, offset);
138
+ }
139
+ case EntityDecoderState.NumericDecimal: {
140
+ return this.stateNumericDecimal(input, offset);
141
+ }
142
+ case EntityDecoderState.NumericHex: {
143
+ return this.stateNumericHex(input, offset);
144
+ }
145
+ case EntityDecoderState.NamedEntity: {
146
+ return this.stateNamedEntity(input, offset);
147
+ }
148
+ }
149
+ }
150
+ /**
151
+ * Switches between the numeric decimal and hexadecimal states.
152
+ *
153
+ * Equivalent to the `Numeric character reference state` in the HTML spec.
154
+ *
155
+ * @param input The string containing the entity (or a continuation of the entity).
156
+ * @param offset The current offset.
157
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
158
+ */
159
+ stateNumericStart(input, offset) {
160
+ if (offset >= input.length) {
161
+ return -1;
162
+ }
163
+ if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
164
+ this.state = EntityDecoderState.NumericHex;
165
+ this.consumed += 1;
166
+ return this.stateNumericHex(input, offset + 1);
167
+ }
168
+ this.state = EntityDecoderState.NumericDecimal;
169
+ return this.stateNumericDecimal(input, offset);
170
+ }
171
+ addToNumericResult(input, start, end, base) {
172
+ if (start !== end) {
173
+ const digitCount = end - start;
174
+ this.result =
175
+ this.result * Math.pow(base, digitCount) +
176
+ Number.parseInt(input.substr(start, digitCount), base);
177
+ this.consumed += digitCount;
178
+ }
179
+ }
180
+ /**
181
+ * Parses a hexadecimal numeric entity.
182
+ *
183
+ * Equivalent to the `Hexademical character reference state` in the HTML spec.
184
+ *
185
+ * @param input The string containing the entity (or a continuation of the entity).
186
+ * @param offset The current offset.
187
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
188
+ */
189
+ stateNumericHex(input, offset) {
190
+ const startIndex = offset;
191
+ while (offset < input.length) {
192
+ const char = input.charCodeAt(offset);
193
+ if (isNumber(char) || isHexadecimalCharacter(char)) {
194
+ offset += 1;
195
+ }
196
+ else {
197
+ this.addToNumericResult(input, startIndex, offset, 16);
198
+ return this.emitNumericEntity(char, 3);
199
+ }
200
+ }
201
+ this.addToNumericResult(input, startIndex, offset, 16);
202
+ return -1;
203
+ }
204
+ /**
205
+ * Parses a decimal numeric entity.
206
+ *
207
+ * Equivalent to the `Decimal character reference state` in the HTML spec.
208
+ *
209
+ * @param input The string containing the entity (or a continuation of the entity).
210
+ * @param offset The current offset.
211
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
212
+ */
213
+ stateNumericDecimal(input, offset) {
214
+ const startIndex = offset;
215
+ while (offset < input.length) {
216
+ const char = input.charCodeAt(offset);
217
+ if (isNumber(char)) {
218
+ offset += 1;
219
+ }
220
+ else {
221
+ this.addToNumericResult(input, startIndex, offset, 10);
222
+ return this.emitNumericEntity(char, 2);
223
+ }
224
+ }
225
+ this.addToNumericResult(input, startIndex, offset, 10);
226
+ return -1;
227
+ }
228
+ /**
229
+ * Validate and emit a numeric entity.
230
+ *
231
+ * Implements the logic from the `Hexademical character reference start
232
+ * state` and `Numeric character reference end state` in the HTML spec.
233
+ *
234
+ * @param lastCp The last code point of the entity. Used to see if the
235
+ * entity was terminated with a semicolon.
236
+ * @param expectedLength The minimum number of characters that should be
237
+ * consumed. Used to validate that at least one digit
238
+ * was consumed.
239
+ * @returns The number of characters that were consumed.
240
+ */
241
+ emitNumericEntity(lastCp, expectedLength) {
242
+ var _a;
243
+ // Ensure we consumed at least one digit.
244
+ if (this.consumed <= expectedLength) {
245
+ (_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
246
+ return 0;
247
+ }
248
+ // Figure out if this is a legit end of the entity
249
+ if (lastCp === CharCodes.SEMI) {
250
+ this.consumed += 1;
251
+ }
252
+ else if (this.decodeMode === DecodingMode.Strict) {
253
+ return 0;
254
+ }
255
+ this.emitCodePoint(replaceCodePoint(this.result), this.consumed);
256
+ if (this.errors) {
257
+ if (lastCp !== CharCodes.SEMI) {
258
+ this.errors.missingSemicolonAfterCharacterReference();
259
+ }
260
+ this.errors.validateNumericCharacterReference(this.result);
261
+ }
262
+ return this.consumed;
263
+ }
264
+ /**
265
+ * Parses a named entity.
266
+ *
267
+ * Equivalent to the `Named character reference state` in the HTML spec.
268
+ *
269
+ * @param input The string containing the entity (or a continuation of the entity).
270
+ * @param offset The current offset.
271
+ * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
272
+ */
273
+ stateNamedEntity(input, offset) {
274
+ const { decodeTree } = this;
275
+ let current = decodeTree[this.treeIndex];
276
+ // The mask is the number of bytes of the value, including the current byte.
277
+ let valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
278
+ for (; offset < input.length; offset++, this.excess++) {
279
+ const char = input.charCodeAt(offset);
280
+ this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
281
+ if (this.treeIndex < 0) {
282
+ return this.result === 0 ||
283
+ // If we are parsing an attribute
284
+ (this.decodeMode === DecodingMode.Attribute &&
285
+ // We shouldn't have consumed any characters after the entity,
286
+ (valueLength === 0 ||
287
+ // And there should be no invalid characters.
288
+ isEntityInAttributeInvalidEnd(char)))
289
+ ? 0
290
+ : this.emitNotTerminatedNamedEntity();
291
+ }
292
+ current = decodeTree[this.treeIndex];
293
+ valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
294
+ // If the branch is a value, store it and continue
295
+ if (valueLength !== 0) {
296
+ // If the entity is terminated by a semicolon, we are done.
297
+ if (char === CharCodes.SEMI) {
298
+ return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
299
+ }
300
+ // If we encounter a non-terminated (legacy) entity while parsing strictly, then ignore it.
301
+ if (this.decodeMode !== DecodingMode.Strict) {
302
+ this.result = this.treeIndex;
303
+ this.consumed += this.excess;
304
+ this.excess = 0;
305
+ }
306
+ }
307
+ }
308
+ return -1;
309
+ }
310
+ /**
311
+ * Emit a named entity that was not terminated with a semicolon.
312
+ *
313
+ * @returns The number of characters consumed.
314
+ */
315
+ emitNotTerminatedNamedEntity() {
316
+ var _a;
317
+ const { result, decodeTree } = this;
318
+ const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
319
+ this.emitNamedEntityData(result, valueLength, this.consumed);
320
+ (_a = this.errors) === null || _a === void 0 ? void 0 : _a.missingSemicolonAfterCharacterReference();
321
+ return this.consumed;
322
+ }
323
+ /**
324
+ * Emit a named entity.
325
+ *
326
+ * @param result The index of the entity in the decode tree.
327
+ * @param valueLength The number of bytes in the entity.
328
+ * @param consumed The number of characters consumed.
329
+ *
330
+ * @returns The number of characters consumed.
331
+ */
332
+ emitNamedEntityData(result, valueLength, consumed) {
333
+ const { decodeTree } = this;
334
+ this.emitCodePoint(valueLength === 1
335
+ ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH
336
+ : decodeTree[result + 1], consumed);
337
+ if (valueLength === 3) {
338
+ // For multi-byte values, we need to emit the second byte.
339
+ this.emitCodePoint(decodeTree[result + 2], consumed);
340
+ }
341
+ return consumed;
342
+ }
343
+ /**
344
+ * Signal to the parser that the end of the input was reached.
345
+ *
346
+ * Remaining data will be emitted and relevant errors will be produced.
347
+ *
348
+ * @returns The number of characters consumed.
349
+ */
350
+ end() {
351
+ var _a;
352
+ switch (this.state) {
353
+ case EntityDecoderState.NamedEntity: {
354
+ // Emit a named entity if we have one.
355
+ return this.result !== 0 &&
356
+ (this.decodeMode !== DecodingMode.Attribute ||
357
+ this.result === this.treeIndex)
358
+ ? this.emitNotTerminatedNamedEntity()
359
+ : 0;
360
+ }
361
+ // Otherwise, emit a numeric entity if we have one.
362
+ case EntityDecoderState.NumericDecimal: {
363
+ return this.emitNumericEntity(0, 2);
364
+ }
365
+ case EntityDecoderState.NumericHex: {
366
+ return this.emitNumericEntity(0, 3);
367
+ }
368
+ case EntityDecoderState.NumericStart: {
369
+ (_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
370
+ return 0;
371
+ }
372
+ case EntityDecoderState.EntityStart: {
373
+ // Return 0 if we have no entity.
374
+ return 0;
375
+ }
376
+ }
377
+ }
378
+ }
379
+ /**
380
+ * Creates a function that decodes entities in a string.
381
+ *
382
+ * @param decodeTree The decode tree.
383
+ * @returns A function that decodes entities in a string.
384
+ */
385
+ function getDecoder(decodeTree) {
386
+ let returnValue = "";
387
+ const decoder = new EntityDecoder(decodeTree, (data) => (returnValue += fromCodePoint(data)));
388
+ return function decodeWithTrie(input, decodeMode) {
389
+ let lastIndex = 0;
390
+ let offset = 0;
391
+ while ((offset = input.indexOf("&", offset)) >= 0) {
392
+ returnValue += input.slice(lastIndex, offset);
393
+ decoder.startEntity(decodeMode);
394
+ const length = decoder.write(input,
395
+ // Skip the "&"
396
+ offset + 1);
397
+ if (length < 0) {
398
+ lastIndex = offset + decoder.end();
399
+ break;
400
+ }
401
+ lastIndex = offset + length;
402
+ // If `length` is 0, skip the current `&` and continue.
403
+ offset = length === 0 ? lastIndex + 1 : lastIndex;
404
+ }
405
+ const result = returnValue + input.slice(lastIndex);
406
+ // Make sure we don't keep a reference to the final string.
407
+ returnValue = "";
408
+ return result;
409
+ };
410
+ }
411
+ /**
412
+ * Determines the branch of the current node that is taken given the current
413
+ * character. This function is used to traverse the trie.
414
+ *
415
+ * @param decodeTree The trie.
416
+ * @param current The current node.
417
+ * @param nodeIdx The index right after the current node and its value.
418
+ * @param char The current character.
419
+ * @returns The index of the next node, or -1 if no branch is taken.
420
+ */
421
+ export function determineBranch(decodeTree, current, nodeIndex, char) {
422
+ const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
423
+ const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
424
+ // Case 1: Single branch encoded in jump offset
425
+ if (branchCount === 0) {
426
+ return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
427
+ }
428
+ // Case 2: Multiple branches encoded in jump table
429
+ if (jumpOffset) {
430
+ const value = char - jumpOffset;
431
+ return value < 0 || value >= branchCount
432
+ ? -1
433
+ : decodeTree[nodeIndex + value] - 1;
434
+ }
435
+ // Case 3: Multiple branches encoded in dictionary
436
+ // Binary search for the character.
437
+ let lo = nodeIndex;
438
+ let hi = lo + branchCount - 1;
439
+ while (lo <= hi) {
440
+ const mid = (lo + hi) >>> 1;
441
+ const midValue = decodeTree[mid];
442
+ if (midValue < char) {
443
+ lo = mid + 1;
444
+ }
445
+ else if (midValue > char) {
446
+ hi = mid - 1;
447
+ }
448
+ else {
449
+ return decodeTree[mid + branchCount];
450
+ }
451
+ }
452
+ return -1;
453
+ }
454
+ const htmlDecoder = /* #__PURE__ */ getDecoder(htmlDecodeTree);
455
+ const xmlDecoder = /* #__PURE__ */ getDecoder(xmlDecodeTree);
456
+ /**
457
+ * Decodes an HTML string.
458
+ *
459
+ * @param htmlString The string to decode.
460
+ * @param mode The decoding mode.
461
+ * @returns The decoded string.
462
+ */
463
+ export function decodeHTML(htmlString, mode = DecodingMode.Legacy) {
464
+ return htmlDecoder(htmlString, mode);
465
+ }
466
+ /**
467
+ * Decodes an HTML string in an attribute.
468
+ *
469
+ * @param htmlAttribute The string to decode.
470
+ * @returns The decoded string.
471
+ */
472
+ export function decodeHTMLAttribute(htmlAttribute) {
473
+ return htmlDecoder(htmlAttribute, DecodingMode.Attribute);
474
+ }
475
+ /**
476
+ * Decodes an HTML string, requiring all entities to be terminated by a semicolon.
477
+ *
478
+ * @param htmlString The string to decode.
479
+ * @returns The decoded string.
480
+ */
481
+ export function decodeHTMLStrict(htmlString) {
482
+ return htmlDecoder(htmlString, DecodingMode.Strict);
483
+ }
484
+ /**
485
+ * Decodes an XML string, requiring all entities to be terminated by a semicolon.
486
+ *
487
+ * @param xmlString The string to decode.
488
+ * @returns The decoded string.
489
+ */
490
+ export function decodeXML(xmlString) {
491
+ return xmlDecoder(xmlString, DecodingMode.Strict);
492
+ }
493
+ // Re-export for use by eg. htmlparser2
494
+ export { htmlDecodeTree } from "./generated/decode-data-html.js";
495
+ export { xmlDecodeTree } from "./generated/decode-data-xml.js";
496
+ export { decodeCodePoint, replaceCodePoint, fromCodePoint, } from "./decode-codepoint.js";
497
+ //# sourceMappingURL=decode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decode.js","sourceRoot":"","sources":["../../src/decode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAExE,IAAW,SAaV;AAbD,WAAW,SAAS;IAChB,wCAAQ,CAAA;IACR,0CAAS,CAAA;IACT,8CAAW,CAAA;IACX,0CAAS,CAAA;IACT,0CAAS,CAAA;IACT,gDAAY,CAAA;IACZ,iDAAa,CAAA;IACb,iDAAa,CAAA;IACb,iDAAa,CAAA;IACb,gDAAY,CAAA;IACZ,gDAAY,CAAA;IACZ,gDAAY,CAAA;AAChB,CAAC,EAbU,SAAS,KAAT,SAAS,QAanB;AAED,sFAAsF;AACtF,MAAM,YAAY,GAAG,EAAS,CAAC;AAE/B,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,mEAAoC,CAAA;IACpC,qEAAqC,CAAA;IACrC,6DAAkC,CAAA;AACtC,CAAC,EAJW,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AC,CAAC,CAAC;AACd,CAAC;AAED,MAAM,WAAW,GAAG,eAAe,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAC/D,MAAM,UAAU,GAAG,eAAe,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CACtB,UAAkB,EAClB,OAAqB,YAAY,CAAC,MAAM;IAExC,OAAO,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,aAAqB;IACrD,OAAO,WAAW,CAAC,aAAa,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,UAAkB;IAC/C,OAAO,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,SAAiB;IACvC,OAAO,UAAU,CAAC,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EACH,eAAe,EACf,gBAAgB,EAChB,aAAa,GAChB,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Encodes all characters in the input using HTML entities. This includes
3
+ * characters that are valid ASCII characters in HTML documents, such as `#`.
4
+ *
5
+ * To get a more compact output, consider using the `encodeNonAsciiHTML`
6
+ * function, which will only encode characters that are not valid in HTML
7
+ * documents, as well as non-ASCII characters.
8
+ *
9
+ * If a character has no equivalent entity, a numeric hexadecimal reference
10
+ * (eg. `&#xfc;`) will be used.
11
+ */
12
+ export declare function encodeHTML(input: string): string;
13
+ /**
14
+ * Encodes all non-ASCII characters, as well as characters not valid in HTML
15
+ * documents using HTML entities. This function will not encode characters that
16
+ * are valid in HTML documents, such as `#`.
17
+ *
18
+ * If a character has no equivalent entity, a numeric hexadecimal reference
19
+ * (eg. `&#xfc;`) will be used.
20
+ */
21
+ export declare function encodeNonAsciiHTML(input: string): string;
22
+ //# sourceMappingURL=encode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../src/encode.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AACD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD"}
@@ -0,0 +1,69 @@
1
+ import { htmlTrie } from "./generated/encode-html.js";
2
+ import { xmlReplacer, getCodePoint } from "./escape.js";
3
+ const htmlReplacer = /[\t\n\f!-,./:-@[-`{-}\u0080-\uFFFF]/g;
4
+ /**
5
+ * Encodes all characters in the input using HTML entities. This includes
6
+ * characters that are valid ASCII characters in HTML documents, such as `#`.
7
+ *
8
+ * To get a more compact output, consider using the `encodeNonAsciiHTML`
9
+ * function, which will only encode characters that are not valid in HTML
10
+ * documents, as well as non-ASCII characters.
11
+ *
12
+ * If a character has no equivalent entity, a numeric hexadecimal reference
13
+ * (eg. `&#xfc;`) will be used.
14
+ */
15
+ export function encodeHTML(input) {
16
+ return encodeHTMLTrieRe(htmlReplacer, input);
17
+ }
18
+ /**
19
+ * Encodes all non-ASCII characters, as well as characters not valid in HTML
20
+ * documents using HTML entities. This function will not encode characters that
21
+ * are valid in HTML documents, such as `#`.
22
+ *
23
+ * If a character has no equivalent entity, a numeric hexadecimal reference
24
+ * (eg. `&#xfc;`) will be used.
25
+ */
26
+ export function encodeNonAsciiHTML(input) {
27
+ return encodeHTMLTrieRe(xmlReplacer, input);
28
+ }
29
+ function encodeHTMLTrieRe(regExp, input) {
30
+ let returnValue = "";
31
+ let lastIndex = 0;
32
+ let match;
33
+ while ((match = regExp.exec(input)) !== null) {
34
+ const { index } = match;
35
+ returnValue += input.substring(lastIndex, index);
36
+ const char = input.charCodeAt(index);
37
+ let next = htmlTrie.get(char);
38
+ if (typeof next === "object") {
39
+ // We are in a branch. Try to match the next char.
40
+ if (index + 1 < input.length) {
41
+ const nextChar = input.charCodeAt(index + 1);
42
+ const value = typeof next.n === "number"
43
+ ? next.n === nextChar
44
+ ? next.o
45
+ : undefined
46
+ : next.n.get(nextChar);
47
+ if (value !== undefined) {
48
+ returnValue += value;
49
+ lastIndex = regExp.lastIndex += 1;
50
+ continue;
51
+ }
52
+ }
53
+ next = next.v;
54
+ }
55
+ // We might have a tree node without a value; skip and use a numeric entity.
56
+ if (next === undefined) {
57
+ const cp = getCodePoint(input, index);
58
+ returnValue += `&#x${cp.toString(16)};`;
59
+ // Increase by 1 if we have a surrogate pair
60
+ lastIndex = regExp.lastIndex += Number(cp !== char);
61
+ }
62
+ else {
63
+ returnValue += next;
64
+ lastIndex = index + 1;
65
+ }
66
+ }
67
+ return returnValue + input.substr(lastIndex);
68
+ }
69
+ //# sourceMappingURL=encode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode.js","sourceRoot":"","sources":["../../src/encode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,YAAY,GAAG,sCAAsC,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa;IACpC,OAAO,gBAAgB,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AACD;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC5C,OAAO,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,gBAAgB,CAA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AAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACtC,WAAW,IAAI,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC;YACxC,4CAA4C;YAC5C,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACJ,WAAW,IAAI,IAAI,CAAC;YACpB,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;QAC1B,CAAC;IACL,CAAC;IAED,OAAO,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACjD,CAAC"}
@@ -0,0 +1,43 @@
1
+ export declare const xmlReplacer: RegExp;
2
+ export declare const getCodePoint: (c: string, index: number) => number;
3
+ /**
4
+ * Encodes all non-ASCII characters, as well as characters not valid in XML
5
+ * documents using XML entities.
6
+ *
7
+ * If a character has no equivalent entity, a
8
+ * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
9
+ */
10
+ export declare function encodeXML(input: string): string;
11
+ /**
12
+ * Encodes all non-ASCII characters, as well as characters not valid in XML
13
+ * documents using numeric hexadecimal reference (eg. `&#xfc;`).
14
+ *
15
+ * Have a look at `escapeUTF8` if you want a more concise output at the expense
16
+ * of reduced transportability.
17
+ *
18
+ * @param data String to escape.
19
+ */
20
+ export declare const escape: typeof encodeXML;
21
+ /**
22
+ * Encodes all characters not valid in XML documents using XML entities.
23
+ *
24
+ * Note that the output will be character-set dependent.
25
+ *
26
+ * @param data String to escape.
27
+ */
28
+ export declare const escapeUTF8: (data: string) => string;
29
+ /**
30
+ * Encodes all characters that have to be escaped in HTML attributes,
31
+ * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
32
+ *
33
+ * @param data String to escape.
34
+ */
35
+ export declare const escapeAttribute: (data: string) => string;
36
+ /**
37
+ * Encodes all characters that have to be escaped in HTML text,
38
+ * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
39
+ *
40
+ * @param data String to escape.
41
+ */
42
+ export declare const escapeText: (data: string) => string;
43
+ //# sourceMappingURL=escape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,EAAE,MAAiC,CAAC;AAW5D,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAWoB,CAAC;AAE9E;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA0B/C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,SAAqB,CAAC;AAqClD;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAG1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAQ3C,CAAC;AAEN;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAQ1C,CAAC"}