cloudstructs 0.9.42 → 0.9.43

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 (349) hide show
  1. package/.jsii +5 -5
  2. package/API.md +209 -13
  3. package/assets/slack-textract/detect.lambda/index.js +276 -88
  4. package/lib/codecommit-mirror/index.js +2 -2
  5. package/lib/dmarc/index.js +1 -1
  6. package/lib/ecs-service-roller/index.js +2 -2
  7. package/lib/email-receiver/receiver.js +1 -1
  8. package/lib/mjml-template/index.js +1 -1
  9. package/lib/saml-identity-provider/index.js +2 -2
  10. package/lib/slack-app/manifest.js +1 -1
  11. package/lib/slack-app/slack-app.js +2 -2
  12. package/lib/slack-events/index.js +1 -1
  13. package/lib/slack-textract/index.js +1 -1
  14. package/lib/ssl-server-test/index.js +1 -1
  15. package/lib/state-machine-cr-provider/index.js +1 -1
  16. package/lib/static-website/index.js +1 -1
  17. package/lib/toolkit-cleaner/index.js +1 -1
  18. package/lib/url-shortener/index.js +1 -1
  19. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  20. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +36 -1
  21. package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  22. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +8 -4
  23. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +50 -33
  24. package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +3 -2
  25. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +198 -164
  26. package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +9 -8
  27. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +39 -21
  28. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +89 -76
  29. package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  30. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +52 -22
  31. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +29 -22
  32. package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +82 -50
  33. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +7 -6
  34. package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +3 -2
  35. package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
  36. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +13 -5
  37. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +221 -7
  38. package/node_modules/@slack/logger/node_modules/@types/node/stream/consumers.d.ts +2 -2
  39. package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +2 -2
  40. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +88 -64
  41. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  42. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  43. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +34 -10
  44. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +11 -2
  45. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +20 -3
  46. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +24 -3
  47. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +40 -3
  48. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +25 -24
  49. package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +1 -0
  50. package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  51. package/node_modules/@slack/logger/node_modules/undici-types/errors.d.ts +5 -15
  52. package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +5 -0
  53. package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
  54. package/node_modules/@slack/logger/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  55. package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +82 -21
  56. package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts +21 -0
  57. package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts.map +1 -0
  58. package/node_modules/@slack/types/dist/events/entity-details-requested.js +3 -0
  59. package/node_modules/@slack/types/dist/events/entity-details-requested.js.map +1 -0
  60. package/node_modules/@slack/types/dist/events/index.d.ts +2 -1
  61. package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
  62. package/node_modules/@slack/types/dist/events/index.js.map +1 -1
  63. package/node_modules/@slack/types/dist/message-metadata.d.ts +246 -1
  64. package/node_modules/@slack/types/dist/message-metadata.d.ts.map +1 -1
  65. package/node_modules/@slack/types/dist/message-metadata.js +21 -0
  66. package/node_modules/@slack/types/dist/message-metadata.js.map +1 -1
  67. package/node_modules/@slack/types/package.json +1 -1
  68. package/node_modules/@slack/web-api/dist/methods.d.ts +9 -2
  69. package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
  70. package/node_modules/@slack/web-api/dist/methods.js +7 -0
  71. package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
  72. package/node_modules/@slack/web-api/dist/types/request/chat.d.ts +37 -9
  73. package/node_modules/@slack/web-api/dist/types/request/chat.d.ts.map +1 -1
  74. package/node_modules/@slack/web-api/dist/types/request/entity.d.ts +46 -0
  75. package/node_modules/@slack/web-api/dist/types/request/entity.d.ts.map +1 -0
  76. package/node_modules/@slack/web-api/dist/types/request/entity.js +3 -0
  77. package/node_modules/@slack/web-api/dist/types/request/entity.js.map +1 -0
  78. package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -0
  79. package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
  80. package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts +1 -1
  81. package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts.map +1 -1
  82. package/node_modules/@slack/web-api/dist/types/request/search.d.ts +10 -1
  83. package/node_modules/@slack/web-api/dist/types/request/search.d.ts.map +1 -1
  84. package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts +9 -0
  85. package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts.map +1 -0
  86. package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js +11 -0
  87. package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js.map +1 -0
  88. package/node_modules/@slack/web-api/dist/types/response/index.d.ts +1 -0
  89. package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
  90. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  91. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +36 -1
  92. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  93. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +8 -4
  94. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +50 -33
  95. package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +3 -2
  96. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +198 -164
  97. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +9 -8
  98. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +39 -21
  99. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +89 -76
  100. package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  101. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +52 -22
  102. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +29 -22
  103. package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +82 -50
  104. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +7 -6
  105. package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +3 -2
  106. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
  107. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +13 -5
  108. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +221 -7
  109. package/node_modules/@slack/web-api/node_modules/@types/node/stream/consumers.d.ts +2 -2
  110. package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +2 -2
  111. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +88 -64
  112. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  113. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  114. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +34 -10
  115. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +11 -2
  116. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +20 -3
  117. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +24 -3
  118. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +40 -3
  119. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +25 -24
  120. package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +1 -0
  121. package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  122. package/node_modules/@slack/web-api/node_modules/undici-types/errors.d.ts +5 -15
  123. package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +5 -0
  124. package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
  125. package/node_modules/@slack/web-api/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  126. package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +82 -21
  127. package/node_modules/@slack/web-api/package.json +2 -2
  128. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  129. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +36 -1
  130. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  131. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +8 -4
  132. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +50 -33
  133. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +3 -2
  134. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +198 -164
  135. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +9 -8
  136. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +39 -21
  137. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +89 -76
  138. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  139. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +52 -22
  140. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +29 -22
  141. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +82 -50
  142. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +7 -6
  143. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -2
  144. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
  145. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +13 -5
  146. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +221 -7
  147. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +2 -2
  148. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +2 -2
  149. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +88 -64
  150. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  151. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  152. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +34 -10
  153. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +11 -2
  154. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +20 -3
  155. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +24 -3
  156. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +40 -3
  157. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +25 -24
  158. package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +1 -0
  159. package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  160. package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +5 -15
  161. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +5 -0
  162. package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
  163. package/node_modules/@types/cacheable-request/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  164. package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +82 -21
  165. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  166. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +36 -1
  167. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  168. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +8 -4
  169. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +50 -33
  170. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +3 -2
  171. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +198 -164
  172. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +9 -8
  173. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +39 -21
  174. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +89 -76
  175. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  176. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +52 -22
  177. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +29 -22
  178. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +82 -50
  179. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +7 -6
  180. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -2
  181. package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
  182. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +13 -5
  183. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +221 -7
  184. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +2 -2
  185. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +2 -2
  186. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +88 -64
  187. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  188. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  189. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +34 -10
  190. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +11 -2
  191. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +20 -3
  192. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +24 -3
  193. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +40 -3
  194. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +25 -24
  195. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +1 -0
  196. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  197. package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +5 -15
  198. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +5 -0
  199. package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
  200. package/node_modules/@types/keyv/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  201. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +82 -21
  202. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  203. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +36 -1
  204. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  205. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +8 -4
  206. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +50 -33
  207. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +3 -2
  208. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +198 -164
  209. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +9 -8
  210. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +39 -21
  211. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +89 -76
  212. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  213. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +52 -22
  214. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +29 -22
  215. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +82 -50
  216. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +7 -6
  217. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -2
  218. package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
  219. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +13 -5
  220. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +221 -7
  221. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +2 -2
  222. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +2 -2
  223. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +88 -64
  224. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  225. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  226. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +34 -10
  227. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +11 -2
  228. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +20 -3
  229. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +24 -3
  230. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +40 -3
  231. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +25 -24
  232. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +1 -0
  233. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  234. package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +5 -15
  235. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +5 -0
  236. package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
  237. package/node_modules/@types/responselike/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  238. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +82 -21
  239. package/node_modules/axios/CHANGELOG.md +410 -346
  240. package/node_modules/axios/README.md +79 -51
  241. package/node_modules/axios/dist/axios.js +121 -46
  242. package/node_modules/axios/dist/axios.js.map +1 -1
  243. package/node_modules/axios/dist/axios.min.js +2 -2
  244. package/node_modules/axios/dist/axios.min.js.map +1 -1
  245. package/node_modules/axios/dist/browser/axios.cjs +126 -57
  246. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  247. package/node_modules/axios/dist/esm/axios.js +126 -57
  248. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  249. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  250. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  251. package/node_modules/axios/dist/node/axios.cjs +351 -97
  252. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  253. package/node_modules/axios/index.d.cts +4 -0
  254. package/node_modules/axios/index.d.ts +4 -0
  255. package/node_modules/axios/lib/adapters/adapters.js +85 -40
  256. package/node_modules/axios/lib/adapters/fetch.js +1 -1
  257. package/node_modules/axios/lib/adapters/http.js +224 -42
  258. package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
  259. package/node_modules/axios/lib/core/mergeConfig.js +4 -4
  260. package/node_modules/axios/lib/env/data.js +1 -1
  261. package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
  262. package/node_modules/axios/lib/helpers/bind.js +7 -0
  263. package/node_modules/axios/lib/helpers/cookies.js +24 -13
  264. package/node_modules/axios/package.json +9 -4
  265. package/node_modules/mjml/LICENSE.md +21 -0
  266. package/node_modules/mjml/package.json +9 -8
  267. package/node_modules/mjml-accordion/LICENSE.md +21 -0
  268. package/node_modules/mjml-accordion/README.md +2 -2
  269. package/node_modules/mjml-accordion/lib/Accordion.js +8 -0
  270. package/node_modules/mjml-accordion/lib/AccordionElement.js +8 -0
  271. package/node_modules/mjml-accordion/lib/AccordionText.js +17 -3
  272. package/node_modules/mjml-accordion/lib/AccordionTitle.js +17 -3
  273. package/node_modules/mjml-accordion/package.json +4 -3
  274. package/node_modules/mjml-body/LICENSE.md +21 -0
  275. package/node_modules/mjml-body/package.json +4 -3
  276. package/node_modules/mjml-button/LICENSE.md +21 -0
  277. package/node_modules/mjml-button/README.md +1 -1
  278. package/node_modules/mjml-button/package.json +4 -3
  279. package/node_modules/mjml-carousel/LICENSE.md +21 -0
  280. package/node_modules/mjml-carousel/README.md +5 -5
  281. package/node_modules/mjml-carousel/lib/Carousel.js +15 -2
  282. package/node_modules/mjml-carousel/lib/CarouselImage.js +8 -1
  283. package/node_modules/mjml-carousel/package.json +4 -3
  284. package/node_modules/mjml-cli/LICENSE.md +21 -0
  285. package/node_modules/mjml-cli/package.json +7 -6
  286. package/node_modules/mjml-column/LICENSE.md +21 -0
  287. package/node_modules/mjml-column/lib/index.js +29 -3
  288. package/node_modules/mjml-column/package.json +4 -3
  289. package/node_modules/mjml-core/LICENSE.md +21 -0
  290. package/node_modules/mjml-core/lib/createComponent.js +4 -2
  291. package/node_modules/mjml-core/lib/index.js +3 -0
  292. package/node_modules/mjml-core/package.json +6 -5
  293. package/node_modules/mjml-divider/LICENSE.md +21 -0
  294. package/node_modules/mjml-divider/package.json +4 -3
  295. package/node_modules/mjml-group/LICENSE.md +21 -0
  296. package/node_modules/mjml-group/README.md +4 -4
  297. package/node_modules/mjml-group/package.json +4 -3
  298. package/node_modules/mjml-head/LICENSE.md +21 -0
  299. package/node_modules/mjml-head/package.json +4 -3
  300. package/node_modules/mjml-head-attributes/LICENSE.md +21 -0
  301. package/node_modules/mjml-head-attributes/package.json +4 -3
  302. package/node_modules/mjml-head-breakpoint/LICENSE.md +21 -0
  303. package/node_modules/mjml-head-breakpoint/package.json +4 -3
  304. package/node_modules/mjml-head-font/LICENSE.md +21 -0
  305. package/node_modules/mjml-head-font/package.json +4 -3
  306. package/node_modules/mjml-head-html-attributes/LICENSE.md +21 -0
  307. package/node_modules/mjml-head-html-attributes/package.json +4 -3
  308. package/node_modules/mjml-head-preview/LICENSE.md +21 -0
  309. package/node_modules/mjml-head-preview/package.json +4 -3
  310. package/node_modules/mjml-head-style/LICENSE.md +21 -0
  311. package/node_modules/mjml-head-style/package.json +4 -3
  312. package/node_modules/mjml-head-title/LICENSE.md +21 -0
  313. package/node_modules/mjml-head-title/package.json +4 -3
  314. package/node_modules/mjml-hero/LICENSE.md +21 -0
  315. package/node_modules/mjml-hero/README.md +4 -4
  316. package/node_modules/mjml-hero/package.json +4 -3
  317. package/node_modules/mjml-image/LICENSE.md +21 -0
  318. package/node_modules/mjml-image/README.md +1 -1
  319. package/node_modules/mjml-image/package.json +4 -3
  320. package/node_modules/mjml-migrate/package.json +5 -4
  321. package/node_modules/mjml-navbar/LICENSE.md +21 -0
  322. package/node_modules/mjml-navbar/README.md +4 -4
  323. package/node_modules/mjml-navbar/lib/Navbar.js +2 -2
  324. package/node_modules/mjml-navbar/package.json +4 -3
  325. package/node_modules/mjml-parser-xml/package.json +4 -4
  326. package/node_modules/mjml-preset-core/LICENSE.md +21 -0
  327. package/node_modules/mjml-preset-core/package.json +28 -27
  328. package/node_modules/mjml-raw/LICENSE.md +21 -0
  329. package/node_modules/mjml-raw/package.json +4 -3
  330. package/node_modules/mjml-section/LICENSE.md +21 -0
  331. package/node_modules/mjml-section/lib/index.js +20 -4
  332. package/node_modules/mjml-section/package.json +4 -3
  333. package/node_modules/mjml-social/LICENSE.md +21 -0
  334. package/node_modules/mjml-social/README.md +1 -1
  335. package/node_modules/mjml-social/lib/SocialElement.js +3 -4
  336. package/node_modules/mjml-social/package.json +4 -3
  337. package/node_modules/mjml-spacer/LICENSE.md +21 -0
  338. package/node_modules/mjml-spacer/package.json +4 -3
  339. package/node_modules/mjml-table/LICENSE.md +21 -0
  340. package/node_modules/mjml-table/lib/index.js +12 -1
  341. package/node_modules/mjml-table/package.json +4 -3
  342. package/node_modules/mjml-text/LICENSE.md +21 -0
  343. package/node_modules/mjml-text/package.json +4 -3
  344. package/node_modules/mjml-validator/package.json +2 -2
  345. package/node_modules/mjml-wrapper/LICENSE.md +21 -0
  346. package/node_modules/mjml-wrapper/README.md +2 -1
  347. package/node_modules/mjml-wrapper/lib/index.js +11 -0
  348. package/node_modules/mjml-wrapper/package.json +5 -4
  349. package/package.json +19 -19
