cdk-ecr-deployment 2.5.30 → 2.5.32

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 (395) hide show
  1. package/.gitattributes +1 -1
  2. package/.jsii +129 -27
  3. package/.jsii.tabl.json +1 -1
  4. package/.projenrc.ts +3 -1
  5. package/API.md +2 -0
  6. package/lambda/install.js +7 -6
  7. package/lib/index.d.ts +10 -0
  8. package/lib/index.js +6 -5
  9. package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +0 -0
  10. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +4 -5
  11. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +4 -4
  12. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +48 -24
  13. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +15 -6
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +43 -35
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +267 -122
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +107 -89
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -14
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +12 -11
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +755 -269
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +86 -45
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +28 -25
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +203 -62
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +67 -71
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +4 -4
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +127 -7
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +115 -73
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +560 -315
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +96 -18
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +0 -0
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +359 -195
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +629 -377
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +221 -112
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +0 -46
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +2 -3
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +187 -16
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +154 -93
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +9 -9
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +88 -95
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +13 -13
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +19 -18
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +166 -128
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +3 -3
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +14 -4
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +12 -7
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +69 -56
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +67 -61
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +10 -10
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +56 -15
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +40 -20
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +498 -218
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +8 -8
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +398 -170
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +4 -4
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +34 -9
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +162 -71
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +3 -3
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +48 -24
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +15 -6
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +44 -36
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +267 -122
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +17 -14
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +755 -269
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +86 -45
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +28 -25
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +203 -62
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +79 -7
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +117 -74
  75. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +560 -315
  76. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +96 -18
  77. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
  78. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +359 -195
  79. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +629 -377
  80. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +221 -112
  81. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/index.d.ts +0 -0
  82. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +2 -3
  83. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +187 -16
  84. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +154 -93
  85. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +9 -9
  86. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +13 -13
  87. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
  88. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +166 -128
  89. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +3 -3
  90. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
  91. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
  92. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
  93. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
  94. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
  95. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
  96. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
  97. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +1162 -853
  98. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
  99. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +398 -170
  100. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
  101. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +34 -9
  102. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +162 -71
  103. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
  104. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
  105. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +40 -14
  106. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +263 -129
  107. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
  108. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +52 -45
  109. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +9 -3
  110. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -85
  111. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
  112. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +10 -10
  113. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +40 -14
  114. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +263 -129
  115. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +4 -4
  116. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +52 -45
  117. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +9 -3
  118. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +83 -85
  119. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +9 -9
  120. package/node_modules/@types/http-cache-semantics/LICENSE +0 -0
  121. package/node_modules/@types/http-cache-semantics/README.md +1 -2
  122. package/node_modules/@types/http-cache-semantics/index.d.ts +1 -6
  123. package/node_modules/@types/http-cache-semantics/package.json +5 -5
  124. package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +0 -0
  125. package/node_modules/@types/keyv/node_modules/@types/node/README.md +4 -5
  126. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +4 -4
  127. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +48 -24
  128. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +15 -6
  129. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +43 -35
  130. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +267 -122
  131. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +107 -89
  132. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -14
  133. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +12 -11
  134. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +755 -269
  135. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +86 -45
  136. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
  137. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +28 -25
  138. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +203 -62
  139. package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +67 -71
  140. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +4 -4
  141. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +127 -7
  142. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +115 -73
  143. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +560 -315
  144. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +96 -18
  145. package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +0 -0
  146. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +359 -195
  147. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +629 -377
  148. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +221 -112
  149. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +0 -46
  150. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +2 -3
  151. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +187 -16
  152. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +154 -93
  153. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +9 -9
  154. package/node_modules/@types/keyv/node_modules/@types/node/package.json +88 -95
  155. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +13 -13
  156. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +19 -18
  157. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +166 -128
  158. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +3 -3
  159. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +14 -4
  160. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +12 -7
  161. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +69 -56
  162. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +67 -61
  163. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +10 -10
  164. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +56 -15
  165. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +40 -20
  166. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +498 -218
  167. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +8 -8
  168. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +398 -170
  169. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +4 -4
  170. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +34 -9
  171. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +162 -71
  172. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +3 -3
  173. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
  174. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert.d.ts +48 -24
  175. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +15 -6
  176. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +44 -36
  177. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +267 -122
  178. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
  179. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/console.d.ts +17 -14
  180. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
  181. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +755 -269
  182. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +86 -45
  183. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
  184. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns/promises.d.ts +28 -25
  185. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +203 -62
  186. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
  187. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
  188. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +79 -7
  189. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +117 -74
  190. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +560 -315
  191. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +96 -18
  192. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
  193. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +359 -195
  194. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +629 -377
  195. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +221 -112
  196. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/index.d.ts +0 -0
  197. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/inspector.d.ts +2 -3
  198. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +187 -16
  199. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +154 -93
  200. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +9 -9
  201. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/path.d.ts +13 -13
  202. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
  203. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +166 -128
  204. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/punycode.d.ts +3 -3
  205. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
  206. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
  207. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
  208. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
  209. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
  210. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
  211. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
  212. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +1162 -853
  213. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
  214. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +398 -170
  215. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
  216. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +34 -9
  217. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +162 -71
  218. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
  219. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
  220. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +40 -14
  221. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +263 -129
  222. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
  223. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +52 -45
  224. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +9 -3
  225. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -85
  226. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
  227. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +10 -10
  228. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +40 -14
  229. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +263 -129
  230. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +4 -4
  231. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +52 -45
  232. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +9 -3
  233. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +83 -85
  234. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +9 -9
  235. package/node_modules/@types/responselike/LICENSE +21 -21
  236. package/node_modules/@types/responselike/README.md +39 -7
  237. package/node_modules/@types/responselike/index.d.ts +3 -8
  238. package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +0 -0
  239. package/node_modules/@types/responselike/node_modules/@types/node/README.md +4 -5
  240. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +4 -4
  241. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +48 -24
  242. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +15 -6
  243. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +43 -35
  244. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +267 -122
  245. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +107 -89
  246. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -14
  247. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +12 -11
  248. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +755 -269
  249. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +86 -45
  250. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
  251. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +28 -25
  252. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +203 -62
  253. package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +67 -71
  254. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +4 -4
  255. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +127 -7
  256. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +115 -73
  257. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +560 -315
  258. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +96 -18
  259. package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +0 -0
  260. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +359 -195
  261. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +629 -377
  262. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +221 -112
  263. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +0 -46
  264. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +2 -3
  265. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +187 -16
  266. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +154 -93
  267. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +9 -9
  268. package/node_modules/@types/responselike/node_modules/@types/node/package.json +88 -95
  269. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +13 -13
  270. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +19 -18
  271. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +166 -128
  272. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +3 -3
  273. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +14 -4
  274. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +12 -7
  275. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +69 -56
  276. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +67 -61
  277. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +10 -10
  278. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +56 -15
  279. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +40 -20
  280. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +498 -218
  281. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +8 -8
  282. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +398 -170
  283. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +4 -4
  284. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +34 -9
  285. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +162 -71
  286. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +3 -3
  287. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
  288. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +48 -24
  289. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +15 -6
  290. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +44 -36
  291. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +267 -122
  292. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
  293. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +17 -14
  294. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
  295. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +755 -269
  296. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +86 -45
  297. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
  298. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +28 -25
  299. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +203 -62
  300. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
  301. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
  302. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +79 -7
  303. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +117 -74
  304. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +560 -315
  305. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +96 -18
  306. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
  307. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +359 -195
  308. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +629 -377
  309. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +221 -112
  310. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/index.d.ts +0 -0
  311. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +2 -3
  312. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +187 -16
  313. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +154 -93
  314. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +9 -9
  315. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +13 -13
  316. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
  317. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +166 -128
  318. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +3 -3
  319. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
  320. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
  321. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
  322. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
  323. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
  324. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
  325. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
  326. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +1162 -853
  327. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
  328. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +398 -170
  329. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
  330. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +34 -9
  331. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +162 -71
  332. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
  333. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
  334. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +40 -14
  335. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +263 -129
  336. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
  337. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +52 -45
  338. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +9 -3
  339. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -85
  340. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
  341. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +10 -10
  342. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +40 -14
  343. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +263 -129
  344. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +4 -4
  345. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +52 -45
  346. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +9 -3
  347. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +83 -85
  348. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +9 -9
  349. package/node_modules/@types/responselike/package.json +9 -7
  350. package/node_modules/keyv/README.md +2 -0
  351. package/node_modules/keyv/package.json +13 -14
  352. package/node_modules/keyv/src/index.d.ts +6 -10
  353. package/node_modules/keyv/src/index.js +7 -12
  354. package/node_modules/undici-types/README.md +6 -0
  355. package/node_modules/undici-types/agent.d.ts +31 -0
  356. package/node_modules/undici-types/api.d.ts +43 -0
  357. package/node_modules/undici-types/balanced-pool.d.ts +18 -0
  358. package/node_modules/undici-types/cache.d.ts +36 -0
  359. package/node_modules/undici-types/client.d.ts +97 -0
  360. package/node_modules/undici-types/connector.d.ts +34 -0
  361. package/node_modules/undici-types/content-type.d.ts +21 -0
  362. package/node_modules/undici-types/cookies.d.ts +28 -0
  363. package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  364. package/node_modules/undici-types/dispatcher.d.ts +241 -0
  365. package/node_modules/undici-types/errors.d.ts +128 -0
  366. package/node_modules/undici-types/fetch.d.ts +209 -0
  367. package/node_modules/undici-types/file.d.ts +39 -0
  368. package/node_modules/undici-types/filereader.d.ts +54 -0
  369. package/node_modules/undici-types/formdata.d.ts +108 -0
  370. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  371. package/node_modules/undici-types/global-origin.d.ts +7 -0
  372. package/node_modules/undici-types/handlers.d.ts +9 -0
  373. package/node_modules/undici-types/header.d.ts +4 -0
  374. package/node_modules/undici-types/index.d.ts +63 -0
  375. package/node_modules/undici-types/interceptors.d.ts +5 -0
  376. package/node_modules/undici-types/mock-agent.d.ts +50 -0
  377. package/node_modules/undici-types/mock-client.d.ts +25 -0
  378. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  379. package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  380. package/node_modules/undici-types/mock-pool.d.ts +25 -0
  381. package/node_modules/undici-types/package.json +55 -0
  382. package/node_modules/undici-types/patch.d.ts +71 -0
  383. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  384. package/node_modules/undici-types/pool.d.ts +28 -0
  385. package/node_modules/undici-types/proxy-agent.d.ts +30 -0
  386. package/node_modules/undici-types/readable.d.ts +61 -0
  387. package/node_modules/undici-types/webidl.d.ts +220 -0
  388. package/node_modules/undici-types/websocket.d.ts +131 -0
  389. package/package.json +10 -11
  390. /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/buffer-stream.js +0 -0
  391. /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/index.d.ts +0 -0
  392. /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/index.js +0 -0
  393. /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/license +0 -0
  394. /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/package.json +0 -0
  395. /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/readme.md +0 -0
