cloudstructs 0.9.33 → 0.9.34

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 (904) 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.d.ts +16 -16
  51. package/node_modules/@slack/logger/node_modules/@types/node/dom-events.d.ts +60 -85
  52. package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +1 -1
  53. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +1 -2
  54. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +40 -35
  55. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +122 -29
  56. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +143 -287
  57. package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  58. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +28 -3
  59. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +78 -8
  60. package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +1 -1
  61. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +7 -5
  62. package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +39 -7
  63. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +102 -27
  64. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +17 -14
  65. package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +8 -7
  66. package/node_modules/@slack/logger/node_modules/@types/node/package.json +18 -3
  67. package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
  68. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +10 -10
  69. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +43 -11
  70. package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +1 -1
  71. package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +3 -4
  72. package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +0 -1
  73. package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +19 -14
  74. package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +14 -16
  75. package/node_modules/@slack/logger/node_modules/@types/node/sea.d.ts +1 -1
  76. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +217 -14
  77. package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +3 -3
  78. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +13 -18
  79. package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +1 -1
  80. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +107 -21
  81. package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +1 -1
  82. package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +1 -1
  83. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +36 -49
  84. package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +6 -6
  85. package/node_modules/@slack/logger/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  86. package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  87. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  88. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  89. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  90. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  91. package/node_modules/@slack/logger/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  92. package/node_modules/@slack/logger/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  93. package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +1 -1
  94. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +61 -19
  95. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +234 -381
  96. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +110 -32
  97. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +73 -13
  98. package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +1 -1
  99. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +55 -26
  100. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +170 -41
  101. package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +7 -7
  102. package/node_modules/@slack/logger/node_modules/undici-types/api.d.ts +24 -24
  103. package/node_modules/@slack/logger/node_modules/undici-types/balanced-pool.d.ts +11 -11
  104. package/node_modules/@slack/logger/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  105. package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +12 -13
  106. package/node_modules/@slack/logger/node_modules/undici-types/cookies.d.ts +2 -0
  107. package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  108. package/node_modules/@slack/logger/node_modules/undici-types/dispatcher.d.ts +117 -92
  109. package/node_modules/@slack/logger/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  110. package/node_modules/@slack/logger/node_modules/undici-types/errors.d.ts +69 -47
  111. package/node_modules/@slack/logger/node_modules/undici-types/fetch.d.ts +17 -16
  112. package/node_modules/@slack/logger/node_modules/undici-types/formdata.d.ts +7 -7
  113. package/node_modules/@slack/logger/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  114. package/node_modules/@slack/logger/node_modules/undici-types/global-origin.d.ts +5 -5
  115. package/node_modules/@slack/logger/node_modules/undici-types/h2c-client.d.ts +75 -0
  116. package/node_modules/@slack/logger/node_modules/undici-types/handlers.d.ts +7 -7
  117. package/node_modules/@slack/logger/node_modules/undici-types/header.d.ts +157 -1
  118. package/node_modules/@slack/logger/node_modules/undici-types/index.d.ts +51 -47
  119. package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +25 -8
  120. package/node_modules/@slack/logger/node_modules/undici-types/mock-agent.d.ts +33 -18
  121. package/node_modules/@slack/logger/node_modules/undici-types/mock-call-history.d.ts +111 -0
  122. package/node_modules/@slack/logger/node_modules/undici-types/mock-client.d.ts +4 -4
  123. package/node_modules/@slack/logger/node_modules/undici-types/mock-errors.d.ts +3 -3
  124. package/node_modules/@slack/logger/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  125. package/node_modules/@slack/logger/node_modules/undici-types/mock-pool.d.ts +4 -4
  126. package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
  127. package/node_modules/@slack/logger/node_modules/undici-types/patch.d.ts +0 -4
  128. package/node_modules/@slack/logger/node_modules/undici-types/pool-stats.d.ts +8 -8
  129. package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +12 -12
  130. package/node_modules/@slack/logger/node_modules/undici-types/proxy-agent.d.ts +4 -4
  131. package/node_modules/@slack/logger/node_modules/undici-types/readable.d.ts +18 -15
  132. package/node_modules/@slack/logger/node_modules/undici-types/retry-agent.d.ts +1 -1
  133. package/node_modules/@slack/logger/node_modules/undici-types/retry-handler.d.ts +10 -10
  134. package/node_modules/@slack/logger/node_modules/undici-types/util.d.ts +3 -3
  135. package/node_modules/@slack/logger/node_modules/undici-types/utility.d.ts +7 -0
  136. package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +44 -6
  137. package/node_modules/@slack/logger/node_modules/undici-types/websocket.d.ts +35 -1
  138. package/node_modules/@slack/web-api/dist/WebClient.d.ts +0 -2
  139. package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
  140. package/node_modules/@slack/web-api/dist/WebClient.js +28 -15
  141. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  142. package/node_modules/@slack/web-api/dist/errors.d.ts +0 -2
  143. package/node_modules/@slack/web-api/dist/errors.d.ts.map +1 -1
  144. package/node_modules/@slack/web-api/dist/errors.js +6 -6
  145. package/node_modules/@slack/web-api/dist/errors.js.map +1 -1
  146. package/node_modules/@slack/web-api/dist/file-upload.d.ts +1 -4
  147. package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
  148. package/node_modules/@slack/web-api/dist/file-upload.js +43 -38
  149. package/node_modules/@slack/web-api/dist/file-upload.js.map +1 -1
  150. package/node_modules/@slack/web-api/dist/helpers.js +1 -1
  151. package/node_modules/@slack/web-api/dist/helpers.js.map +1 -1
  152. package/node_modules/@slack/web-api/dist/index.d.ts +0 -1
  153. package/node_modules/@slack/web-api/dist/index.d.ts.map +1 -1
  154. package/node_modules/@slack/web-api/dist/instrument.js +19 -10
  155. package/node_modules/@slack/web-api/dist/instrument.js.map +1 -1
  156. package/node_modules/@slack/web-api/dist/logger.js +2 -2
  157. package/node_modules/@slack/web-api/dist/logger.js.map +1 -1
  158. package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts +2 -0
  159. package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts.map +1 -1
  160. package/node_modules/@slack/web-api/dist/types/request/files.d.ts +18 -5
  161. package/node_modules/@slack/web-api/dist/types/request/files.d.ts.map +1 -1
  162. package/node_modules/@slack/web-api/dist/types/request/users.d.ts +0 -3
  163. package/node_modules/@slack/web-api/dist/types/request/users.d.ts.map +1 -1
  164. package/node_modules/@slack/web-api/dist/types/response/AdminConversationsSearchResponse.d.ts +1 -0
  165. package/node_modules/@slack/web-api/dist/types/response/AdminConversationsSearchResponse.d.ts.map +1 -1
  166. package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.d.ts +3 -0
  167. package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.d.ts.map +1 -1
  168. package/node_modules/@slack/web-api/dist/types/response/AppsManifestCreateResponse.d.ts +2 -0
  169. package/node_modules/@slack/web-api/dist/types/response/AppsManifestCreateResponse.d.ts.map +1 -1
  170. package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.d.ts +64 -12
  171. package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.d.ts.map +1 -1
  172. package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.js +27 -8
  173. package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.js.map +1 -1
  174. package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.d.ts +35 -5
  175. package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.d.ts.map +1 -1
  176. package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.js.map +1 -1
  177. package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.d.ts +35 -5
  178. package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.d.ts.map +1 -1
  179. package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.js.map +1 -1
  180. package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.d.ts +65 -12
  181. package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.d.ts.map +1 -1
  182. package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.js +27 -8
  183. package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.js.map +1 -1
  184. package/node_modules/@slack/web-api/dist/types/response/ConversationsJoinResponse.d.ts +1 -0
  185. package/node_modules/@slack/web-api/dist/types/response/ConversationsJoinResponse.d.ts.map +1 -1
  186. package/node_modules/@slack/web-api/dist/types/response/ConversationsKickResponse.d.ts +2 -0
  187. package/node_modules/@slack/web-api/dist/types/response/ConversationsKickResponse.d.ts.map +1 -1
  188. package/node_modules/@slack/web-api/dist/types/response/ConversationsListResponse.d.ts +1 -0
  189. package/node_modules/@slack/web-api/dist/types/response/ConversationsListResponse.d.ts.map +1 -1
  190. package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.d.ts +26 -5
  191. package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.d.ts.map +1 -1
  192. package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.js.map +1 -1
  193. package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.d.ts +64 -12
  194. package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.d.ts.map +1 -1
  195. package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.js +27 -8
  196. package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.js.map +1 -1
  197. package/node_modules/@slack/web-api/dist/types/response/FilesCompleteUploadExternalResponse.d.ts +1 -0
  198. package/node_modules/@slack/web-api/dist/types/response/FilesCompleteUploadExternalResponse.d.ts.map +1 -1
  199. package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.d.ts +134 -108
  200. package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.d.ts.map +1 -1
  201. package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.js +21 -14
  202. package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.js.map +1 -1
  203. package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.d.ts +134 -108
  204. package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.d.ts.map +1 -1
  205. package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.js +21 -14
  206. package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.js.map +1 -1
  207. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.d.ts +134 -108
  208. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.d.ts.map +1 -1
  209. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.js +21 -14
  210. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.js.map +1 -1
  211. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.d.ts +134 -108
  212. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.d.ts.map +1 -1
  213. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.js +21 -14
  214. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.js.map +1 -1
  215. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.d.ts +134 -108
  216. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.d.ts.map +1 -1
  217. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.js +21 -14
  218. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.js.map +1 -1
  219. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.d.ts +134 -108
  220. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.d.ts.map +1 -1
  221. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.js +21 -14
  222. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.js.map +1 -1
  223. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.d.ts +134 -108
  224. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.d.ts.map +1 -1
  225. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.js +21 -14
  226. package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.js.map +1 -1
  227. package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.d.ts +134 -108
  228. package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.d.ts.map +1 -1
  229. package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.js +21 -14
  230. package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.js.map +1 -1
  231. package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.d.ts +134 -108
  232. package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.d.ts.map +1 -1
  233. package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.js +21 -14
  234. package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.js.map +1 -1
  235. package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.d.ts +134 -108
  236. package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.d.ts.map +1 -1
  237. package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.js +21 -14
  238. package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.js.map +1 -1
  239. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.d.ts +134 -108
  240. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.d.ts.map +1 -1
  241. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +21 -14
  242. package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js.map +1 -1
  243. package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.d.ts +35 -5
  244. package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.d.ts.map +1 -1
  245. package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.js.map +1 -1
  246. package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.d.ts +64 -12
  247. package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.d.ts.map +1 -1
  248. package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.js +27 -8
  249. package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.js.map +1 -1
  250. package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.d.ts +35 -2
  251. package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.d.ts.map +1 -1
  252. package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.js.map +1 -1
  253. package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.d.ts +42 -7
  254. package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.d.ts.map +1 -1
  255. package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js.map +1 -1
  256. package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.d.ts +37 -2
  257. package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.d.ts.map +1 -1
  258. package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js.map +1 -1
  259. package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.d.ts +35 -2
  260. package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.d.ts.map +1 -1
  261. package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.js.map +1 -1
  262. package/node_modules/@slack/web-api/dist/types/response/UsergroupsCreateResponse.d.ts +1 -0
  263. package/node_modules/@slack/web-api/dist/types/response/UsergroupsCreateResponse.d.ts.map +1 -1
  264. package/node_modules/@slack/web-api/dist/types/response/UsergroupsDisableResponse.d.ts +1 -0
  265. package/node_modules/@slack/web-api/dist/types/response/UsergroupsDisableResponse.d.ts.map +1 -1
  266. package/node_modules/@slack/web-api/dist/types/response/UsergroupsEnableResponse.d.ts +1 -0
  267. package/node_modules/@slack/web-api/dist/types/response/UsergroupsEnableResponse.d.ts.map +1 -1
  268. package/node_modules/@slack/web-api/dist/types/response/UsergroupsListResponse.d.ts +1 -0
  269. package/node_modules/@slack/web-api/dist/types/response/UsergroupsListResponse.d.ts.map +1 -1
  270. package/node_modules/@slack/web-api/dist/types/response/UsergroupsUpdateResponse.d.ts +1 -0
  271. package/node_modules/@slack/web-api/dist/types/response/UsergroupsUpdateResponse.d.ts.map +1 -1
  272. package/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersUpdateResponse.d.ts +1 -0
  273. package/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersUpdateResponse.d.ts.map +1 -1
  274. package/node_modules/@slack/web-api/dist/types/response/UsersConversationsResponse.d.ts +1 -0
  275. package/node_modules/@slack/web-api/dist/types/response/UsersConversationsResponse.d.ts.map +1 -1
  276. package/node_modules/@slack/web-api/dist/types/response/UsersInfoResponse.d.ts +1 -0
  277. package/node_modules/@slack/web-api/dist/types/response/UsersInfoResponse.d.ts.map +1 -1
  278. package/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.d.ts +1 -0
  279. package/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.d.ts.map +1 -1
  280. package/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.js.map +1 -1
  281. package/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.d.ts +1 -0
  282. package/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.d.ts.map +1 -1
  283. package/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.js.map +1 -1
  284. package/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.d.ts +1 -0
  285. package/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.d.ts.map +1 -1
  286. package/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.js.map +1 -1
  287. package/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.d.ts +1 -0
  288. package/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.d.ts.map +1 -1
  289. package/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.js.map +1 -1
  290. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
  291. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +15 -54
  292. package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +90 -8
  293. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +3 -0
  294. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +3 -4
  295. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +2 -2
  296. package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +16 -16
  297. package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +17 -17
  298. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +43 -37
  299. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +1 -1
  300. package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
  301. package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +16 -16
  302. package/node_modules/@slack/web-api/node_modules/@types/node/dom-events.d.ts +60 -85
  303. package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +1 -1
  304. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +1 -2
  305. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +40 -35
  306. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +122 -29
  307. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +143 -287
  308. package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  309. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +28 -3
  310. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +78 -8
  311. package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +1 -1
  312. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +7 -5
  313. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +39 -7
  314. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +102 -27
  315. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +17 -14
  316. package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +8 -7
  317. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +18 -3
  318. package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
  319. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +10 -10
  320. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +43 -11
  321. package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +1 -1
  322. package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +3 -4
  323. package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +0 -1
  324. package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +19 -14
  325. package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +14 -16
  326. package/node_modules/@slack/web-api/node_modules/@types/node/sea.d.ts +1 -1
  327. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +217 -14
  328. package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +3 -3
  329. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +13 -18
  330. package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +1 -1
  331. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +107 -21
  332. package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +1 -1
  333. package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +1 -1
  334. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +36 -49
  335. package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +6 -6
  336. package/node_modules/@slack/web-api/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  337. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  338. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  339. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  340. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  341. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  342. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  343. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  344. package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +1 -1
  345. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +61 -19
  346. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +234 -381
  347. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +110 -32
  348. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +73 -13
  349. package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +1 -1
  350. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +55 -26
  351. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +170 -41
  352. package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +7 -7
  353. package/node_modules/@slack/web-api/node_modules/undici-types/api.d.ts +24 -24
  354. package/node_modules/@slack/web-api/node_modules/undici-types/balanced-pool.d.ts +11 -11
  355. package/node_modules/@slack/web-api/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  356. package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +12 -13
  357. package/node_modules/@slack/web-api/node_modules/undici-types/cookies.d.ts +2 -0
  358. package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  359. package/node_modules/@slack/web-api/node_modules/undici-types/dispatcher.d.ts +117 -92
  360. package/node_modules/@slack/web-api/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  361. package/node_modules/@slack/web-api/node_modules/undici-types/errors.d.ts +69 -47
  362. package/node_modules/@slack/web-api/node_modules/undici-types/fetch.d.ts +17 -16
  363. package/node_modules/@slack/web-api/node_modules/undici-types/formdata.d.ts +7 -7
  364. package/node_modules/@slack/web-api/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  365. package/node_modules/@slack/web-api/node_modules/undici-types/global-origin.d.ts +5 -5
  366. package/node_modules/@slack/web-api/node_modules/undici-types/h2c-client.d.ts +75 -0
  367. package/node_modules/@slack/web-api/node_modules/undici-types/handlers.d.ts +7 -7
  368. package/node_modules/@slack/web-api/node_modules/undici-types/header.d.ts +157 -1
  369. package/node_modules/@slack/web-api/node_modules/undici-types/index.d.ts +51 -47
  370. package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +25 -8
  371. package/node_modules/@slack/web-api/node_modules/undici-types/mock-agent.d.ts +33 -18
  372. package/node_modules/@slack/web-api/node_modules/undici-types/mock-call-history.d.ts +111 -0
  373. package/node_modules/@slack/web-api/node_modules/undici-types/mock-client.d.ts +4 -4
  374. package/node_modules/@slack/web-api/node_modules/undici-types/mock-errors.d.ts +3 -3
  375. package/node_modules/@slack/web-api/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  376. package/node_modules/@slack/web-api/node_modules/undici-types/mock-pool.d.ts +4 -4
  377. package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
  378. package/node_modules/@slack/web-api/node_modules/undici-types/patch.d.ts +0 -4
  379. package/node_modules/@slack/web-api/node_modules/undici-types/pool-stats.d.ts +8 -8
  380. package/node_modules/@slack/web-api/node_modules/undici-types/pool.d.ts +12 -12
  381. package/node_modules/@slack/web-api/node_modules/undici-types/proxy-agent.d.ts +4 -4
  382. package/node_modules/@slack/web-api/node_modules/undici-types/readable.d.ts +18 -15
  383. package/node_modules/@slack/web-api/node_modules/undici-types/retry-agent.d.ts +1 -1
  384. package/node_modules/@slack/web-api/node_modules/undici-types/retry-handler.d.ts +10 -10
  385. package/node_modules/@slack/web-api/node_modules/undici-types/util.d.ts +3 -3
  386. package/node_modules/@slack/web-api/node_modules/undici-types/utility.d.ts +7 -0
  387. package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +44 -6
  388. package/node_modules/@slack/web-api/node_modules/undici-types/websocket.d.ts +35 -1
  389. package/node_modules/@slack/web-api/package.json +5 -5
  390. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
  391. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +15 -54
  392. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +90 -8
  393. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +3 -0
  394. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +3 -4
  395. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -2
  396. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +16 -16
  397. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -17
  398. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +43 -37
  399. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +1 -1
  400. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
  401. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +16 -16
  402. package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +60 -85
  403. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
  404. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +1 -2
  405. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +40 -35
  406. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +122 -29
  407. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +143 -287
  408. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  409. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +28 -3
  410. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +78 -8
  411. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
  412. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +7 -5
  413. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +39 -7
  414. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +102 -27
  415. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +17 -14
  416. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +8 -7
  417. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +18 -3
  418. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  419. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +10 -10
  420. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +43 -11
  421. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  422. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +3 -4
  423. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +0 -1
  424. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +19 -14
  425. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +14 -16
  426. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
  427. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +217 -14
  428. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +3 -3
  429. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +13 -18
  430. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
  431. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +107 -21
  432. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +1 -1
  433. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  434. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +36 -49
  435. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +6 -6
  436. package/node_modules/@types/cacheable-request/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  437. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  438. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  439. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  440. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  441. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  442. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  443. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  444. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  445. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +61 -19
  446. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +234 -381
  447. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +110 -32
  448. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +73 -13
  449. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  450. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +55 -26
  451. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +170 -41
  452. package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +7 -7
  453. package/node_modules/@types/cacheable-request/node_modules/undici-types/api.d.ts +24 -24
  454. package/node_modules/@types/cacheable-request/node_modules/undici-types/balanced-pool.d.ts +11 -11
  455. package/node_modules/@types/cacheable-request/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  456. package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +12 -13
  457. package/node_modules/@types/cacheable-request/node_modules/undici-types/cookies.d.ts +2 -0
  458. package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  459. package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +117 -92
  460. package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  461. package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +69 -47
  462. package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +17 -16
  463. package/node_modules/@types/cacheable-request/node_modules/undici-types/formdata.d.ts +7 -7
  464. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  465. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-origin.d.ts +5 -5
  466. package/node_modules/@types/cacheable-request/node_modules/undici-types/h2c-client.d.ts +75 -0
  467. package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +7 -7
  468. package/node_modules/@types/cacheable-request/node_modules/undici-types/header.d.ts +157 -1
  469. package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +51 -47
  470. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +25 -8
  471. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +33 -18
  472. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-call-history.d.ts +111 -0
  473. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-client.d.ts +4 -4
  474. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-errors.d.ts +3 -3
  475. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  476. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-pool.d.ts +4 -4
  477. package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
  478. package/node_modules/@types/cacheable-request/node_modules/undici-types/patch.d.ts +0 -4
  479. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool-stats.d.ts +8 -8
  480. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +12 -12
  481. package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +4 -4
  482. package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +18 -15
  483. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +1 -1
  484. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +10 -10
  485. package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +3 -3
  486. package/node_modules/@types/cacheable-request/node_modules/undici-types/utility.d.ts +7 -0
  487. package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +44 -6
  488. package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +35 -1
  489. package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
  490. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +15 -54
  491. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +90 -8
  492. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +3 -0
  493. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +3 -4
  494. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -2
  495. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +16 -16
  496. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -17
  497. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +43 -37
  498. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +1 -1
  499. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
  500. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +16 -16
  501. package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +60 -85
  502. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
  503. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +1 -2
  504. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +40 -35
  505. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +122 -29
  506. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +143 -287
  507. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  508. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +28 -3
  509. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +78 -8
  510. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
  511. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +7 -5
  512. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +39 -7
  513. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +102 -27
  514. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +17 -14
  515. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +8 -7
  516. package/node_modules/@types/keyv/node_modules/@types/node/package.json +18 -3
  517. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  518. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +10 -10
  519. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +43 -11
  520. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  521. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +3 -4
  522. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +0 -1
  523. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +19 -14
  524. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +14 -16
  525. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
  526. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +217 -14
  527. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +3 -3
  528. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +13 -18
  529. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
  530. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +107 -21
  531. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +1 -1
  532. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  533. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +36 -49
  534. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +6 -6
  535. package/node_modules/@types/keyv/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  536. package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  537. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  538. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  539. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  540. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  541. package/node_modules/@types/keyv/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  542. package/node_modules/@types/keyv/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  543. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  544. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +61 -19
  545. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +234 -381
  546. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +110 -32
  547. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +73 -13
  548. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  549. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +55 -26
  550. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +170 -41
  551. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +7 -7
  552. package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +24 -24
  553. package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +11 -11
  554. package/node_modules/@types/keyv/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  555. package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +12 -13
  556. package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +2 -0
  557. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  558. package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +117 -92
  559. package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  560. package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +69 -47
  561. package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +17 -16
  562. package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +7 -7
  563. package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  564. package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +5 -5
  565. package/node_modules/@types/keyv/node_modules/undici-types/h2c-client.d.ts +75 -0
  566. package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +7 -7
  567. package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +157 -1
  568. package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +51 -47
  569. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +25 -8
  570. package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +33 -18
  571. package/node_modules/@types/keyv/node_modules/undici-types/mock-call-history.d.ts +111 -0
  572. package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +4 -4
  573. package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +3 -3
  574. package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  575. package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +4 -4
  576. package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
  577. package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +0 -4
  578. package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +8 -8
  579. package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +12 -12
  580. package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +4 -4
  581. package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +18 -15
  582. package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +1 -1
  583. package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +10 -10
  584. package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +3 -3
  585. package/node_modules/@types/keyv/node_modules/undici-types/utility.d.ts +7 -0
  586. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +44 -6
  587. package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +35 -1
  588. package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
  589. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +15 -54
  590. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +90 -8
  591. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +3 -0
  592. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +3 -4
  593. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -2
  594. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +16 -16
  595. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -17
  596. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +43 -37
  597. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +1 -1
  598. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
  599. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +16 -16
  600. package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +60 -85
  601. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
  602. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +1 -2
  603. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +40 -35
  604. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +122 -29
  605. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +143 -287
  606. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  607. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +28 -3
  608. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +78 -8
  609. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
  610. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +7 -5
  611. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +39 -7
  612. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +102 -27
  613. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +17 -14
  614. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +8 -7
  615. package/node_modules/@types/responselike/node_modules/@types/node/package.json +18 -3
  616. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  617. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +10 -10
  618. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +43 -11
  619. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  620. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +3 -4
  621. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +0 -1
  622. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +19 -14
  623. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +14 -16
  624. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
  625. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +217 -14
  626. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +3 -3
  627. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +13 -18
  628. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
  629. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +107 -21
  630. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +1 -1
  631. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  632. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +36 -49
  633. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +6 -6
  634. package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +12 -0
  635. package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  636. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
  637. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  638. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  639. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  640. package/node_modules/@types/responselike/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  641. package/node_modules/@types/responselike/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  642. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  643. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +61 -19
  644. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +234 -381
  645. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +110 -32
  646. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +73 -13
  647. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  648. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +55 -26
  649. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +170 -41
  650. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +7 -7
  651. package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +24 -24
  652. package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +11 -11
  653. package/node_modules/@types/responselike/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  654. package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +12 -13
  655. package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +2 -0
  656. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  657. package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +117 -92
  658. package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  659. package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +69 -47
  660. package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +17 -16
  661. package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +7 -7
  662. package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  663. package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +5 -5
  664. package/node_modules/@types/responselike/node_modules/undici-types/h2c-client.d.ts +75 -0
  665. package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +7 -7
  666. package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +157 -1
  667. package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +51 -47
  668. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +25 -8
  669. package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +33 -18
  670. package/node_modules/@types/responselike/node_modules/undici-types/mock-call-history.d.ts +111 -0
  671. package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +4 -4
  672. package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +3 -3
  673. package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  674. package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +4 -4
  675. package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
  676. package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +0 -4
  677. package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +8 -8
  678. package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +12 -12
  679. package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +4 -4
  680. package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +18 -15
  681. package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +1 -1
  682. package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +10 -10
  683. package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +3 -3
  684. package/node_modules/@types/responselike/node_modules/undici-types/utility.d.ts +7 -0
  685. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +44 -6
  686. package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +35 -1
  687. package/node_modules/axios/CHANGELOG.md +51 -0
  688. package/node_modules/axios/README.md +24 -21
  689. package/node_modules/axios/dist/axios.js +36 -17
  690. package/node_modules/axios/dist/axios.js.map +1 -1
  691. package/node_modules/axios/dist/axios.min.js +2 -2
  692. package/node_modules/axios/dist/axios.min.js.map +1 -1
  693. package/node_modules/axios/dist/browser/axios.cjs +36 -14
  694. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  695. package/node_modules/axios/dist/esm/axios.js +36 -14
  696. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  697. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  698. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  699. package/node_modules/axios/dist/node/axios.cjs +37 -15
  700. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  701. package/node_modules/axios/index.d.cts +3 -3
  702. package/node_modules/axios/index.d.ts +5 -3
  703. package/node_modules/axios/lib/adapters/fetch.js +2 -2
  704. package/node_modules/axios/lib/core/Axios.js +1 -1
  705. package/node_modules/axios/lib/core/AxiosHeaders.js +15 -3
  706. package/node_modules/axios/lib/env/data.js +1 -1
  707. package/node_modules/axios/lib/helpers/formDataToStream.js +1 -1
  708. package/node_modules/axios/lib/helpers/toFormData.js +4 -0
  709. package/node_modules/axios/lib/utils.js +12 -6
  710. package/node_modules/axios/package.json +13 -4
  711. package/node_modules/brace-expansion/index.js +1 -1
  712. package/node_modules/brace-expansion/package.json +4 -1
  713. package/node_modules/end-of-stream/index.js +3 -1
  714. package/node_modules/end-of-stream/package.json +1 -1
  715. package/node_modules/form-data/README.md.bak +355 -0
  716. package/node_modules/form-data/Readme.md +34 -37
  717. package/node_modules/form-data/lib/browser.js +3 -1
  718. package/node_modules/form-data/lib/form_data.js +124 -129
  719. package/node_modules/form-data/lib/populate.js +5 -5
  720. package/node_modules/form-data/package.json +7 -15
  721. package/node_modules/http-cache-semantics/README.md +116 -51
  722. package/node_modules/http-cache-semantics/index.js +300 -46
  723. package/node_modules/http-cache-semantics/package.json +8 -4
  724. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +4 -4
  725. package/node_modules/parse5/dist/cjs/parser/index.d.ts +1 -1
  726. package/node_modules/parse5/dist/cjs/parser/index.js +13 -8
  727. package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +2 -2
  728. package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +11 -7
  729. package/node_modules/parse5/dist/cjs/serializer/index.js +3 -3
  730. package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +1 -1
  731. package/node_modules/parse5/dist/cjs/tokenizer/index.js +3 -3
  732. package/node_modules/parse5/dist/parser/formatting-element-list.js +4 -4
  733. package/node_modules/parse5/dist/parser/index.d.ts +1 -1
  734. package/node_modules/parse5/dist/parser/index.js +13 -8
  735. package/node_modules/parse5/dist/parser/open-element-stack.d.ts +2 -2
  736. package/node_modules/parse5/dist/parser/open-element-stack.js +11 -7
  737. package/node_modules/parse5/dist/serializer/index.js +1 -1
  738. package/node_modules/parse5/dist/tokenizer/index.d.ts +1 -1
  739. package/node_modules/parse5/dist/tokenizer/index.js +1 -1
  740. package/node_modules/parse5/node_modules/entities/LICENSE +11 -0
  741. package/node_modules/parse5/node_modules/entities/decode.d.ts +1 -0
  742. package/node_modules/parse5/node_modules/entities/decode.js +3 -0
  743. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
  744. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
  745. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  746. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
  747. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts +209 -0
  748. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
  749. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js +511 -0
  750. package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js.map +1 -0
  751. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
  752. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
  753. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js +73 -0
  754. package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js.map +1 -0
  755. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts +43 -0
  756. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
  757. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js +121 -0
  758. package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js.map +1 -0
  759. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
  760. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
  761. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js +10 -0
  762. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
  763. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
  764. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
  765. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +10 -0
  766. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  767. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +8 -0
  768. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
  769. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js +13 -0
  770. package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
  771. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts +96 -0
  772. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
  773. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js +131 -0
  774. package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js.map +1 -0
  775. package/node_modules/parse5/node_modules/entities/dist/commonjs/package.json +3 -0
  776. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
  777. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
  778. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
  779. package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
  780. package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts +209 -0
  781. package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
  782. package/node_modules/parse5/node_modules/entities/dist/esm/decode.js +497 -0
  783. package/node_modules/parse5/node_modules/entities/dist/esm/decode.js.map +1 -0
  784. package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts +22 -0
  785. package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
  786. package/node_modules/parse5/node_modules/entities/dist/esm/encode.js +69 -0
  787. package/node_modules/parse5/node_modules/entities/dist/esm/encode.js.map +1 -0
  788. package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts +43 -0
  789. package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
  790. package/node_modules/parse5/node_modules/entities/dist/esm/escape.js +117 -0
  791. package/node_modules/parse5/node_modules/entities/dist/esm/escape.js.map +1 -0
  792. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
  793. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
  794. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
  795. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
  796. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
  797. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
  798. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js +7 -0
  799. package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
  800. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts +8 -0
  801. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
  802. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js +10 -0
  803. package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
  804. package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts +96 -0
  805. package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts.map +1 -0
  806. package/node_modules/parse5/node_modules/entities/dist/esm/index.js +107 -0
  807. package/node_modules/parse5/node_modules/entities/dist/esm/index.js.map +1 -0
  808. package/node_modules/parse5/node_modules/entities/dist/esm/package.json +3 -0
  809. package/node_modules/parse5/node_modules/entities/escape.d.ts +1 -0
  810. package/node_modules/parse5/node_modules/entities/escape.js +3 -0
  811. package/node_modules/parse5/node_modules/entities/package.json +118 -0
  812. package/node_modules/parse5/node_modules/entities/readme.md +122 -0
  813. package/node_modules/parse5/node_modules/entities/src/decode-codepoint.ts +81 -0
  814. package/node_modules/parse5/node_modules/entities/src/decode.spec.ts +320 -0
  815. package/node_modules/parse5/node_modules/entities/src/decode.ts +620 -0
  816. package/node_modules/parse5/node_modules/entities/src/encode.spec.ts +78 -0
  817. package/node_modules/parse5/node_modules/entities/src/encode.ts +77 -0
  818. package/node_modules/parse5/node_modules/entities/src/escape.spec.ts +14 -0
  819. package/node_modules/parse5/node_modules/entities/src/escape.ts +148 -0
  820. package/node_modules/parse5/node_modules/entities/src/generated/.eslintrc.json +10 -0
  821. package/node_modules/parse5/node_modules/entities/src/generated/decode-data-html.ts +8 -0
  822. package/node_modules/parse5/node_modules/entities/src/generated/decode-data-xml.ts +8 -0
  823. package/node_modules/parse5/node_modules/entities/src/generated/encode-html.ts +17 -0
  824. package/node_modules/parse5/node_modules/entities/src/index.spec.ts +125 -0
  825. package/node_modules/parse5/node_modules/entities/src/index.ts +188 -0
  826. package/node_modules/parse5/package.json +3 -3
  827. package/node_modules/pump/index.js +1 -1
  828. package/node_modules/pump/package.json +1 -1
  829. package/node_modules/semver/bin/semver.js +2 -0
  830. package/node_modules/semver/classes/comparator.js +2 -0
  831. package/node_modules/semver/classes/index.js +2 -0
  832. package/node_modules/semver/classes/range.js +2 -0
  833. package/node_modules/semver/classes/semver.js +4 -3
  834. package/node_modules/semver/functions/clean.js +2 -0
  835. package/node_modules/semver/functions/cmp.js +2 -0
  836. package/node_modules/semver/functions/coerce.js +2 -0
  837. package/node_modules/semver/functions/compare-build.js +2 -0
  838. package/node_modules/semver/functions/compare-loose.js +2 -0
  839. package/node_modules/semver/functions/compare.js +2 -0
  840. package/node_modules/semver/functions/diff.js +2 -0
  841. package/node_modules/semver/functions/eq.js +2 -0
  842. package/node_modules/semver/functions/gt.js +2 -0
  843. package/node_modules/semver/functions/gte.js +2 -0
  844. package/node_modules/semver/functions/inc.js +2 -0
  845. package/node_modules/semver/functions/lt.js +2 -0
  846. package/node_modules/semver/functions/lte.js +2 -0
  847. package/node_modules/semver/functions/major.js +2 -0
  848. package/node_modules/semver/functions/minor.js +2 -0
  849. package/node_modules/semver/functions/neq.js +2 -0
  850. package/node_modules/semver/functions/parse.js +2 -0
  851. package/node_modules/semver/functions/patch.js +2 -0
  852. package/node_modules/semver/functions/prerelease.js +2 -0
  853. package/node_modules/semver/functions/rcompare.js +2 -0
  854. package/node_modules/semver/functions/rsort.js +2 -0
  855. package/node_modules/semver/functions/satisfies.js +2 -0
  856. package/node_modules/semver/functions/sort.js +2 -0
  857. package/node_modules/semver/functions/valid.js +2 -0
  858. package/node_modules/semver/index.js +2 -0
  859. package/node_modules/semver/internal/constants.js +2 -0
  860. package/node_modules/semver/internal/debug.js +2 -0
  861. package/node_modules/semver/internal/identifiers.js +2 -0
  862. package/node_modules/semver/internal/lrucache.js +2 -0
  863. package/node_modules/semver/internal/parse-options.js +2 -0
  864. package/node_modules/semver/internal/re.js +8 -4
  865. package/node_modules/semver/package.json +3 -3
  866. package/node_modules/semver/preload.js +2 -0
  867. package/node_modules/semver/ranges/gtr.js +2 -0
  868. package/node_modules/semver/ranges/intersects.js +2 -0
  869. package/node_modules/semver/ranges/ltr.js +2 -0
  870. package/node_modules/semver/ranges/max-satisfying.js +2 -0
  871. package/node_modules/semver/ranges/min-satisfying.js +2 -0
  872. package/node_modules/semver/ranges/min-version.js +2 -0
  873. package/node_modules/semver/ranges/outside.js +2 -0
  874. package/node_modules/semver/ranges/simplify.js +2 -0
  875. package/node_modules/semver/ranges/subset.js +2 -0
  876. package/node_modules/semver/ranges/to-comparators.js +2 -0
  877. package/node_modules/semver/ranges/valid.js +2 -0
  878. package/package.json +20 -20
  879. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/index.d.ts +0 -9
  880. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  881. package/node_modules/@slack/logger/node_modules/undici-types/file.d.ts +0 -39
  882. package/node_modules/@slack/logger/node_modules/undici-types/filereader.d.ts +0 -54
  883. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/index.d.ts +0 -9
  884. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  885. package/node_modules/@slack/web-api/node_modules/undici-types/file.d.ts +0 -39
  886. package/node_modules/@slack/web-api/node_modules/undici-types/filereader.d.ts +0 -54
  887. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +0 -9
  888. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  889. package/node_modules/@types/cacheable-request/node_modules/undici-types/file.d.ts +0 -39
  890. package/node_modules/@types/cacheable-request/node_modules/undici-types/filereader.d.ts +0 -54
  891. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +0 -9
  892. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  893. package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +0 -39
  894. package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +0 -54
  895. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  896. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +0 -9
  897. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  898. package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +0 -39
  899. package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +0 -54
  900. package/node_modules/regenerator-runtime/LICENSE +0 -21
  901. package/node_modules/regenerator-runtime/README.md +0 -31
  902. package/node_modules/regenerator-runtime/package.json +0 -19
  903. package/node_modules/regenerator-runtime/path.js +0 -11
  904. package/node_modules/regenerator-runtime/runtime.js +0 -761