@@ -32,7 +32,7 @@ declare module "buffer" {
32
32
  * @param arrayBuffer The ArrayBuffer with which to share memory.
33
33
  * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
34
34
  */
35
- new(arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
35
+ new(arrayBuffer: ArrayBufferLike): Buffer;
36
36
  /**
37
37
  * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
38
38
  * Array entries outside that range will be truncated to fit into it.
@@ -126,7 +126,7 @@ declare module "buffer" {
126
126
  * `arrayBuffer.byteLength - byteOffset`.
127
127
  */
128
128
  from(
129
- arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>,
129
+ arrayBuffer: WithImplicitCoercion<ArrayBufferLike>,
130
130
  byteOffset?: number,
131
131
  length?: number,
132
132
  ): Buffer;
@@ -448,7 +448,15 @@ declare module "buffer" {
448
448
  */
449
449
  subarray(start?: number, end?: number): Buffer;
450
450
  }
451
+ /**
452
+ * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
453
+ * TypeScript versions earlier than 5.7.
454
+ */
451
455
  type NonSharedBuffer = Buffer;
456
+ /**
457
+ * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
458
+ * TypeScript versions earlier than 5.7.
459
+ */
452
460
  type AllowSharedBuffer = Buffer;
453
461
  }
454
462
  /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
@@ -16,5 +16,21 @@ declare global {
16
16
  | Float32Array
17
17
  | Float64Array;
18
18
  type ArrayBufferView = TypedArray | DataView;
19
+
20
+ type NonSharedUint8Array = Uint8Array;
21
+ type NonSharedUint8ClampedArray = Uint8ClampedArray;
22
+ type NonSharedUint16Array = Uint16Array;
23
+ type NonSharedUint32Array = Uint32Array;
24
+ type NonSharedInt8Array = Int8Array;
25
+ type NonSharedInt16Array = Int16Array;
26
+ type NonSharedInt32Array = Int32Array;
27
+ type NonSharedBigUint64Array = BigUint64Array;
28
+ type NonSharedBigInt64Array = BigInt64Array;
29
+ type NonSharedFloat16Array = Float16Array;
30
+ type NonSharedFloat32Array = Float32Array;
31
+ type NonSharedFloat64Array = Float64Array;
32
+ type NonSharedDataView = DataView;
33
+ type NonSharedTypedArray = TypedArray;
34
+ type NonSharedArrayBufferView = ArrayBufferView;
19
35
  }
20
36
  }