@@ -27,18 +27,14 @@ declare class Keyv<Value = any, Options extends Record<string, any> = Record<str
27
27
  constructor(uri?: string, options?: Keyv.Options<Value> & Options);
28
28
 
29
29
  /** Returns the value. */
30
- get<Raw extends boolean = false>(key: string, options?: {raw?: Raw}):
31
- Promise<(Raw extends false
32
- ? Value
33
- : Keyv.DeserializedData<Value>) | undefined>;
30
+ get(key: string, options?: {raw?: false}): Promise<Value | undefined>;
31
+ /** Returns the raw value. */
32
+ get(key: string, options: {raw: true}): Promise<Keyv.DeserializedData<Value> | undefined>;
34
33
 
35
34
  /** Returns an array of values. Uses `store.getMany` if it exists, otherwise uses parallel calls to `store.get`. */
36
- get<Raw extends boolean = false>(
37
- key: string[],
38
- options?: {raw?: Raw}
39
- ): Promise<
40
- Array<(Raw extends false ? Value : Keyv.DeserializedData<Value>) | undefined>
41
- >;
35
+ get(key: string[], options?: {raw?: false}): Promise<Array<Value | undefined>>;
36
+ /** Returns an array of raw values. Uses `store.getMany` if it exists, otherwise uses parallel calls to `store.get`. */
37
+ get(key: string[], options: {raw: true}): Promise<Array<Keyv.DeserializedData<Value> | undefined>>;
42
38
 