@@ -1,5 +1,22 @@
1
1
  'use strict';
2
- // rfc7231 6.1
2
+
3
+ /**
4
+ * @typedef {Object} HttpRequest
5
+ * @property {Record<string, string>} headers - Request headers
6
+ * @property {string} [method] - HTTP method
7
+ * @property {string} [url] - Request URL
8
+ */
9
+
10
+ /**
11
+ * @typedef {Object} HttpResponse
12
+ * @property {Record<string, string>} headers - Response headers
13
+ * @property {number} [status] - HTTP status code
14
+ */
15
+
16
+ /**
17
+ * Set of default cacheable status codes per RFC 7231 section 6.1.
18
+ * @type {Set<number>}
19
+ */
3
20
  const statusCodeCacheableByDefault = new Set([
4
21
  200,
5
22
  203,
@@ -15,7 +32,11 @@ const statusCodeCacheableByDefault = new Set([
15
32
  501,
16
33
  ]);
17
34
 
18
- // This implementation does not understand partial responses (206)
35
+ /**
36
+ * Set of HTTP status codes that the cache implementation understands.
37
+ * Note: This implementation does not understand partial responses (206).
38
+ * @type {Set<number>}
39
+ */
19
40
  const understoodStatuses = new Set([
20
41
  200,
21
42
  203,
@@ -33,13 +54,21 @@ const understoodStatuses = new Set([
33
54
  501,
34
55
  ]);
35
56
 
57
+ /**
58
+ * Set of HTTP error status codes.
59
+ * @type {Set<number>}
60
+ */
36
61
  const errorStatusCodes = new Set([
37
62
  500,
38
63
  502,
39
- 503,
64
+ 503,
40
65
  504,
41
66
  ]);
42
67
 
68
+ /**
69
+ * Object representing hop-by-hop headers that should be removed.
70
+ * @type {Record<string, boolean>}
71
+ */
43
72
  const hopByHopHeaders = {
44
73
  date: true, // included, because we add Age update Date
45
74
  connection: true,
@@ -52,6 +81,10 @@ const hopByHopHeaders = {
52
81
  upgrade: true,
53
82
  };
54
83
 
84
+ /**
85
+ * Headers that are excluded from revalidation update.
86
+ * @type {Record<string, boolean>}
87
+ */
55
88
  const excludedFromRevalidationUpdate = {
56
89
  // Since the old body is reused, it doesn't make sense to change properties of the body
57
90
  'content-length': true,
@@ -60,21 +93,37 @@ const excludedFromRevalidationUpdate = {
60
93
  'content-range': true,
61
94
  };
62
95
 
96
+ /**
97
+ * Converts a string to a number or returns zero if the conversion fails.
98
+ * @param {string} s - The string to convert.
99
+ * @returns {number} The parsed number or 0.
100
+ */
63
101
  function toNumberOrZero(s) {
64
102
  const n = parseInt(s, 10);
65
103
  return isFinite(n) ? n : 0;
66
104
  }
67
105
 
68
- // RFC 5861
106
+ /**
107
+ * Determines if the given response is an error response.
108
+ * Implements RFC 5861 behavior.
109
+ * @param {HttpResponse|undefined} response - The HTTP response object.
110
+ * @returns {boolean} true if the response is an error or undefined, false otherwise.
111
+ */
69
112
  function isErrorResponse(response) {
70
113
  // consider undefined response as faulty
71
- if(!response) {
72
- return true
114
+ if (!response) {
115
+ return true;
73
116
  }
74
117
  return errorStatusCodes.has(response.status);
75
118
  }
76
119
 
120
+ /**
121
+ * Parses a Cache-Control header string into an object.
122
+ * @param {string} [header] - The Cache-Control header value.
123
+ * @returns {Record<string, string|boolean>} An object representing Cache-Control directives.
124
+ */
77
125
  function parseCacheControl(header) {
126
+ /** @type {Record<string, string|boolean>} */
78
127
  const cc = {};
79
128
  if (!header) return cc;
80
129
 
@@ -89,6 +138,11 @@ function parseCacheControl(header) {
89
138
  return cc;
90
139
  }
91
140
 
141
+ /**
142
+ * Formats a Cache-Control directives object into a header string.
143
+ * @param {Record<string, string|boolean>} cc - The Cache-Control directives.
144
+ * @returns {string|undefined} A formatted Cache-Control header string or undefined if empty.
145
+ */
92
146
  function formatCacheControl(cc) {
93
147
  let parts = [];
94
148
  for (const k in cc) {
@@ -102,6 +156,17 @@ function formatCacheControl(cc) {
102
156
  }
103
157
 
104
158
  module.exports = class CachePolicy {
159
+ /**
160
+ * Creates a new CachePolicy instance.
161
+ * @param {HttpRequest} req - Incoming client request.
162
+ * @param {HttpResponse} res - Received server response.
163
+ * @param {Object} [options={}] - Configuration options.
164
+ * @param {boolean} [options.shared=true] - Is the cache shared (a public proxy)? `false` for personal browser caches.
165
+ * @param {number} [options.cacheHeuristic=0.1] - Fallback heuristic (age fraction) for cache duration.
166
+ * @param {number} [options.immutableMinTimeToLive=86400000] - Minimum TTL for immutable responses in milliseconds.
167
+ * @param {boolean} [options.ignoreCargoCult=false] - Detect nonsense cache headers, and override them.
168
+ * @param {any} [options._fromObject] - Internal parameter for deserialization. Do not use.
169
+ */
105
170
  constructor(
106
171
  req,
107
172
  res,
@@ -123,29 +188,44 @@ module.exports = class CachePolicy {
123
188
  }
124
189
  this._assertRequestHasHeaders(req);
125
190
 
191
+ /** @type {number} Timestamp when the response was received */
126
192
  this._responseTime = this.now();
193
+ /** @type {boolean} Indicates if the cache is shared */
127
194
  this._isShared = shared !== false;
195
+ /** @type {boolean} Indicates if legacy cargo cult directives should be ignored */
196
+ this._ignoreCargoCult = !!ignoreCargoCult;
197
+ /** @type {number} Heuristic cache fraction */
128
198
  this._cacheHeuristic =
129
199
  undefined !== cacheHeuristic ? cacheHeuristic : 0.1; // 10% matches IE
200
+ /** @type {number} Minimum TTL for immutable responses in ms */
130
201
  this._immutableMinTtl =
131
202
  undefined !== immutableMinTimeToLive
132
203
  ? immutableMinTimeToLive
133
204
  : 24 * 3600 * 1000;
134
205
 
206
+ /** @type {number} HTTP status code */
135
207
  this._status = 'status' in res ? res.status : 200;
208
+ /** @type {Record<string, string>} Response headers */
136
209
  this._resHeaders = res.headers;
210
+ /** @type {Record<string, string|boolean>} Parsed Cache-Control directives from response */
137
211
  this._rescc = parseCacheControl(res.headers['cache-control']);
212
+ /** @type {string} HTTP method (e.g., GET, POST) */
138
213
  this._method = 'method' in req ? req.method : 'GET';
214
+ /** @type {string} Request URL */
139
215
  this._url = req.url;
216
+ /** @type {string} Host header from the request */
140
217
  this._host = req.headers.host;
218
+ /** @type {boolean} Whether the request does not include an Authorization header */
141
219
  this._noAuthorization = !req.headers.authorization;
220
+ /** @type {Record<string, string>|null} Request headers used for Vary matching */
142
221
  this._reqHeaders = res.headers.vary ? req.headers : null; // Don't keep all request headers if they won't be used
222
+ /** @type {Record<string, string|boolean>} Parsed Cache-Control directives from request */
143
223
  this._reqcc = parseCacheControl(req.headers['cache-control']);
144
224
 
145
225
  // Assume that if someone uses legacy, non-standard uncecessary options they don't understand caching,
146
226
  // so there's no point stricly adhering to the blindly copy&pasted directives.
147
227
  if (
148
- ignoreCargoCult &&
228
+ this._ignoreCargoCult &&
149
229
  'pre-check' in this._rescc &&
150
230
  'post-check' in this._rescc
151
231
  ) {
@@ -171,10 +251,18 @@ module.exports = class CachePolicy {
171
251
  }
172
252
  }
173
253
 
254
+ /**
255
+ * You can monkey-patch it for testing.
256
+ * @returns {number} Current time in milliseconds.
257
+ */
174
258
  now() {
175
259
  return Date.now();
176
260
  }
177
261
 
262
+ /**
263
+ * Determines if the response is storable in a cache.
264
+ * @returns {boolean} `false` if can never be cached.
265
+ */
178
266
  storable() {
179
267
  // The "no-store" request directive indicates that a cache MUST NOT store any part of either this request or any response to it.
180
268
  return !!(
@@ -208,62 +296,160 @@ module.exports = class CachePolicy {
208
296
  );
209
297
  }
210
298
 
299
+ /**
300
+ * @returns {boolean} true if expiration is explicitly defined.
301
+ */
211
302
  _hasExplicitExpiration() {
212
303
  // 4.2.1 Calculating Freshness Lifetime
213
- return (
304
+ return !!(
214
305
  (this._isShared && this._rescc['s-maxage']) ||
215
306
  this._rescc['max-age'] ||
216
307
  this._resHeaders.expires
217
308
  );
218
309
  }
219
310
 
311
+ /**
312
+ * @param {HttpRequest} req - a request
313
+ * @throws {Error} if the headers are missing.
314
+ */
220
315
  _assertRequestHasHeaders(req) {
221
316
  if (!req || !req.headers) {
222
317
  throw Error('Request headers missing');
223
318
  }
224
319
  }
225
320
 
321
+ /**
322
+ * Checks if the request matches the cache and can be satisfied from the cache immediately,
323
+ * without having to make a request to the server.
324
+ *
325
+ * This doesn't support `stale-while-revalidate`. See `evaluateRequest()` for a more complete solution.
326
+ *
327
+ * @param {HttpRequest} req - The new incoming HTTP request.
328
+ * @returns {boolean} `true`` if the cached response used to construct this cache policy satisfies the request without revalidation.
329
+ */
226
330
  satisfiesWithoutRevalidation(req) {
331
+ const result = this.evaluateRequest(req);
332
+ return !result.revalidation;
333
+ }
334
+
335
+ /**
336
+ * @param {{headers: Record<string, string>, synchronous: boolean}|undefined} revalidation - Revalidation information, if any.
337
+ * @returns {{response: {headers: Record<string, string>}, revalidation: {headers: Record<string, string>, synchronous: boolean}|undefined}} An object with a cached response headers and revalidation info.
338
+ */
339
+ _evaluateRequestHitResult(revalidation) {
340
+ return {
341
+ response: {
342
+ headers: this.responseHeaders(),
343
+ },
344
+ revalidation,
345
+ };
346
+ }
347
+
348
+ /**
349
+ * @param {HttpRequest} request - new incoming
350
+ * @param {boolean} synchronous - whether revalidation must be synchronous (not s-w-r).
351
+ * @returns {{headers: Record<string, string>, synchronous: boolean}} An object with revalidation headers and a synchronous flag.
352
+ */
353
+ _evaluateRequestRevalidation(request, synchronous) {
354
+ return {
355
+ synchronous,
356
+ headers: this.revalidationHeaders(request),
357
+ };
358
+ }
359
+
360
+ /**
361
+ * @param {HttpRequest} request - new incoming
362
+ * @returns {{response: undefined, revalidation: {headers: Record<string, string>, synchronous: boolean}}} An object indicating no cached response and revalidation details.
363
+ */
364
+ _evaluateRequestMissResult(request) {
365
+ return {
366
+ response: undefined,
367
+ revalidation: this._evaluateRequestRevalidation(request, true),
368
+ };
369
+ }
370
+
371
+ /**
372
+ * Checks if the given request matches this cache entry, and how the cache can be used to satisfy it. Returns an object with:
373
+ *
374
+ * ```
375
+ * {
376
+ * // If defined, you must send a request to the server.
377
+ * revalidation: {
378
+ * headers: {}, // HTTP headers to use when sending the revalidation response
379
+ * // If true, you MUST wait for a response from the server before using the cache
380
+ * // If false, this is stale-while-revalidate. The cache is stale, but you can use it while you update it asynchronously.
381
+ * synchronous: bool,
382
+ * },
383
+ * // If defined, you can use this cached response.
384
+ * response: {
385
+ * headers: {}, // Updated cached HTTP headers you must use when responding to the client
386
+ * },
387
+ * }
388
+ * ```
389
+ * @param {HttpRequest} req - new incoming HTTP request
390
+ * @returns {{response: {headers: Record<string, string>}|undefined, revalidation: {headers: Record<string, string>, synchronous: boolean}|undefined}} An object containing keys:
391
+ * - revalidation: { headers: Record<string, string>, synchronous: boolean } Set if you should send this to the origin server
392
+ * - response: { headers: Record<string, string> } Set if you can respond to the client with these cached headers
393
+ */
394
+ evaluateRequest(req) {
227
395
  this._assertRequestHasHeaders(req);
228
396
 
397
+ // In all circumstances, a cache MUST NOT ignore the must-revalidate directive
398
+ if (this._rescc['must-revalidate']) {
399
+ return this._evaluateRequestMissResult(req);
400
+ }
401
+
402
+ if (!this._requestMatches(req, false)) {
403
+ return this._evaluateRequestMissResult(req);
404
+ }
405
+
229
406
  // When presented with a request, a cache MUST NOT reuse a stored response, unless:
230
407
  // the presented request does not contain the no-cache pragma (Section 5.4), nor the no-cache cache directive,
231
408
  // unless the stored response is successfully validated (Section 4.3), and
232
409
  const requestCC = parseCacheControl(req.headers['cache-control']);
410
+
233
411
  if (requestCC['no-cache'] || /no-cache/.test(req.headers.pragma)) {
234
- return false;
412
+ return this._evaluateRequestMissResult(req);
235
413
  }
236
414
 
237
- if (requestCC['max-age'] && this.age() > requestCC['max-age']) {
238
- return false;
415
+ if (requestCC['max-age'] && this.age() > toNumberOrZero(requestCC['max-age'])) {
416
+ return this._evaluateRequestMissResult(req);
239
417
  }
240
418
 
241
- if (
242
- requestCC['min-fresh'] &&
243
- this.timeToLive() < 1000 * requestCC['min-fresh']
244
- ) {
245
- return false;
419
+ if (requestCC['min-fresh'] && this.maxAge() - this.age() < toNumberOrZero(requestCC['min-fresh'])) {
420
+ return this._evaluateRequestMissResult(req);
246
421
  }
247
422
 
248
423
  // the stored response is either:
249
424
  // fresh, or allowed to be served stale
250
425
  if (this.stale()) {
251
- const allowsStale =
252
- requestCC['max-stale'] &&
253
- !this._rescc['must-revalidate'] &&
254
- (true === requestCC['max-stale'] ||
255
- requestCC['max-stale'] > this.age() - this.maxAge());
256
- if (!allowsStale) {
257
- return false;
426
+ // If a value is present, then the client is willing to accept a response that has
427
+ // exceeded its freshness lifetime by no more than the specified number of seconds
428
+ const allowsStaleWithoutRevalidation = 'max-stale' in requestCC &&
429
+ (true === requestCC['max-stale'] || requestCC['max-stale'] > this.age() - this.maxAge());
430
+
431
+ if (allowsStaleWithoutRevalidation) {
432
+ return this._evaluateRequestHitResult(undefined);
433
+ }
434
+
435
+ if (this.useStaleWhileRevalidate()) {
436
+ return this._evaluateRequestHitResult(this._evaluateRequestRevalidation(req, false));
258
437
  }
438
+
439
+ return this._evaluateRequestMissResult(req);
259
440
  }
260
441
 
261
- return this._requestMatches(req, false);
442
+ return this._evaluateRequestHitResult(undefined);
262
443
  }
263
444
 
445
+ /**
446
+ * @param {HttpRequest} req - check if this is for the same cache entry
447
+ * @param {boolean} allowHeadMethod - allow a HEAD method to match.
448
+ * @returns {boolean} `true` if the request matches.
449
+ */
264
450
  _requestMatches(req, allowHeadMethod) {
265
451
  // The presented effective request URI and that of the stored response match, and
266
- return (
452
+ return !!(
267
453
  (!this._url || this._url === req.url) &&
268
454
  this._host === req.headers.host &&
269
455
  // the request method associated with the stored response allows it to be used for the presented request, and
@@ -275,15 +461,24 @@ module.exports = class CachePolicy {
275
461
  );
276
462
  }
277
463
 
464
+ /**
465
+ * Determines whether storing authenticated responses is allowed.
466
+ * @returns {boolean} `true` if allowed.
467
+ */
278
468
  _allowsStoringAuthenticated() {
279
- // following Cache-Control response directives (Section 5.2.2) have such an effect: must-revalidate, public, and s-maxage.
280
- return (
469
+ // following Cache-Control response directives (Section 5.2.2) have such an effect: must-revalidate, public, and s-maxage.
470
+ return !!(
281
471
  this._rescc['must-revalidate'] ||
282
472
  this._rescc.public ||
283
473
  this._rescc['s-maxage']
284
474
  );
285
475
  }
286
476
 
477
+ /**
478
+ * Checks whether the Vary header in the response matches the new request.
479
+ * @param {HttpRequest} req - incoming HTTP request
480
+ * @returns {boolean} `true` if the vary headers match.
481
+ */
287
482
  _varyMatches(req) {
288
483
  if (!this._resHeaders.vary) {
289
484
  return true;
@@ -304,7 +499,13 @@ module.exports = class CachePolicy {
304
499
  return true;
305
500
  }
306
501
 
502
+ /**
503
+ * Creates a copy of the given headers without any hop-by-hop headers.
504
+ * @param {Record<string, string>} inHeaders - old headers from the cached response
505
+ * @returns {Record<string, string>} A new headers object without hop-by-hop headers.
506
+ */
307
507
  _copyWithoutHopByHopHeaders(inHeaders) {
508
+ /** @type {Record<string, string>} */
308
509
  const headers = {};
309
510
  for (const name in inHeaders) {
310
511
  if (hopByHopHeaders[name]) continue;
@@ -330,6 +531,11 @@ module.exports = class CachePolicy {
330
531
  return headers;
331
532
  }
332
533
 
534
+ /**
535
+ * Returns the response headers adjusted for serving the cached response.
536
+ * Removes hop-by-hop headers and updates the Age and Date headers.
537
+ * @returns {Record<string, string>} The adjusted response headers.
538
+ */
333
539
  responseHeaders() {
334
540
  const headers = this._copyWithoutHopByHopHeaders(this._resHeaders);
335
541
  const age = this.age();
@@ -351,8 +557,8 @@ module.exports = class CachePolicy {
351
557
  }
352
558
 
353
559
  /**
354
- * Value of the Date response header or current time if Date was invalid
355
- * @return timestamp
560
+ * Returns the Date header value from the response or the current time if invalid.
561
+ * @returns {number} Timestamp (in milliseconds) representing the Date header or response time.
356
562
  */
357
563
  date() {
358
564
  const serverDate = Date.parse(this._resHeaders.date);
@@ -365,8 +571,7 @@ module.exports = class CachePolicy {
365
571
  /**
366
572
  * Value of the Age header, in seconds, updated for the current time.
367
573
  * May be fractional.
368
- *
369
- * @return Number
574
+ * @returns {number} The age in seconds.
370
575
  */
371
576
  age() {
372
577
  let age = this._ageValue();
@@ -375,16 +580,21 @@ module.exports = class CachePolicy {
375
580
  return age + residentTime;
376
581
  }
377
582
 
583
+ /**
584
+ * @returns {number} The Age header value as a number.
585
+ */
378
586
  _ageValue() {
379
587
  return toNumberOrZero(this._resHeaders.age);
380
588
  }
381
589
 
382
590
  /**
383
- * Value of applicable max-age (or heuristic equivalent) in seconds. This counts since response's `Date`.
591
+ * Possibly outdated value of applicable max-age (or heuristic equivalent) in seconds.
592
+ * This counts since response's `Date`.
384
593
  *
385
594
  * For an up-to-date value, see `timeToLive()`.
386
595
  *
387
- * @return Number
596
+ * Returns the maximum age (freshness lifetime) of the response in seconds.
597
+ * @returns {number} The max-age value in seconds.
388
598
  */
389
599
  maxAge() {
390
600
  if (!this.storable() || this._rescc['no-cache']) {
@@ -446,29 +656,57 @@ module.exports = class CachePolicy {
446
656
  return defaultMinTtl;
447
657
  }
448
658
 
659
+ /**
660
+ * Remaining time this cache entry may be useful for, in *milliseconds*.
661
+ * You can use this as an expiration time for your cache storage.
662
+ *
663
+ * Prefer this method over `maxAge()`, because it includes other factors like `age` and `stale-while-revalidate`.
664
+ * @returns {number} Time-to-live in milliseconds.
665
+ */
449
666
  timeToLive() {
450
667
  const age = this.maxAge() - this.age();
451
668
  const staleIfErrorAge = age + toNumberOrZero(this._rescc['stale-if-error']);
452
669
  const staleWhileRevalidateAge = age + toNumberOrZero(this._rescc['stale-while-revalidate']);
453
- return Math.max(0, age, staleIfErrorAge, staleWhileRevalidateAge) * 1000;
670
+ return Math.round(Math.max(0, age, staleIfErrorAge, staleWhileRevalidateAge) * 1000);
454
671
  }
455
672
 
673
+ /**
674
+ * If true, this cache entry is past its expiration date.
675
+ * Note that stale cache may be useful sometimes, see `evaluateRequest()`.
676
+ * @returns {boolean} `false` doesn't mean it's fresh nor usable
677
+ */
456
678
  stale() {
457
679
  return this.maxAge() <= this.age();
458
680
  }
459
681
 
682
+ /**
683
+ * @returns {boolean} `true` if `stale-if-error` condition allows use of a stale response.
684
+ */
460
685
  _useStaleIfError() {
461
686
  return this.maxAge() + toNumberOrZero(this._rescc['stale-if-error']) > this.age();
462
687
  }
463
688
 
689
+ /** See `evaluateRequest()` for a more complete solution
690
+ * @returns {boolean} `true` if `stale-while-revalidate` is currently allowed.
691
+ */
464
692
  useStaleWhileRevalidate() {
465
- return this.maxAge() + toNumberOrZero(this._rescc['stale-while-revalidate']) > this.age();
693
+ const swr = toNumberOrZero(this._rescc['stale-while-revalidate']);
694
+ return swr > 0 && this.maxAge() + swr > this.age();
466
695
  }
467
696
 
697
+ /**
698
+ * Creates a `CachePolicy` instance from a serialized object.
699
+ * @param {Object} obj - The serialized object.
700
+ * @returns {CachePolicy} A new CachePolicy instance.
701
+ */
468
702
  static fromObject(obj) {
469
703
  return new this(undefined, undefined, { _fromObject: obj });
470
704
  }
471
705
 
706
+ /**
707
+ * @param {any} obj - The serialized object.
708
+ * @throws {Error} If already initialized or if the object is invalid.
709
+ */
472
710
  _fromObject(obj) {
473
711
  if (this._responseTime) throw Error('Reinitialized');
474
712
  if (!obj || obj.v !== 1) throw Error('Invalid serialization');
@@ -478,6 +716,7 @@ module.exports = class CachePolicy {
478
716
  this._cacheHeuristic = obj.ch;
479
717
  this._immutableMinTtl =
480
718
  obj.imm !== undefined ? obj.imm : 24 * 3600 * 1000;
719
+ this._ignoreCargoCult = !!obj.icc;
481
720
  this._status = obj.st;
482
721
  this._resHeaders = obj.resh;
483
722
  this._rescc = obj.rescc;
@@ -489,6 +728,10 @@ module.exports = class CachePolicy {
489
728
  this._reqcc = obj.reqcc;
490
729
  }
491
730
 
731
+ /**
732
+ * Serializes the `CachePolicy` instance into a JSON-serializable object.
733
+ * @returns {Object} The serialized object.
734
+ */
492
735
  toObject() {
493
736
  return {
494
737
  v: 1,
@@ -496,6 +739,7 @@ module.exports = class CachePolicy {
496
739
  sh: this._isShared,
497
740
  ch: this._cacheHeuristic,
498
741
  imm: this._immutableMinTtl,
742
+ icc: this._ignoreCargoCult,
499
743
  st: this._status,
500
744
  resh: this._resHeaders,
501
745
  rescc: this._rescc,
@@ -514,6 +758,8 @@ module.exports = class CachePolicy {
514
758
  *
515
759
  * Hop by hop headers are always stripped.
516
760
  * Revalidation headers may be added or removed, depending on request.
761
+ * @param {HttpRequest} incomingReq - The incoming HTTP request.
762
+ * @returns {Record<string, string>} The headers for the revalidation request.
517
763
  */
518
764
  revalidationHeaders(incomingReq) {
519
765
  this._assertRequestHasHeaders(incomingReq);
@@ -578,17 +824,22 @@ module.exports = class CachePolicy {
578
824
  * Returns {policy, modified} where modified is a boolean indicating
579
825
  * whether the response body has been modified, and old cached body can't be used.
580
826
  *
581
- * @return {Object} {policy: CachePolicy, modified: Boolean}
827
+ * @param {HttpRequest} request - The latest HTTP request asking for the cached entry.
828
+ * @param {HttpResponse} response - The latest revalidation HTTP response from the origin server.
829
+ * @returns {{policy: CachePolicy, modified: boolean, matches: boolean}} The updated policy and modification status.
830
+ * @throws {Error} If the response headers are missing.
582
831
  */
583
832
  revalidatedPolicy(request, response) {
584
833
  this._assertRequestHasHeaders(request);
585
- if(this._useStaleIfError() && isErrorResponse(response)) { // I consider the revalidation request unsuccessful
834
+
835
+ if (this._useStaleIfError() && isErrorResponse(response)) {
586
836
  return {
587
- modified: false,
588
- matches: false,
589
- policy: this,
837
+ policy: this,
838
+ modified: false,
839
+ matches: true,
590
840
  };
591
841
  }
842
+
592
843
  if (!response || !response.headers) {
593
844
  throw Error('Response headers missing');
594
845
  }
@@ -635,9 +886,16 @@ module.exports = class CachePolicy {
635
886
  }
636
887
  }
637
888
 
889
+ const optionsCopy = {
890
+ shared: this._isShared,
891
+ cacheHeuristic: this._cacheHeuristic,
892
+ immutableMinTimeToLive: this._immutableMinTtl,
893
+ ignoreCargoCult: this._ignoreCargoCult,
894
+ };
895
+
638
896
  if (!matches) {
639
897
  return {
640
- policy: new this.constructor(request, response),
898
+ policy: new this.constructor(request, response, optionsCopy),
641
899
  // Client receiving 304 without body, even if it's invalid/mismatched has no option
642
900
  // but to reuse a cached body. We don't have a good way to tell clients to do
643
901
  // error recovery in such case.
@@ -662,11 +920,7 @@ module.exports = class CachePolicy {
662
920
  headers,
663
921
  });
664
922
  return {
665
- policy: new this.constructor(request, newResponse, {
666
- shared: this._isShared,
667
- cacheHeuristic: this._cacheHeuristic,
668
- immutableMinTimeToLive: this._immutableMinTtl,
669
- }),
923
+ policy: new this.constructor(request, newResponse, optionsCopy),
670
924
  modified: false,
671
925
  matches: true,
672
926
  };
@@ -1,18 +1,22 @@
1
1
  {
2
2
  "name": "http-cache-semantics",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "description": "Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies",
5
- "repository": "https://github.com/kornelski/http-cache-semantics.git",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/kornelski/http-cache-semantics.git"
8
+ },
6
9
  "main": "index.js",
10
+ "types": "index.js",
7
11
  "scripts": {
8
12
  "test": "mocha"
9
13
  },
10
14
  "files": [
11
15
  "index.js"
12
16
  ],
13
- "author": "Kornel Lesiński <kornel@geekhood.net> (https://kornel.ski/)",
17
+ "author": "Kornel Lesiński <npms2@geekhood.net> (https://kornel.ski/)",
14
18
  "license": "BSD-2-Clause",
15
19
  "devDependencies": {
16
- "mocha": "^10.0"
20
+ "mocha": "^11.0"
17
21
  }
18
22
  }
@@ -84,7 +84,7 @@ class FormattingElementList {
84
84
  }
85
85
  removeEntry(entry) {
86
86
  const entryIndex = this.entries.indexOf(entry);
87
- if (entryIndex >= 0) {
87
+ if (entryIndex !== -1) {
88
88
  this.entries.splice(entryIndex, 1);
89
89
  }
90
90
  }
@@ -95,11 +95,11 @@ class FormattingElementList {
95
95
  */
96
96
  clearToLastMarker() {
97
97
  const markerIdx = this.entries.indexOf(MARKER);
98
- if (markerIdx >= 0) {
99
- this.entries.splice(0, markerIdx + 1);
98
+ if (markerIdx === -1) {
99
+ this.entries.length = 0;
100
100
  }
101
101
  else {
102
- this.entries.length = 0;
102
+ this.entries.splice(0, markerIdx + 1);
103
103
  }
104
104
  }
105
105
  //Search