@relative-ci/core 5.3.0-beta.0 → 5.3.0-rc.0

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 (705) hide show
  1. package/README.md +10 -0
  2. package/lib/cjs/__/@actions/http-client/__/undici/index.js +226 -0
  3. package/lib/cjs/__/@actions/http-client/__/undici/index.js.map +1 -0
  4. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js +73 -0
  5. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +1 -0
  6. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js +131 -0
  7. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +1 -0
  8. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +276 -0
  9. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +1 -0
  10. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js +238 -0
  11. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js.map +1 -0
  12. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js +246 -0
  13. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +1 -0
  14. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +131 -0
  15. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +1 -0
  16. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js +25 -0
  17. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js.map +1 -0
  18. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js +405 -0
  19. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js.map +1 -0
  20. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js +114 -0
  21. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js.map +1 -0
  22. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js +266 -0
  23. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js.map +1 -0
  24. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js +130 -0
  25. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js.map +1 -0
  26. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js +222 -0
  27. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +1 -0
  28. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js +418 -0
  29. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js.map +1 -0
  30. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js +417 -0
  31. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js.map +1 -0
  32. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js +80 -0
  33. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js.map +1 -0
  34. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js +166 -0
  35. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js.map +1 -0
  36. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js +755 -0
  37. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js.map +1 -0
  38. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +149 -0
  39. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +1 -0
  40. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js +227 -0
  41. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
  42. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js +1397 -0
  43. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +1 -0
  44. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js +768 -0
  45. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +1 -0
  46. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js +650 -0
  47. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +1 -0
  48. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +206 -0
  49. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
  50. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +83 -0
  51. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
  52. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js +177 -0
  53. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
  54. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js +129 -0
  55. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
  56. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +211 -0
  57. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +1 -0
  58. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js +49 -0
  59. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
  60. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +126 -0
  61. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +1 -0
  62. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js +299 -0
  63. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
  64. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js +50 -0
  65. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
  66. package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js +47 -0
  67. package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js.map +1 -0
  68. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js +56 -0
  69. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +1 -0
  70. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +237 -0
  71. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +1 -0
  72. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js +395 -0
  73. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +1 -0
  74. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js +397 -0
  75. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +1 -0
  76. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js +139 -0
  77. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +1 -0
  78. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js +35 -0
  79. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
  80. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js +38 -0
  81. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +1 -0
  82. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js +33 -0
  83. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +1 -0
  84. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js +288 -0
  85. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +1 -0
  86. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +23 -0
  87. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  88. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +23 -0
  89. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  90. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js +28 -0
  91. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +1 -0
  92. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +183 -0
  93. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +1 -0
  94. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js +83 -0
  95. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +1 -0
  96. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +42 -0
  97. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +1 -0
  98. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +224 -0
  99. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  100. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +83 -0
  101. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +1 -0
  102. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +35 -0
  103. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +1 -0
  104. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +390 -0
  105. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +1 -0
  106. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +63 -0
  107. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  108. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +41 -0
  109. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +1 -0
  110. package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js +435 -0
  111. package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js.map +1 -0
  112. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js +886 -0
  113. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +1 -0
  114. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js +169 -0
  115. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +1 -0
  116. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js +19 -0
  117. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +1 -0
  118. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js +65 -0
  119. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +1 -0
  120. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js +24 -0
  121. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +1 -0
  122. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js +201 -0
  123. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +1 -0
  124. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js +338 -0
  125. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +1 -0
  126. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js +294 -0
  127. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +1 -0
  128. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js +417 -0
  129. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
  130. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js +508 -0
  131. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
  132. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js +49 -0
  133. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +1 -0
  134. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js +560 -0
  135. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +1 -0
  136. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js +136 -0
  137. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +1 -0
  138. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js +762 -0
  139. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +1 -0
  140. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js +60 -0
  141. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
  142. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js +146 -0
  143. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +1 -0
  144. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js +499 -0
  145. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
  146. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +275 -0
  147. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +1 -0
  148. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js +52 -0
  149. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +1 -0
  150. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +709 -0
  151. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +1 -0
  152. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js +2235 -0
  153. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +1 -0
  154. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js +1069 -0
  155. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +1 -0
  156. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js +640 -0
  157. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +1 -0
  158. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js +21 -0
  159. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +1 -0
  160. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js +1662 -0
  161. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +1 -0
  162. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +716 -0
  163. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +1 -0
  164. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js +302 -0
  165. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +1 -0
  166. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js +361 -0
  167. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +1 -0
  168. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js +92 -0
  169. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
  170. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js +22 -0
  171. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +1 -0
  172. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +417 -0
  173. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +1 -0
  174. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js +391 -0
  175. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +1 -0
  176. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js +78 -0
  177. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +1 -0
  178. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js +350 -0
  179. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +1 -0
  180. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js +110 -0
  181. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +1 -0
  182. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +89 -0
  183. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
  184. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +451 -0
  185. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +1 -0
  186. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js +120 -0
  187. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +1 -0
  188. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js +24 -0
  189. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +1 -0
  190. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js +336 -0
  191. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +1 -0
  192. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +618 -0
  193. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +1 -0
  194. package/lib/cjs/__/@actions/http-client/lib/index.js +2 -2
  195. package/lib/cjs/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  196. package/lib/cjs/__/@octokit/core/dist-src/index.js.map +1 -0
  197. package/lib/cjs/__/@octokit/core/dist-src/version.js.map +1 -0
  198. package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +1 -1
  199. package/lib/cjs/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  200. package/lib/cjs/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  201. package/lib/cjs/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  202. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  203. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  204. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  205. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  206. package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/request/dist-bundle/index.js +5 -4
  207. package/lib/cjs/__/@octokit/request/dist-bundle/index.js.map +1 -0
  208. package/lib/cjs/__/@octokit/request-error/dist-src/index.js.map +1 -0
  209. package/lib/cjs/__/before-after-hook/index.js.map +1 -0
  210. package/lib/cjs/__/before-after-hook/lib/add.js.map +1 -0
  211. package/lib/cjs/__/before-after-hook/lib/register.js.map +1 -0
  212. package/lib/cjs/__/before-after-hook/lib/remove.js.map +1 -0
  213. package/lib/cjs/__/cross-spawn/index.js +1 -1
  214. package/lib/cjs/__/env-ci/lib/git.js +1 -1
  215. package/lib/cjs/__/{env-ci/__/execa → execa}/index.js +3 -3
  216. package/lib/cjs/__/execa/index.js.map +1 -0
  217. package/lib/cjs/__/execa/lib/command.js.map +1 -0
  218. package/lib/cjs/__/execa/lib/error.js.map +1 -0
  219. package/lib/cjs/__/execa/lib/promise.js.map +1 -0
  220. package/lib/cjs/__/execa/lib/stdio.js.map +1 -0
  221. package/lib/cjs/__/{env-ci/__/execa → execa}/lib/stream.js +1 -1
  222. package/lib/cjs/__/execa/lib/stream.js.map +1 -0
  223. package/lib/cjs/__/execa/lib/verbose.js.map +1 -0
  224. package/lib/cjs/__/get-stream/source/array-buffer.js.map +1 -0
  225. package/lib/cjs/__/human-signals/build/src/core.js.map +1 -0
  226. package/lib/cjs/__/human-signals/build/src/main.js.map +1 -0
  227. package/lib/cjs/__/human-signals/build/src/realtime.js.map +1 -0
  228. package/lib/cjs/__/human-signals/build/src/signals.js.map +1 -0
  229. package/lib/cjs/__/is-stream/index.js.map +1 -0
  230. package/lib/cjs/__/json-with-bigint/json-with-bigint.js +151 -0
  231. package/lib/cjs/__/json-with-bigint/json-with-bigint.js.map +1 -0
  232. package/lib/cjs/__/npm-run-path/__/path-key/index.js.map +1 -0
  233. package/lib/cjs/__/{env-ci/__/npm-run-path → npm-run-path}/index.js +1 -1
  234. package/lib/cjs/__/npm-run-path/index.js.map +1 -0
  235. package/lib/cjs/__/path-key/index.js +1 -1
  236. package/lib/cjs/__/signal-exit/dist/mjs/index.js.map +1 -0
  237. package/lib/cjs/__/signal-exit/dist/mjs/signals.js.map +1 -0
  238. package/lib/cjs/__/strip-final-newline/index.js.map +1 -0
  239. package/lib/cjs/__/undici/index.js +1 -1
  240. package/lib/cjs/__/undici/lib/api/api-connect.js +3 -3
  241. package/lib/cjs/__/undici/lib/api/api-pipeline.js +3 -3
  242. package/lib/cjs/__/undici/lib/api/api-request.js +3 -3
  243. package/lib/cjs/__/undici/lib/api/api-stream.js +3 -3
  244. package/lib/cjs/__/undici/lib/api/api-upgrade.js +3 -3
  245. package/lib/cjs/__/undici/lib/core/util.js +14 -14
  246. package/lib/cjs/__/undici/lib/fetch/body.js +8 -8
  247. package/lib/cjs/__/undici/lib/fetch/constants.js +3 -3
  248. package/lib/cjs/__/undici/lib/fetch/dataURL.js +5 -5
  249. package/lib/cjs/__/undici/lib/fetch/file.js +3 -3
  250. package/lib/cjs/__/undici/lib/fetch/formdata.js +3 -3
  251. package/lib/cjs/__/undici/lib/fetch/index.js +3 -3
  252. package/lib/cjs/__/undici/lib/fetch/index.js.map +1 -1
  253. package/lib/cjs/__/undici/lib/fetch/util.js +6 -6
  254. package/lib/cjs/__/undici/lib/fileapi/util.js +6 -6
  255. package/lib/cjs/__/undici/lib/websocket/events.js +3 -3
  256. package/lib/cjs/__/universal-user-agent/index.js.map +1 -0
  257. package/lib/cjs/_virtual/api-request2.js +6 -0
  258. package/lib/cjs/_virtual/api-request2.js.map +1 -0
  259. package/lib/cjs/_virtual/constants2.js +6 -0
  260. package/lib/cjs/_virtual/constants2.js.map +1 -0
  261. package/lib/cjs/_virtual/index10.js +2 -2
  262. package/lib/cjs/_virtual/index11.js +2 -2
  263. package/lib/cjs/_virtual/index14.js +2 -2
  264. package/lib/cjs/_virtual/index15.js +6 -0
  265. package/lib/cjs/_virtual/index15.js.map +1 -0
  266. package/lib/cjs/_virtual/index16.js +6 -0
  267. package/lib/cjs/_virtual/index16.js.map +1 -0
  268. package/lib/cjs/_virtual/index2.js +1 -1
  269. package/lib/cjs/_virtual/index3.js +1 -1
  270. package/lib/cjs/_virtual/index4.js +1 -1
  271. package/lib/cjs/_virtual/index8.js +2 -2
  272. package/lib/cjs/_virtual/mock-interceptor2.js +6 -0
  273. package/lib/cjs/_virtual/mock-interceptor2.js.map +1 -0
  274. package/lib/cjs/_virtual/utils4.js +6 -0
  275. package/lib/cjs/_virtual/utils4.js.map +1 -0
  276. package/lib/cjs/env/load.js +1 -1
  277. package/lib/cjs/env/load.js.map +1 -1
  278. package/lib/esm/__/@actions/http-client/__/undici/index.js +220 -0
  279. package/lib/esm/__/@actions/http-client/__/undici/index.js.map +1 -0
  280. package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js +71 -0
  281. package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +1 -0
  282. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js +124 -0
  283. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +1 -0
  284. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +268 -0
  285. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +1 -0
  286. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js +231 -0
  287. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js.map +1 -0
  288. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js +238 -0
  289. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +1 -0
  290. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +124 -0
  291. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +1 -0
  292. package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js +23 -0
  293. package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js.map +1 -0
  294. package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js +398 -0
  295. package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js.map +1 -0
  296. package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js +108 -0
  297. package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js.map +1 -0
  298. package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js +258 -0
  299. package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js.map +1 -0
  300. package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js +128 -0
  301. package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js.map +1 -0
  302. package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js +215 -0
  303. package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +1 -0
  304. package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js +416 -0
  305. package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js.map +1 -0
  306. package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js +411 -0
  307. package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js.map +1 -0
  308. package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js +78 -0
  309. package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js.map +1 -0
  310. package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js +164 -0
  311. package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js.map +1 -0
  312. package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js +742 -0
  313. package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js.map +1 -0
  314. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +147 -0
  315. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +1 -0
  316. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js +225 -0
  317. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
  318. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js +1391 -0
  319. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +1 -0
  320. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js +761 -0
  321. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +1 -0
  322. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js +642 -0
  323. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +1 -0
  324. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +204 -0
  325. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
  326. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +77 -0
  327. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
  328. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js +175 -0
  329. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
  330. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js +127 -0
  331. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
  332. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +209 -0
  333. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +1 -0
  334. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js +47 -0
  335. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
  336. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +124 -0
  337. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +1 -0
  338. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js +293 -0
  339. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
  340. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js +48 -0
  341. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
  342. package/lib/esm/__/@actions/http-client/__/undici/lib/global.js +45 -0
  343. package/lib/esm/__/@actions/http-client/__/undici/lib/global.js.map +1 -0
  344. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js +54 -0
  345. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +1 -0
  346. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +230 -0
  347. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +1 -0
  348. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js +389 -0
  349. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +1 -0
  350. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js +390 -0
  351. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +1 -0
  352. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js +137 -0
  353. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +1 -0
  354. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js +33 -0
  355. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
  356. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js +36 -0
  357. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +1 -0
  358. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js +31 -0
  359. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +1 -0
  360. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js +286 -0
  361. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +1 -0
  362. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +17 -0
  363. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  364. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +17 -0
  365. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  366. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js +26 -0
  367. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +1 -0
  368. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +181 -0
  369. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +1 -0
  370. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js +77 -0
  371. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +1 -0
  372. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +40 -0
  373. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +1 -0
  374. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +222 -0
  375. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  376. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +77 -0
  377. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +1 -0
  378. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +33 -0
  379. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +1 -0
  380. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +383 -0
  381. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +1 -0
  382. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +56 -0
  383. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  384. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +39 -0
  385. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +1 -0
  386. package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js +433 -0
  387. package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js.map +1 -0
  388. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js +880 -0
  389. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +1 -0
  390. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js +167 -0
  391. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +1 -0
  392. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js +17 -0
  393. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +1 -0
  394. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js +59 -0
  395. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +1 -0
  396. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js +22 -0
  397. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +1 -0
  398. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js +199 -0
  399. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +1 -0
  400. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js +332 -0
  401. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +1 -0
  402. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js +292 -0
  403. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +1 -0
  404. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js +411 -0
  405. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
  406. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js +502 -0
  407. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
  408. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js +47 -0
  409. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +1 -0
  410. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js +551 -0
  411. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +1 -0
  412. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js +134 -0
  413. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +1 -0
  414. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js +756 -0
  415. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +1 -0
  416. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js +58 -0
  417. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
  418. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js +140 -0
  419. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +1 -0
  420. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js +492 -0
  421. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
  422. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +268 -0
  423. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +1 -0
  424. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js +50 -0
  425. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +1 -0
  426. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +702 -0
  427. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +1 -0
  428. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js +2224 -0
  429. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +1 -0
  430. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js +1061 -0
  431. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +1 -0
  432. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js +633 -0
  433. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +1 -0
  434. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js +19 -0
  435. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +1 -0
  436. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js +1652 -0
  437. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +1 -0
  438. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +709 -0
  439. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +1 -0
  440. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js +300 -0
  441. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +1 -0
  442. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js +359 -0
  443. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +1 -0
  444. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js +90 -0
  445. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
  446. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js +20 -0
  447. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +1 -0
  448. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +409 -0
  449. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +1 -0
  450. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js +389 -0
  451. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +1 -0
  452. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js +76 -0
  453. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +1 -0
  454. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js +344 -0
  455. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +1 -0
  456. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js +108 -0
  457. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +1 -0
  458. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +83 -0
  459. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
  460. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +444 -0
  461. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +1 -0
  462. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js +118 -0
  463. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +1 -0
  464. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js +22 -0
  465. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +1 -0
  466. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js +330 -0
  467. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +1 -0
  468. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +612 -0
  469. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +1 -0
  470. package/lib/esm/__/@actions/http-client/lib/index.js +2 -2
  471. package/lib/esm/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  472. package/lib/esm/__/@octokit/core/dist-src/index.js.map +1 -0
  473. package/lib/esm/__/@octokit/core/dist-src/version.js.map +1 -0
  474. package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +1 -1
  475. package/lib/esm/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  476. package/lib/esm/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  477. package/lib/esm/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  478. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  479. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  480. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  481. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  482. package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/request/dist-bundle/index.js +5 -4
  483. package/lib/esm/__/@octokit/request/dist-bundle/index.js.map +1 -0
  484. package/lib/esm/__/@octokit/request-error/dist-src/index.js.map +1 -0
  485. package/lib/esm/__/before-after-hook/index.js.map +1 -0
  486. package/lib/esm/__/before-after-hook/lib/add.js.map +1 -0
  487. package/lib/esm/__/before-after-hook/lib/register.js.map +1 -0
  488. package/lib/esm/__/before-after-hook/lib/remove.js.map +1 -0
  489. package/lib/esm/__/cross-spawn/index.js +1 -1
  490. package/lib/esm/__/env-ci/lib/git.js +1 -1
  491. package/lib/esm/__/{env-ci/__/execa → execa}/index.js +1 -1
  492. package/lib/esm/__/execa/index.js.map +1 -0
  493. package/lib/esm/__/execa/lib/command.js.map +1 -0
  494. package/lib/esm/__/execa/lib/error.js.map +1 -0
  495. package/lib/esm/__/execa/lib/promise.js.map +1 -0
  496. package/lib/esm/__/execa/lib/stdio.js.map +1 -0
  497. package/lib/esm/__/{env-ci/__/execa → execa}/lib/stream.js +1 -1
  498. package/lib/esm/__/execa/lib/stream.js.map +1 -0
  499. package/lib/esm/__/execa/lib/verbose.js.map +1 -0
  500. package/lib/esm/__/get-stream/source/array-buffer.js.map +1 -0
  501. package/lib/esm/__/human-signals/build/src/core.js.map +1 -0
  502. package/lib/esm/__/human-signals/build/src/main.js.map +1 -0
  503. package/lib/esm/__/human-signals/build/src/realtime.js.map +1 -0
  504. package/lib/esm/__/human-signals/build/src/signals.js.map +1 -0
  505. package/lib/esm/__/is-stream/index.js.map +1 -0
  506. package/lib/esm/__/java-properties/dist-node/index.js +1 -1
  507. package/lib/esm/__/json-with-bigint/json-with-bigint.js +148 -0
  508. package/lib/esm/__/json-with-bigint/json-with-bigint.js.map +1 -0
  509. package/lib/esm/__/npm-run-path/__/path-key/index.js.map +1 -0
  510. package/lib/esm/__/{env-ci/__/npm-run-path → npm-run-path}/index.js +1 -1
  511. package/lib/esm/__/npm-run-path/index.js.map +1 -0
  512. package/lib/esm/__/path-key/index.js +1 -1
  513. package/lib/esm/__/signal-exit/dist/mjs/index.js.map +1 -0
  514. package/lib/esm/__/signal-exit/dist/mjs/signals.js.map +1 -0
  515. package/lib/esm/__/strip-final-newline/index.js.map +1 -0
  516. package/lib/esm/__/undici/index.js +1 -1
  517. package/lib/esm/__/undici/lib/api/api-connect.js +2 -2
  518. package/lib/esm/__/undici/lib/api/api-pipeline.js +2 -2
  519. package/lib/esm/__/undici/lib/api/api-request.js +2 -2
  520. package/lib/esm/__/undici/lib/api/api-request.js.map +1 -1
  521. package/lib/esm/__/undici/lib/api/api-stream.js +2 -2
  522. package/lib/esm/__/undici/lib/api/api-stream.js.map +1 -1
  523. package/lib/esm/__/undici/lib/api/api-upgrade.js +2 -2
  524. package/lib/esm/__/undici/lib/api/api-upgrade.js.map +1 -1
  525. package/lib/esm/__/undici/lib/core/util.js +10 -10
  526. package/lib/esm/__/undici/lib/core/util.js.map +1 -1
  527. package/lib/esm/__/undici/lib/fetch/body.js +6 -6
  528. package/lib/esm/__/undici/lib/fetch/body.js.map +1 -1
  529. package/lib/esm/__/undici/lib/fetch/constants.js +2 -2
  530. package/lib/esm/__/undici/lib/fetch/constants.js.map +1 -1
  531. package/lib/esm/__/undici/lib/fetch/dataURL.js +4 -4
  532. package/lib/esm/__/undici/lib/fetch/dataURL.js.map +1 -1
  533. package/lib/esm/__/undici/lib/fetch/file.js +2 -2
  534. package/lib/esm/__/undici/lib/fetch/file.js.map +1 -1
  535. package/lib/esm/__/undici/lib/fetch/formdata.js +2 -2
  536. package/lib/esm/__/undici/lib/fetch/index.js +2 -2
  537. package/lib/esm/__/undici/lib/fetch/index.js.map +1 -1
  538. package/lib/esm/__/undici/lib/fetch/util.js +4 -4
  539. package/lib/esm/__/undici/lib/fetch/util.js.map +1 -1
  540. package/lib/esm/__/undici/lib/fileapi/util.js +4 -4
  541. package/lib/esm/__/undici/lib/fileapi/util.js.map +1 -1
  542. package/lib/esm/__/undici/lib/websocket/events.js +2 -2
  543. package/lib/esm/__/universal-user-agent/index.js.map +1 -0
  544. package/lib/esm/_virtual/api-request2.js +4 -0
  545. package/lib/esm/_virtual/api-request2.js.map +1 -0
  546. package/lib/esm/_virtual/constants2.js +4 -0
  547. package/lib/esm/_virtual/constants2.js.map +1 -0
  548. package/lib/esm/_virtual/index10.js +4 -2
  549. package/lib/esm/_virtual/index10.js.map +1 -1
  550. package/lib/esm/_virtual/index11.js +2 -2
  551. package/lib/esm/_virtual/index14.js +2 -2
  552. package/lib/esm/_virtual/index15.js +4 -0
  553. package/lib/esm/_virtual/index15.js.map +1 -0
  554. package/lib/esm/_virtual/index16.js +4 -0
  555. package/lib/esm/_virtual/index16.js.map +1 -0
  556. package/lib/esm/_virtual/index2.js +1 -1
  557. package/lib/esm/_virtual/index3.js +1 -1
  558. package/lib/esm/_virtual/index4.js +1 -1
  559. package/lib/esm/_virtual/index5.js +2 -6
  560. package/lib/esm/_virtual/index5.js.map +1 -1
  561. package/lib/esm/_virtual/index6.js +6 -2
  562. package/lib/esm/_virtual/index6.js.map +1 -1
  563. package/lib/esm/_virtual/index8.js +2 -4
  564. package/lib/esm/_virtual/index8.js.map +1 -1
  565. package/lib/esm/_virtual/index9.js +2 -2
  566. package/lib/esm/_virtual/mock-interceptor2.js +4 -0
  567. package/lib/esm/_virtual/mock-interceptor2.js.map +1 -0
  568. package/lib/esm/_virtual/utils4.js +4 -0
  569. package/lib/esm/_virtual/utils4.js.map +1 -0
  570. package/lib/esm/env/load.js +1 -1
  571. package/lib/esm/env/load.js.map +1 -1
  572. package/lib/types/env/load.d.ts +5 -5
  573. package/lib/types/utils/log-response.d.ts +5 -5
  574. package/lib/types/utils/logger.d.ts +5 -5
  575. package/package.json +9 -9
  576. package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
  577. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
  578. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
  579. package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
  580. package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
  581. package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
  582. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
  583. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
  584. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
  585. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
  586. package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
  587. package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
  588. package/lib/cjs/__/@actions/github/__/before-after-hook/index.js.map +0 -1
  589. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
  590. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
  591. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
  592. package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
  593. package/lib/cjs/__/env-ci/__/execa/index.js.map +0 -1
  594. package/lib/cjs/__/env-ci/__/execa/lib/command.js.map +0 -1
  595. package/lib/cjs/__/env-ci/__/execa/lib/error.js.map +0 -1
  596. package/lib/cjs/__/env-ci/__/execa/lib/promise.js.map +0 -1
  597. package/lib/cjs/__/env-ci/__/execa/lib/stdio.js.map +0 -1
  598. package/lib/cjs/__/env-ci/__/execa/lib/stream.js.map +0 -1
  599. package/lib/cjs/__/env-ci/__/execa/lib/verbose.js.map +0 -1
  600. package/lib/cjs/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
  601. package/lib/cjs/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
  602. package/lib/cjs/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
  603. package/lib/cjs/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
  604. package/lib/cjs/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
  605. package/lib/cjs/__/env-ci/__/is-stream/index.js.map +0 -1
  606. package/lib/cjs/__/env-ci/__/npm-run-path/index.js.map +0 -1
  607. package/lib/cjs/__/env-ci/__/path-key/index.js.map +0 -1
  608. package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
  609. package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
  610. package/lib/cjs/__/env-ci/__/strip-final-newline/index.js.map +0 -1
  611. package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
  612. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
  613. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
  614. package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
  615. package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
  616. package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
  617. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
  618. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
  619. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
  620. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
  621. package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
  622. package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
  623. package/lib/esm/__/@actions/github/__/before-after-hook/index.js.map +0 -1
  624. package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
  625. package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
  626. package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
  627. package/lib/esm/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
  628. package/lib/esm/__/env-ci/__/execa/index.js.map +0 -1
  629. package/lib/esm/__/env-ci/__/execa/lib/command.js.map +0 -1
  630. package/lib/esm/__/env-ci/__/execa/lib/error.js.map +0 -1
  631. package/lib/esm/__/env-ci/__/execa/lib/promise.js.map +0 -1
  632. package/lib/esm/__/env-ci/__/execa/lib/stdio.js.map +0 -1
  633. package/lib/esm/__/env-ci/__/execa/lib/stream.js.map +0 -1
  634. package/lib/esm/__/env-ci/__/execa/lib/verbose.js.map +0 -1
  635. package/lib/esm/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
  636. package/lib/esm/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
  637. package/lib/esm/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
  638. package/lib/esm/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
  639. package/lib/esm/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
  640. package/lib/esm/__/env-ci/__/is-stream/index.js.map +0 -1
  641. package/lib/esm/__/env-ci/__/npm-run-path/index.js.map +0 -1
  642. package/lib/esm/__/env-ci/__/path-key/index.js.map +0 -1
  643. package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
  644. package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
  645. package/lib/esm/__/env-ci/__/strip-final-newline/index.js.map +0 -1
  646. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
  647. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
  648. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
  649. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
  650. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
  651. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
  652. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
  653. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
  654. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
  655. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
  656. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
  657. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
  658. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
  659. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
  660. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
  661. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
  662. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
  663. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
  664. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/verbose.js +0 -0
  665. /package/lib/cjs/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
  666. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
  667. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
  668. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
  669. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
  670. /package/lib/cjs/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
  671. /package/lib/cjs/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
  672. /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
  673. /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
  674. /package/lib/cjs/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
  675. /package/lib/cjs/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
  676. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
  677. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
  678. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
  679. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
  680. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
  681. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
  682. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
  683. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
  684. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
  685. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
  686. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
  687. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
  688. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
  689. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
  690. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
  691. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
  692. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
  693. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
  694. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/verbose.js +0 -0
  695. /package/lib/esm/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
  696. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
  697. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
  698. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
  699. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
  700. /package/lib/esm/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
  701. /package/lib/esm/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
  702. /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
  703. /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
  704. /package/lib/esm/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
  705. /package/lib/esm/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