43
39
  /**
44
40
  * Set a value.
@@ -66,7 +66,7 @@ class Keyv extends EventEmitter {
66
66
  for await (const [key, raw] of typeof iterator === 'function'
67
67
  ? iterator(this.opts.store.namespace)
68
68
  : iterator) {
69
- const data = this.opts.deserialize(raw);
69
+ const data = await this.opts.deserialize(raw);
70
70
  if (this.opts.store.namespace && !key.includes(this.opts.store.namespace)) {
71
71
  continue;
72
72
  }
@@ -153,27 +153,22 @@ class Keyv extends EventEmitter {
153
153
  }
154
154
 
155
155
  if (isArray) {
156
- const result = [];
157
-
158
- for (let row of data) {
156
+ return data.map((row, index) => {
159
157
  if ((typeof row === 'string')) {
160
158
  row = this.opts.deserialize(row);
161
159
  }
162
160
 
163
161
  if (row === undefined || row === null) {
164
- result.push(undefined);
165
- continue;
162
+ return undefined;
166
163
  }
167
164
 
168
165
  if (typeof row.expires === 'number' && Date.now() > row.expires) {
169
- this.delete(key).then(() => undefined);
170
- result.push(undefined);
171
- } else {
172
- result.push((options && options.raw) ? row : row.value);
166
+ this.delete(key[index]).then(() => undefined);
167
+ return undefined;
173
168
  }
174
- }
175
169
 
176
- return result;
170
+ return (options && options.raw) ? row : row.value;
171
+ });
177
172
  }
178
173
 
179
174
  if (typeof data.expires === 'number' && Date.now() > data.expires) {
@@ -0,0 +1,6 @@
1
+ # undici-types
2
+
3
+ This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version.
4
+
5
+ - [GitHub nodejs/undici](https://github.com/nodejs/undici)
6
+ - [Undici Documentation](https://undici.nodejs.org/#/)
@@ -0,0 +1,31 @@
1
+ import { URL } from 'url'
2
+ import Pool from './pool'
3
+ import Dispatcher from "./dispatcher";
4
+
5
+ export default Agent
6
+
7
+ declare class Agent extends Dispatcher{
8
+ constructor(opts?: Agent.Options)
9
+ /** `true` after `dispatcher.close()` has been called. */
10
+ closed: boolean;
11
+ /** `true` after `dispatcher.destroyed()` has been called or `dispatcher.close()` has been called and the dispatcher shutdown has completed. */
12
+ destroyed: boolean;
13
+ /** Dispatches a request. */
14
+ dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
15
+ }
16
+
17
+ declare namespace Agent {
18
+ export interface Options extends Pool.Options {
19
+ /** Default: `(origin, opts) => new Pool(origin, opts)`. */
20
+ factory?(origin: string | URL, opts: Object): Dispatcher;
21
+ /** Integer. Default: `0` */
22
+ maxRedirections?: number;
23
+
24
+ interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options["interceptors"]
25
+ }
26
+
27
+ export interface DispatchOptions extends Dispatcher.DispatchOptions {
28
+ /** Integer. */
29
+ maxRedirections?: number;
30
+ }
31
+ }
@@ -0,0 +1,43 @@
1
+ import { URL, UrlObject } from 'url'
2
+ import { Duplex } from 'stream'
3
+ import Dispatcher from './dispatcher'
4
+
5
+ export {
6
+ request,
7
+ stream,
8
+ pipeline,
9
+ connect,
10
+ upgrade,
11
+ }
12
+
13
+ /** Performs an HTTP request. */
14
+ declare function request(
15
+ url: string | URL | UrlObject,
16
+ options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>,
17
+ ): Promise<Dispatcher.ResponseData>;
18
+
19
+ /** A faster version of `request`. */
20
+ declare function stream(
21
+ url: string | URL | UrlObject,
22
+ options: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path'>,
23
+ factory: Dispatcher.StreamFactory
24
+ ): Promise<Dispatcher.StreamData>;
25
+
26
+ /** For easy use with `stream.pipeline`. */
27
+ declare function pipeline(
28
+ url: string | URL | UrlObject,
29
+ options: { dispatcher?: Dispatcher } & Omit<Dispatcher.PipelineOptions, 'origin' | 'path'>,
30
+ handler: Dispatcher.PipelineHandler
31
+ ): Duplex;
32
+
33
+ /** Starts two-way communications with the requested resource. */
34
+ declare function connect(
35
+ url: string | URL | UrlObject,
36
+ options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.ConnectOptions, 'origin' | 'path'>
37
+ ): Promise<Dispatcher.ConnectData>;
38
+
39
+ /** Upgrade to a different protocol. */
40
+ declare function upgrade(
41
+ url: string | URL | UrlObject,
42
+ options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.UpgradeOptions, 'origin' | 'path'>
43
+ ): Promise<Dispatcher.UpgradeData>;
@@ -0,0 +1,18 @@
1
+ import Pool from './pool'
2
+ import Dispatcher from './dispatcher'
3
+ import { URL } from 'url'
4
+
5
+ export default BalancedPool
6
+
7
+ declare class BalancedPool extends Dispatcher {
8
+ constructor(url: string | string[] | URL | URL[], options?: Pool.Options);
9
+
10
+ addUpstream(upstream: string | URL): BalancedPool;
11
+ removeUpstream(upstream: string | URL): BalancedPool;
12
+ upstreams: Array<string>;
13
+
14
+ /** `true` after `pool.close()` has been called. */
15
+ closed: boolean;
16
+ /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
17
+ destroyed: boolean;
18
+ }
@@ -0,0 +1,36 @@
1
+ import type { RequestInfo, Response, Request } from './fetch'
2
+
3
+ export interface CacheStorage {
4
+ match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>,
5
+ has (cacheName: string): Promise<boolean>,
6
+ open (cacheName: string): Promise<Cache>,
7
+ delete (cacheName: string): Promise<boolean>,
8
+ keys (): Promise<string[]>
9
+ }
10
+
11
+ declare const CacheStorage: {
12
+ prototype: CacheStorage
13
+ new(): CacheStorage
14
+ }
15
+
16
+ export interface Cache {
17
+ match (request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>,
18
+ matchAll (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Response[]>,
19
+ add (request: RequestInfo): Promise<undefined>,
20
+ addAll (requests: RequestInfo[]): Promise<undefined>,
21
+ put (request: RequestInfo, response: Response): Promise<undefined>,
22
+ delete (request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>,
23
+ keys (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Request[]>
24
+ }
25
+
26
+ export interface CacheQueryOptions {
27
+ ignoreSearch?: boolean,
28
+ ignoreMethod?: boolean,
29
+ ignoreVary?: boolean
30
+ }
31
+
32
+ export interface MultiCacheQueryOptions extends CacheQueryOptions {
33
+ cacheName?: string
34
+ }
35
+
36
+ export declare const caches: CacheStorage
@@ -0,0 +1,97 @@
1
+ import { URL } from 'url'
2
+ import { TlsOptions } from 'tls'
3
+ import Dispatcher from './dispatcher'
4
+ import buildConnector from "./connector";
5
+
6
+ /**
7
+ * A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
8
+ */
9
+ export class Client extends Dispatcher {
10
+ constructor(url: string | URL, options?: Client.Options);
11
+ /** Property to get and set the pipelining factor. */
12
+ pipelining: number;
13
+ /** `true` after `client.close()` has been called. */
14
+ closed: boolean;
15
+ /** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */
16
+ destroyed: boolean;
17
+ }
18
+
19
+ export declare namespace Client {
20
+ export interface OptionsInterceptors {
21
+ Client: readonly Dispatcher.DispatchInterceptor[];
22
+ }
23
+ export interface Options {
24
+ /** TODO */
25
+ interceptors?: OptionsInterceptors;
26
+ /** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */
27
+ maxHeaderSize?: number;
28
+ /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
29
+ headersTimeout?: number;
30
+ /** @deprecated unsupported socketTimeout, use headersTimeout & bodyTimeout instead */
31
+ socketTimeout?: never;
32
+ /** @deprecated unsupported requestTimeout, use headersTimeout & bodyTimeout instead */
33
+ requestTimeout?: never;
34
+ /** TODO */
35
+ connectTimeout?: number;
36
+ /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */
37
+ bodyTimeout?: number;
38
+ /** @deprecated unsupported idleTimeout, use keepAliveTimeout instead */
39
+ idleTimeout?: never;
40
+ /** @deprecated unsupported keepAlive, use pipelining=0 instead */
41
+ keepAlive?: never;
42
+ /** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */
43
+ keepAliveTimeout?: number;
44
+ /** @deprecated unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead */
45
+ maxKeepAliveTimeout?: never;
46
+ /** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */
47
+ keepAliveMaxTimeout?: number;
48
+ /** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */
49
+ keepAliveTimeoutThreshold?: number;
50
+ /** TODO */
51
+ socketPath?: string;
52
+ /** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */
53
+ pipelining?: number;
54
+ /** @deprecated use the connect option instead */
55
+ tls?: never;
56
+ /** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */
57
+ strictContentLength?: boolean;
58
+ /** TODO */
59
+ maxCachedSessions?: number;
60
+ /** TODO */
61
+ maxRedirections?: number;
62
+ /** TODO */
63
+ connect?: buildConnector.BuildOptions | buildConnector.connector;
64
+ /** TODO */
65
+ maxRequestsPerClient?: number;
66
+ /** TODO */
67
+ localAddress?: string;
68
+ /** Max response body size in bytes, -1 is disabled */
69
+ maxResponseSize?: number;
70
+ /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
71
+ autoSelectFamily?: boolean;
72
+ /** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */
73
+ autoSelectFamilyAttemptTimeout?: number;
74
+ /**
75
+ * @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
76
+ * @default false
77
+ */
78
+ allowH2?: boolean;
79
+ /**
80
+ * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overriden by a SETTINGS remote frame.
81
+ * @default 100
82
+ */
83
+ maxConcurrentStreams?: number
84
+ }
85
+ export interface SocketInfo {
86
+ localAddress?: string
87
+ localPort?: number
88
+ remoteAddress?: string
89
+ remotePort?: number
90
+ remoteFamily?: string
91
+ timeout?: number
92
+ bytesWritten?: number
93
+ bytesRead?: number
94
+ }
95
+ }
96
+
97
+ export default Client;
@@ -0,0 +1,34 @@
1
+ import { TLSSocket, ConnectionOptions } from 'tls'
2
+ import { IpcNetConnectOpts, Socket, TcpNetConnectOpts } from 'net'
3
+
4
+ export default buildConnector
5
+ declare function buildConnector (options?: buildConnector.BuildOptions): buildConnector.connector
6
+
7
+ declare namespace buildConnector {
8
+ export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & {
9
+ allowH2?: boolean;
10
+ maxCachedSessions?: number | null;
11
+ socketPath?: string | null;
12
+ timeout?: number | null;
13
+ port?: number;
14
+ keepAlive?: boolean | null;
15
+ keepAliveInitialDelay?: number | null;
16
+ }
17
+
18
+ export interface Options {
19
+ hostname: string
20
+ host?: string
21
+ protocol: string
22
+ port: string
23
+ servername?: string
24
+ localAddress?: string | null
25
+ httpSocket?: Socket
26
+ }
27
+
28
+ export type Callback = (...args: CallbackArgs) => void
29
+ type CallbackArgs = [null, Socket | TLSSocket] | [Error, null]
30
+
31
+ export interface connector {
32
+ (options: buildConnector.Options, callback: buildConnector.Callback): void
33
+ }
34
+ }
@@ -0,0 +1,21 @@
1
+ /// <reference types="node" />
2
+
3
+ interface MIMEType {
4
+ type: string
5
+ subtype: string
6
+ parameters: Map<string, string>
7
+ essence: string
8
+ }
9
+
10
+ /**
11
+ * Parse a string to a {@link MIMEType} object. Returns `failure` if the string
12
+ * couldn't be parsed.
13
+ * @see https://mimesniff.spec.whatwg.org/#parse-a-mime-type
14
+ */
15
+ export function parseMIMEType (input: string): 'failure' | MIMEType
16
+
17
+ /**
18
+ * Convert a MIMEType object to a string.
19
+ * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
20
+ */
21
+ export function serializeAMimeType (mimeType: MIMEType): string
@@ -0,0 +1,28 @@
1
+ /// <reference types="node" />
2
+
3
+ import type { Headers } from './fetch'
4
+
5
+ export interface Cookie {
6
+ name: string
7
+ value: string
8
+ expires?: Date | number
9
+ maxAge?: number
10
+ domain?: string
11
+ path?: string
12
+ secure?: boolean
13
+ httpOnly?: boolean
14
+ sameSite?: 'Strict' | 'Lax' | 'None'
15
+ unparsed?: string[]
16
+ }
17
+
18
+ export function deleteCookie (
19
+ headers: Headers,
20
+ name: string,
21
+ attributes?: { name?: string, domain?: string }
22
+ ): void
23
+
24
+ export function getCookies (headers: Headers): Record<string, string>
25
+
26
+ export function getSetCookies (headers: Headers): Cookie[]
27
+
28
+ export function setCookie (headers: Headers, cookie: Cookie): void
@@ -0,0 +1,67 @@
1
+ import { Socket } from "net";
2
+ import { URL } from "url";
3
+ import Connector from "./connector";
4
+ import Dispatcher from "./dispatcher";
5
+
6
+ declare namespace DiagnosticsChannel {
7
+ interface Request {
8
+ origin?: string | URL;
9
+ completed: boolean;
10
+ method?: Dispatcher.HttpMethod;
11
+ path: string;
12
+ headers: string;
13
+ addHeader(key: string, value: string): Request;
14
+ }
15
+ interface Response {
16
+ statusCode: number;
17
+ statusText: string;
18
+ headers: Array<Buffer>;
19
+ }
20
+ type Error = unknown;
21
+ interface ConnectParams {
22
+ host: URL["host"];
23
+ hostname: URL["hostname"];
24
+ protocol: URL["protocol"];
25
+ port: URL["port"];
26
+ servername: string | null;
27
+ }
28
+ type Connector = Connector.connector;
29
+ export interface RequestCreateMessage {
30
+ request: Request;
31
+ }
32
+ export interface RequestBodySentMessage {
33
+ request: Request;
34
+ }
35
+ export interface RequestHeadersMessage {
36
+ request: Request;
37
+ response: Response;
38
+ }
39
+ export interface RequestTrailersMessage {
40
+ request: Request;
41
+ trailers: Array<Buffer>;
42
+ }
43
+ export interface RequestErrorMessage {
44
+ request: Request;
45
+ error: Error;
46
+ }
47
+ export interface ClientSendHeadersMessage {
48
+ request: Request;
49
+ headers: string;
50
+ socket: Socket;
51
+ }
52
+ export interface ClientBeforeConnectMessage {
53
+ connectParams: ConnectParams;
54
+ connector: Connector;
55
+ }
56
+ export interface ClientConnectedMessage {
57
+ socket: Socket;
58
+ connectParams: ConnectParams;
59
+ connector: Connector;
60
+ }
61
+ export interface ClientConnectErrorMessage {
62
+ error: Error;
63
+ socket: Socket;
64
+ connectParams: ConnectParams;
65
+ connector: Connector;
66
+ }
67
+ }