@@ -8,7 +8,7 @@
8
8
  * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/url.js)
9
9
  */
10
10
  declare module "url" {
11
- import { Blob as NodeBlob } from "node:buffer";
11
+ import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer";
12
12
  import { ClientRequestArgs } from "node:http";
13
13
  import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring";
14
14
  // Input to `url.format`
@@ -71,20 +71,44 @@ declare module "url" {
71
71
  * A `URIError` is thrown if the `auth` property is present but cannot be decoded.
72
72
  *
73
73
  * `url.parse()` uses a lenient, non-standard algorithm for parsing URL
74
- * strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487) and incorrect handling of usernames and passwords. Do not use with untrusted
75
- * input. CVEs are not issued for `url.parse()` vulnerabilities. Use the `WHATWG URL` API instead.
74
+ * strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487)
75
+ * and incorrect handling of usernames and passwords. Do not use with untrusted
76
+ * input. CVEs are not issued for `url.parse()` vulnerabilities. Use the
77
+ * [WHATWG URL](https://nodejs.org/docs/latest-v24.x/api/url.html#the-whatwg-url-api) API instead, for example:
78
+ *
79
+ * ```js
80
+ * function getURL(req) {
81
+ * const proto = req.headers['x-forwarded-proto'] || 'https';
82
+ * const host = req.headers['x-forwarded-host'] || req.headers.host || 'example.com';
83
+ * return new URL(req.url || '/', `${proto}://${host}`);
84
+ * }
85
+ * ```
86
+ *
87
+ * The example above assumes well-formed headers are forwarded from a reverse
88
+ * proxy to your Node.js server. If you are not using a reverse proxy, you should
89
+ * use the example below:
90
+ *
91
+ * ```js
92
+ * function getURL(req) {
93
+ * return new URL(req.url || '/', 'https://example.com');
94
+ * }
95
+ * ```
76
96
  * @since v0.1.25
77
97
  * @deprecated Use the WHATWG URL API instead.
78
98
  * @param urlString The URL string to parse.
79
- * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property
80
- * on the returned URL object will be an unparsed, undecoded string.
81
- * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the
82
- * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
99
+ * @param parseQueryString If `true`, the `query` property will always
100
+ * be set to an object returned by the [`querystring`](https://nodejs.org/docs/latest-v24.x/api/querystring.html) module's `parse()`
101
+ * method. If `false`, the `query` property on the returned URL object will be an
102
+ * unparsed, undecoded string. **Default:** `false`.
103
+ * @param slashesDenoteHost If `true`, the first token after the literal
104
+ * string `//` and preceding the next `/` will be interpreted as the `host`.
105
+ * For instance, given `//foo/bar`, the result would be
106
+ * `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
107
+ * **Default:** `false`.
83
108
  */
84
- function parse(urlString: string): UrlWithStringQuery;
85
109
  function parse(
86
110
  urlString: string,
87
- parseQueryString: false | undefined,
111
+ parseQueryString?: false,
88
112
  slashesDenoteHost?: boolean,
89
113
  ): UrlWithStringQuery;
90
114
  function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
@@ -325,7 +349,7 @@ declare module "url" {
325
349
  * @returns The fully-resolved platform-specific Node.js file path
326
350
  * as a `Buffer`.
327
351
  */
328
- function fileURLToPathBuffer(url: string | URL, options?: FileUrlToPathOptions): Buffer;
352
+ function fileURLToPathBuffer(url: string | URL, options?: FileUrlToPathOptions): NonSharedBuffer;
329
353
  /**
330
354
  * This function ensures that `path` is resolved absolutely, and that the URL
331
355
  * control characters are correctly encoded when converting into a File URL.
@@ -853,6 +853,15 @@ declare module "util" {
853
853
  * @return The deprecated function wrapped to emit a warning.
854
854
  */
855
855
  export function deprecate<T extends Function>(fn: T, msg: string, code?: string): T;
856
+ export interface IsDeepStrictEqualOptions {
857
+ /**
858
+ * If `true`, prototype and constructor
859
+ * comparison is skipped during deep strict equality check.
860
+ * @since v24.9.0
861
+ * @default false
862
+ */
863
+ skipPrototype?: boolean | undefined;
864
+ }
856
865
  /**
857
866
  * Returns `true` if there is deep strict equality between `val1` and `val2`.
858
867
  * Otherwise, returns `false`.
@@ -861,7 +870,7 @@ declare module "util" {
861
870
  * equality.
862
871
  * @since v9.0.0
863
872
  */
864
- export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
873
+ export function isDeepStrictEqual(val1: unknown, val2: unknown, options?: IsDeepStrictEqualOptions): boolean;
865
874
  /**
866
875
  * Returns `str` with any ANSI escape codes removed.
867
876
  *
@@ -1332,7 +1341,7 @@ declare module "util" {
1332
1341
  * encoded bytes.
1333
1342
  * @param [input='an empty string'] The text to encode.
1334
1343
  */
1335
- encode(input?: string): Uint8Array;
1344
+ encode(input?: string): NodeJS.NonSharedUint8Array;
1336
1345
  /**
1337
1346
  * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object
1338
1347
  * containing the read Unicode code units and written UTF-8 bytes.
@@ -7,6 +7,7 @@
7
7
  * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/v8.js)
8
8
  */
9
9
  declare module "v8" {
10
+ import { NonSharedBuffer } from "node:buffer";
10
11
  import { Readable } from "node:stream";
11
12
  interface HeapSpaceInfo {
12
13
  space_name: string;
@@ -416,6 +417,22 @@ declare module "v8" {
416
417
  */
417
418
  [Symbol.asyncDispose](): Promise<void>;
418
419
  }
420
+ /**
421
+ * @since v24.9.0
422
+ */
423
+ interface HeapProfileHandle {
424
+ /**
425
+ * Stopping collecting the profile, then return a Promise that fulfills with an error or the
426
+ * profile data.
427
+ * @since v24.9.0
428
+ */
429
+ stop(): Promise<string>;
430
+ /**
431
+ * Stopping collecting the profile and the profile will be discarded.
432
+ * @since v24.9.0
433
+ */
434
+ [Symbol.asyncDispose](): Promise<void>;
435
+ }
419
436
  /**
420
437
  * V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string.
421
438
  * If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;
@@ -469,7 +486,7 @@ declare module "v8" {
469
486
  * the buffer is released. Calling this method results in undefined behavior
470
487
  * if a previous write has failed.
471
488
  */
472
- releaseBuffer(): Buffer;
489
+ releaseBuffer(): NonSharedBuffer;
473
490
  /**
474
491
  * Marks an `ArrayBuffer` as having its contents transferred out of band.
475
492
  * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`.