@@ -0,0 +1,1397 @@
1
+ 'use strict';
2
+
3
+ var require$$0 = require('node:assert');
4
+ var util = require('../core/util.js');
5
+ var diagnostics = require('../core/diagnostics.js');
6
+ var timers = require('../util/timers.js');
7
+ var errors = require('../core/errors.js');
8
+ var symbols = require('../core/symbols.js');
9
+ var constants = require('../llhttp/constants.js');
10
+ var llhttpWasm = require('../llhttp/llhttp-wasm.js');
11
+ var llhttp_simdWasm = require('../llhttp/llhttp_simd-wasm.js');
12
+ var body = require('../web/fetch/body.js');
13
+
14
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
15
+
16
+ var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
17
+
18
+ var clientH1;
19
+ var hasRequiredClientH1;
20
+
21
+ function requireClientH1 () {
22
+ if (hasRequiredClientH1) return clientH1;
23
+ hasRequiredClientH1 = 1;
24
+
25
+ /* global WebAssembly */
26
+
27
+ const assert = require$$0__default.default;
28
+ const util$1 = util.__require();
29
+ const { channels } = diagnostics.__require();
30
+ const timers$1 = timers.__require();
31
+ const {
32
+ RequestContentLengthMismatchError,
33
+ ResponseContentLengthMismatchError,
34
+ RequestAbortedError,
35
+ HeadersTimeoutError,
36
+ HeadersOverflowError,
37
+ SocketError,
38
+ InformationalError,
39
+ BodyTimeoutError,
40
+ HTTPParserError,
41
+ ResponseExceededMaxSizeError
42
+ } = errors.__require();
43
+ const {
44
+ kUrl,
45
+ kReset,
46
+ kClient,
47
+ kParser,
48
+ kBlocking,
49
+ kRunning,
50
+ kPending,
51
+ kSize,
52
+ kWriting,
53
+ kQueue,
54
+ kNoRef,
55
+ kKeepAliveDefaultTimeout,
56
+ kHostHeader,
57
+ kPendingIdx,
58
+ kRunningIdx,
59
+ kError,
60
+ kPipelining,
61
+ kSocket,
62
+ kKeepAliveTimeoutValue,
63
+ kMaxHeadersSize,
64
+ kKeepAliveMaxTimeout,
65
+ kKeepAliveTimeoutThreshold,
66
+ kHeadersTimeout,
67
+ kBodyTimeout,
68
+ kStrictContentLength,
69
+ kMaxRequests,
70
+ kCounter,
71
+ kMaxResponseSize,
72
+ kOnError,
73
+ kResume,
74
+ kHTTPContext
75
+ } = symbols.__require();
76
+
77
+ const constants$1 = constants.__require();
78
+ const EMPTY_BUF = Buffer.alloc(0);
79
+ const FastBuffer = Buffer[Symbol.species];
80
+ const addListener = util$1.addListener;
81
+ const removeAllListeners = util$1.removeAllListeners;
82
+
83
+ let extractBody;
84
+
85
+ async function lazyllhttp () {
86
+ const llhttpWasmData = process.env.JEST_WORKER_ID ? llhttpWasm.__require() : undefined;
87
+
88
+ let mod;
89
+ try {
90
+ mod = await WebAssembly.compile(llhttp_simdWasm.__require());
91
+ } catch (e) {
92
+ /* istanbul ignore next */
93
+
94
+ // We could check if the error was caused by the simd option not
95
+ // being enabled, but the occurring of this other error
96
+ // * https://github.com/emscripten-core/emscripten/issues/11495
97
+ // got me to remove that check to avoid breaking Node 12.
98
+ mod = await WebAssembly.compile(llhttpWasmData || llhttpWasm.__require());
99
+ }
100
+
101
+ return await WebAssembly.instantiate(mod, {
102
+ env: {
103
+ /* eslint-disable camelcase */
104
+
105
+ wasm_on_url: (p, at, len) => {
106
+ /* istanbul ignore next */
107
+ return 0
108
+ },
109
+ wasm_on_status: (p, at, len) => {
110
+ assert(currentParser.ptr === p);
111
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset;
112
+ return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
113
+ },
114
+ wasm_on_message_begin: (p) => {
115
+ assert(currentParser.ptr === p);
116
+ return currentParser.onMessageBegin() || 0
117
+ },
118
+ wasm_on_header_field: (p, at, len) => {
119
+ assert(currentParser.ptr === p);
120
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset;
121
+ return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
122
+ },
123
+ wasm_on_header_value: (p, at, len) => {
124
+ assert(currentParser.ptr === p);
125
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset;
126
+ return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
127
+ },
128
+ wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {
129
+ assert(currentParser.ptr === p);
130
+ return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0
131
+ },
132
+ wasm_on_body: (p, at, len) => {
133
+ assert(currentParser.ptr === p);
134
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset;
135
+ return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
136
+ },
137
+ wasm_on_message_complete: (p) => {
138
+ assert(currentParser.ptr === p);
139
+ return currentParser.onMessageComplete() || 0
140
+ }
141
+
142
+ /* eslint-enable camelcase */
143
+ }
144
+ })
145
+ }
146
+
147
+ let llhttpInstance = null;
148
+ let llhttpPromise = lazyllhttp();
149
+ llhttpPromise.catch();
150
+
151
+ let currentParser = null;
152
+ let currentBufferRef = null;
153
+ let currentBufferSize = 0;
154
+ let currentBufferPtr = null;
155
+
156
+ const USE_NATIVE_TIMER = 0;
157
+ const USE_FAST_TIMER = 1;
158
+
159
+ // Use fast timers for headers and body to take eventual event loop
160
+ // latency into account.
161
+ const TIMEOUT_HEADERS = 2 | USE_FAST_TIMER;
162
+ const TIMEOUT_BODY = 4 | USE_FAST_TIMER;
163
+
164
+ // Use native timers to ignore event loop latency for keep-alive
165
+ // handling.
166
+ const TIMEOUT_KEEP_ALIVE = 8 | USE_NATIVE_TIMER;
167
+
168
+ class Parser {
169
+ constructor (client, socket, { exports: exports$1 }) {
170
+ assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0);
171
+
172
+ this.llhttp = exports$1;
173
+ this.ptr = this.llhttp.llhttp_alloc(constants$1.TYPE.RESPONSE);
174
+ this.client = client;
175
+ this.socket = socket;
176
+ this.timeout = null;
177
+ this.timeoutValue = null;
178
+ this.timeoutType = null;
179
+ this.statusCode = null;
180
+ this.statusText = '';
181
+ this.upgrade = false;
182
+ this.headers = [];
183
+ this.headersSize = 0;
184
+ this.headersMaxSize = client[kMaxHeadersSize];
185
+ this.shouldKeepAlive = false;
186
+ this.paused = false;
187
+ this.resume = this.resume.bind(this);
188
+
189
+ this.bytesRead = 0;
190
+
191
+ this.keepAlive = '';
192
+ this.contentLength = '';
193
+ this.connection = '';
194
+ this.maxResponseSize = client[kMaxResponseSize];
195
+ }
196
+
197
+ setTimeout (delay, type) {
198
+ // If the existing timer and the new timer are of different timer type
199
+ // (fast or native) or have different delay, we need to clear the existing
200
+ // timer and set a new one.
201
+ if (
202
+ delay !== this.timeoutValue ||
203
+ (type & USE_FAST_TIMER) ^ (this.timeoutType & USE_FAST_TIMER)
204
+ ) {
205
+ // If a timeout is already set, clear it with clearTimeout of the fast
206
+ // timer implementation, as it can clear fast and native timers.
207
+ if (this.timeout) {
208
+ timers$1.clearTimeout(this.timeout);
209
+ this.timeout = null;
210
+ }
211
+
212
+ if (delay) {
213
+ if (type & USE_FAST_TIMER) {
214
+ this.timeout = timers$1.setFastTimeout(onParserTimeout, delay, new WeakRef(this));
215
+ } else {
216
+ this.timeout = setTimeout(onParserTimeout, delay, new WeakRef(this));
217
+ this.timeout.unref();
218
+ }
219
+ }
220
+
221
+ this.timeoutValue = delay;
222
+ } else if (this.timeout) {
223
+ // istanbul ignore else: only for jest
224
+ if (this.timeout.refresh) {
225
+ this.timeout.refresh();
226
+ }
227
+ }
228
+
229
+ this.timeoutType = type;
230
+ }
231
+
232
+ resume () {
233
+ if (this.socket.destroyed || !this.paused) {
234
+ return
235
+ }
236
+
237
+ assert(this.ptr != null);
238
+ assert(currentParser == null);
239
+
240
+ this.llhttp.llhttp_resume(this.ptr);
241
+
242
+ assert(this.timeoutType === TIMEOUT_BODY);
243
+ if (this.timeout) {
244
+ // istanbul ignore else: only for jest
245
+ if (this.timeout.refresh) {
246
+ this.timeout.refresh();
247
+ }
248
+ }
249
+
250
+ this.paused = false;
251
+ this.execute(this.socket.read() || EMPTY_BUF); // Flush parser.
252
+ this.readMore();
253
+ }
254
+
255
+ readMore () {
256
+ while (!this.paused && this.ptr) {
257
+ const chunk = this.socket.read();
258
+ if (chunk === null) {
259
+ break
260
+ }
261
+ this.execute(chunk);
262
+ }
263
+ }
264
+
265
+ execute (data) {
266
+ assert(this.ptr != null);
267
+ assert(currentParser == null);
268
+ assert(!this.paused);
269
+
270
+ const { socket, llhttp } = this;
271
+
272
+ if (data.length > currentBufferSize) {
273
+ if (currentBufferPtr) {
274
+ llhttp.free(currentBufferPtr);
275
+ }
276
+ currentBufferSize = Math.ceil(data.length / 4096) * 4096;
277
+ currentBufferPtr = llhttp.malloc(currentBufferSize);
278
+ }
279
+
280
+ new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(data);
281
+
282
+ // Call `execute` on the wasm parser.
283
+ // We pass the `llhttp_parser` pointer address, the pointer address of buffer view data,
284
+ // and finally the length of bytes to parse.
285
+ // The return value is an error code or `constants.ERROR.OK`.
286
+ try {
287
+ let ret;
288
+
289
+ try {
290
+ currentBufferRef = data;
291
+ currentParser = this;
292
+ ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, data.length);
293
+ /* eslint-disable-next-line no-useless-catch */
294
+ } catch (err) {
295
+ /* istanbul ignore next: difficult to make a test case for */
296
+ throw err
297
+ } finally {
298
+ currentParser = null;
299
+ currentBufferRef = null;
300
+ }
301
+
302
+ const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr;
303
+
304
+ if (ret === constants$1.ERROR.PAUSED_UPGRADE) {
305
+ this.onUpgrade(data.slice(offset));
306
+ } else if (ret === constants$1.ERROR.PAUSED) {
307
+ this.paused = true;
308
+ socket.unshift(data.slice(offset));
309
+ } else if (ret !== constants$1.ERROR.OK) {
310
+ const ptr = llhttp.llhttp_get_error_reason(this.ptr);
311
+ let message = '';
312
+ /* istanbul ignore else: difficult to make a test case for */
313
+ if (ptr) {
314
+ const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0);
315
+ message =
316
+ 'Response does not match the HTTP/1.1 protocol (' +
317
+ Buffer.from(llhttp.memory.buffer, ptr, len).toString() +
318
+ ')';
319
+ }
320
+ throw new HTTPParserError(message, constants$1.ERROR[ret], data.slice(offset))
321
+ }
322
+ } catch (err) {
323
+ util$1.destroy(socket, err);
324
+ }
325
+ }
326
+
327
+ destroy () {
328
+ assert(this.ptr != null);
329
+ assert(currentParser == null);
330
+
331
+ this.llhttp.llhttp_free(this.ptr);
332
+ this.ptr = null;
333
+
334
+ this.timeout && timers$1.clearTimeout(this.timeout);
335
+ this.timeout = null;
336
+ this.timeoutValue = null;
337
+ this.timeoutType = null;
338
+
339
+ this.paused = false;
340
+ }
341
+
342
+ onStatus (buf) {
343
+ this.statusText = buf.toString();
344
+ }
345
+
346
+ onMessageBegin () {
347
+ const { socket, client } = this;
348
+
349
+ /* istanbul ignore next: difficult to make a test case for */
350
+ if (socket.destroyed) {
351
+ return -1
352
+ }
353
+
354
+ const request = client[kQueue][client[kRunningIdx]];
355
+ if (!request) {
356
+ return -1
357
+ }
358
+ request.onResponseStarted();
359
+ }
360
+
361
+ onHeaderField (buf) {
362
+ const len = this.headers.length;
363
+
364
+ if ((len & 1) === 0) {
365
+ this.headers.push(buf);
366
+ } else {
367
+ this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf]);
368
+ }
369
+
370
+ this.trackHeader(buf.length);
371
+ }
372
+
373
+ onHeaderValue (buf) {
374
+ let len = this.headers.length;
375
+
376
+ if ((len & 1) === 1) {
377
+ this.headers.push(buf);
378
+ len += 1;
379
+ } else {
380
+ this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf]);
381
+ }
382
+
383
+ const key = this.headers[len - 2];
384
+ if (key.length === 10) {
385
+ const headerName = util$1.bufferToLowerCasedHeaderName(key);
386
+ if (headerName === 'keep-alive') {
387
+ this.keepAlive += buf.toString();
388
+ } else if (headerName === 'connection') {
389
+ this.connection += buf.toString();
390
+ }
391
+ } else if (key.length === 14 && util$1.bufferToLowerCasedHeaderName(key) === 'content-length') {
392
+ this.contentLength += buf.toString();
393
+ }
394
+
395
+ this.trackHeader(buf.length);
396
+ }
397
+
398
+ trackHeader (len) {
399
+ this.headersSize += len;
400
+ if (this.headersSize >= this.headersMaxSize) {
401
+ util$1.destroy(this.socket, new HeadersOverflowError());
402
+ }
403
+ }
404
+
405
+ onUpgrade (head) {
406
+ const { upgrade, client, socket, headers, statusCode } = this;
407
+
408
+ assert(upgrade);
409
+ assert(client[kSocket] === socket);
410
+ assert(!socket.destroyed);
411
+ assert(!this.paused);
412
+ assert((headers.length & 1) === 0);
413
+
414
+ const request = client[kQueue][client[kRunningIdx]];
415
+ assert(request);
416
+ assert(request.upgrade || request.method === 'CONNECT');
417
+
418
+ this.statusCode = null;
419
+ this.statusText = '';
420
+ this.shouldKeepAlive = null;
421
+
422
+ this.headers = [];
423
+ this.headersSize = 0;
424
+
425
+ socket.unshift(head);
426
+
427
+ socket[kParser].destroy();
428
+ socket[kParser] = null;
429
+
430
+ socket[kClient] = null;
431
+ socket[kError] = null;
432
+
433
+ removeAllListeners(socket);
434
+
435
+ client[kSocket] = null;
436
+ client[kHTTPContext] = null; // TODO (fix): This is hacky...
437
+ client[kQueue][client[kRunningIdx]++] = null;
438
+ client.emit('disconnect', client[kUrl], [client], new InformationalError('upgrade'));
439
+
440
+ try {
441
+ request.onUpgrade(statusCode, headers, socket);
442
+ } catch (err) {
443
+ util$1.destroy(socket, err);
444
+ }
445
+
446
+ client[kResume]();
447
+ }
448
+
449
+ onHeadersComplete (statusCode, upgrade, shouldKeepAlive) {
450
+ const { client, socket, headers, statusText } = this;
451
+
452
+ /* istanbul ignore next: difficult to make a test case for */
453
+ if (socket.destroyed) {
454
+ return -1
455
+ }
456
+
457
+ const request = client[kQueue][client[kRunningIdx]];
458
+
459
+ /* istanbul ignore next: difficult to make a test case for */
460
+ if (!request) {
461
+ return -1
462
+ }
463
+
464
+ assert(!this.upgrade);
465
+ assert(this.statusCode < 200);
466
+
467
+ if (statusCode === 100) {
468
+ util$1.destroy(socket, new SocketError('bad response', util$1.getSocketInfo(socket)));
469
+ return -1
470
+ }
471
+
472
+ /* this can only happen if server is misbehaving */
473
+ if (upgrade && !request.upgrade) {
474
+ util$1.destroy(socket, new SocketError('bad upgrade', util$1.getSocketInfo(socket)));
475
+ return -1
476
+ }
477
+
478
+ assert(this.timeoutType === TIMEOUT_HEADERS);
479
+
480
+ this.statusCode = statusCode;
481
+ this.shouldKeepAlive = (
482
+ shouldKeepAlive ||
483
+ // Override llhttp value which does not allow keepAlive for HEAD.
484
+ (request.method === 'HEAD' && !socket[kReset] && this.connection.toLowerCase() === 'keep-alive')
485
+ );
486
+
487
+ if (this.statusCode >= 200) {
488
+ const bodyTimeout = request.bodyTimeout != null
489
+ ? request.bodyTimeout
490
+ : client[kBodyTimeout];
491
+ this.setTimeout(bodyTimeout, TIMEOUT_BODY);
492
+ } else if (this.timeout) {
493
+ // istanbul ignore else: only for jest
494
+ if (this.timeout.refresh) {
495
+ this.timeout.refresh();
496
+ }
497
+ }
498
+
499
+ if (request.method === 'CONNECT') {
500
+ assert(client[kRunning] === 1);
501
+ this.upgrade = true;
502
+ return 2
503
+ }
504
+
505
+ if (upgrade) {
506
+ assert(client[kRunning] === 1);
507
+ this.upgrade = true;
508
+ return 2
509
+ }
510
+
511
+ assert((this.headers.length & 1) === 0);
512
+ this.headers = [];
513
+ this.headersSize = 0;
514
+
515
+ if (this.shouldKeepAlive && client[kPipelining]) {
516
+ const keepAliveTimeout = this.keepAlive ? util$1.parseKeepAliveTimeout(this.keepAlive) : null;
517
+
518
+ if (keepAliveTimeout != null) {
519
+ const timeout = Math.min(
520
+ keepAliveTimeout - client[kKeepAliveTimeoutThreshold],
521
+ client[kKeepAliveMaxTimeout]
522
+ );
523
+ if (timeout <= 0) {
524
+ socket[kReset] = true;
525
+ } else {
526
+ client[kKeepAliveTimeoutValue] = timeout;
527
+ }
528
+ } else {
529
+ client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout];
530
+ }
531
+ } else {
532
+ // Stop more requests from being dispatched.
533
+ socket[kReset] = true;
534
+ }
535
+
536
+ const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false;
537
+
538
+ if (request.aborted) {
539
+ return -1
540
+ }
541
+
542
+ if (request.method === 'HEAD') {
543
+ return 1
544
+ }
545
+
546
+ if (statusCode < 200) {
547
+ return 1
548
+ }
549
+
550
+ if (socket[kBlocking]) {
551
+ socket[kBlocking] = false;
552
+ client[kResume]();
553
+ }
554
+
555
+ return pause ? constants$1.ERROR.PAUSED : 0
556
+ }
557
+
558
+ onBody (buf) {
559
+ const { client, socket, statusCode, maxResponseSize } = this;
560
+
561
+ if (socket.destroyed) {
562
+ return -1
563
+ }
564
+
565
+ const request = client[kQueue][client[kRunningIdx]];
566
+ assert(request);
567
+
568
+ assert(this.timeoutType === TIMEOUT_BODY);
569
+ if (this.timeout) {
570
+ // istanbul ignore else: only for jest
571
+ if (this.timeout.refresh) {
572
+ this.timeout.refresh();
573
+ }
574
+ }
575
+
576
+ assert(statusCode >= 200);
577
+
578
+ if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
579
+ util$1.destroy(socket, new ResponseExceededMaxSizeError());
580
+ return -1
581
+ }
582
+
583
+ this.bytesRead += buf.length;
584
+
585
+ if (request.onData(buf) === false) {
586
+ return constants$1.ERROR.PAUSED
587
+ }
588
+ }
589
+
590
+ onMessageComplete () {
591
+ const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this;
592
+
593
+ if (socket.destroyed && (!statusCode || shouldKeepAlive)) {
594
+ return -1
595
+ }
596
+
597
+ if (upgrade) {
598
+ return
599
+ }
600
+
601
+ assert(statusCode >= 100);
602
+ assert((this.headers.length & 1) === 0);
603
+
604
+ const request = client[kQueue][client[kRunningIdx]];
605
+ assert(request);
606
+
607
+ this.statusCode = null;
608
+ this.statusText = '';
609
+ this.bytesRead = 0;
610
+ this.contentLength = '';
611
+ this.keepAlive = '';
612
+ this.connection = '';
613
+
614
+ this.headers = [];
615
+ this.headersSize = 0;
616
+
617
+ if (statusCode < 200) {
618
+ return
619
+ }
620
+
621
+ /* istanbul ignore next: should be handled by llhttp? */
622
+ if (request.method !== 'HEAD' && contentLength && bytesRead !== parseInt(contentLength, 10)) {
623
+ util$1.destroy(socket, new ResponseContentLengthMismatchError());
624
+ return -1
625
+ }
626
+
627
+ request.onComplete(headers);
628
+
629
+ client[kQueue][client[kRunningIdx]++] = null;
630
+
631
+ if (socket[kWriting]) {
632
+ assert(client[kRunning] === 0);
633
+ // Response completed before request.
634
+ util$1.destroy(socket, new InformationalError('reset'));
635
+ return constants$1.ERROR.PAUSED
636
+ } else if (!shouldKeepAlive) {
637
+ util$1.destroy(socket, new InformationalError('reset'));
638
+ return constants$1.ERROR.PAUSED
639
+ } else if (socket[kReset] && client[kRunning] === 0) {
640
+ // Destroy socket once all requests have completed.
641
+ // The request at the tail of the pipeline is the one
642
+ // that requested reset and no further requests should
643
+ // have been queued since then.
644
+ util$1.destroy(socket, new InformationalError('reset'));
645
+ return constants$1.ERROR.PAUSED
646
+ } else if (client[kPipelining] == null || client[kPipelining] === 1) {
647
+ // We must wait a full event loop cycle to reuse this socket to make sure
648
+ // that non-spec compliant servers are not closing the connection even if they
649
+ // said they won't.
650
+ setImmediate(() => client[kResume]());
651
+ } else {
652
+ client[kResume]();
653
+ }
654
+ }
655
+ }
656
+
657
+ function onParserTimeout (parser) {
658
+ const { socket, timeoutType, client, paused } = parser.deref();
659
+
660
+ /* istanbul ignore else */
661
+ if (timeoutType === TIMEOUT_HEADERS) {
662
+ if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {
663
+ assert(!paused, 'cannot be paused while waiting for headers');
664
+ util$1.destroy(socket, new HeadersTimeoutError());
665
+ }
666
+ } else if (timeoutType === TIMEOUT_BODY) {
667
+ if (!paused) {
668
+ util$1.destroy(socket, new BodyTimeoutError());
669
+ }
670
+ } else if (timeoutType === TIMEOUT_KEEP_ALIVE) {
671
+ assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue]);
672
+ util$1.destroy(socket, new InformationalError('socket idle timeout'));
673
+ }
674
+ }
675
+
676
+ async function connectH1 (client, socket) {
677
+ client[kSocket] = socket;
678
+
679
+ if (!llhttpInstance) {
680
+ llhttpInstance = await llhttpPromise;
681
+ llhttpPromise = null;
682
+ }
683
+
684
+ socket[kNoRef] = false;
685
+ socket[kWriting] = false;
686
+ socket[kReset] = false;
687
+ socket[kBlocking] = false;
688
+ socket[kParser] = new Parser(client, socket, llhttpInstance);
689
+
690
+ addListener(socket, 'error', function (err) {
691
+ assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID');
692
+
693
+ const parser = this[kParser];
694
+
695
+ // On Mac OS, we get an ECONNRESET even if there is a full body to be forwarded
696
+ // to the user.
697
+ if (err.code === 'ECONNRESET' && parser.statusCode && !parser.shouldKeepAlive) {
698
+ // We treat all incoming data so for as a valid response.
699
+ parser.onMessageComplete();
700
+ return
701
+ }
702
+
703
+ this[kError] = err;
704
+
705
+ this[kClient][kOnError](err);
706
+ });
707
+ addListener(socket, 'readable', function () {
708
+ const parser = this[kParser];
709
+
710
+ if (parser) {
711
+ parser.readMore();
712
+ }
713
+ });
714
+ addListener(socket, 'end', function () {
715
+ const parser = this[kParser];
716
+
717
+ if (parser.statusCode && !parser.shouldKeepAlive) {
718
+ // We treat all incoming data so far as a valid response.
719
+ parser.onMessageComplete();
720
+ return
721
+ }
722
+
723
+ util$1.destroy(this, new SocketError('other side closed', util$1.getSocketInfo(this)));
724
+ });
725
+ addListener(socket, 'close', function () {
726
+ const client = this[kClient];
727
+ const parser = this[kParser];
728
+
729
+ if (parser) {
730
+ if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) {
731
+ // We treat all incoming data so far as a valid response.
732
+ parser.onMessageComplete();
733
+ }
734
+
735
+ this[kParser].destroy();
736
+ this[kParser] = null;
737
+ }
738
+
739
+ const err = this[kError] || new SocketError('closed', util$1.getSocketInfo(this));
740
+
741
+ client[kSocket] = null;
742
+ client[kHTTPContext] = null; // TODO (fix): This is hacky...
743
+
744
+ if (client.destroyed) {
745
+ assert(client[kPending] === 0);
746
+
747
+ // Fail entire queue.
748
+ const requests = client[kQueue].splice(client[kRunningIdx]);
749
+ for (let i = 0; i < requests.length; i++) {
750
+ const request = requests[i];
751
+ util$1.errorRequest(client, request, err);
752
+ }
753
+ } else if (client[kRunning] > 0 && err.code !== 'UND_ERR_INFO') {
754
+ // Fail head of pipeline.
755
+ const request = client[kQueue][client[kRunningIdx]];
756
+ client[kQueue][client[kRunningIdx]++] = null;
757
+
758
+ util$1.errorRequest(client, request, err);
759
+ }
760
+
761
+ client[kPendingIdx] = client[kRunningIdx];
762
+
763
+ assert(client[kRunning] === 0);
764
+
765
+ client.emit('disconnect', client[kUrl], [client], err);
766
+
767
+ client[kResume]();
768
+ });
769
+
770
+ let closed = false;
771
+ socket.on('close', () => {
772
+ closed = true;
773
+ });
774
+
775
+ return {
776
+ version: 'h1',
777
+ defaultPipelining: 1,
778
+ write (...args) {
779
+ return writeH1(client, ...args)
780
+ },
781
+ resume () {
782
+ resumeH1(client);
783
+ },
784
+ destroy (err, callback) {
785
+ if (closed) {
786
+ queueMicrotask(callback);
787
+ } else {
788
+ socket.destroy(err).on('close', callback);
789
+ }
790
+ },
791
+ get destroyed () {
792
+ return socket.destroyed
793
+ },
794
+ busy (request) {
795
+ if (socket[kWriting] || socket[kReset] || socket[kBlocking]) {
796
+ return true
797
+ }
798
+
799
+ if (request) {
800
+ if (client[kRunning] > 0 && !request.idempotent) {
801
+ // Non-idempotent request cannot be retried.
802
+ // Ensure that no other requests are inflight and
803
+ // could cause failure.
804
+ return true
805
+ }
806
+
807
+ if (client[kRunning] > 0 && (request.upgrade || request.method === 'CONNECT')) {
808
+ // Don't dispatch an upgrade until all preceding requests have completed.
809
+ // A misbehaving server might upgrade the connection before all pipelined
810
+ // request has completed.
811
+ return true
812
+ }
813
+
814
+ if (client[kRunning] > 0 && util$1.bodyLength(request.body) !== 0 &&
815
+ (util$1.isStream(request.body) || util$1.isAsyncIterable(request.body) || util$1.isFormDataLike(request.body))) {
816
+ // Request with stream or iterator body can error while other requests
817
+ // are inflight and indirectly error those as well.
818
+ // Ensure this doesn't happen by waiting for inflight
819
+ // to complete before dispatching.
820
+
821
+ // Request with stream or iterator body cannot be retried.
822
+ // Ensure that no other requests are inflight and
823
+ // could cause failure.
824
+ return true
825
+ }
826
+ }
827
+
828
+ return false
829
+ }
830
+ }
831
+ }
832
+
833
+ function resumeH1 (client) {
834
+ const socket = client[kSocket];
835
+
836
+ if (socket && !socket.destroyed) {
837
+ if (client[kSize] === 0) {
838
+ if (!socket[kNoRef] && socket.unref) {
839
+ socket.unref();
840
+ socket[kNoRef] = true;
841
+ }
842
+ } else if (socket[kNoRef] && socket.ref) {
843
+ socket.ref();
844
+ socket[kNoRef] = false;
845
+ }
846
+
847
+ if (client[kSize] === 0) {
848
+ if (socket[kParser].timeoutType !== TIMEOUT_KEEP_ALIVE) {
849
+ socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_KEEP_ALIVE);
850
+ }
851
+ } else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {
852
+ if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {
853
+ const request = client[kQueue][client[kRunningIdx]];
854
+ const headersTimeout = request.headersTimeout != null
855
+ ? request.headersTimeout
856
+ : client[kHeadersTimeout];
857
+ socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS);
858
+ }
859
+ }
860
+ }
861
+ }
862
+
863
+ // https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2
864
+ function shouldSendContentLength (method) {
865
+ return method !== 'GET' && method !== 'HEAD' && method !== 'OPTIONS' && method !== 'TRACE' && method !== 'CONNECT'
866
+ }
867
+
868
+ function writeH1 (client, request) {
869
+ const { method, path, host, upgrade, blocking, reset } = request;
870
+
871
+ let { body: body$1, headers, contentLength } = request;
872
+
873
+ // https://tools.ietf.org/html/rfc7231#section-4.3.1
874
+ // https://tools.ietf.org/html/rfc7231#section-4.3.2
875
+ // https://tools.ietf.org/html/rfc7231#section-4.3.5
876
+
877
+ // Sending a payload body on a request that does not
878
+ // expect it can cause undefined behavior on some
879
+ // servers and corrupt connection state. Do not
880
+ // re-use the connection for further requests.
881
+
882
+ const expectsPayload = (
883
+ method === 'PUT' ||
884
+ method === 'POST' ||
885
+ method === 'PATCH' ||
886
+ method === 'QUERY' ||
887
+ method === 'PROPFIND' ||
888
+ method === 'PROPPATCH'
889
+ );
890
+
891
+ if (util$1.isFormDataLike(body$1)) {
892
+ if (!extractBody) {
893
+ extractBody = body.__require().extractBody;
894
+ }
895
+
896
+ const [bodyStream, contentType] = extractBody(body$1);
897
+ if (request.contentType == null) {
898
+ headers.push('content-type', contentType);
899
+ }
900
+ body$1 = bodyStream.stream;
901
+ contentLength = bodyStream.length;
902
+ } else if (util$1.isBlobLike(body$1) && request.contentType == null && body$1.type) {
903
+ headers.push('content-type', body$1.type);
904
+ }
905
+
906
+ if (body$1 && typeof body$1.read === 'function') {
907
+ // Try to read EOF in order to get length.
908
+ body$1.read(0);
909
+ }
910
+
911
+ const bodyLength = util$1.bodyLength(body$1);
912
+
913
+ contentLength = bodyLength ?? contentLength;
914
+
915
+ if (contentLength === null) {
916
+ contentLength = request.contentLength;
917
+ }
918
+
919
+ if (contentLength === 0 && !expectsPayload) {
920
+ // https://tools.ietf.org/html/rfc7230#section-3.3.2
921
+ // A user agent SHOULD NOT send a Content-Length header field when
922
+ // the request message does not contain a payload body and the method
923
+ // semantics do not anticipate such a body.
924
+
925
+ contentLength = null;
926
+ }
927
+
928
+ // https://github.com/nodejs/undici/issues/2046
929
+ // A user agent may send a Content-Length header with 0 value, this should be allowed.
930
+ if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) {
931
+ if (client[kStrictContentLength]) {
932
+ util$1.errorRequest(client, request, new RequestContentLengthMismatchError());
933
+ return false
934
+ }
935
+
936
+ process.emitWarning(new RequestContentLengthMismatchError());
937
+ }
938
+
939
+ const socket = client[kSocket];
940
+
941
+ const abort = (err) => {
942
+ if (request.aborted || request.completed) {
943
+ return
944
+ }
945
+
946
+ util$1.errorRequest(client, request, err || new RequestAbortedError());
947
+
948
+ util$1.destroy(body$1);
949
+ util$1.destroy(socket, new InformationalError('aborted'));
950
+ };
951
+
952
+ try {
953
+ request.onConnect(abort);
954
+ } catch (err) {
955
+ util$1.errorRequest(client, request, err);
956
+ }
957
+
958
+ if (request.aborted) {
959
+ return false
960
+ }
961
+
962
+ if (method === 'HEAD') {
963
+ // https://github.com/mcollina/undici/issues/258
964
+ // Close after a HEAD request to interop with misbehaving servers
965
+ // that may send a body in the response.
966
+
967
+ socket[kReset] = true;
968
+ }
969
+
970
+ if (upgrade || method === 'CONNECT') {
971
+ // On CONNECT or upgrade, block pipeline from dispatching further
972
+ // requests on this connection.
973
+
974
+ socket[kReset] = true;
975
+ }
976
+
977
+ if (reset != null) {
978
+ socket[kReset] = reset;
979
+ }
980
+
981
+ if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) {
982
+ socket[kReset] = true;
983
+ }
984
+
985
+ if (blocking) {
986
+ socket[kBlocking] = true;
987
+ }
988
+
989
+ let header = `${method} ${path} HTTP/1.1\r\n`;
990
+
991
+ if (typeof host === 'string') {
992
+ header += `host: ${host}\r\n`;
993
+ } else {
994
+ header += client[kHostHeader];
995
+ }
996
+
997
+ if (upgrade) {
998
+ header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n`;
999
+ } else if (client[kPipelining] && !socket[kReset]) {
1000
+ header += 'connection: keep-alive\r\n';
1001
+ } else {
1002
+ header += 'connection: close\r\n';
1003
+ }
1004
+
1005
+ if (Array.isArray(headers)) {
1006
+ for (let n = 0; n < headers.length; n += 2) {
1007
+ const key = headers[n + 0];
1008
+ const val = headers[n + 1];
1009
+
1010
+ if (Array.isArray(val)) {
1011
+ for (let i = 0; i < val.length; i++) {
1012
+ header += `${key}: ${val[i]}\r\n`;
1013
+ }
1014
+ } else {
1015
+ header += `${key}: ${val}\r\n`;
1016
+ }
1017
+ }
1018
+ }
1019
+
1020
+ if (channels.sendHeaders.hasSubscribers) {
1021
+ channels.sendHeaders.publish({ request, headers: header, socket });
1022
+ }
1023
+
1024
+ /* istanbul ignore else: assertion */
1025
+ if (!body$1 || bodyLength === 0) {
1026
+ writeBuffer(abort, null, client, request, socket, contentLength, header, expectsPayload);
1027
+ } else if (util$1.isBuffer(body$1)) {
1028
+ writeBuffer(abort, body$1, client, request, socket, contentLength, header, expectsPayload);
1029
+ } else if (util$1.isBlobLike(body$1)) {
1030
+ if (typeof body$1.stream === 'function') {
1031
+ writeIterable(abort, body$1.stream(), client, request, socket, contentLength, header, expectsPayload);
1032
+ } else {
1033
+ writeBlob(abort, body$1, client, request, socket, contentLength, header, expectsPayload);
1034
+ }
1035
+ } else if (util$1.isStream(body$1)) {
1036
+ writeStream(abort, body$1, client, request, socket, contentLength, header, expectsPayload);
1037
+ } else if (util$1.isIterable(body$1)) {
1038
+ writeIterable(abort, body$1, client, request, socket, contentLength, header, expectsPayload);
1039
+ } else {
1040
+ assert(false);
1041
+ }
1042
+
1043
+ return true
1044
+ }
1045
+
1046
+ function writeStream (abort, body, client, request, socket, contentLength, header, expectsPayload) {
1047
+ assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined');
1048
+
1049
+ let finished = false;
1050
+
1051
+ const writer = new AsyncWriter({ abort, socket, request, contentLength, client, expectsPayload, header });
1052
+
1053
+ const onData = function (chunk) {
1054
+ if (finished) {
1055
+ return
1056
+ }
1057
+
1058
+ try {
1059
+ if (!writer.write(chunk) && this.pause) {
1060
+ this.pause();
1061
+ }
1062
+ } catch (err) {
1063
+ util$1.destroy(this, err);
1064
+ }
1065
+ };
1066
+ const onDrain = function () {
1067
+ if (finished) {
1068
+ return
1069
+ }
1070
+
1071
+ if (body.resume) {
1072
+ body.resume();
1073
+ }
1074
+ };
1075
+ const onClose = function () {
1076
+ // 'close' might be emitted *before* 'error' for
1077
+ // broken streams. Wait a tick to avoid this case.
1078
+ queueMicrotask(() => {
1079
+ // It's only safe to remove 'error' listener after
1080
+ // 'close'.
1081
+ body.removeListener('error', onFinished);
1082
+ });
1083
+
1084
+ if (!finished) {
1085
+ const err = new RequestAbortedError();
1086
+ queueMicrotask(() => onFinished(err));
1087
+ }
1088
+ };
1089
+ const onFinished = function (err) {
1090
+ if (finished) {
1091
+ return
1092
+ }
1093
+
1094
+ finished = true;
1095
+
1096
+ assert(socket.destroyed || (socket[kWriting] && client[kRunning] <= 1));
1097
+
1098
+ socket
1099
+ .off('drain', onDrain)
1100
+ .off('error', onFinished);
1101
+
1102
+ body
1103
+ .removeListener('data', onData)
1104
+ .removeListener('end', onFinished)
1105
+ .removeListener('close', onClose);
1106
+
1107
+ if (!err) {
1108
+ try {
1109
+ writer.end();
1110
+ } catch (er) {
1111
+ err = er;
1112
+ }
1113
+ }
1114
+
1115
+ writer.destroy(err);
1116
+
1117
+ if (err && (err.code !== 'UND_ERR_INFO' || err.message !== 'reset')) {
1118
+ util$1.destroy(body, err);
1119
+ } else {
1120
+ util$1.destroy(body);
1121
+ }
1122
+ };
1123
+
1124
+ body
1125
+ .on('data', onData)
1126
+ .on('end', onFinished)
1127
+ .on('error', onFinished)
1128
+ .on('close', onClose);
1129
+
1130
+ if (body.resume) {
1131
+ body.resume();
1132
+ }
1133
+
1134
+ socket
1135
+ .on('drain', onDrain)
1136
+ .on('error', onFinished);
1137
+
1138
+ if (body.errorEmitted ?? body.errored) {
1139
+ setImmediate(() => onFinished(body.errored));
1140
+ } else if (body.endEmitted ?? body.readableEnded) {
1141
+ setImmediate(() => onFinished(null));
1142
+ }
1143
+
1144
+ if (body.closeEmitted ?? body.closed) {
1145
+ setImmediate(onClose);
1146
+ }
1147
+ }
1148
+
1149
+ function writeBuffer (abort, body, client, request, socket, contentLength, header, expectsPayload) {
1150
+ try {
1151
+ if (!body) {
1152
+ if (contentLength === 0) {
1153
+ socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1');
1154
+ } else {
1155
+ assert(contentLength === null, 'no body must not have content length');
1156
+ socket.write(`${header}\r\n`, 'latin1');
1157
+ }
1158
+ } else if (util$1.isBuffer(body)) {
1159
+ assert(contentLength === body.byteLength, 'buffer body must have content length');
1160
+
1161
+ socket.cork();
1162
+ socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1');
1163
+ socket.write(body);
1164
+ socket.uncork();
1165
+ request.onBodySent(body);
1166
+
1167
+ if (!expectsPayload && request.reset !== false) {
1168
+ socket[kReset] = true;
1169
+ }
1170
+ }
1171
+ request.onRequestSent();
1172
+
1173
+ client[kResume]();
1174
+ } catch (err) {
1175
+ abort(err);
1176
+ }
1177
+ }
1178
+
1179
+ async function writeBlob (abort, body, client, request, socket, contentLength, header, expectsPayload) {
1180
+ assert(contentLength === body.size, 'blob body must have content length');
1181
+
1182
+ try {
1183
+ if (contentLength != null && contentLength !== body.size) {
1184
+ throw new RequestContentLengthMismatchError()
1185
+ }
1186
+
1187
+ const buffer = Buffer.from(await body.arrayBuffer());
1188
+
1189
+ socket.cork();
1190
+ socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1');
1191
+ socket.write(buffer);
1192
+ socket.uncork();
1193
+
1194
+ request.onBodySent(buffer);
1195
+ request.onRequestSent();
1196
+
1197
+ if (!expectsPayload && request.reset !== false) {
1198
+ socket[kReset] = true;
1199
+ }
1200
+
1201
+ client[kResume]();
1202
+ } catch (err) {
1203
+ abort(err);
1204
+ }
1205
+ }
1206
+
1207
+ async function writeIterable (abort, body, client, request, socket, contentLength, header, expectsPayload) {
1208
+ assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined');
1209
+
1210
+ let callback = null;
1211
+ function onDrain () {
1212
+ if (callback) {
1213
+ const cb = callback;
1214
+ callback = null;
1215
+ cb();
1216
+ }
1217
+ }
1218
+
1219
+ const waitForDrain = () => new Promise((resolve, reject) => {
1220
+ assert(callback === null);
1221
+
1222
+ if (socket[kError]) {
1223
+ reject(socket[kError]);
1224
+ } else {
1225
+ callback = resolve;
1226
+ }
1227
+ });
1228
+
1229
+ socket
1230
+ .on('close', onDrain)
1231
+ .on('drain', onDrain);
1232
+
1233
+ const writer = new AsyncWriter({ abort, socket, request, contentLength, client, expectsPayload, header });
1234
+ try {
1235
+ // It's up to the user to somehow abort the async iterable.
1236
+ for await (const chunk of body) {
1237
+ if (socket[kError]) {
1238
+ throw socket[kError]
1239
+ }
1240
+
1241
+ if (!writer.write(chunk)) {
1242
+ await waitForDrain();
1243
+ }
1244
+ }
1245
+
1246
+ writer.end();
1247
+ } catch (err) {
1248
+ writer.destroy(err);
1249
+ } finally {
1250
+ socket
1251
+ .off('close', onDrain)
1252
+ .off('drain', onDrain);
1253
+ }
1254
+ }
1255
+
1256
+ class AsyncWriter {
1257
+ constructor ({ abort, socket, request, contentLength, client, expectsPayload, header }) {
1258
+ this.socket = socket;
1259
+ this.request = request;
1260
+ this.contentLength = contentLength;
1261
+ this.client = client;
1262
+ this.bytesWritten = 0;
1263
+ this.expectsPayload = expectsPayload;
1264
+ this.header = header;
1265
+ this.abort = abort;
1266
+
1267
+ socket[kWriting] = true;
1268
+ }
1269
+
1270
+ write (chunk) {
1271
+ const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this;
1272
+
1273
+ if (socket[kError]) {
1274
+ throw socket[kError]
1275
+ }
1276
+
1277
+ if (socket.destroyed) {
1278
+ return false
1279
+ }
1280
+
1281
+ const len = Buffer.byteLength(chunk);
1282
+ if (!len) {
1283
+ return true
1284
+ }
1285
+
1286
+ // We should defer writing chunks.
1287
+ if (contentLength !== null && bytesWritten + len > contentLength) {
1288
+ if (client[kStrictContentLength]) {
1289
+ throw new RequestContentLengthMismatchError()
1290
+ }
1291
+
1292
+ process.emitWarning(new RequestContentLengthMismatchError());
1293
+ }
1294
+
1295
+ socket.cork();
1296
+
1297
+ if (bytesWritten === 0) {
1298
+ if (!expectsPayload && request.reset !== false) {
1299
+ socket[kReset] = true;
1300
+ }
1301
+
1302
+ if (contentLength === null) {
1303
+ socket.write(`${header}transfer-encoding: chunked\r\n`, 'latin1');
1304
+ } else {
1305
+ socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1');
1306
+ }
1307
+ }
1308
+
1309
+ if (contentLength === null) {
1310
+ socket.write(`\r\n${len.toString(16)}\r\n`, 'latin1');
1311
+ }
1312
+
1313
+ this.bytesWritten += len;
1314
+
1315
+ const ret = socket.write(chunk);
1316
+
1317
+ socket.uncork();
1318
+
1319
+ request.onBodySent(chunk);
1320
+
1321
+ if (!ret) {
1322
+ if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
1323
+ // istanbul ignore else: only for jest
1324
+ if (socket[kParser].timeout.refresh) {
1325
+ socket[kParser].timeout.refresh();
1326
+ }
1327
+ }
1328
+ }
1329
+
1330
+ return ret
1331
+ }
1332
+
1333
+ end () {
1334
+ const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this;
1335
+ request.onRequestSent();
1336
+
1337
+ socket[kWriting] = false;
1338
+
1339
+ if (socket[kError]) {
1340
+ throw socket[kError]
1341
+ }
1342
+
1343
+ if (socket.destroyed) {
1344
+ return
1345
+ }
1346
+
1347
+ if (bytesWritten === 0) {
1348
+ if (expectsPayload) {
1349
+ // https://tools.ietf.org/html/rfc7230#section-3.3.2
1350
+ // A user agent SHOULD send a Content-Length in a request message when
1351
+ // no Transfer-Encoding is sent and the request method defines a meaning
1352
+ // for an enclosed payload body.
1353
+
1354
+ socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1');
1355
+ } else {
1356
+ socket.write(`${header}\r\n`, 'latin1');
1357
+ }
1358
+ } else if (contentLength === null) {
1359
+ socket.write('\r\n0\r\n\r\n', 'latin1');
1360
+ }
1361
+
1362
+ if (contentLength !== null && bytesWritten !== contentLength) {
1363
+ if (client[kStrictContentLength]) {
1364
+ throw new RequestContentLengthMismatchError()
1365
+ } else {
1366
+ process.emitWarning(new RequestContentLengthMismatchError());
1367
+ }
1368
+ }
1369
+
1370
+ if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
1371
+ // istanbul ignore else: only for jest
1372
+ if (socket[kParser].timeout.refresh) {
1373
+ socket[kParser].timeout.refresh();
1374
+ }
1375
+ }
1376
+
1377
+ client[kResume]();
1378
+ }
1379
+
1380
+ destroy (err) {
1381
+ const { socket, client, abort } = this;
1382
+
1383
+ socket[kWriting] = false;
1384
+
1385
+ if (err) {
1386
+ assert(client[kRunning] <= 1, 'pipeline should only contain this request');
1387
+ abort(err);
1388
+ }
1389
+ }
1390
+ }
1391
+
1392
+ clientH1 = connectH1;
1393
+ return clientH1;
1394
+ }
1395
+
1396
+ exports.__require = requireClientH1;
1397
+ //# sourceMappingURL=client-h1.js.map