@@ -497,7 +514,7 @@ declare module "v8" {
497
514
  * will require a way to compute the length of the buffer.
498
515
  * For use inside of a custom `serializer._writeHostObject()`.
499
516
  */
500
- writeRawBytes(buffer: NodeJS.TypedArray): void;
517
+ writeRawBytes(buffer: NodeJS.ArrayBufferView): void;
501
518
  }
502
519
  /**
503
520
  * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only
@@ -568,7 +585,7 @@ declare module "v8" {
568
585
  * larger than `buffer.constants.MAX_LENGTH`.
569
586
  * @since v8.0.0
570
587
  */
571
- function serialize(value: any): Buffer;
588
+ function serialize(value: any): NonSharedBuffer;
572
589
  /**
573
590
  * Uses a `DefaultDeserializer` with default options to read a JS value
574
591
  * from a buffer.
@@ -37,6 +37,7 @@
37
37
  * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/vm.js)
38
38
  */
39
39
  declare module "vm" {
40
+ import { NonSharedBuffer } from "node:buffer";
40
41
  import { ImportAttributes, ImportPhase } from "node:module";
41
42
  interface Context extends NodeJS.Dict<any> {}
42
43
  interface BaseOptions {
@@ -66,7 +67,7 @@ declare module "vm" {
66
67
  /**
67
68
  * Provides an optional data with V8's code cache data for the supplied source.
68
69
  */
69
- cachedData?: Buffer | NodeJS.ArrayBufferView | undefined;
70
+ cachedData?: NodeJS.ArrayBufferView | undefined;
70
71
  /** @deprecated in favor of `script.createCachedData()` */
71
72
  produceCachedData?: boolean | undefined;
72
73
  /**
@@ -367,7 +368,7 @@ declare module "vm" {
367
368
  * ```
368
369
  * @since v10.6.0
369
370
  */
370
- createCachedData(): Buffer;
371
+ createCachedData(): NonSharedBuffer;
371
372
  /** @deprecated in favor of `script.createCachedData()` */
372
373
  cachedDataProduced?: boolean;
373
374
  /**
@@ -377,7 +378,7 @@ declare module "vm" {
377
378
  * @since v5.7.0
378
379
  */
379
380
  cachedDataRejected?: boolean;
380
- cachedData?: Buffer;
381
+ cachedData?: NonSharedBuffer;
381
382
  /**
382
383
  * When the script is compiled from a source that contains a source map magic
383
384
  * comment, this property will be set to the URL of the source map.
@@ -962,6 +963,26 @@ declare module "vm" {
962
963
  * @deprecated Use `sourceTextModule.moduleRequests` instead.
963
964
  */
964
965
  readonly dependencySpecifiers: readonly string[];
966
+ /**
967
+ * Iterates over the dependency graph and returns `true` if any module in its
968
+ * dependencies or this module itself contains top-level `await` expressions,
969
+ * otherwise returns `false`.
970
+ *
971
+ * The search may be slow if the graph is big enough.
972
+ *
973
+ * This requires the module to be instantiated first. If the module is not
974
+ * instantiated yet, an error will be thrown.
975
+ * @since v24.9.0
976
+ */
977
+ hasAsyncGraph(): boolean;
978
+ /**
979
+ * Returns whether the module itself contains any top-level `await` expressions.
980
+ *
981
+ * This corresponds to the field `[[HasTLA]]` in [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) in the
982
+ * ECMAScript specification.
983
+ * @since v24.9.0
984
+ */
985
+ hasTopLevelAwait(): boolean;
965
986
  /**
966
987
  * Instantiate the module with the linked requested modules.
967
988
  *
@@ -62,7 +62,7 @@ declare module "worker_threads" {
62
62
  import { Readable, Writable } from "node:stream";
63
63
  import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
64
64
  import { URL } from "node:url";
65
- import { CPUProfileHandle, HeapInfo } from "node:v8";
65
+ import { CPUProfileHandle, HeapInfo, HeapProfileHandle } from "node:v8";
66
66
  import { MessageEvent } from "undici-types";
67
67
  const isInternalThread: boolean;
68
68
  const isMainThread: boolean;
@@ -492,10 +492,10 @@ declare module "worker_threads" {
492
492
  * `await using` example.
493
493
  *
494
494
  * ```js
495
- * const { Worker } = require('node::worker_threads');
495
+ * const { Worker } = require('node:worker_threads');
496
496
  *
497
497
  * const w = new Worker(`
498
- * const { parentPort } = require('worker_threads');
498
+ * const { parentPort } = require('node:worker_threads');
499
499
  * parentPort.on('message', () => {});
500
500
  * `, { eval: true });
501
501
  *
@@ -507,6 +507,43 @@ declare module "worker_threads" {
507
507
  * @since v24.8.0
508
508
  */
509
509
  startCpuProfile(): Promise<CPUProfileHandle>;
510
+ /**
511
+ * Starting a Heap profile then return a Promise that fulfills with an error
512
+ * or an `HeapProfileHandle` object. This API supports `await using` syntax.
513
+ *
514
+ * ```js
515
+ * const { Worker } = require('node:worker_threads');
516
+ *
517
+ * const worker = new Worker(`
518
+ * const { parentPort } = require('worker_threads');
519
+ * parentPort.on('message', () => {});
520
+ * `, { eval: true });
521
+ *
522
+ * worker.on('online', async () => {
523
+ * const handle = await worker.startHeapProfile();
524
+ * const profile = await handle.stop();
525
+ * console.log(profile);
526
+ * worker.terminate();
527
+ * });
528
+ * ```
529
+ *
530
+ * `await using` example.
531
+ *
532
+ * ```js
533
+ * const { Worker } = require('node:worker_threads');
534
+ *
535
+ * const w = new Worker(`
536
+ * const { parentPort } = require('node:worker_threads');
537
+ * parentPort.on('message', () => {});
538
+ * `, { eval: true });
539
+ *
540
+ * w.on('online', async () => {
541
+ * // Stop profile automatically when return and profile will be discarded
542
+ * await using handle = await w.startHeapProfile();
543
+ * });
544
+ * ```
545
+ */
546
+ startHeapProfile(): Promise<HeapProfileHandle>;
510
547
  /**
511
548
  * Calls `worker.terminate()` when the dispose scope is exited.
512
549
  *
@@ -92,6 +92,7 @@
92
92
  * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/zlib.js)
93
93
  */
94
94
  declare module "zlib" {
95
+ import { NonSharedBuffer } from "node:buffer";
95
96
  import * as stream from "node:stream";
96
97
  interface ZlibOptions {
97
98
  /**
@@ -227,7 +228,7 @@ declare module "zlib" {
227
228
  * @returns A 32-bit unsigned integer containing the checksum.
228
229
  * @since v22.2.0
229
230
  */
230
- function crc32(data: string | Buffer | NodeJS.ArrayBufferView, value?: number): number;
231
+ function crc32(data: string | NodeJS.ArrayBufferView, value?: number): number;
231
232
  /**
232
233
  * Creates and returns a new `BrotliCompress` object.
233
234
  * @since v11.7.0, v10.16.0
@@ -291,124 +292,124 @@ declare module "zlib" {
291
292
  */
292
293
  function createZstdDecompress(options?: ZstdOptions): ZstdDecompress;
293
294
  type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
294
- type CompressCallback = (error: Error | null, result: Buffer) => void;
295
+ type CompressCallback = (error: Error | null, result: NonSharedBuffer) => void;
295
296
  /**
296
297
  * @since v11.7.0, v10.16.0
297
298
  */
298
299
  function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
299
300
  function brotliCompress(buf: InputType, callback: CompressCallback): void;
300
301
  namespace brotliCompress {
301
- function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
302
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
302
303
  }
303
304
  /**
304
305
  * Compress a chunk of data with `BrotliCompress`.
305
306
  * @since v11.7.0, v10.16.0
306
307
  */
307
- function brotliCompressSync(buf: InputType, options?: BrotliOptions): Buffer;
308
+ function brotliCompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
308
309
  /**
309
310
  * @since v11.7.0, v10.16.0
310
311
  */
311
312
  function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
312
313
  function brotliDecompress(buf: InputType, callback: CompressCallback): void;
313
314
  namespace brotliDecompress {
314
- function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<Buffer>;
315
+ function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
315
316
  }
316
317
  /**
317
318
  * Decompress a chunk of data with `BrotliDecompress`.
318
319
  * @since v11.7.0, v10.16.0
319
320
  */
320
- function brotliDecompressSync(buf: InputType, options?: BrotliOptions): Buffer;
321
+ function brotliDecompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
321
322
  /**
322
323
  * @since v0.6.0
323
324
  */
324
325
  function deflate(buf: InputType, callback: CompressCallback): void;
325
326
  function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
326
327
  namespace deflate {
327
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
328
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
328
329
  }
329
330
  /**
330
331
  * Compress a chunk of data with `Deflate`.
331
332
  * @since v0.11.12
332
333
  */
333
- function deflateSync(buf: InputType, options?: ZlibOptions): Buffer;
334
+ function deflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
334
335
  /**
335
336
  * @since v0.6.0
336
337
  */
337
338
  function deflateRaw(buf: InputType, callback: CompressCallback): void;
338
339
  function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
339
340
  namespace deflateRaw {
340
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
341
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
341
342
  }
342
343
  /**
343
344
  * Compress a chunk of data with `DeflateRaw`.
344
345
  * @since v0.11.12
345
346
  */
346
- function deflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
347
+ function deflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
347
348
  /**
348
349
  * @since v0.6.0
349
350
  */
350
351
  function gzip(buf: InputType, callback: CompressCallback): void;
351
352
  function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
352
353
  namespace gzip {
353
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
354
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
354
355
  }
355
356
  /**
356
357
  * Compress a chunk of data with `Gzip`.
357
358
  * @since v0.11.12
358
359
  */
359
- function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
360
+ function gzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
360
361
  /**
361
362
  * @since v0.6.0
362
363
  */
363
364
  function gunzip(buf: InputType, callback: CompressCallback): void;
364
365
  function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
365
366
  namespace gunzip {
366
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
367
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
367
368
  }
368
369
  /**
369
370
  * Decompress a chunk of data with `Gunzip`.
370
371
  * @since v0.11.12
371
372
  */
372
- function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
373
+ function gunzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
373
374
  /**
374
375
  * @since v0.6.0
375
376
  */
376
377
  function inflate(buf: InputType, callback: CompressCallback): void;
377
378
  function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
378
379
  namespace inflate {
379
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
380
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
380
381
  }
381
382
  /**
382
383
  * Decompress a chunk of data with `Inflate`.
383
384
  * @since v0.11.12
384
385
  */
385
- function inflateSync(buf: InputType, options?: ZlibOptions): Buffer;
386
+ function inflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
386
387
  /**
387
388
  * @since v0.6.0
388
389
  */
389
390
  function inflateRaw(buf: InputType, callback: CompressCallback): void;
390
391
  function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
391
392
  namespace inflateRaw {
392
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
393
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
393
394
  }
394
395
  /**
395
396
  * Decompress a chunk of data with `InflateRaw`.
396
397
  * @since v0.11.12
397
398
  */
398
- function inflateRawSync(buf: InputType, options?: ZlibOptions): Buffer;
399
+ function inflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
399
400
  /**
400
401
  * @since v0.6.0
401
402
  */
402
403
  function unzip(buf: InputType, callback: CompressCallback): void;
403
404
  function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
404
405
  namespace unzip {
405
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<Buffer>;
406
+ function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
406
407
  }
407
408
  /**
408
409
  * Decompress a chunk of data with `Unzip`.
409
410
  * @since v0.11.12
410
411
  */
411
- function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
412
+ function unzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
412
413
  /**
413
414
  * @since v22.15.0
414
415
  * @experimental
@@ -416,14 +417,14 @@ declare module "zlib" {
416
417
  function zstdCompress(buf: InputType, callback: CompressCallback): void;
417
418
  function zstdCompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
418
419
  namespace zstdCompress {
419
- function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<Buffer>;
420
+ function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
420
421
  }
421
422
  /**
422
423
  * Compress a chunk of data with `ZstdCompress`.
423
424
  * @since v22.15.0
424
425
  * @experimental
425
426
  */
426
- function zstdCompressSync(buf: InputType, options?: ZstdOptions): Buffer;
427
+ function zstdCompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
427
428
  /**
428
429
  * @since v22.15.0
429
430
  * @experimental
@@ -431,14 +432,14 @@ declare module "zlib" {
431
432
  function zstdDecompress(buf: InputType, callback: CompressCallback): void;
432
433
  function zstdDecompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
433
434
  namespace zstdDecompress {
434
- function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<Buffer>;
435
+ function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
435
436
  }
436
437
  /**
437
438
  * Decompress a chunk of data with `ZstdDecompress`.
438
439
  * @since v22.15.0
439
440
  * @experimental
440
441
  */
441
- function zstdDecompressSync(buf: InputType, options?: ZstdOptions): Buffer;
442
+ function zstdDecompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
442
443
  namespace constants {
443
444
  const BROTLI_DECODE: number;
444
445
  const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
@@ -24,6 +24,7 @@ declare namespace Agent {
24
24
  factory?(origin: string | URL, opts: Object): Dispatcher;
25
25
 
26
26
  interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options['interceptors']
27
+ maxOrigins?: number
27
28
  }
28
29
 
29
30
  export interface DispatchOptions extends Dispatcher.DispatchOptions {
@@ -16,7 +16,6 @@ declare namespace DiagnosticsChannel {
16
16
  statusText: string;
17
17
  headers: Array<Buffer>;
18
18
  }
19
- type Error = unknown
20
19
  interface ConnectParams {
21
20
  host: URL['host'];
22
21
  hostname: URL['hostname'];
@@ -49,21 +49,6 @@ declare namespace Errors {
49
49
  headers: IncomingHttpHeaders | string[] | null
50
50
  }
51
51
 
52
- export class ResponseStatusCodeError extends UndiciError {
53
- constructor (
54
- message?: string,
55
- statusCode?: number,
56
- headers?: IncomingHttpHeaders | string[] | null,
57
- body?: null | Record<string, any> | string
58
- )
59
- name: 'ResponseStatusCodeError'
60
- code: 'UND_ERR_RESPONSE_STATUS_CODE'
61
- body: null | Record<string, any> | string
62
- status: number
63
- statusCode: number
64
- headers: IncomingHttpHeaders | string[] | null
65
- }
66
-
67
52
  /** Passed an invalid argument. */
68
53
  export class InvalidArgumentError extends UndiciError {
69
54
  name: 'InvalidArgumentError'
@@ -168,4 +153,9 @@ declare namespace Errors {
168
153
  name: 'SecureProxyConnectionError'
169
154
  code: 'UND_ERR_PRX_TLS'
170
155
  }
156
+
157
+ class MaxOriginsReachedError extends UndiciError {
158
+ name: 'MaxOriginsReachedError'
159
+ code: 'UND_ERR_MAX_ORIGINS_REACHED'
160
+ }
171
161
  }
@@ -9,6 +9,10 @@ declare namespace Interceptors {
9
9
  export type DumpInterceptorOpts = { maxSize?: number }
10
10
  export type RetryInterceptorOpts = RetryHandler.RetryOptions
11
11
  export type RedirectInterceptorOpts = { maxRedirections?: number }
12
+ export type DecompressInterceptorOpts = {
13
+ skipErrorResponses?: boolean
14
+ skipStatusCodes?: number[]
15
+ }
12
16
 
13
17
  export type ResponseErrorInterceptorOpts = { throwOnError: boolean }
14
18
  export type CacheInterceptorOpts = CacheHandler.CacheOptions
@@ -28,6 +32,7 @@ declare namespace Interceptors {
28
32
  export function dump (opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
29
33
  export function retry (opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
30
34
  export function redirect (opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
35
+ export function decompress (opts?: DecompressInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
31
36
  export function responseError (opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
32
37
  export function dns (opts?: DNSInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
33
38
  export function cache (opts?: CacheInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "7.14.0",
3
+ "version": "7.16.0",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
@@ -18,9 +18,11 @@ declare class SnapshotRecorder {
18
18
  }
19
19
 
20
20
  declare namespace SnapshotRecorder {
21
+ type SnapshotRecorderMode = 'record' | 'playback' | 'update'
22
+
21
23
  export interface Options {
22
24
  snapshotPath?: string
23
- mode?: 'record' | 'playback' | 'update'
25
+ mode?: SnapshotRecorderMode
24
26
  maxSnapshots?: number
25
27
  autoFlush?: boolean
26
28
  flushInterval?: number
@@ -77,7 +79,7 @@ declare class SnapshotAgent extends MockAgent {
77
79
  saveSnapshots (filePath?: string): Promise<void>
78
80
  loadSnapshots (filePath?: string): Promise<void>
79
81
  getRecorder (): SnapshotRecorder
80
- getMode (): 'record' | 'playback' | 'update'
82
+ getMode (): SnapshotRecorder.SnapshotRecorderMode
81
83
  clearSnapshots (): void
82
84
  resetCallCounts (): void
83
85
  deleteSnapshot (requestOpts: any): boolean
@@ -87,7 +89,7 @@ declare class SnapshotAgent extends MockAgent {
87
89
 
88
90
  declare namespace SnapshotAgent {
89
91
  export interface Options extends MockAgent.Options {
90
- mode?: 'record' | 'playback' | 'update'
92
+ mode?: SnapshotRecorder.SnapshotRecorderMode
91
93
  snapshotPath?: string
92
94
  maxSnapshots?: number
93
95
  autoFlush?: boolean