@relative-ci/core 5.3.1-alpha.0 → 5.3.2-beta.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 (1193) hide show
  1. package/lib/cjs/__/@actions/http-client/lib/index.js +2 -2
  2. package/lib/cjs/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  3. package/lib/cjs/__/@octokit/core/dist-src/index.js.map +1 -0
  4. package/lib/cjs/__/@octokit/core/dist-src/version.js.map +1 -0
  5. package/lib/cjs/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  6. package/lib/cjs/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  7. package/lib/cjs/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  8. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  9. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  10. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  11. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  12. package/lib/cjs/__/@octokit/request/dist-bundle/index.js +200 -0
  13. package/lib/cjs/__/@octokit/request/dist-bundle/index.js.map +1 -0
  14. package/lib/cjs/__/@octokit/request-error/dist-src/index.js.map +1 -0
  15. package/lib/cjs/__/before-after-hook/index.js.map +1 -0
  16. package/lib/cjs/__/before-after-hook/lib/add.js.map +1 -0
  17. package/lib/cjs/__/before-after-hook/lib/register.js.map +1 -0
  18. package/lib/cjs/__/before-after-hook/lib/remove.js.map +1 -0
  19. package/lib/cjs/__/cross-spawn/index.js +1 -1
  20. package/lib/cjs/__/env-ci/lib/git.js +1 -1
  21. package/lib/cjs/__/execa/index.js +149 -0
  22. package/lib/cjs/__/execa/index.js.map +1 -0
  23. package/lib/cjs/__/execa/lib/command.js.map +1 -0
  24. package/lib/cjs/__/execa/lib/error.js.map +1 -0
  25. package/lib/cjs/__/execa/lib/promise.js.map +1 -0
  26. package/lib/cjs/__/execa/lib/stdio.js.map +1 -0
  27. package/lib/cjs/__/execa/lib/stream.js +35 -0
  28. package/lib/cjs/__/execa/lib/stream.js.map +1 -0
  29. package/lib/cjs/__/execa/lib/verbose.js +29 -0
  30. package/lib/cjs/__/execa/lib/verbose.js.map +1 -0
  31. package/lib/cjs/__/fast-content-type-parse/index.js +1 -1
  32. package/lib/cjs/__/get-stream/source/array-buffer.js.map +1 -0
  33. package/lib/cjs/__/human-signals/build/src/core.js.map +1 -0
  34. package/lib/cjs/__/human-signals/build/src/main.js.map +1 -0
  35. package/lib/cjs/__/human-signals/build/src/realtime.js.map +1 -0
  36. package/lib/cjs/__/human-signals/build/src/signals.js.map +1 -0
  37. package/lib/cjs/__/is-stream/index.js.map +1 -0
  38. package/lib/cjs/__/json-with-bigint/json-with-bigint.js +83 -23
  39. package/lib/cjs/__/json-with-bigint/json-with-bigint.js.map +1 -1
  40. package/lib/cjs/__/npm-run-path/__/path-key/index.js.map +1 -0
  41. package/lib/cjs/__/npm-run-path/index.js +63 -0
  42. package/lib/cjs/__/npm-run-path/index.js.map +1 -0
  43. package/lib/cjs/__/path-key/index.js +1 -1
  44. package/lib/cjs/__/signal-exit/dist/mjs/index.js.map +1 -0
  45. package/lib/cjs/__/signal-exit/dist/mjs/signals.js.map +1 -0
  46. package/lib/cjs/__/strip-final-newline/index.js.map +1 -0
  47. package/lib/cjs/__/tunnel/lib/tunnel.js +9 -9
  48. package/lib/cjs/__/tunnel/lib/tunnel.js.map +1 -1
  49. package/lib/cjs/__/undici/index.js +99 -85
  50. package/lib/cjs/__/undici/index.js.map +1 -1
  51. package/lib/cjs/__/undici/lib/api/abort-signal.js +5 -2
  52. package/lib/cjs/__/undici/lib/api/abort-signal.js.map +1 -1
  53. package/lib/cjs/__/undici/lib/api/api-connect.js +13 -7
  54. package/lib/cjs/__/undici/lib/api/api-connect.js.map +1 -1
  55. package/lib/cjs/__/undici/lib/api/api-pipeline.js +10 -8
  56. package/lib/cjs/__/undici/lib/api/api-pipeline.js.map +1 -1
  57. package/lib/cjs/__/undici/lib/api/api-request.js +63 -28
  58. package/lib/cjs/__/undici/lib/api/api-request.js.map +1 -1
  59. package/lib/cjs/__/undici/lib/api/api-stream.js +14 -12
  60. package/lib/cjs/__/undici/lib/api/api-stream.js.map +1 -1
  61. package/lib/cjs/__/undici/lib/api/api-upgrade.js +12 -9
  62. package/lib/cjs/__/undici/lib/api/api-upgrade.js.map +1 -1
  63. package/lib/cjs/__/undici/lib/api/readable.js +147 -84
  64. package/lib/cjs/__/undici/lib/api/readable.js.map +1 -1
  65. package/lib/cjs/__/undici/lib/api/util.js +74 -27
  66. package/lib/cjs/__/undici/lib/api/util.js.map +1 -1
  67. package/lib/cjs/__/undici/lib/core/connect.js +83 -31
  68. package/lib/cjs/__/undici/lib/core/connect.js.map +1 -1
  69. package/lib/cjs/__/undici/lib/core/diagnostics.js +222 -0
  70. package/lib/cjs/__/undici/lib/core/diagnostics.js.map +1 -0
  71. package/lib/cjs/__/undici/lib/core/errors.js +216 -21
  72. package/lib/cjs/__/undici/lib/core/errors.js.map +1 -1
  73. package/lib/cjs/__/undici/lib/core/request.js +116 -210
  74. package/lib/cjs/__/undici/lib/core/request.js.map +1 -1
  75. package/lib/cjs/__/undici/lib/core/symbols.js +10 -6
  76. package/lib/cjs/__/undici/lib/core/symbols.js.map +1 -1
  77. package/lib/cjs/__/undici/lib/core/tree.js.map +1 -0
  78. package/lib/cjs/__/undici/lib/core/util.js +321 -123
  79. package/lib/cjs/__/undici/lib/core/util.js.map +1 -1
  80. package/lib/cjs/__/undici/lib/dispatcher/agent.js +150 -0
  81. package/lib/cjs/__/undici/lib/dispatcher/agent.js.map +1 -0
  82. package/lib/cjs/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
  83. package/lib/cjs/__/undici/lib/dispatcher/client-h1.js.map +1 -0
  84. package/lib/cjs/__/undici/lib/dispatcher/client-h2.js.map +1 -0
  85. package/lib/cjs/__/undici/lib/dispatcher/client.js +651 -0
  86. package/lib/cjs/__/undici/lib/dispatcher/client.js.map +1 -0
  87. package/lib/cjs/__/undici/lib/dispatcher/dispatcher-base.js +214 -0
  88. package/lib/cjs/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
  89. package/lib/cjs/__/undici/lib/dispatcher/dispatcher.js +83 -0
  90. package/lib/cjs/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
  91. package/lib/cjs/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
  92. package/lib/cjs/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
  93. package/lib/cjs/__/undici/lib/dispatcher/pool-base.js +211 -0
  94. package/lib/cjs/__/undici/lib/dispatcher/pool-base.js.map +1 -0
  95. package/lib/cjs/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
  96. package/lib/cjs/__/undici/lib/dispatcher/pool.js +126 -0
  97. package/lib/cjs/__/undici/lib/dispatcher/pool.js.map +1 -0
  98. package/lib/cjs/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
  99. package/lib/cjs/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
  100. package/lib/cjs/__/undici/lib/global.js +1 -1
  101. package/lib/cjs/__/undici/lib/global.js.map +1 -1
  102. package/lib/cjs/__/undici/lib/handler/decorator-handler.js.map +1 -0
  103. package/lib/cjs/__/undici/lib/handler/redirect-handler.js +237 -0
  104. package/lib/cjs/__/undici/lib/handler/redirect-handler.js.map +1 -0
  105. package/lib/cjs/__/undici/lib/handler/retry-handler.js.map +1 -0
  106. package/lib/cjs/__/undici/lib/interceptor/dns.js.map +1 -0
  107. package/lib/cjs/__/undici/lib/interceptor/dump.js.map +1 -0
  108. package/lib/cjs/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
  109. package/lib/cjs/__/undici/lib/interceptor/redirect.js.map +1 -0
  110. package/lib/cjs/__/undici/lib/interceptor/retry.js.map +1 -0
  111. package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js +10 -1
  112. package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -1
  113. package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js +10 -1
  114. package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -1
  115. package/lib/cjs/__/undici/lib/mock/mock-agent.js +10 -21
  116. package/lib/cjs/__/undici/lib/mock/mock-agent.js.map +1 -1
  117. package/lib/cjs/__/undici/lib/mock/mock-client.js +4 -4
  118. package/lib/cjs/__/undici/lib/mock/mock-client.js.map +1 -1
  119. package/lib/cjs/__/undici/lib/mock/mock-errors.js +11 -0
  120. package/lib/cjs/__/undici/lib/mock/mock-errors.js.map +1 -1
  121. package/lib/cjs/__/undici/lib/mock/mock-interceptor.js +19 -18
  122. package/lib/cjs/__/undici/lib/mock/mock-interceptor.js.map +1 -1
  123. package/lib/cjs/__/undici/lib/mock/mock-pool.js +4 -4
  124. package/lib/cjs/__/undici/lib/mock/mock-pool.js.map +1 -1
  125. package/lib/cjs/__/undici/lib/mock/mock-utils.js +33 -17
  126. package/lib/cjs/__/undici/lib/mock/mock-utils.js.map +1 -1
  127. package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js +4 -1
  128. package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -1
  129. package/lib/cjs/__/undici/lib/util/timers.js.map +1 -0
  130. package/lib/cjs/__/undici/lib/web/cache/cache.js.map +1 -0
  131. package/lib/cjs/__/undici/lib/web/cache/cachestorage.js.map +1 -0
  132. package/lib/cjs/__/undici/lib/web/cache/symbols.js.map +1 -0
  133. package/lib/cjs/__/undici/lib/web/cache/util.js.map +1 -0
  134. package/lib/cjs/__/undici/lib/web/cookies/constants.js.map +1 -0
  135. package/lib/cjs/__/undici/lib/web/cookies/index.js.map +1 -0
  136. package/lib/cjs/__/undici/lib/web/cookies/parse.js.map +1 -0
  137. package/lib/cjs/__/undici/lib/web/cookies/util.js.map +1 -0
  138. package/lib/cjs/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
  139. package/lib/cjs/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
  140. package/lib/cjs/__/undici/lib/web/eventsource/util.js.map +1 -0
  141. package/lib/cjs/__/undici/lib/web/fetch/body.js.map +1 -0
  142. package/lib/cjs/__/undici/lib/web/fetch/constants.js.map +1 -0
  143. package/lib/cjs/__/undici/lib/web/fetch/data-url.js.map +1 -0
  144. package/lib/cjs/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
  145. package/lib/cjs/__/undici/lib/web/fetch/file.js.map +1 -0
  146. package/lib/cjs/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
  147. package/lib/cjs/__/undici/lib/web/fetch/formdata.js +275 -0
  148. package/lib/cjs/__/undici/lib/web/fetch/formdata.js.map +1 -0
  149. package/lib/cjs/__/undici/lib/web/fetch/global.js.map +1 -0
  150. package/lib/cjs/__/undici/lib/web/fetch/headers.js +709 -0
  151. package/lib/cjs/__/undici/lib/web/fetch/headers.js.map +1 -0
  152. package/lib/cjs/__/undici/lib/web/fetch/index.js +2235 -0
  153. package/lib/cjs/__/undici/lib/web/fetch/index.js.map +1 -0
  154. package/lib/cjs/__/undici/lib/web/fetch/request.js +1069 -0
  155. package/lib/cjs/__/undici/lib/web/fetch/request.js.map +1 -0
  156. package/lib/cjs/__/undici/lib/web/fetch/response.js +640 -0
  157. package/lib/cjs/__/undici/lib/web/fetch/response.js.map +1 -0
  158. package/lib/cjs/__/undici/lib/web/fetch/symbols.js.map +1 -0
  159. package/lib/cjs/__/undici/lib/web/fetch/util.js +1662 -0
  160. package/lib/cjs/__/undici/lib/web/fetch/util.js.map +1 -0
  161. package/lib/cjs/__/undici/lib/web/fetch/webidl.js +716 -0
  162. package/lib/cjs/__/undici/lib/web/fetch/webidl.js.map +1 -0
  163. package/lib/cjs/__/undici/lib/web/fileapi/encoding.js.map +1 -0
  164. package/lib/cjs/__/undici/lib/web/fileapi/filereader.js.map +1 -0
  165. package/lib/cjs/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
  166. package/lib/cjs/__/undici/lib/web/fileapi/symbols.js.map +1 -0
  167. package/lib/cjs/__/undici/lib/web/fileapi/util.js +417 -0
  168. package/lib/cjs/__/undici/lib/web/fileapi/util.js.map +1 -0
  169. package/lib/cjs/__/undici/lib/web/websocket/connection.js.map +1 -0
  170. package/lib/cjs/__/undici/lib/web/websocket/constants.js.map +1 -0
  171. package/lib/cjs/__/undici/lib/web/websocket/events.js.map +1 -0
  172. package/lib/cjs/__/undici/lib/web/websocket/frame.js.map +1 -0
  173. package/lib/cjs/__/undici/lib/web/websocket/permessage-deflate.js +120 -0
  174. package/lib/cjs/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
  175. package/lib/cjs/__/undici/lib/web/websocket/receiver.js +518 -0
  176. package/lib/cjs/__/undici/lib/web/websocket/receiver.js.map +1 -0
  177. package/lib/cjs/__/undici/lib/web/websocket/sender.js.map +1 -0
  178. package/lib/cjs/__/undici/lib/web/websocket/symbols.js.map +1 -0
  179. package/lib/cjs/__/undici/lib/web/websocket/util.js.map +1 -0
  180. package/lib/cjs/__/undici/lib/web/websocket/websocket.js +622 -0
  181. package/lib/cjs/__/undici/lib/web/websocket/websocket.js.map +1 -0
  182. package/lib/cjs/__/universal-user-agent/index.js.map +1 -0
  183. package/lib/cjs/_virtual/index10.js +2 -2
  184. package/lib/cjs/_virtual/index11.js +2 -2
  185. package/lib/cjs/_virtual/index13.js +2 -2
  186. package/lib/cjs/_virtual/index14.js +2 -2
  187. package/lib/cjs/_virtual/index2.js +1 -1
  188. package/lib/cjs/_virtual/index3.js +1 -1
  189. package/lib/cjs/_virtual/index4.js +1 -1
  190. package/lib/cjs/_virtual/index8.js +2 -2
  191. package/lib/cjs/env/load.js +1 -1
  192. package/lib/cjs/env/load.js.map +1 -1
  193. package/lib/cjs/ingest/ingest.js +3 -3
  194. package/lib/esm/__/@actions/http-client/lib/index.js +2 -2
  195. package/lib/esm/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  196. package/lib/esm/__/@octokit/core/dist-src/index.js.map +1 -0
  197. package/lib/esm/__/@octokit/core/dist-src/version.js.map +1 -0
  198. package/lib/esm/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  199. package/lib/esm/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  200. package/lib/esm/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  201. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  202. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  203. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  204. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  205. package/lib/esm/__/@octokit/request/dist-bundle/index.js +198 -0
  206. package/lib/esm/__/@octokit/request/dist-bundle/index.js.map +1 -0
  207. package/lib/esm/__/@octokit/request-error/dist-src/index.js.map +1 -0
  208. package/lib/esm/__/before-after-hook/index.js.map +1 -0
  209. package/lib/esm/__/before-after-hook/lib/add.js.map +1 -0
  210. package/lib/esm/__/before-after-hook/lib/register.js.map +1 -0
  211. package/lib/esm/__/before-after-hook/lib/remove.js.map +1 -0
  212. package/lib/esm/__/cross-spawn/index.js +1 -1
  213. package/lib/esm/__/env-ci/lib/git.js +1 -1
  214. package/lib/esm/__/execa/index.js +141 -0
  215. package/lib/esm/__/execa/index.js.map +1 -0
  216. package/lib/esm/__/execa/lib/command.js.map +1 -0
  217. package/lib/esm/__/execa/lib/error.js.map +1 -0
  218. package/lib/esm/__/execa/lib/promise.js.map +1 -0
  219. package/lib/esm/__/execa/lib/stdio.js.map +1 -0
  220. package/lib/esm/__/execa/lib/stream.js +33 -0
  221. package/lib/esm/__/execa/lib/stream.js.map +1 -0
  222. package/lib/esm/__/execa/lib/verbose.js.map +1 -0
  223. package/lib/esm/__/fast-content-type-parse/index.js +1 -1
  224. package/lib/esm/__/get-stream/source/array-buffer.js.map +1 -0
  225. package/lib/esm/__/human-signals/build/src/core.js.map +1 -0
  226. package/lib/esm/__/human-signals/build/src/main.js.map +1 -0
  227. package/lib/esm/__/human-signals/build/src/realtime.js.map +1 -0
  228. package/lib/esm/__/human-signals/build/src/signals.js.map +1 -0
  229. package/lib/esm/__/is-stream/index.js.map +1 -0
  230. package/lib/esm/__/java-properties/dist-node/index.js +1 -1
  231. package/lib/esm/__/json-with-bigint/json-with-bigint.js +83 -23
  232. package/lib/esm/__/json-with-bigint/json-with-bigint.js.map +1 -1
  233. package/lib/esm/__/npm-run-path/__/path-key/index.js.map +1 -0
  234. package/lib/esm/__/npm-run-path/index.js +55 -0
  235. package/lib/esm/__/npm-run-path/index.js.map +1 -0
  236. package/lib/esm/__/path-key/index.js +1 -1
  237. package/lib/esm/__/signal-exit/dist/mjs/index.js.map +1 -0
  238. package/lib/esm/__/signal-exit/dist/mjs/signals.js.map +1 -0
  239. package/lib/esm/__/strip-final-newline/index.js.map +1 -0
  240. package/lib/esm/__/tunnel/lib/tunnel.js +6 -6
  241. package/lib/esm/__/tunnel/lib/tunnel.js.map +1 -1
  242. package/lib/esm/__/undici/index.js +89 -79
  243. package/lib/esm/__/undici/index.js.map +1 -1
  244. package/lib/esm/__/undici/lib/api/abort-signal.js +5 -2
  245. package/lib/esm/__/undici/lib/api/abort-signal.js.map +1 -1
  246. package/lib/esm/__/undici/lib/api/api-connect.js +11 -6
  247. package/lib/esm/__/undici/lib/api/api-connect.js.map +1 -1
  248. package/lib/esm/__/undici/lib/api/api-pipeline.js +9 -7
  249. package/lib/esm/__/undici/lib/api/api-pipeline.js.map +1 -1
  250. package/lib/esm/__/undici/lib/api/api-request.js +61 -27
  251. package/lib/esm/__/undici/lib/api/api-request.js.map +1 -1
  252. package/lib/esm/__/undici/lib/api/api-stream.js +12 -11
  253. package/lib/esm/__/undici/lib/api/api-stream.js.map +1 -1
  254. package/lib/esm/__/undici/lib/api/api-upgrade.js +11 -8
  255. package/lib/esm/__/undici/lib/api/api-upgrade.js.map +1 -1
  256. package/lib/esm/__/undici/lib/api/readable.js +147 -84
  257. package/lib/esm/__/undici/lib/api/readable.js.map +1 -1
  258. package/lib/esm/__/undici/lib/api/util.js +74 -27
  259. package/lib/esm/__/undici/lib/api/util.js.map +1 -1
  260. package/lib/esm/__/undici/lib/core/connect.js +83 -31
  261. package/lib/esm/__/undici/lib/core/connect.js.map +1 -1
  262. package/lib/esm/__/undici/lib/core/diagnostics.js +215 -0
  263. package/lib/esm/__/undici/lib/core/diagnostics.js.map +1 -0
  264. package/lib/esm/__/undici/lib/core/errors.js +216 -21
  265. package/lib/esm/__/undici/lib/core/errors.js.map +1 -1
  266. package/lib/esm/__/undici/lib/core/request.js +105 -199
  267. package/lib/esm/__/undici/lib/core/request.js.map +1 -1
  268. package/lib/esm/__/undici/lib/core/symbols.js +10 -6
  269. package/lib/esm/__/undici/lib/core/symbols.js.map +1 -1
  270. package/lib/esm/__/undici/lib/core/tree.js.map +1 -0
  271. package/lib/esm/__/undici/lib/core/util.js +318 -120
  272. package/lib/esm/__/undici/lib/core/util.js.map +1 -1
  273. package/lib/esm/__/undici/lib/dispatcher/agent.js +148 -0
  274. package/lib/esm/__/undici/lib/dispatcher/agent.js.map +1 -0
  275. package/lib/esm/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
  276. package/lib/esm/__/undici/lib/dispatcher/client-h1.js.map +1 -0
  277. package/lib/esm/__/undici/lib/dispatcher/client-h2.js.map +1 -0
  278. package/lib/esm/__/undici/lib/dispatcher/client.js +643 -0
  279. package/lib/esm/__/undici/lib/dispatcher/client.js.map +1 -0
  280. package/lib/esm/__/undici/lib/dispatcher/dispatcher-base.js +212 -0
  281. package/lib/esm/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
  282. package/lib/esm/__/undici/lib/dispatcher/dispatcher.js +77 -0
  283. package/lib/esm/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
  284. package/lib/esm/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
  285. package/lib/esm/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
  286. package/lib/esm/__/undici/lib/dispatcher/pool-base.js +209 -0
  287. package/lib/esm/__/undici/lib/dispatcher/pool-base.js.map +1 -0
  288. package/lib/esm/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
  289. package/lib/esm/__/undici/lib/dispatcher/pool.js +124 -0
  290. package/lib/esm/__/undici/lib/dispatcher/pool.js.map +1 -0
  291. package/lib/esm/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
  292. package/lib/esm/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
  293. package/lib/esm/__/undici/lib/global.js +1 -1
  294. package/lib/esm/__/undici/lib/global.js.map +1 -1
  295. package/lib/esm/__/undici/lib/handler/decorator-handler.js.map +1 -0
  296. package/lib/esm/__/undici/lib/handler/redirect-handler.js +230 -0
  297. package/lib/esm/__/undici/lib/handler/redirect-handler.js.map +1 -0
  298. package/lib/esm/__/undici/lib/handler/retry-handler.js.map +1 -0
  299. package/lib/esm/__/undici/lib/interceptor/dns.js.map +1 -0
  300. package/lib/esm/__/undici/lib/interceptor/dump.js.map +1 -0
  301. package/lib/esm/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
  302. package/lib/esm/__/undici/lib/interceptor/redirect.js.map +1 -0
  303. package/lib/esm/__/undici/lib/interceptor/retry.js.map +1 -0
  304. package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js +6 -1
  305. package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -1
  306. package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js +6 -1
  307. package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -1
  308. package/lib/esm/__/undici/lib/mock/mock-agent.js +10 -21
  309. package/lib/esm/__/undici/lib/mock/mock-agent.js.map +1 -1
  310. package/lib/esm/__/undici/lib/mock/mock-client.js +3 -3
  311. package/lib/esm/__/undici/lib/mock/mock-client.js.map +1 -1
  312. package/lib/esm/__/undici/lib/mock/mock-errors.js +11 -0
  313. package/lib/esm/__/undici/lib/mock/mock-errors.js.map +1 -1
  314. package/lib/esm/__/undici/lib/mock/mock-interceptor.js +19 -18
  315. package/lib/esm/__/undici/lib/mock/mock-interceptor.js.map +1 -1
  316. package/lib/esm/__/undici/lib/mock/mock-pool.js +3 -3
  317. package/lib/esm/__/undici/lib/mock/mock-pool.js.map +1 -1
  318. package/lib/esm/__/undici/lib/mock/mock-utils.js +32 -16
  319. package/lib/esm/__/undici/lib/mock/mock-utils.js.map +1 -1
  320. package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js +4 -1
  321. package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -1
  322. package/lib/esm/__/undici/lib/util/timers.js.map +1 -0
  323. package/lib/esm/__/undici/lib/web/cache/cache.js.map +1 -0
  324. package/lib/esm/__/undici/lib/web/cache/cachestorage.js.map +1 -0
  325. package/lib/esm/__/undici/lib/web/cache/symbols.js.map +1 -0
  326. package/lib/esm/__/undici/lib/web/cache/util.js.map +1 -0
  327. package/lib/esm/__/undici/lib/web/cookies/constants.js.map +1 -0
  328. package/lib/esm/__/undici/lib/web/cookies/index.js.map +1 -0
  329. package/lib/esm/__/undici/lib/web/cookies/parse.js.map +1 -0
  330. package/lib/esm/__/undici/lib/web/cookies/util.js.map +1 -0
  331. package/lib/esm/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
  332. package/lib/esm/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
  333. package/lib/esm/__/undici/lib/web/eventsource/util.js.map +1 -0
  334. package/lib/esm/__/undici/lib/web/fetch/body.js.map +1 -0
  335. package/lib/esm/__/undici/lib/web/fetch/constants.js.map +1 -0
  336. package/lib/esm/__/undici/lib/web/fetch/data-url.js.map +1 -0
  337. package/lib/esm/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
  338. package/lib/esm/__/undici/lib/web/fetch/file.js.map +1 -0
  339. package/lib/esm/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
  340. package/lib/esm/__/undici/lib/web/fetch/formdata.js +268 -0
  341. package/lib/esm/__/undici/lib/web/fetch/formdata.js.map +1 -0
  342. package/lib/esm/__/undici/lib/web/fetch/global.js.map +1 -0
  343. package/lib/esm/__/undici/lib/web/fetch/headers.js +702 -0
  344. package/lib/esm/__/undici/lib/web/fetch/headers.js.map +1 -0
  345. package/lib/esm/__/undici/lib/web/fetch/index.js +2224 -0
  346. package/lib/esm/__/undici/lib/web/fetch/index.js.map +1 -0
  347. package/lib/esm/__/undici/lib/web/fetch/request.js +1061 -0
  348. package/lib/esm/__/undici/lib/web/fetch/request.js.map +1 -0
  349. package/lib/esm/__/undici/lib/web/fetch/response.js +633 -0
  350. package/lib/esm/__/undici/lib/web/fetch/response.js.map +1 -0
  351. package/lib/esm/__/undici/lib/web/fetch/symbols.js.map +1 -0
  352. package/lib/esm/__/undici/lib/web/fetch/util.js +1652 -0
  353. package/lib/esm/__/undici/lib/web/fetch/util.js.map +1 -0
  354. package/lib/esm/__/undici/lib/web/fetch/webidl.js +709 -0
  355. package/lib/esm/__/undici/lib/web/fetch/webidl.js.map +1 -0
  356. package/lib/esm/__/undici/lib/web/fileapi/encoding.js.map +1 -0
  357. package/lib/esm/__/undici/lib/web/fileapi/filereader.js.map +1 -0
  358. package/lib/esm/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
  359. package/lib/esm/__/undici/lib/web/fileapi/symbols.js.map +1 -0
  360. package/lib/esm/__/undici/lib/web/fileapi/util.js +409 -0
  361. package/lib/esm/__/undici/lib/web/fileapi/util.js.map +1 -0
  362. package/lib/esm/__/undici/lib/web/websocket/connection.js.map +1 -0
  363. package/lib/esm/__/undici/lib/web/websocket/constants.js.map +1 -0
  364. package/lib/esm/__/undici/lib/web/websocket/events.js.map +1 -0
  365. package/lib/esm/__/undici/lib/web/websocket/frame.js.map +1 -0
  366. package/lib/esm/__/undici/lib/web/websocket/permessage-deflate.js +114 -0
  367. package/lib/esm/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
  368. package/lib/esm/__/undici/lib/web/websocket/receiver.js +511 -0
  369. package/lib/esm/__/undici/lib/web/websocket/receiver.js.map +1 -0
  370. package/lib/esm/__/undici/lib/web/websocket/sender.js.map +1 -0
  371. package/lib/esm/__/undici/lib/web/websocket/symbols.js.map +1 -0
  372. package/lib/esm/__/undici/lib/web/websocket/util.js.map +1 -0
  373. package/lib/esm/__/undici/lib/web/websocket/websocket.js +616 -0
  374. package/lib/esm/__/undici/lib/web/websocket/websocket.js.map +1 -0
  375. package/lib/esm/__/universal-user-agent/index.js.map +1 -0
  376. package/lib/esm/_virtual/index10.js +2 -2
  377. package/lib/esm/_virtual/index11.js +2 -2
  378. package/lib/esm/_virtual/index13.js +2 -2
  379. package/lib/esm/_virtual/index14.js +2 -2
  380. package/lib/esm/_virtual/index2.js +1 -1
  381. package/lib/esm/_virtual/index3.js +1 -1
  382. package/lib/esm/_virtual/index4.js +1 -1
  383. package/lib/esm/_virtual/index5.js +2 -6
  384. package/lib/esm/_virtual/index5.js.map +1 -1
  385. package/lib/esm/_virtual/index6.js +6 -2
  386. package/lib/esm/_virtual/index6.js.map +1 -1
  387. package/lib/esm/_virtual/index8.js +4 -2
  388. package/lib/esm/_virtual/index8.js.map +1 -1
  389. package/lib/esm/_virtual/index9.js +2 -4
  390. package/lib/esm/_virtual/index9.js.map +1 -1
  391. package/lib/esm/env/load.js +1 -1
  392. package/lib/esm/env/load.js.map +1 -1
  393. package/package.json +12 -12
  394. package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
  395. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
  396. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
  397. package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
  398. package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
  399. package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
  400. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
  401. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
  402. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
  403. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
  404. package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js +0 -200
  405. package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
  406. package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
  407. package/lib/cjs/__/@actions/github/__/before-after-hook/index.js.map +0 -1
  408. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
  409. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
  410. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
  411. package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
  412. package/lib/cjs/__/@actions/http-client/__/undici/index.js +0 -226
  413. package/lib/cjs/__/@actions/http-client/__/undici/index.js.map +0 -1
  414. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js +0 -73
  415. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +0 -1
  416. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js +0 -131
  417. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +0 -1
  418. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +0 -276
  419. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +0 -1
  420. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js +0 -238
  421. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js.map +0 -1
  422. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js +0 -246
  423. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +0 -1
  424. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +0 -131
  425. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +0 -1
  426. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js +0 -25
  427. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js.map +0 -1
  428. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js +0 -405
  429. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js.map +0 -1
  430. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js +0 -114
  431. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js.map +0 -1
  432. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js +0 -266
  433. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js.map +0 -1
  434. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js +0 -130
  435. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js.map +0 -1
  436. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js +0 -222
  437. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +0 -1
  438. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js +0 -437
  439. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js.map +0 -1
  440. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js +0 -427
  441. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js.map +0 -1
  442. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js +0 -80
  443. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js.map +0 -1
  444. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js.map +0 -1
  445. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js +0 -755
  446. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js.map +0 -1
  447. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +0 -149
  448. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +0 -1
  449. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +0 -1
  450. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +0 -1
  451. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +0 -1
  452. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js +0 -650
  453. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +0 -1
  454. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +0 -206
  455. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +0 -1
  456. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +0 -83
  457. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +0 -1
  458. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +0 -1
  459. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +0 -1
  460. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +0 -211
  461. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +0 -1
  462. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +0 -1
  463. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +0 -126
  464. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +0 -1
  465. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +0 -1
  466. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +0 -1
  467. package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js +0 -47
  468. package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js.map +0 -1
  469. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +0 -1
  470. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +0 -237
  471. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +0 -1
  472. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +0 -1
  473. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +0 -1
  474. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +0 -1
  475. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +0 -1
  476. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +0 -1
  477. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +0 -1
  478. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js +0 -288
  479. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +0 -1
  480. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +0 -23
  481. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +0 -1
  482. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +0 -23
  483. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +0 -1
  484. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js +0 -28
  485. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +0 -1
  486. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +0 -183
  487. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +0 -1
  488. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js +0 -83
  489. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +0 -1
  490. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +0 -42
  491. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +0 -1
  492. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +0 -224
  493. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +0 -1
  494. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +0 -83
  495. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +0 -1
  496. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +0 -35
  497. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +0 -1
  498. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +0 -390
  499. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +0 -1
  500. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +0 -63
  501. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +0 -1
  502. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +0 -41
  503. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +0 -1
  504. package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js.map +0 -1
  505. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +0 -1
  506. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +0 -1
  507. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +0 -1
  508. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +0 -1
  509. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +0 -1
  510. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +0 -1
  511. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +0 -1
  512. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +0 -1
  513. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +0 -1
  514. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +0 -1
  515. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +0 -1
  516. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +0 -1
  517. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +0 -1
  518. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +0 -1
  519. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +0 -1
  520. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +0 -1
  521. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +0 -1
  522. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +0 -275
  523. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +0 -1
  524. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +0 -1
  525. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +0 -709
  526. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +0 -1
  527. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js +0 -2235
  528. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +0 -1
  529. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js +0 -1069
  530. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +0 -1
  531. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js +0 -640
  532. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +0 -1
  533. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +0 -1
  534. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js +0 -1662
  535. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +0 -1
  536. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +0 -716
  537. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +0 -1
  538. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +0 -1
  539. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +0 -1
  540. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +0 -1
  541. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +0 -1
  542. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +0 -417
  543. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +0 -1
  544. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +0 -1
  545. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +0 -1
  546. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +0 -1
  547. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +0 -1
  548. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +0 -138
  549. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +0 -1
  550. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +0 -454
  551. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +0 -1
  552. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +0 -1
  553. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +0 -1
  554. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +0 -1
  555. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +0 -618
  556. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +0 -1
  557. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js +0 -236
  558. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +0 -1
  559. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +0 -122
  560. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +0 -1
  561. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js +0 -33
  562. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +0 -1
  563. package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js +0 -248
  564. package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +0 -1
  565. package/lib/cjs/__/@fastify/busboy/lib/main.js +0 -109
  566. package/lib/cjs/__/@fastify/busboy/lib/main.js.map +0 -1
  567. package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js +0 -331
  568. package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js.map +0 -1
  569. package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js +0 -206
  570. package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js.map +0 -1
  571. package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js +0 -66
  572. package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js.map +0 -1
  573. package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js +0 -26
  574. package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js.map +0 -1
  575. package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js +0 -126
  576. package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js.map +0 -1
  577. package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js +0 -28
  578. package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js.map +0 -1
  579. package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js +0 -211
  580. package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js.map +0 -1
  581. package/lib/cjs/__/env-ci/__/execa/index.js +0 -149
  582. package/lib/cjs/__/env-ci/__/execa/index.js.map +0 -1
  583. package/lib/cjs/__/env-ci/__/execa/lib/command.js.map +0 -1
  584. package/lib/cjs/__/env-ci/__/execa/lib/error.js.map +0 -1
  585. package/lib/cjs/__/env-ci/__/execa/lib/promise.js.map +0 -1
  586. package/lib/cjs/__/env-ci/__/execa/lib/stdio.js.map +0 -1
  587. package/lib/cjs/__/env-ci/__/execa/lib/stream.js +0 -35
  588. package/lib/cjs/__/env-ci/__/execa/lib/stream.js.map +0 -1
  589. package/lib/cjs/__/env-ci/__/execa/lib/verbose.js +0 -29
  590. package/lib/cjs/__/env-ci/__/execa/lib/verbose.js.map +0 -1
  591. package/lib/cjs/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
  592. package/lib/cjs/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
  593. package/lib/cjs/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
  594. package/lib/cjs/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
  595. package/lib/cjs/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
  596. package/lib/cjs/__/env-ci/__/is-stream/index.js.map +0 -1
  597. package/lib/cjs/__/env-ci/__/npm-run-path/index.js +0 -63
  598. package/lib/cjs/__/env-ci/__/npm-run-path/index.js.map +0 -1
  599. package/lib/cjs/__/env-ci/__/path-key/index.js.map +0 -1
  600. package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
  601. package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
  602. package/lib/cjs/__/env-ci/__/strip-final-newline/index.js.map +0 -1
  603. package/lib/cjs/__/undici/lib/agent.js +0 -169
  604. package/lib/cjs/__/undici/lib/agent.js.map +0 -1
  605. package/lib/cjs/__/undici/lib/balanced-pool.js +0 -208
  606. package/lib/cjs/__/undici/lib/balanced-pool.js.map +0 -1
  607. package/lib/cjs/__/undici/lib/cache/cache.js +0 -867
  608. package/lib/cjs/__/undici/lib/cache/cache.js.map +0 -1
  609. package/lib/cjs/__/undici/lib/cache/cachestorage.js +0 -161
  610. package/lib/cjs/__/undici/lib/cache/cachestorage.js.map +0 -1
  611. package/lib/cjs/__/undici/lib/cache/symbols.js +0 -19
  612. package/lib/cjs/__/undici/lib/cache/symbols.js.map +0 -1
  613. package/lib/cjs/__/undici/lib/cache/util.js +0 -69
  614. package/lib/cjs/__/undici/lib/cache/util.js.map +0 -1
  615. package/lib/cjs/__/undici/lib/client.js +0 -2314
  616. package/lib/cjs/__/undici/lib/client.js.map +0 -1
  617. package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js +0 -63
  618. package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js.map +0 -1
  619. package/lib/cjs/__/undici/lib/cookies/constants.js +0 -24
  620. package/lib/cjs/__/undici/lib/cookies/constants.js.map +0 -1
  621. package/lib/cjs/__/undici/lib/cookies/index.js +0 -200
  622. package/lib/cjs/__/undici/lib/cookies/index.js.map +0 -1
  623. package/lib/cjs/__/undici/lib/cookies/parse.js +0 -338
  624. package/lib/cjs/__/undici/lib/cookies/parse.js.map +0 -1
  625. package/lib/cjs/__/undici/lib/cookies/util.js +0 -286
  626. package/lib/cjs/__/undici/lib/cookies/util.js.map +0 -1
  627. package/lib/cjs/__/undici/lib/dispatcher-base.js +0 -208
  628. package/lib/cjs/__/undici/lib/dispatcher-base.js.map +0 -1
  629. package/lib/cjs/__/undici/lib/dispatcher.js +0 -37
  630. package/lib/cjs/__/undici/lib/dispatcher.js.map +0 -1
  631. package/lib/cjs/__/undici/lib/fetch/body.js +0 -647
  632. package/lib/cjs/__/undici/lib/fetch/body.js.map +0 -1
  633. package/lib/cjs/__/undici/lib/fetch/constants.js +0 -169
  634. package/lib/cjs/__/undici/lib/fetch/constants.js.map +0 -1
  635. package/lib/cjs/__/undici/lib/fetch/dataURL.js +0 -649
  636. package/lib/cjs/__/undici/lib/fetch/dataURL.js.map +0 -1
  637. package/lib/cjs/__/undici/lib/fetch/file.js +0 -369
  638. package/lib/cjs/__/undici/lib/fetch/file.js.map +0 -1
  639. package/lib/cjs/__/undici/lib/fetch/formdata.js +0 -287
  640. package/lib/cjs/__/undici/lib/fetch/formdata.js.map +0 -1
  641. package/lib/cjs/__/undici/lib/fetch/global.js +0 -52
  642. package/lib/cjs/__/undici/lib/fetch/global.js.map +0 -1
  643. package/lib/cjs/__/undici/lib/fetch/headers.js +0 -609
  644. package/lib/cjs/__/undici/lib/fetch/headers.js.map +0 -1
  645. package/lib/cjs/__/undici/lib/fetch/index.js +0 -2114
  646. package/lib/cjs/__/undici/lib/fetch/index.js.map +0 -1
  647. package/lib/cjs/__/undici/lib/fetch/request.js +0 -979
  648. package/lib/cjs/__/undici/lib/fetch/request.js.map +0 -1
  649. package/lib/cjs/__/undici/lib/fetch/response.js +0 -604
  650. package/lib/cjs/__/undici/lib/fetch/response.js.map +0 -1
  651. package/lib/cjs/__/undici/lib/fetch/symbols.js +0 -22
  652. package/lib/cjs/__/undici/lib/fetch/symbols.js.map +0 -1
  653. package/lib/cjs/__/undici/lib/fetch/util.js +0 -1170
  654. package/lib/cjs/__/undici/lib/fetch/util.js.map +0 -1
  655. package/lib/cjs/__/undici/lib/fetch/webidl.js +0 -665
  656. package/lib/cjs/__/undici/lib/fetch/webidl.js.map +0 -1
  657. package/lib/cjs/__/undici/lib/fileapi/encoding.js +0 -302
  658. package/lib/cjs/__/undici/lib/fileapi/encoding.js.map +0 -1
  659. package/lib/cjs/__/undici/lib/fileapi/filereader.js +0 -361
  660. package/lib/cjs/__/undici/lib/fileapi/filereader.js.map +0 -1
  661. package/lib/cjs/__/undici/lib/fileapi/progressevent.js +0 -92
  662. package/lib/cjs/__/undici/lib/fileapi/progressevent.js.map +0 -1
  663. package/lib/cjs/__/undici/lib/fileapi/symbols.js +0 -22
  664. package/lib/cjs/__/undici/lib/fileapi/symbols.js.map +0 -1
  665. package/lib/cjs/__/undici/lib/fileapi/util.js +0 -419
  666. package/lib/cjs/__/undici/lib/fileapi/util.js.map +0 -1
  667. package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js +0 -47
  668. package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js.map +0 -1
  669. package/lib/cjs/__/undici/lib/handler/RedirectHandler.js +0 -226
  670. package/lib/cjs/__/undici/lib/handler/RedirectHandler.js.map +0 -1
  671. package/lib/cjs/__/undici/lib/handler/RetryHandler.js +0 -358
  672. package/lib/cjs/__/undici/lib/handler/RetryHandler.js.map +0 -1
  673. package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js +0 -35
  674. package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js.map +0 -1
  675. package/lib/cjs/__/undici/lib/node/fixed-queue.js +0 -129
  676. package/lib/cjs/__/undici/lib/node/fixed-queue.js.map +0 -1
  677. package/lib/cjs/__/undici/lib/pool-base.js +0 -211
  678. package/lib/cjs/__/undici/lib/pool-base.js.map +0 -1
  679. package/lib/cjs/__/undici/lib/pool-stats.js +0 -49
  680. package/lib/cjs/__/undici/lib/pool-stats.js.map +0 -1
  681. package/lib/cjs/__/undici/lib/pool.js +0 -127
  682. package/lib/cjs/__/undici/lib/pool.js.map +0 -1
  683. package/lib/cjs/__/undici/lib/proxy-agent.js +0 -213
  684. package/lib/cjs/__/undici/lib/proxy-agent.js.map +0 -1
  685. package/lib/cjs/__/undici/lib/timers.js +0 -109
  686. package/lib/cjs/__/undici/lib/timers.js.map +0 -1
  687. package/lib/cjs/__/undici/lib/websocket/connection.js +0 -318
  688. package/lib/cjs/__/undici/lib/websocket/connection.js.map +0 -1
  689. package/lib/cjs/__/undici/lib/websocket/constants.js +0 -63
  690. package/lib/cjs/__/undici/lib/websocket/constants.js.map +0 -1
  691. package/lib/cjs/__/undici/lib/websocket/events.js +0 -323
  692. package/lib/cjs/__/undici/lib/websocket/events.js.map +0 -1
  693. package/lib/cjs/__/undici/lib/websocket/frame.js +0 -87
  694. package/lib/cjs/__/undici/lib/websocket/frame.js.map +0 -1
  695. package/lib/cjs/__/undici/lib/websocket/receiver.js +0 -368
  696. package/lib/cjs/__/undici/lib/websocket/receiver.js.map +0 -1
  697. package/lib/cjs/__/undici/lib/websocket/symbols.js +0 -24
  698. package/lib/cjs/__/undici/lib/websocket/symbols.js.map +0 -1
  699. package/lib/cjs/__/undici/lib/websocket/util.js +0 -216
  700. package/lib/cjs/__/undici/lib/websocket/util.js.map +0 -1
  701. package/lib/cjs/__/undici/lib/websocket/websocket.js +0 -668
  702. package/lib/cjs/__/undici/lib/websocket/websocket.js.map +0 -1
  703. package/lib/cjs/_virtual/api-request2.js +0 -6
  704. package/lib/cjs/_virtual/api-request2.js.map +0 -1
  705. package/lib/cjs/_virtual/constants2.js +0 -6
  706. package/lib/cjs/_virtual/constants2.js.map +0 -1
  707. package/lib/cjs/_virtual/index15.js +0 -6
  708. package/lib/cjs/_virtual/index15.js.map +0 -1
  709. package/lib/cjs/_virtual/index16.js +0 -6
  710. package/lib/cjs/_virtual/index16.js.map +0 -1
  711. package/lib/cjs/_virtual/main.js +0 -6
  712. package/lib/cjs/_virtual/main.js.map +0 -1
  713. package/lib/cjs/_virtual/mock-interceptor2.js +0 -6
  714. package/lib/cjs/_virtual/mock-interceptor2.js.map +0 -1
  715. package/lib/cjs/_virtual/utils4.js +0 -6
  716. package/lib/cjs/_virtual/utils4.js.map +0 -1
  717. package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
  718. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
  719. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
  720. package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
  721. package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
  722. package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
  723. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
  724. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
  725. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
  726. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
  727. package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js +0 -198
  728. package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
  729. package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
  730. package/lib/esm/__/@actions/github/__/before-after-hook/index.js.map +0 -1
  731. package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
  732. package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
  733. package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
  734. package/lib/esm/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
  735. package/lib/esm/__/@actions/http-client/__/undici/index.js +0 -220
  736. package/lib/esm/__/@actions/http-client/__/undici/index.js.map +0 -1
  737. package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js +0 -71
  738. package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +0 -1
  739. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js +0 -124
  740. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +0 -1
  741. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +0 -268
  742. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +0 -1
  743. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js +0 -231
  744. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js.map +0 -1
  745. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js +0 -238
  746. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +0 -1
  747. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +0 -124
  748. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +0 -1
  749. package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js +0 -23
  750. package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js.map +0 -1
  751. package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js +0 -398
  752. package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js.map +0 -1
  753. package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js +0 -108
  754. package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js.map +0 -1
  755. package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js +0 -258
  756. package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js.map +0 -1
  757. package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js +0 -128
  758. package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js.map +0 -1
  759. package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js +0 -215
  760. package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +0 -1
  761. package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js +0 -435
  762. package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js.map +0 -1
  763. package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js +0 -421
  764. package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js.map +0 -1
  765. package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js +0 -78
  766. package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js.map +0 -1
  767. package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js.map +0 -1
  768. package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js +0 -742
  769. package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js.map +0 -1
  770. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +0 -147
  771. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +0 -1
  772. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +0 -1
  773. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +0 -1
  774. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +0 -1
  775. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js +0 -642
  776. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +0 -1
  777. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +0 -204
  778. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +0 -1
  779. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +0 -77
  780. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +0 -1
  781. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +0 -1
  782. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +0 -1
  783. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +0 -209
  784. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +0 -1
  785. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +0 -1
  786. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +0 -124
  787. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +0 -1
  788. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +0 -1
  789. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +0 -1
  790. package/lib/esm/__/@actions/http-client/__/undici/lib/global.js +0 -45
  791. package/lib/esm/__/@actions/http-client/__/undici/lib/global.js.map +0 -1
  792. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +0 -1
  793. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +0 -230
  794. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +0 -1
  795. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +0 -1
  796. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +0 -1
  797. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +0 -1
  798. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +0 -1
  799. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +0 -1
  800. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +0 -1
  801. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js +0 -286
  802. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +0 -1
  803. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +0 -17
  804. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +0 -1
  805. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +0 -17
  806. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +0 -1
  807. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js +0 -26
  808. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +0 -1
  809. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +0 -181
  810. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +0 -1
  811. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js +0 -77
  812. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +0 -1
  813. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +0 -40
  814. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +0 -1
  815. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +0 -222
  816. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +0 -1
  817. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +0 -77
  818. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +0 -1
  819. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +0 -33
  820. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +0 -1
  821. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +0 -383
  822. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +0 -1
  823. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +0 -56
  824. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +0 -1
  825. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +0 -39
  826. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +0 -1
  827. package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js.map +0 -1
  828. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +0 -1
  829. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +0 -1
  830. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +0 -1
  831. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +0 -1
  832. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +0 -1
  833. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +0 -1
  834. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +0 -1
  835. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +0 -1
  836. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +0 -1
  837. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +0 -1
  838. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +0 -1
  839. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +0 -1
  840. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +0 -1
  841. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +0 -1
  842. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +0 -1
  843. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +0 -1
  844. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +0 -1
  845. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +0 -268
  846. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +0 -1
  847. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +0 -1
  848. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +0 -702
  849. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +0 -1
  850. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js +0 -2224
  851. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +0 -1
  852. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js +0 -1061
  853. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +0 -1
  854. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js +0 -633
  855. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +0 -1
  856. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +0 -1
  857. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js +0 -1652
  858. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +0 -1
  859. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +0 -709
  860. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +0 -1
  861. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +0 -1
  862. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +0 -1
  863. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +0 -1
  864. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +0 -1
  865. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +0 -409
  866. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +0 -1
  867. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +0 -1
  868. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +0 -1
  869. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +0 -1
  870. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +0 -1
  871. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +0 -132
  872. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +0 -1
  873. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +0 -447
  874. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +0 -1
  875. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +0 -1
  876. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +0 -1
  877. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +0 -1
  878. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +0 -612
  879. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +0 -1
  880. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js +0 -229
  881. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +0 -1
  882. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +0 -115
  883. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +0 -1
  884. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js +0 -26
  885. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +0 -1
  886. package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js +0 -241
  887. package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +0 -1
  888. package/lib/esm/__/@fastify/busboy/lib/main.js +0 -102
  889. package/lib/esm/__/@fastify/busboy/lib/main.js.map +0 -1
  890. package/lib/esm/__/@fastify/busboy/lib/types/multipart.js +0 -324
  891. package/lib/esm/__/@fastify/busboy/lib/types/multipart.js.map +0 -1
  892. package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js +0 -204
  893. package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js.map +0 -1
  894. package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js +0 -64
  895. package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js.map +0 -1
  896. package/lib/esm/__/@fastify/busboy/lib/utils/basename.js +0 -24
  897. package/lib/esm/__/@fastify/busboy/lib/utils/basename.js.map +0 -1
  898. package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js +0 -124
  899. package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js.map +0 -1
  900. package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js +0 -26
  901. package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js.map +0 -1
  902. package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js +0 -209
  903. package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js.map +0 -1
  904. package/lib/esm/__/env-ci/__/execa/index.js +0 -141
  905. package/lib/esm/__/env-ci/__/execa/index.js.map +0 -1
  906. package/lib/esm/__/env-ci/__/execa/lib/command.js.map +0 -1
  907. package/lib/esm/__/env-ci/__/execa/lib/error.js.map +0 -1
  908. package/lib/esm/__/env-ci/__/execa/lib/promise.js.map +0 -1
  909. package/lib/esm/__/env-ci/__/execa/lib/stdio.js.map +0 -1
  910. package/lib/esm/__/env-ci/__/execa/lib/stream.js +0 -33
  911. package/lib/esm/__/env-ci/__/execa/lib/stream.js.map +0 -1
  912. package/lib/esm/__/env-ci/__/execa/lib/verbose.js.map +0 -1
  913. package/lib/esm/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
  914. package/lib/esm/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
  915. package/lib/esm/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
  916. package/lib/esm/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
  917. package/lib/esm/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
  918. package/lib/esm/__/env-ci/__/is-stream/index.js.map +0 -1
  919. package/lib/esm/__/env-ci/__/npm-run-path/index.js +0 -55
  920. package/lib/esm/__/env-ci/__/npm-run-path/index.js.map +0 -1
  921. package/lib/esm/__/env-ci/__/path-key/index.js.map +0 -1
  922. package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
  923. package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
  924. package/lib/esm/__/env-ci/__/strip-final-newline/index.js.map +0 -1
  925. package/lib/esm/__/undici/lib/agent.js +0 -167
  926. package/lib/esm/__/undici/lib/agent.js.map +0 -1
  927. package/lib/esm/__/undici/lib/balanced-pool.js +0 -206
  928. package/lib/esm/__/undici/lib/balanced-pool.js.map +0 -1
  929. package/lib/esm/__/undici/lib/cache/cache.js +0 -861
  930. package/lib/esm/__/undici/lib/cache/cache.js.map +0 -1
  931. package/lib/esm/__/undici/lib/cache/cachestorage.js +0 -159
  932. package/lib/esm/__/undici/lib/cache/cachestorage.js.map +0 -1
  933. package/lib/esm/__/undici/lib/cache/symbols.js +0 -17
  934. package/lib/esm/__/undici/lib/cache/symbols.js.map +0 -1
  935. package/lib/esm/__/undici/lib/cache/util.js +0 -63
  936. package/lib/esm/__/undici/lib/cache/util.js.map +0 -1
  937. package/lib/esm/__/undici/lib/client.js +0 -2305
  938. package/lib/esm/__/undici/lib/client.js.map +0 -1
  939. package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js +0 -61
  940. package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js.map +0 -1
  941. package/lib/esm/__/undici/lib/cookies/constants.js +0 -22
  942. package/lib/esm/__/undici/lib/cookies/constants.js.map +0 -1
  943. package/lib/esm/__/undici/lib/cookies/index.js +0 -198
  944. package/lib/esm/__/undici/lib/cookies/index.js.map +0 -1
  945. package/lib/esm/__/undici/lib/cookies/parse.js +0 -332
  946. package/lib/esm/__/undici/lib/cookies/parse.js.map +0 -1
  947. package/lib/esm/__/undici/lib/cookies/util.js +0 -284
  948. package/lib/esm/__/undici/lib/cookies/util.js.map +0 -1
  949. package/lib/esm/__/undici/lib/dispatcher-base.js +0 -206
  950. package/lib/esm/__/undici/lib/dispatcher-base.js.map +0 -1
  951. package/lib/esm/__/undici/lib/dispatcher.js +0 -31
  952. package/lib/esm/__/undici/lib/dispatcher.js.map +0 -1
  953. package/lib/esm/__/undici/lib/fetch/body.js +0 -638
  954. package/lib/esm/__/undici/lib/fetch/body.js.map +0 -1
  955. package/lib/esm/__/undici/lib/fetch/constants.js +0 -163
  956. package/lib/esm/__/undici/lib/fetch/constants.js.map +0 -1
  957. package/lib/esm/__/undici/lib/fetch/dataURL.js +0 -642
  958. package/lib/esm/__/undici/lib/fetch/dataURL.js.map +0 -1
  959. package/lib/esm/__/undici/lib/fetch/file.js +0 -362
  960. package/lib/esm/__/undici/lib/fetch/file.js.map +0 -1
  961. package/lib/esm/__/undici/lib/fetch/formdata.js +0 -281
  962. package/lib/esm/__/undici/lib/fetch/formdata.js.map +0 -1
  963. package/lib/esm/__/undici/lib/fetch/global.js +0 -50
  964. package/lib/esm/__/undici/lib/fetch/global.js.map +0 -1
  965. package/lib/esm/__/undici/lib/fetch/headers.js +0 -602
  966. package/lib/esm/__/undici/lib/fetch/headers.js.map +0 -1
  967. package/lib/esm/__/undici/lib/fetch/index.js +0 -2102
  968. package/lib/esm/__/undici/lib/fetch/index.js.map +0 -1
  969. package/lib/esm/__/undici/lib/fetch/request.js +0 -971
  970. package/lib/esm/__/undici/lib/fetch/request.js.map +0 -1
  971. package/lib/esm/__/undici/lib/fetch/response.js +0 -596
  972. package/lib/esm/__/undici/lib/fetch/response.js.map +0 -1
  973. package/lib/esm/__/undici/lib/fetch/symbols.js +0 -20
  974. package/lib/esm/__/undici/lib/fetch/symbols.js.map +0 -1
  975. package/lib/esm/__/undici/lib/fetch/util.js +0 -1161
  976. package/lib/esm/__/undici/lib/fetch/util.js.map +0 -1
  977. package/lib/esm/__/undici/lib/fetch/webidl.js +0 -659
  978. package/lib/esm/__/undici/lib/fetch/webidl.js.map +0 -1
  979. package/lib/esm/__/undici/lib/fileapi/encoding.js +0 -300
  980. package/lib/esm/__/undici/lib/fileapi/encoding.js.map +0 -1
  981. package/lib/esm/__/undici/lib/fileapi/filereader.js +0 -359
  982. package/lib/esm/__/undici/lib/fileapi/filereader.js.map +0 -1
  983. package/lib/esm/__/undici/lib/fileapi/progressevent.js +0 -90
  984. package/lib/esm/__/undici/lib/fileapi/progressevent.js.map +0 -1
  985. package/lib/esm/__/undici/lib/fileapi/symbols.js +0 -20
  986. package/lib/esm/__/undici/lib/fileapi/symbols.js.map +0 -1
  987. package/lib/esm/__/undici/lib/fileapi/util.js +0 -411
  988. package/lib/esm/__/undici/lib/fileapi/util.js.map +0 -1
  989. package/lib/esm/__/undici/lib/handler/DecoratorHandler.js +0 -45
  990. package/lib/esm/__/undici/lib/handler/DecoratorHandler.js.map +0 -1
  991. package/lib/esm/__/undici/lib/handler/RedirectHandler.js +0 -219
  992. package/lib/esm/__/undici/lib/handler/RedirectHandler.js.map +0 -1
  993. package/lib/esm/__/undici/lib/handler/RetryHandler.js +0 -352
  994. package/lib/esm/__/undici/lib/handler/RetryHandler.js.map +0 -1
  995. package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js +0 -33
  996. package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js.map +0 -1
  997. package/lib/esm/__/undici/lib/node/fixed-queue.js +0 -127
  998. package/lib/esm/__/undici/lib/node/fixed-queue.js.map +0 -1
  999. package/lib/esm/__/undici/lib/pool-base.js +0 -209
  1000. package/lib/esm/__/undici/lib/pool-base.js.map +0 -1
  1001. package/lib/esm/__/undici/lib/pool-stats.js +0 -47
  1002. package/lib/esm/__/undici/lib/pool-stats.js.map +0 -1
  1003. package/lib/esm/__/undici/lib/pool.js +0 -125
  1004. package/lib/esm/__/undici/lib/pool.js.map +0 -1
  1005. package/lib/esm/__/undici/lib/proxy-agent.js +0 -207
  1006. package/lib/esm/__/undici/lib/proxy-agent.js.map +0 -1
  1007. package/lib/esm/__/undici/lib/timers.js +0 -107
  1008. package/lib/esm/__/undici/lib/timers.js.map +0 -1
  1009. package/lib/esm/__/undici/lib/websocket/connection.js +0 -312
  1010. package/lib/esm/__/undici/lib/websocket/connection.js.map +0 -1
  1011. package/lib/esm/__/undici/lib/websocket/constants.js +0 -61
  1012. package/lib/esm/__/undici/lib/websocket/constants.js.map +0 -1
  1013. package/lib/esm/__/undici/lib/websocket/events.js +0 -317
  1014. package/lib/esm/__/undici/lib/websocket/events.js.map +0 -1
  1015. package/lib/esm/__/undici/lib/websocket/frame.js +0 -85
  1016. package/lib/esm/__/undici/lib/websocket/frame.js.map +0 -1
  1017. package/lib/esm/__/undici/lib/websocket/receiver.js +0 -361
  1018. package/lib/esm/__/undici/lib/websocket/receiver.js.map +0 -1
  1019. package/lib/esm/__/undici/lib/websocket/symbols.js +0 -22
  1020. package/lib/esm/__/undici/lib/websocket/symbols.js.map +0 -1
  1021. package/lib/esm/__/undici/lib/websocket/util.js +0 -214
  1022. package/lib/esm/__/undici/lib/websocket/util.js.map +0 -1
  1023. package/lib/esm/__/undici/lib/websocket/websocket.js +0 -662
  1024. package/lib/esm/__/undici/lib/websocket/websocket.js.map +0 -1
  1025. package/lib/esm/_virtual/api-request2.js +0 -4
  1026. package/lib/esm/_virtual/api-request2.js.map +0 -1
  1027. package/lib/esm/_virtual/constants2.js +0 -4
  1028. package/lib/esm/_virtual/constants2.js.map +0 -1
  1029. package/lib/esm/_virtual/index15.js +0 -4
  1030. package/lib/esm/_virtual/index15.js.map +0 -1
  1031. package/lib/esm/_virtual/index16.js +0 -4
  1032. package/lib/esm/_virtual/index16.js.map +0 -1
  1033. package/lib/esm/_virtual/main.js +0 -4
  1034. package/lib/esm/_virtual/main.js.map +0 -1
  1035. package/lib/esm/_virtual/mock-interceptor2.js +0 -4
  1036. package/lib/esm/_virtual/mock-interceptor2.js.map +0 -1
  1037. package/lib/esm/_virtual/utils4.js +0 -4
  1038. package/lib/esm/_virtual/utils4.js.map +0 -1
  1039. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
  1040. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
  1041. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
  1042. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +0 -0
  1043. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
  1044. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
  1045. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
  1046. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
  1047. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
  1048. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
  1049. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
  1050. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
  1051. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
  1052. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
  1053. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
  1054. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
  1055. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
  1056. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
  1057. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
  1058. /package/lib/cjs/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
  1059. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
  1060. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
  1061. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
  1062. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
  1063. /package/lib/cjs/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
  1064. /package/lib/cjs/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
  1065. /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
  1066. /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
  1067. /package/lib/cjs/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
  1068. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/core/tree.js +0 -0
  1069. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/balanced-pool.js +0 -0
  1070. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/client-h1.js +0 -0
  1071. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/client-h2.js +0 -0
  1072. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/env-http-proxy-agent.js +0 -0
  1073. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/fixed-queue.js +0 -0
  1074. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/pool-stats.js +0 -0
  1075. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/proxy-agent.js +0 -0
  1076. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/retry-agent.js +0 -0
  1077. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/handler/decorator-handler.js +0 -0
  1078. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/handler/retry-handler.js +0 -0
  1079. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/dns.js +0 -0
  1080. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/dump.js +0 -0
  1081. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/redirect-interceptor.js +0 -0
  1082. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/redirect.js +0 -0
  1083. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/interceptor/retry.js +0 -0
  1084. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/util/timers.js +0 -0
  1085. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cache/cache.js +0 -0
  1086. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cache/cachestorage.js +0 -0
  1087. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cache/symbols.js +0 -0
  1088. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cache/util.js +0 -0
  1089. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/constants.js +0 -0
  1090. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/index.js +0 -0
  1091. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/parse.js +0 -0
  1092. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/util.js +0 -0
  1093. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/eventsource-stream.js +0 -0
  1094. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/eventsource.js +0 -0
  1095. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/util.js +0 -0
  1096. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/body.js +0 -0
  1097. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/constants.js +0 -0
  1098. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/data-url.js +0 -0
  1099. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/dispatcher-weakref.js +0 -0
  1100. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/file.js +0 -0
  1101. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/formdata-parser.js +0 -0
  1102. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/global.js +0 -0
  1103. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/symbols.js +0 -0
  1104. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/encoding.js +0 -0
  1105. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/filereader.js +0 -0
  1106. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/progressevent.js +0 -0
  1107. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/symbols.js +0 -0
  1108. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/connection.js +0 -0
  1109. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/constants.js +0 -0
  1110. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/events.js +0 -0
  1111. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/frame.js +0 -0
  1112. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/sender.js +0 -0
  1113. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/symbols.js +0 -0
  1114. /package/lib/cjs/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/util.js +0 -0
  1115. /package/lib/cjs/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
  1116. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
  1117. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
  1118. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
  1119. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +0 -0
  1120. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
  1121. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
  1122. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
  1123. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
  1124. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
  1125. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
  1126. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
  1127. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
  1128. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
  1129. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
  1130. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
  1131. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
  1132. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
  1133. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
  1134. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
  1135. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/verbose.js +0 -0
  1136. /package/lib/esm/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
  1137. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
  1138. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
  1139. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
  1140. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
  1141. /package/lib/esm/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
  1142. /package/lib/esm/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
  1143. /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
  1144. /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
  1145. /package/lib/esm/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
  1146. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/core/tree.js +0 -0
  1147. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/balanced-pool.js +0 -0
  1148. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/client-h1.js +0 -0
  1149. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/client-h2.js +0 -0
  1150. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/env-http-proxy-agent.js +0 -0
  1151. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/fixed-queue.js +0 -0
  1152. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/pool-stats.js +0 -0
  1153. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/proxy-agent.js +0 -0
  1154. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/dispatcher/retry-agent.js +0 -0
  1155. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/handler/decorator-handler.js +0 -0
  1156. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/handler/retry-handler.js +0 -0
  1157. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/dns.js +0 -0
  1158. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/dump.js +0 -0
  1159. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/redirect-interceptor.js +0 -0
  1160. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/redirect.js +0 -0
  1161. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/interceptor/retry.js +0 -0
  1162. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/util/timers.js +0 -0
  1163. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cache/cache.js +0 -0
  1164. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cache/cachestorage.js +0 -0
  1165. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cache/symbols.js +0 -0
  1166. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cache/util.js +0 -0
  1167. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/constants.js +0 -0
  1168. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/index.js +0 -0
  1169. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/parse.js +0 -0
  1170. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/cookies/util.js +0 -0
  1171. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/eventsource-stream.js +0 -0
  1172. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/eventsource.js +0 -0
  1173. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/eventsource/util.js +0 -0
  1174. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/body.js +0 -0
  1175. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/constants.js +0 -0
  1176. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/data-url.js +0 -0
  1177. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/dispatcher-weakref.js +0 -0
  1178. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/file.js +0 -0
  1179. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/formdata-parser.js +0 -0
  1180. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/global.js +0 -0
  1181. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fetch/symbols.js +0 -0
  1182. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/encoding.js +0 -0
  1183. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/filereader.js +0 -0
  1184. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/progressevent.js +0 -0
  1185. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/fileapi/symbols.js +0 -0
  1186. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/connection.js +0 -0
  1187. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/constants.js +0 -0
  1188. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/events.js +0 -0
  1189. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/frame.js +0 -0
  1190. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/sender.js +0 -0
  1191. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/symbols.js +0 -0
  1192. /package/lib/esm/__/{@actions/http-client/__/undici → undici}/lib/web/websocket/util.js +0 -0
  1193. /package/lib/esm/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
@@ -1,2224 +0,0 @@
1
- import { __require as requireResponse } from './response.js';
2
- import { __require as requireHeaders } from './headers.js';
3
- import { __require as requireRequest } from './request.js';
4
- import require$$3 from 'node:zlib';
5
- import { __require as requireUtil } from './util.js';
6
- import { __require as requireSymbols } from './symbols.js';
7
- import require$$0$1 from 'node:assert';
8
- import { __require as requireBody } from './body.js';
9
- import { __require as requireConstants } from './constants.js';
10
- import require$$0$2 from 'node:events';
11
- import require$$0 from 'node:stream';
12
- import { __require as requireUtil$1 } from '../../core/util.js';
13
- import { __require as requireDataUrl } from './data-url.js';
14
- import { __require as requireGlobal } from '../../global.js';
15
- import { __require as requireWebidl } from './webidl.js';
16
- import require$$2 from 'node:http';
17
- import require$$0$3 from 'node:buffer';
18
-
19
- var fetch_1;
20
- var hasRequiredFetch;
21
-
22
- function requireFetch () {
23
- if (hasRequiredFetch) return fetch_1;
24
- hasRequiredFetch = 1;
25
-
26
- const {
27
- makeNetworkError,
28
- makeAppropriateNetworkError,
29
- filterResponse,
30
- makeResponse,
31
- fromInnerResponse
32
- } = requireResponse();
33
- const { HeadersList } = requireHeaders();
34
- const { Request, cloneRequest } = requireRequest();
35
- const zlib = require$$3;
36
- const {
37
- bytesMatch,
38
- makePolicyContainer,
39
- clonePolicyContainer,
40
- requestBadPort,
41
- TAOCheck,
42
- appendRequestOriginHeader,
43
- responseLocationURL,
44
- requestCurrentURL,
45
- setRequestReferrerPolicyOnRedirect,
46
- tryUpgradeRequestToAPotentiallyTrustworthyURL,
47
- createOpaqueTimingInfo,
48
- appendFetchMetadata,
49
- corsCheck,
50
- crossOriginResourcePolicyCheck,
51
- determineRequestsReferrer,
52
- coarsenedSharedCurrentTime,
53
- createDeferredPromise,
54
- isBlobLike,
55
- sameOrigin,
56
- isCancelled,
57
- isAborted,
58
- isErrorLike,
59
- fullyReadBody,
60
- readableStreamClose,
61
- isomorphicEncode,
62
- urlIsLocal,
63
- urlIsHttpHttpsScheme,
64
- urlHasHttpsScheme,
65
- clampAndCoarsenConnectionTimingInfo,
66
- simpleRangeHeaderValue,
67
- buildContentRange,
68
- createInflate,
69
- extractMimeType
70
- } = requireUtil();
71
- const { kState, kDispatcher } = requireSymbols();
72
- const assert = require$$0$1;
73
- const { safelyExtractBody, extractBody } = requireBody();
74
- const {
75
- redirectStatusSet,
76
- nullBodyStatus,
77
- safeMethodsSet,
78
- requestBodyHeader,
79
- subresourceSet
80
- } = requireConstants();
81
- const EE = require$$0$2;
82
- const { Readable, pipeline, finished } = require$$0;
83
- const { addAbortListener, isErrored, isReadable, bufferToLowerCasedHeaderName } = requireUtil$1();
84
- const { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = requireDataUrl();
85
- const { getGlobalDispatcher } = requireGlobal();
86
- const { webidl } = requireWebidl();
87
- const { STATUS_CODES } = require$$2;
88
- const GET_OR_HEAD = ['GET', 'HEAD'];
89
-
90
- const defaultUserAgent = typeof __UNDICI_IS_NODE__ !== 'undefined' || typeof esbuildDetection !== 'undefined'
91
- ? 'node'
92
- : 'undici';
93
-
94
- /** @type {import('buffer').resolveObjectURL} */
95
- let resolveObjectURL;
96
-
97
- class Fetch extends EE {
98
- constructor (dispatcher) {
99
- super();
100
-
101
- this.dispatcher = dispatcher;
102
- this.connection = null;
103
- this.dump = false;
104
- this.state = 'ongoing';
105
- }
106
-
107
- terminate (reason) {
108
- if (this.state !== 'ongoing') {
109
- return
110
- }
111
-
112
- this.state = 'terminated';
113
- this.connection?.destroy(reason);
114
- this.emit('terminated', reason);
115
- }
116
-
117
- // https://fetch.spec.whatwg.org/#fetch-controller-abort
118
- abort (error) {
119
- if (this.state !== 'ongoing') {
120
- return
121
- }
122
-
123
- // 1. Set controller’s state to "aborted".
124
- this.state = 'aborted';
125
-
126
- // 2. Let fallbackError be an "AbortError" DOMException.
127
- // 3. Set error to fallbackError if it is not given.
128
- if (!error) {
129
- error = new DOMException('The operation was aborted.', 'AbortError');
130
- }
131
-
132
- // 4. Let serializedError be StructuredSerialize(error).
133
- // If that threw an exception, catch it, and let
134
- // serializedError be StructuredSerialize(fallbackError).
135
-
136
- // 5. Set controller’s serialized abort reason to serializedError.
137
- this.serializedAbortReason = error;
138
-
139
- this.connection?.destroy(error);
140
- this.emit('terminated', error);
141
- }
142
- }
143
-
144
- function handleFetchDone (response) {
145
- finalizeAndReportTiming(response, 'fetch');
146
- }
147
-
148
- // https://fetch.spec.whatwg.org/#fetch-method
149
- function fetch (input, init = undefined) {
150
- webidl.argumentLengthCheck(arguments, 1, 'globalThis.fetch');
151
-
152
- // 1. Let p be a new promise.
153
- let p = createDeferredPromise();
154
-
155
- // 2. Let requestObject be the result of invoking the initial value of
156
- // Request as constructor with input and init as arguments. If this throws
157
- // an exception, reject p with it and return p.
158
- let requestObject;
159
-
160
- try {
161
- requestObject = new Request(input, init);
162
- } catch (e) {
163
- p.reject(e);
164
- return p.promise
165
- }
166
-
167
- // 3. Let request be requestObject’s request.
168
- const request = requestObject[kState];
169
-
170
- // 4. If requestObject’s signal’s aborted flag is set, then:
171
- if (requestObject.signal.aborted) {
172
- // 1. Abort the fetch() call with p, request, null, and
173
- // requestObject’s signal’s abort reason.
174
- abortFetch(p, request, null, requestObject.signal.reason);
175
-
176
- // 2. Return p.
177
- return p.promise
178
- }
179
-
180
- // 5. Let globalObject be request’s client’s global object.
181
- const globalObject = request.client.globalObject;
182
-
183
- // 6. If globalObject is a ServiceWorkerGlobalScope object, then set
184
- // request’s service-workers mode to "none".
185
- if (globalObject?.constructor?.name === 'ServiceWorkerGlobalScope') {
186
- request.serviceWorkers = 'none';
187
- }
188
-
189
- // 7. Let responseObject be null.
190
- let responseObject = null;
191
-
192
- // 8. Let relevantRealm be this’s relevant Realm.
193
-
194
- // 9. Let locallyAborted be false.
195
- let locallyAborted = false;
196
-
197
- // 10. Let controller be null.
198
- let controller = null;
199
-
200
- // 11. Add the following abort steps to requestObject’s signal:
201
- addAbortListener(
202
- requestObject.signal,
203
- () => {
204
- // 1. Set locallyAborted to true.
205
- locallyAborted = true;
206
-
207
- // 2. Assert: controller is non-null.
208
- assert(controller != null);
209
-
210
- // 3. Abort controller with requestObject’s signal’s abort reason.
211
- controller.abort(requestObject.signal.reason);
212
-
213
- const realResponse = responseObject?.deref();
214
-
215
- // 4. Abort the fetch() call with p, request, responseObject,
216
- // and requestObject’s signal’s abort reason.
217
- abortFetch(p, request, realResponse, requestObject.signal.reason);
218
- }
219
- );
220
-
221
- // 12. Let handleFetchDone given response response be to finalize and
222
- // report timing with response, globalObject, and "fetch".
223
- // see function handleFetchDone
224
-
225
- // 13. Set controller to the result of calling fetch given request,
226
- // with processResponseEndOfBody set to handleFetchDone, and processResponse
227
- // given response being these substeps:
228
-
229
- const processResponse = (response) => {
230
- // 1. If locallyAborted is true, terminate these substeps.
231
- if (locallyAborted) {
232
- return
233
- }
234
-
235
- // 2. If response’s aborted flag is set, then:
236
- if (response.aborted) {
237
- // 1. Let deserializedError be the result of deserialize a serialized
238
- // abort reason given controller’s serialized abort reason and
239
- // relevantRealm.
240
-
241
- // 2. Abort the fetch() call with p, request, responseObject, and
242
- // deserializedError.
243
-
244
- abortFetch(p, request, responseObject, controller.serializedAbortReason);
245
- return
246
- }
247
-
248
- // 3. If response is a network error, then reject p with a TypeError
249
- // and terminate these substeps.
250
- if (response.type === 'error') {
251
- p.reject(new TypeError('fetch failed', { cause: response.error }));
252
- return
253
- }
254
-
255
- // 4. Set responseObject to the result of creating a Response object,
256
- // given response, "immutable", and relevantRealm.
257
- responseObject = new WeakRef(fromInnerResponse(response, 'immutable'));
258
-
259
- // 5. Resolve p with responseObject.
260
- p.resolve(responseObject.deref());
261
- p = null;
262
- };
263
-
264
- controller = fetching({
265
- request,
266
- processResponseEndOfBody: handleFetchDone,
267
- processResponse,
268
- dispatcher: requestObject[kDispatcher] // undici
269
- });
270
-
271
- // 14. Return p.
272
- return p.promise
273
- }
274
-
275
- // https://fetch.spec.whatwg.org/#finalize-and-report-timing
276
- function finalizeAndReportTiming (response, initiatorType = 'other') {
277
- // 1. If response is an aborted network error, then return.
278
- if (response.type === 'error' && response.aborted) {
279
- return
280
- }
281
-
282
- // 2. If response’s URL list is null or empty, then return.
283
- if (!response.urlList?.length) {
284
- return
285
- }
286
-
287
- // 3. Let originalURL be response’s URL list[0].
288
- const originalURL = response.urlList[0];
289
-
290
- // 4. Let timingInfo be response’s timing info.
291
- let timingInfo = response.timingInfo;
292
-
293
- // 5. Let cacheState be response’s cache state.
294
- let cacheState = response.cacheState;
295
-
296
- // 6. If originalURL’s scheme is not an HTTP(S) scheme, then return.
297
- if (!urlIsHttpHttpsScheme(originalURL)) {
298
- return
299
- }
300
-
301
- // 7. If timingInfo is null, then return.
302
- if (timingInfo === null) {
303
- return
304
- }
305
-
306
- // 8. If response’s timing allow passed flag is not set, then:
307
- if (!response.timingAllowPassed) {
308
- // 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.
309
- timingInfo = createOpaqueTimingInfo({
310
- startTime: timingInfo.startTime
311
- });
312
-
313
- // 2. Set cacheState to the empty string.
314
- cacheState = '';
315
- }
316
-
317
- // 9. Set timingInfo’s end time to the coarsened shared current time
318
- // given global’s relevant settings object’s cross-origin isolated
319
- // capability.
320
- // TODO: given global’s relevant settings object’s cross-origin isolated
321
- // capability?
322
- timingInfo.endTime = coarsenedSharedCurrentTime();
323
-
324
- // 10. Set response’s timing info to timingInfo.
325
- response.timingInfo = timingInfo;
326
-
327
- // 11. Mark resource timing for timingInfo, originalURL, initiatorType,
328
- // global, and cacheState.
329
- markResourceTiming(
330
- timingInfo,
331
- originalURL.href,
332
- initiatorType,
333
- globalThis,
334
- cacheState
335
- );
336
- }
337
-
338
- // https://w3c.github.io/resource-timing/#dfn-mark-resource-timing
339
- const markResourceTiming = performance.markResourceTiming;
340
-
341
- // https://fetch.spec.whatwg.org/#abort-fetch
342
- function abortFetch (p, request, responseObject, error) {
343
- // 1. Reject promise with error.
344
- if (p) {
345
- // We might have already resolved the promise at this stage
346
- p.reject(error);
347
- }
348
-
349
- // 2. If request’s body is not null and is readable, then cancel request’s
350
- // body with error.
351
- if (request.body != null && isReadable(request.body?.stream)) {
352
- request.body.stream.cancel(error).catch((err) => {
353
- if (err.code === 'ERR_INVALID_STATE') {
354
- // Node bug?
355
- return
356
- }
357
- throw err
358
- });
359
- }
360
-
361
- // 3. If responseObject is null, then return.
362
- if (responseObject == null) {
363
- return
364
- }
365
-
366
- // 4. Let response be responseObject’s response.
367
- const response = responseObject[kState];
368
-
369
- // 5. If response’s body is not null and is readable, then error response’s
370
- // body with error.
371
- if (response.body != null && isReadable(response.body?.stream)) {
372
- response.body.stream.cancel(error).catch((err) => {
373
- if (err.code === 'ERR_INVALID_STATE') {
374
- // Node bug?
375
- return
376
- }
377
- throw err
378
- });
379
- }
380
- }
381
-
382
- // https://fetch.spec.whatwg.org/#fetching
383
- function fetching ({
384
- request,
385
- processRequestBodyChunkLength,
386
- processRequestEndOfBody,
387
- processResponse,
388
- processResponseEndOfBody,
389
- processResponseConsumeBody,
390
- useParallelQueue = false,
391
- dispatcher = getGlobalDispatcher() // undici
392
- }) {
393
- // Ensure that the dispatcher is set accordingly
394
- assert(dispatcher);
395
-
396
- // 1. Let taskDestination be null.
397
- let taskDestination = null;
398
-
399
- // 2. Let crossOriginIsolatedCapability be false.
400
- let crossOriginIsolatedCapability = false;
401
-
402
- // 3. If request’s client is non-null, then:
403
- if (request.client != null) {
404
- // 1. Set taskDestination to request’s client’s global object.
405
- taskDestination = request.client.globalObject;
406
-
407
- // 2. Set crossOriginIsolatedCapability to request’s client’s cross-origin
408
- // isolated capability.
409
- crossOriginIsolatedCapability =
410
- request.client.crossOriginIsolatedCapability;
411
- }
412
-
413
- // 4. If useParallelQueue is true, then set taskDestination to the result of
414
- // starting a new parallel queue.
415
- // TODO
416
-
417
- // 5. Let timingInfo be a new fetch timing info whose start time and
418
- // post-redirect start time are the coarsened shared current time given
419
- // crossOriginIsolatedCapability.
420
- const currentTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability);
421
- const timingInfo = createOpaqueTimingInfo({
422
- startTime: currentTime
423
- });
424
-
425
- // 6. Let fetchParams be a new fetch params whose
426
- // request is request,
427
- // timing info is timingInfo,
428
- // process request body chunk length is processRequestBodyChunkLength,
429
- // process request end-of-body is processRequestEndOfBody,
430
- // process response is processResponse,
431
- // process response consume body is processResponseConsumeBody,
432
- // process response end-of-body is processResponseEndOfBody,
433
- // task destination is taskDestination,
434
- // and cross-origin isolated capability is crossOriginIsolatedCapability.
435
- const fetchParams = {
436
- controller: new Fetch(dispatcher),
437
- request,
438
- timingInfo,
439
- processRequestBodyChunkLength,
440
- processRequestEndOfBody,
441
- processResponse,
442
- processResponseConsumeBody,
443
- processResponseEndOfBody,
444
- taskDestination,
445
- crossOriginIsolatedCapability
446
- };
447
-
448
- // 7. If request’s body is a byte sequence, then set request’s body to
449
- // request’s body as a body.
450
- // NOTE: Since fetching is only called from fetch, body should already be
451
- // extracted.
452
- assert(!request.body || request.body.stream);
453
-
454
- // 8. If request’s window is "client", then set request’s window to request’s
455
- // client, if request’s client’s global object is a Window object; otherwise
456
- // "no-window".
457
- if (request.window === 'client') {
458
- // TODO: What if request.client is null?
459
- request.window =
460
- request.client?.globalObject?.constructor?.name === 'Window'
461
- ? request.client
462
- : 'no-window';
463
- }
464
-
465
- // 9. If request’s origin is "client", then set request’s origin to request’s
466
- // client’s origin.
467
- if (request.origin === 'client') {
468
- request.origin = request.client.origin;
469
- }
470
-
471
- // 10. If all of the following conditions are true:
472
- // TODO
473
-
474
- // 11. If request’s policy container is "client", then:
475
- if (request.policyContainer === 'client') {
476
- // 1. If request’s client is non-null, then set request’s policy
477
- // container to a clone of request’s client’s policy container. [HTML]
478
- if (request.client != null) {
479
- request.policyContainer = clonePolicyContainer(
480
- request.client.policyContainer
481
- );
482
- } else {
483
- // 2. Otherwise, set request’s policy container to a new policy
484
- // container.
485
- request.policyContainer = makePolicyContainer();
486
- }
487
- }
488
-
489
- // 12. If request’s header list does not contain `Accept`, then:
490
- if (!request.headersList.contains('accept', true)) {
491
- // 1. Let value be `*/*`.
492
- const value = '*/*';
493
-
494
- // 2. A user agent should set value to the first matching statement, if
495
- // any, switching on request’s destination:
496
- // "document"
497
- // "frame"
498
- // "iframe"
499
- // `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`
500
- // "image"
501
- // `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5`
502
- // "style"
503
- // `text/css,*/*;q=0.1`
504
- // TODO
505
-
506
- // 3. Append `Accept`/value to request’s header list.
507
- request.headersList.append('accept', value, true);
508
- }
509
-
510
- // 13. If request’s header list does not contain `Accept-Language`, then
511
- // user agents should append `Accept-Language`/an appropriate value to
512
- // request’s header list.
513
- if (!request.headersList.contains('accept-language', true)) {
514
- request.headersList.append('accept-language', '*', true);
515
- }
516
-
517
- // 14. If request’s priority is null, then use request’s initiator and
518
- // destination appropriately in setting request’s priority to a
519
- // user-agent-defined object.
520
- if (request.priority === null) ;
521
-
522
- // 15. If request is a subresource request, then:
523
- if (subresourceSet.has(request.destination)) ;
524
-
525
- // 16. Run main fetch given fetchParams.
526
- mainFetch(fetchParams)
527
- .catch(err => {
528
- fetchParams.controller.terminate(err);
529
- });
530
-
531
- // 17. Return fetchParam's controller
532
- return fetchParams.controller
533
- }
534
-
535
- // https://fetch.spec.whatwg.org/#concept-main-fetch
536
- async function mainFetch (fetchParams, recursive = false) {
537
- // 1. Let request be fetchParams’s request.
538
- const request = fetchParams.request;
539
-
540
- // 2. Let response be null.
541
- let response = null;
542
-
543
- // 3. If request’s local-URLs-only flag is set and request’s current URL is
544
- // not local, then set response to a network error.
545
- if (request.localURLsOnly && !urlIsLocal(requestCurrentURL(request))) {
546
- response = makeNetworkError('local URLs only');
547
- }
548
-
549
- // 4. Run report Content Security Policy violations for request.
550
- // TODO
551
-
552
- // 5. Upgrade request to a potentially trustworthy URL, if appropriate.
553
- tryUpgradeRequestToAPotentiallyTrustworthyURL(request);
554
-
555
- // 6. If should request be blocked due to a bad port, should fetching request
556
- // be blocked as mixed content, or should request be blocked by Content
557
- // Security Policy returns blocked, then set response to a network error.
558
- if (requestBadPort(request) === 'blocked') {
559
- response = makeNetworkError('bad port');
560
- }
561
- // TODO: should fetching request be blocked as mixed content?
562
- // TODO: should request be blocked by Content Security Policy?
563
-
564
- // 7. If request’s referrer policy is the empty string, then set request’s
565
- // referrer policy to request’s policy container’s referrer policy.
566
- if (request.referrerPolicy === '') {
567
- request.referrerPolicy = request.policyContainer.referrerPolicy;
568
- }
569
-
570
- // 8. If request’s referrer is not "no-referrer", then set request’s
571
- // referrer to the result of invoking determine request’s referrer.
572
- if (request.referrer !== 'no-referrer') {
573
- request.referrer = determineRequestsReferrer(request);
574
- }
575
-
576
- // 9. Set request’s current URL’s scheme to "https" if all of the following
577
- // conditions are true:
578
- // - request’s current URL’s scheme is "http"
579
- // - request’s current URL’s host is a domain
580
- // - Matching request’s current URL’s host per Known HSTS Host Domain Name
581
- // Matching results in either a superdomain match with an asserted
582
- // includeSubDomains directive or a congruent match (with or without an
583
- // asserted includeSubDomains directive). [HSTS]
584
- // TODO
585
-
586
- // 10. If recursive is false, then run the remaining steps in parallel.
587
- // TODO
588
-
589
- // 11. If response is null, then set response to the result of running
590
- // the steps corresponding to the first matching statement:
591
- if (response === null) {
592
- response = await (async () => {
593
- const currentURL = requestCurrentURL(request);
594
-
595
- if (
596
- // - request’s current URL’s origin is same origin with request’s origin,
597
- // and request’s response tainting is "basic"
598
- (sameOrigin(currentURL, request.url) && request.responseTainting === 'basic') ||
599
- // request’s current URL’s scheme is "data"
600
- (currentURL.protocol === 'data:') ||
601
- // - request’s mode is "navigate" or "websocket"
602
- (request.mode === 'navigate' || request.mode === 'websocket')
603
- ) {
604
- // 1. Set request’s response tainting to "basic".
605
- request.responseTainting = 'basic';
606
-
607
- // 2. Return the result of running scheme fetch given fetchParams.
608
- return await schemeFetch(fetchParams)
609
- }
610
-
611
- // request’s mode is "same-origin"
612
- if (request.mode === 'same-origin') {
613
- // 1. Return a network error.
614
- return makeNetworkError('request mode cannot be "same-origin"')
615
- }
616
-
617
- // request’s mode is "no-cors"
618
- if (request.mode === 'no-cors') {
619
- // 1. If request’s redirect mode is not "follow", then return a network
620
- // error.
621
- if (request.redirect !== 'follow') {
622
- return makeNetworkError(
623
- 'redirect mode cannot be "follow" for "no-cors" request'
624
- )
625
- }
626
-
627
- // 2. Set request’s response tainting to "opaque".
628
- request.responseTainting = 'opaque';
629
-
630
- // 3. Return the result of running scheme fetch given fetchParams.
631
- return await schemeFetch(fetchParams)
632
- }
633
-
634
- // request’s current URL’s scheme is not an HTTP(S) scheme
635
- if (!urlIsHttpHttpsScheme(requestCurrentURL(request))) {
636
- // Return a network error.
637
- return makeNetworkError('URL scheme must be a HTTP(S) scheme')
638
- }
639
-
640
- // - request’s use-CORS-preflight flag is set
641
- // - request’s unsafe-request flag is set and either request’s method is
642
- // not a CORS-safelisted method or CORS-unsafe request-header names with
643
- // request’s header list is not empty
644
- // 1. Set request’s response tainting to "cors".
645
- // 2. Let corsWithPreflightResponse be the result of running HTTP fetch
646
- // given fetchParams and true.
647
- // 3. If corsWithPreflightResponse is a network error, then clear cache
648
- // entries using request.
649
- // 4. Return corsWithPreflightResponse.
650
- // TODO
651
-
652
- // Otherwise
653
- // 1. Set request’s response tainting to "cors".
654
- request.responseTainting = 'cors';
655
-
656
- // 2. Return the result of running HTTP fetch given fetchParams.
657
- return await httpFetch(fetchParams)
658
- })();
659
- }
660
-
661
- // 12. If recursive is true, then return response.
662
- if (recursive) {
663
- return response
664
- }
665
-
666
- // 13. If response is not a network error and response is not a filtered
667
- // response, then:
668
- if (response.status !== 0 && !response.internalResponse) {
669
- // If request’s response tainting is "cors", then:
670
- if (request.responseTainting === 'cors') ;
671
-
672
- // Set response to the following filtered response with response as its
673
- // internal response, depending on request’s response tainting:
674
- if (request.responseTainting === 'basic') {
675
- response = filterResponse(response, 'basic');
676
- } else if (request.responseTainting === 'cors') {
677
- response = filterResponse(response, 'cors');
678
- } else if (request.responseTainting === 'opaque') {
679
- response = filterResponse(response, 'opaque');
680
- } else {
681
- assert(false);
682
- }
683
- }
684
-
685
- // 14. Let internalResponse be response, if response is a network error,
686
- // and response’s internal response otherwise.
687
- let internalResponse =
688
- response.status === 0 ? response : response.internalResponse;
689
-
690
- // 15. If internalResponse’s URL list is empty, then set it to a clone of
691
- // request’s URL list.
692
- if (internalResponse.urlList.length === 0) {
693
- internalResponse.urlList.push(...request.urlList);
694
- }
695
-
696
- // 16. If request’s timing allow failed flag is unset, then set
697
- // internalResponse’s timing allow passed flag.
698
- if (!request.timingAllowFailed) {
699
- response.timingAllowPassed = true;
700
- }
701
-
702
- // 17. If response is not a network error and any of the following returns
703
- // blocked
704
- // - should internalResponse to request be blocked as mixed content
705
- // - should internalResponse to request be blocked by Content Security Policy
706
- // - should internalResponse to request be blocked due to its MIME type
707
- // - should internalResponse to request be blocked due to nosniff
708
- // TODO
709
-
710
- // 18. If response’s type is "opaque", internalResponse’s status is 206,
711
- // internalResponse’s range-requested flag is set, and request’s header
712
- // list does not contain `Range`, then set response and internalResponse
713
- // to a network error.
714
- if (
715
- response.type === 'opaque' &&
716
- internalResponse.status === 206 &&
717
- internalResponse.rangeRequested &&
718
- !request.headers.contains('range', true)
719
- ) {
720
- response = internalResponse = makeNetworkError();
721
- }
722
-
723
- // 19. If response is not a network error and either request’s method is
724
- // `HEAD` or `CONNECT`, or internalResponse’s status is a null body status,
725
- // set internalResponse’s body to null and disregard any enqueuing toward
726
- // it (if any).
727
- if (
728
- response.status !== 0 &&
729
- (request.method === 'HEAD' ||
730
- request.method === 'CONNECT' ||
731
- nullBodyStatus.includes(internalResponse.status))
732
- ) {
733
- internalResponse.body = null;
734
- fetchParams.controller.dump = true;
735
- }
736
-
737
- // 20. If request’s integrity metadata is not the empty string, then:
738
- if (request.integrity) {
739
- // 1. Let processBodyError be this step: run fetch finale given fetchParams
740
- // and a network error.
741
- const processBodyError = (reason) =>
742
- fetchFinale(fetchParams, makeNetworkError(reason));
743
-
744
- // 2. If request’s response tainting is "opaque", or response’s body is null,
745
- // then run processBodyError and abort these steps.
746
- if (request.responseTainting === 'opaque' || response.body == null) {
747
- processBodyError(response.error);
748
- return
749
- }
750
-
751
- // 3. Let processBody given bytes be these steps:
752
- const processBody = (bytes) => {
753
- // 1. If bytes do not match request’s integrity metadata,
754
- // then run processBodyError and abort these steps. [SRI]
755
- if (!bytesMatch(bytes, request.integrity)) {
756
- processBodyError('integrity mismatch');
757
- return
758
- }
759
-
760
- // 2. Set response’s body to bytes as a body.
761
- response.body = safelyExtractBody(bytes)[0];
762
-
763
- // 3. Run fetch finale given fetchParams and response.
764
- fetchFinale(fetchParams, response);
765
- };
766
-
767
- // 4. Fully read response’s body given processBody and processBodyError.
768
- await fullyReadBody(response.body, processBody, processBodyError);
769
- } else {
770
- // 21. Otherwise, run fetch finale given fetchParams and response.
771
- fetchFinale(fetchParams, response);
772
- }
773
- }
774
-
775
- // https://fetch.spec.whatwg.org/#concept-scheme-fetch
776
- // given a fetch params fetchParams
777
- function schemeFetch (fetchParams) {
778
- // Note: since the connection is destroyed on redirect, which sets fetchParams to a
779
- // cancelled state, we do not want this condition to trigger *unless* there have been
780
- // no redirects. See https://github.com/nodejs/undici/issues/1776
781
- // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.
782
- if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) {
783
- return Promise.resolve(makeAppropriateNetworkError(fetchParams))
784
- }
785
-
786
- // 2. Let request be fetchParams’s request.
787
- const { request } = fetchParams;
788
-
789
- const { protocol: scheme } = requestCurrentURL(request);
790
-
791
- // 3. Switch on request’s current URL’s scheme and run the associated steps:
792
- switch (scheme) {
793
- case 'about:': {
794
- // If request’s current URL’s path is the string "blank", then return a new response
795
- // whose status message is `OK`, header list is « (`Content-Type`, `text/html;charset=utf-8`) »,
796
- // and body is the empty byte sequence as a body.
797
-
798
- // Otherwise, return a network error.
799
- return Promise.resolve(makeNetworkError('about scheme is not supported'))
800
- }
801
- case 'blob:': {
802
- if (!resolveObjectURL) {
803
- resolveObjectURL = require$$0$3.resolveObjectURL;
804
- }
805
-
806
- // 1. Let blobURLEntry be request’s current URL’s blob URL entry.
807
- const blobURLEntry = requestCurrentURL(request);
808
-
809
- // https://github.com/web-platform-tests/wpt/blob/7b0ebaccc62b566a1965396e5be7bb2bc06f841f/FileAPI/url/resources/fetch-tests.js#L52-L56
810
- // Buffer.resolveObjectURL does not ignore URL queries.
811
- if (blobURLEntry.search.length !== 0) {
812
- return Promise.resolve(makeNetworkError('NetworkError when attempting to fetch resource.'))
813
- }
814
-
815
- const blob = resolveObjectURL(blobURLEntry.toString());
816
-
817
- // 2. If request’s method is not `GET`, blobURLEntry is null, or blobURLEntry’s
818
- // object is not a Blob object, then return a network error.
819
- if (request.method !== 'GET' || !isBlobLike(blob)) {
820
- return Promise.resolve(makeNetworkError('invalid method'))
821
- }
822
-
823
- // 3. Let blob be blobURLEntry’s object.
824
- // Note: done above
825
-
826
- // 4. Let response be a new response.
827
- const response = makeResponse();
828
-
829
- // 5. Let fullLength be blob’s size.
830
- const fullLength = blob.size;
831
-
832
- // 6. Let serializedFullLength be fullLength, serialized and isomorphic encoded.
833
- const serializedFullLength = isomorphicEncode(`${fullLength}`);
834
-
835
- // 7. Let type be blob’s type.
836
- const type = blob.type;
837
-
838
- // 8. If request’s header list does not contain `Range`:
839
- // 9. Otherwise:
840
- if (!request.headersList.contains('range', true)) {
841
- // 1. Let bodyWithType be the result of safely extracting blob.
842
- // Note: in the FileAPI a blob "object" is a Blob *or* a MediaSource.
843
- // In node, this can only ever be a Blob. Therefore we can safely
844
- // use extractBody directly.
845
- const bodyWithType = extractBody(blob);
846
-
847
- // 2. Set response’s status message to `OK`.
848
- response.statusText = 'OK';
849
-
850
- // 3. Set response’s body to bodyWithType’s body.
851
- response.body = bodyWithType[0];
852
-
853
- // 4. Set response’s header list to « (`Content-Length`, serializedFullLength), (`Content-Type`, type) ».
854
- response.headersList.set('content-length', serializedFullLength, true);
855
- response.headersList.set('content-type', type, true);
856
- } else {
857
- // 1. Set response’s range-requested flag.
858
- response.rangeRequested = true;
859
-
860
- // 2. Let rangeHeader be the result of getting `Range` from request’s header list.
861
- const rangeHeader = request.headersList.get('range', true);
862
-
863
- // 3. Let rangeValue be the result of parsing a single range header value given rangeHeader and true.
864
- const rangeValue = simpleRangeHeaderValue(rangeHeader, true);
865
-
866
- // 4. If rangeValue is failure, then return a network error.
867
- if (rangeValue === 'failure') {
868
- return Promise.resolve(makeNetworkError('failed to fetch the data URL'))
869
- }
870
-
871
- // 5. Let (rangeStart, rangeEnd) be rangeValue.
872
- let { rangeStartValue: rangeStart, rangeEndValue: rangeEnd } = rangeValue;
873
-
874
- // 6. If rangeStart is null:
875
- // 7. Otherwise:
876
- if (rangeStart === null) {
877
- // 1. Set rangeStart to fullLength − rangeEnd.
878
- rangeStart = fullLength - rangeEnd;
879
-
880
- // 2. Set rangeEnd to rangeStart + rangeEnd − 1.
881
- rangeEnd = rangeStart + rangeEnd - 1;
882
- } else {
883
- // 1. If rangeStart is greater than or equal to fullLength, then return a network error.
884
- if (rangeStart >= fullLength) {
885
- return Promise.resolve(makeNetworkError('Range start is greater than the blob\'s size.'))
886
- }
887
-
888
- // 2. If rangeEnd is null or rangeEnd is greater than or equal to fullLength, then set
889
- // rangeEnd to fullLength − 1.
890
- if (rangeEnd === null || rangeEnd >= fullLength) {
891
- rangeEnd = fullLength - 1;
892
- }
893
- }
894
-
895
- // 8. Let slicedBlob be the result of invoking slice blob given blob, rangeStart,
896
- // rangeEnd + 1, and type.
897
- const slicedBlob = blob.slice(rangeStart, rangeEnd, type);
898
-
899
- // 9. Let slicedBodyWithType be the result of safely extracting slicedBlob.
900
- // Note: same reason as mentioned above as to why we use extractBody
901
- const slicedBodyWithType = extractBody(slicedBlob);
902
-
903
- // 10. Set response’s body to slicedBodyWithType’s body.
904
- response.body = slicedBodyWithType[0];
905
-
906
- // 11. Let serializedSlicedLength be slicedBlob’s size, serialized and isomorphic encoded.
907
- const serializedSlicedLength = isomorphicEncode(`${slicedBlob.size}`);
908
-
909
- // 12. Let contentRange be the result of invoking build a content range given rangeStart,
910
- // rangeEnd, and fullLength.
911
- const contentRange = buildContentRange(rangeStart, rangeEnd, fullLength);
912
-
913
- // 13. Set response’s status to 206.
914
- response.status = 206;
915
-
916
- // 14. Set response’s status message to `Partial Content`.
917
- response.statusText = 'Partial Content';
918
-
919
- // 15. Set response’s header list to « (`Content-Length`, serializedSlicedLength),
920
- // (`Content-Type`, type), (`Content-Range`, contentRange) ».
921
- response.headersList.set('content-length', serializedSlicedLength, true);
922
- response.headersList.set('content-type', type, true);
923
- response.headersList.set('content-range', contentRange, true);
924
- }
925
-
926
- // 10. Return response.
927
- return Promise.resolve(response)
928
- }
929
- case 'data:': {
930
- // 1. Let dataURLStruct be the result of running the
931
- // data: URL processor on request’s current URL.
932
- const currentURL = requestCurrentURL(request);
933
- const dataURLStruct = dataURLProcessor(currentURL);
934
-
935
- // 2. If dataURLStruct is failure, then return a
936
- // network error.
937
- if (dataURLStruct === 'failure') {
938
- return Promise.resolve(makeNetworkError('failed to fetch the data URL'))
939
- }
940
-
941
- // 3. Let mimeType be dataURLStruct’s MIME type, serialized.
942
- const mimeType = serializeAMimeType(dataURLStruct.mimeType);
943
-
944
- // 4. Return a response whose status message is `OK`,
945
- // header list is « (`Content-Type`, mimeType) »,
946
- // and body is dataURLStruct’s body as a body.
947
- return Promise.resolve(makeResponse({
948
- statusText: 'OK',
949
- headersList: [
950
- ['content-type', { name: 'Content-Type', value: mimeType }]
951
- ],
952
- body: safelyExtractBody(dataURLStruct.body)[0]
953
- }))
954
- }
955
- case 'file:': {
956
- // For now, unfortunate as it is, file URLs are left as an exercise for the reader.
957
- // When in doubt, return a network error.
958
- return Promise.resolve(makeNetworkError('not implemented... yet...'))
959
- }
960
- case 'http:':
961
- case 'https:': {
962
- // Return the result of running HTTP fetch given fetchParams.
963
-
964
- return httpFetch(fetchParams)
965
- .catch((err) => makeNetworkError(err))
966
- }
967
- default: {
968
- return Promise.resolve(makeNetworkError('unknown scheme'))
969
- }
970
- }
971
- }
972
-
973
- // https://fetch.spec.whatwg.org/#finalize-response
974
- function finalizeResponse (fetchParams, response) {
975
- // 1. Set fetchParams’s request’s done flag.
976
- fetchParams.request.done = true;
977
-
978
- // 2, If fetchParams’s process response done is not null, then queue a fetch
979
- // task to run fetchParams’s process response done given response, with
980
- // fetchParams’s task destination.
981
- if (fetchParams.processResponseDone != null) {
982
- queueMicrotask(() => fetchParams.processResponseDone(response));
983
- }
984
- }
985
-
986
- // https://fetch.spec.whatwg.org/#fetch-finale
987
- function fetchFinale (fetchParams, response) {
988
- // 1. Let timingInfo be fetchParams’s timing info.
989
- let timingInfo = fetchParams.timingInfo;
990
-
991
- // 2. If response is not a network error and fetchParams’s request’s client is a secure context,
992
- // then set timingInfo’s server-timing headers to the result of getting, decoding, and splitting
993
- // `Server-Timing` from response’s internal response’s header list.
994
- // TODO
995
-
996
- // 3. Let processResponseEndOfBody be the following steps:
997
- const processResponseEndOfBody = () => {
998
- // 1. Let unsafeEndTime be the unsafe shared current time.
999
- const unsafeEndTime = Date.now(); // ?
1000
-
1001
- // 2. If fetchParams’s request’s destination is "document", then set fetchParams’s controller’s
1002
- // full timing info to fetchParams’s timing info.
1003
- if (fetchParams.request.destination === 'document') {
1004
- fetchParams.controller.fullTimingInfo = timingInfo;
1005
- }
1006
-
1007
- // 3. Set fetchParams’s controller’s report timing steps to the following steps given a global object global:
1008
- fetchParams.controller.reportTimingSteps = () => {
1009
- // 1. If fetchParams’s request’s URL’s scheme is not an HTTP(S) scheme, then return.
1010
- if (fetchParams.request.url.protocol !== 'https:') {
1011
- return
1012
- }
1013
-
1014
- // 2. Set timingInfo’s end time to the relative high resolution time given unsafeEndTime and global.
1015
- timingInfo.endTime = unsafeEndTime;
1016
-
1017
- // 3. Let cacheState be response’s cache state.
1018
- let cacheState = response.cacheState;
1019
-
1020
- // 4. Let bodyInfo be response’s body info.
1021
- const bodyInfo = response.bodyInfo;
1022
-
1023
- // 5. If response’s timing allow passed flag is not set, then set timingInfo to the result of creating an
1024
- // opaque timing info for timingInfo and set cacheState to the empty string.
1025
- if (!response.timingAllowPassed) {
1026
- timingInfo = createOpaqueTimingInfo(timingInfo);
1027
-
1028
- cacheState = '';
1029
- }
1030
-
1031
- // 6. Let responseStatus be 0.
1032
- let responseStatus = 0;
1033
-
1034
- // 7. If fetchParams’s request’s mode is not "navigate" or response’s has-cross-origin-redirects is false:
1035
- if (fetchParams.request.mode !== 'navigator' || !response.hasCrossOriginRedirects) {
1036
- // 1. Set responseStatus to response’s status.
1037
- responseStatus = response.status;
1038
-
1039
- // 2. Let mimeType be the result of extracting a MIME type from response’s header list.
1040
- const mimeType = extractMimeType(response.headersList);
1041
-
1042
- // 3. If mimeType is not failure, then set bodyInfo’s content type to the result of minimizing a supported MIME type given mimeType.
1043
- if (mimeType !== 'failure') {
1044
- bodyInfo.contentType = minimizeSupportedMimeType(mimeType);
1045
- }
1046
- }
1047
-
1048
- // 8. If fetchParams’s request’s initiator type is non-null, then mark resource timing given timingInfo,
1049
- // fetchParams’s request’s URL, fetchParams’s request’s initiator type, global, cacheState, bodyInfo,
1050
- // and responseStatus.
1051
- if (fetchParams.request.initiatorType != null) {
1052
- // TODO: update markresourcetiming
1053
- markResourceTiming(timingInfo, fetchParams.request.url.href, fetchParams.request.initiatorType, globalThis, cacheState, bodyInfo, responseStatus);
1054
- }
1055
- };
1056
-
1057
- // 4. Let processResponseEndOfBodyTask be the following steps:
1058
- const processResponseEndOfBodyTask = () => {
1059
- // 1. Set fetchParams’s request’s done flag.
1060
- fetchParams.request.done = true;
1061
-
1062
- // 2. If fetchParams’s process response end-of-body is non-null, then run fetchParams’s process
1063
- // response end-of-body given response.
1064
- if (fetchParams.processResponseEndOfBody != null) {
1065
- queueMicrotask(() => fetchParams.processResponseEndOfBody(response));
1066
- }
1067
-
1068
- // 3. If fetchParams’s request’s initiator type is non-null and fetchParams’s request’s client’s
1069
- // global object is fetchParams’s task destination, then run fetchParams’s controller’s report
1070
- // timing steps given fetchParams’s request’s client’s global object.
1071
- if (fetchParams.request.initiatorType != null) {
1072
- fetchParams.controller.reportTimingSteps();
1073
- }
1074
- };
1075
-
1076
- // 5. Queue a fetch task to run processResponseEndOfBodyTask with fetchParams’s task destination
1077
- queueMicrotask(() => processResponseEndOfBodyTask());
1078
- };
1079
-
1080
- // 4. If fetchParams’s process response is non-null, then queue a fetch task to run fetchParams’s
1081
- // process response given response, with fetchParams’s task destination.
1082
- if (fetchParams.processResponse != null) {
1083
- queueMicrotask(() => {
1084
- fetchParams.processResponse(response);
1085
- fetchParams.processResponse = null;
1086
- });
1087
- }
1088
-
1089
- // 5. Let internalResponse be response, if response is a network error; otherwise response’s internal response.
1090
- const internalResponse = response.type === 'error' ? response : (response.internalResponse ?? response);
1091
-
1092
- // 6. If internalResponse’s body is null, then run processResponseEndOfBody.
1093
- // 7. Otherwise:
1094
- if (internalResponse.body == null) {
1095
- processResponseEndOfBody();
1096
- } else {
1097
- // mcollina: all the following steps of the specs are skipped.
1098
- // The internal transform stream is not needed.
1099
- // See https://github.com/nodejs/undici/pull/3093#issuecomment-2050198541
1100
-
1101
- // 1. Let transformStream be a new TransformStream.
1102
- // 2. Let identityTransformAlgorithm be an algorithm which, given chunk, enqueues chunk in transformStream.
1103
- // 3. Set up transformStream with transformAlgorithm set to identityTransformAlgorithm and flushAlgorithm
1104
- // set to processResponseEndOfBody.
1105
- // 4. Set internalResponse’s body’s stream to the result of internalResponse’s body’s stream piped through transformStream.
1106
-
1107
- finished(internalResponse.body.stream, () => {
1108
- processResponseEndOfBody();
1109
- });
1110
- }
1111
- }
1112
-
1113
- // https://fetch.spec.whatwg.org/#http-fetch
1114
- async function httpFetch (fetchParams) {
1115
- // 1. Let request be fetchParams’s request.
1116
- const request = fetchParams.request;
1117
-
1118
- // 2. Let response be null.
1119
- let response = null;
1120
-
1121
- // 3. Let actualResponse be null.
1122
- let actualResponse = null;
1123
-
1124
- // 4. Let timingInfo be fetchParams’s timing info.
1125
- const timingInfo = fetchParams.timingInfo;
1126
-
1127
- // 5. If request’s service-workers mode is "all", then:
1128
- if (request.serviceWorkers === 'all') ;
1129
-
1130
- // 6. If response is null, then:
1131
- if (response === null) {
1132
- // 1. If makeCORSPreflight is true and one of these conditions is true:
1133
- // TODO
1134
-
1135
- // 2. If request’s redirect mode is "follow", then set request’s
1136
- // service-workers mode to "none".
1137
- if (request.redirect === 'follow') {
1138
- request.serviceWorkers = 'none';
1139
- }
1140
-
1141
- // 3. Set response and actualResponse to the result of running
1142
- // HTTP-network-or-cache fetch given fetchParams.
1143
- actualResponse = response = await httpNetworkOrCacheFetch(fetchParams);
1144
-
1145
- // 4. If request’s response tainting is "cors" and a CORS check
1146
- // for request and response returns failure, then return a network error.
1147
- if (
1148
- request.responseTainting === 'cors' &&
1149
- corsCheck(request, response) === 'failure'
1150
- ) {
1151
- return makeNetworkError('cors failure')
1152
- }
1153
-
1154
- // 5. If the TAO check for request and response returns failure, then set
1155
- // request’s timing allow failed flag.
1156
- if (TAOCheck(request, response) === 'failure') {
1157
- request.timingAllowFailed = true;
1158
- }
1159
- }
1160
-
1161
- // 7. If either request’s response tainting or response’s type
1162
- // is "opaque", and the cross-origin resource policy check with
1163
- // request’s origin, request’s client, request’s destination,
1164
- // and actualResponse returns blocked, then return a network error.
1165
- if (
1166
- (request.responseTainting === 'opaque' || response.type === 'opaque') &&
1167
- crossOriginResourcePolicyCheck(
1168
- request.origin,
1169
- request.client,
1170
- request.destination,
1171
- actualResponse
1172
- ) === 'blocked'
1173
- ) {
1174
- return makeNetworkError('blocked')
1175
- }
1176
-
1177
- // 8. If actualResponse’s status is a redirect status, then:
1178
- if (redirectStatusSet.has(actualResponse.status)) {
1179
- // 1. If actualResponse’s status is not 303, request’s body is not null,
1180
- // and the connection uses HTTP/2, then user agents may, and are even
1181
- // encouraged to, transmit an RST_STREAM frame.
1182
- // See, https://github.com/whatwg/fetch/issues/1288
1183
- if (request.redirect !== 'manual') {
1184
- fetchParams.controller.connection.destroy(undefined, false);
1185
- }
1186
-
1187
- // 2. Switch on request’s redirect mode:
1188
- if (request.redirect === 'error') {
1189
- // Set response to a network error.
1190
- response = makeNetworkError('unexpected redirect');
1191
- } else if (request.redirect === 'manual') {
1192
- // Set response to an opaque-redirect filtered response whose internal
1193
- // response is actualResponse.
1194
- // NOTE(spec): On the web this would return an `opaqueredirect` response,
1195
- // but that doesn't make sense server side.
1196
- // See https://github.com/nodejs/undici/issues/1193.
1197
- response = actualResponse;
1198
- } else if (request.redirect === 'follow') {
1199
- // Set response to the result of running HTTP-redirect fetch given
1200
- // fetchParams and response.
1201
- response = await httpRedirectFetch(fetchParams, response);
1202
- } else {
1203
- assert(false);
1204
- }
1205
- }
1206
-
1207
- // 9. Set response’s timing info to timingInfo.
1208
- response.timingInfo = timingInfo;
1209
-
1210
- // 10. Return response.
1211
- return response
1212
- }
1213
-
1214
- // https://fetch.spec.whatwg.org/#http-redirect-fetch
1215
- function httpRedirectFetch (fetchParams, response) {
1216
- // 1. Let request be fetchParams’s request.
1217
- const request = fetchParams.request;
1218
-
1219
- // 2. Let actualResponse be response, if response is not a filtered response,
1220
- // and response’s internal response otherwise.
1221
- const actualResponse = response.internalResponse
1222
- ? response.internalResponse
1223
- : response;
1224
-
1225
- // 3. Let locationURL be actualResponse’s location URL given request’s current
1226
- // URL’s fragment.
1227
- let locationURL;
1228
-
1229
- try {
1230
- locationURL = responseLocationURL(
1231
- actualResponse,
1232
- requestCurrentURL(request).hash
1233
- );
1234
-
1235
- // 4. If locationURL is null, then return response.
1236
- if (locationURL == null) {
1237
- return response
1238
- }
1239
- } catch (err) {
1240
- // 5. If locationURL is failure, then return a network error.
1241
- return Promise.resolve(makeNetworkError(err))
1242
- }
1243
-
1244
- // 6. If locationURL’s scheme is not an HTTP(S) scheme, then return a network
1245
- // error.
1246
- if (!urlIsHttpHttpsScheme(locationURL)) {
1247
- return Promise.resolve(makeNetworkError('URL scheme must be a HTTP(S) scheme'))
1248
- }
1249
-
1250
- // 7. If request’s redirect count is 20, then return a network error.
1251
- if (request.redirectCount === 20) {
1252
- return Promise.resolve(makeNetworkError('redirect count exceeded'))
1253
- }
1254
-
1255
- // 8. Increase request’s redirect count by 1.
1256
- request.redirectCount += 1;
1257
-
1258
- // 9. If request’s mode is "cors", locationURL includes credentials, and
1259
- // request’s origin is not same origin with locationURL’s origin, then return
1260
- // a network error.
1261
- if (
1262
- request.mode === 'cors' &&
1263
- (locationURL.username || locationURL.password) &&
1264
- !sameOrigin(request, locationURL)
1265
- ) {
1266
- return Promise.resolve(makeNetworkError('cross origin not allowed for request mode "cors"'))
1267
- }
1268
-
1269
- // 10. If request’s response tainting is "cors" and locationURL includes
1270
- // credentials, then return a network error.
1271
- if (
1272
- request.responseTainting === 'cors' &&
1273
- (locationURL.username || locationURL.password)
1274
- ) {
1275
- return Promise.resolve(makeNetworkError(
1276
- 'URL cannot contain credentials for request mode "cors"'
1277
- ))
1278
- }
1279
-
1280
- // 11. If actualResponse’s status is not 303, request’s body is non-null,
1281
- // and request’s body’s source is null, then return a network error.
1282
- if (
1283
- actualResponse.status !== 303 &&
1284
- request.body != null &&
1285
- request.body.source == null
1286
- ) {
1287
- return Promise.resolve(makeNetworkError())
1288
- }
1289
-
1290
- // 12. If one of the following is true
1291
- // - actualResponse’s status is 301 or 302 and request’s method is `POST`
1292
- // - actualResponse’s status is 303 and request’s method is not `GET` or `HEAD`
1293
- if (
1294
- ([301, 302].includes(actualResponse.status) && request.method === 'POST') ||
1295
- (actualResponse.status === 303 &&
1296
- !GET_OR_HEAD.includes(request.method))
1297
- ) {
1298
- // then:
1299
- // 1. Set request’s method to `GET` and request’s body to null.
1300
- request.method = 'GET';
1301
- request.body = null;
1302
-
1303
- // 2. For each headerName of request-body-header name, delete headerName from
1304
- // request’s header list.
1305
- for (const headerName of requestBodyHeader) {
1306
- request.headersList.delete(headerName);
1307
- }
1308
- }
1309
-
1310
- // 13. If request’s current URL’s origin is not same origin with locationURL’s
1311
- // origin, then for each headerName of CORS non-wildcard request-header name,
1312
- // delete headerName from request’s header list.
1313
- if (!sameOrigin(requestCurrentURL(request), locationURL)) {
1314
- // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
1315
- request.headersList.delete('authorization', true);
1316
-
1317
- // https://fetch.spec.whatwg.org/#authentication-entries
1318
- request.headersList.delete('proxy-authorization', true);
1319
-
1320
- // "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
1321
- request.headersList.delete('cookie', true);
1322
- request.headersList.delete('host', true);
1323
- }
1324
-
1325
- // 14. If request’s body is non-null, then set request’s body to the first return
1326
- // value of safely extracting request’s body’s source.
1327
- if (request.body != null) {
1328
- assert(request.body.source != null);
1329
- request.body = safelyExtractBody(request.body.source)[0];
1330
- }
1331
-
1332
- // 15. Let timingInfo be fetchParams’s timing info.
1333
- const timingInfo = fetchParams.timingInfo;
1334
-
1335
- // 16. Set timingInfo’s redirect end time and post-redirect start time to the
1336
- // coarsened shared current time given fetchParams’s cross-origin isolated
1337
- // capability.
1338
- timingInfo.redirectEndTime = timingInfo.postRedirectStartTime =
1339
- coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability);
1340
-
1341
- // 17. If timingInfo’s redirect start time is 0, then set timingInfo’s
1342
- // redirect start time to timingInfo’s start time.
1343
- if (timingInfo.redirectStartTime === 0) {
1344
- timingInfo.redirectStartTime = timingInfo.startTime;
1345
- }
1346
-
1347
- // 18. Append locationURL to request’s URL list.
1348
- request.urlList.push(locationURL);
1349
-
1350
- // 19. Invoke set request’s referrer policy on redirect on request and
1351
- // actualResponse.
1352
- setRequestReferrerPolicyOnRedirect(request, actualResponse);
1353
-
1354
- // 20. Return the result of running main fetch given fetchParams and true.
1355
- return mainFetch(fetchParams, true)
1356
- }
1357
-
1358
- // https://fetch.spec.whatwg.org/#http-network-or-cache-fetch
1359
- async function httpNetworkOrCacheFetch (
1360
- fetchParams,
1361
- isAuthenticationFetch = false,
1362
- isNewConnectionFetch = false
1363
- ) {
1364
- // 1. Let request be fetchParams’s request.
1365
- const request = fetchParams.request;
1366
-
1367
- // 2. Let httpFetchParams be null.
1368
- let httpFetchParams = null;
1369
-
1370
- // 3. Let httpRequest be null.
1371
- let httpRequest = null;
1372
-
1373
- // 4. Let response be null.
1374
- let response = null;
1375
-
1376
- // 8. Run these steps, but abort when the ongoing fetch is terminated:
1377
-
1378
- // 1. If request’s window is "no-window" and request’s redirect mode is
1379
- // "error", then set httpFetchParams to fetchParams and httpRequest to
1380
- // request.
1381
- if (request.window === 'no-window' && request.redirect === 'error') {
1382
- httpFetchParams = fetchParams;
1383
- httpRequest = request;
1384
- } else {
1385
- // Otherwise:
1386
-
1387
- // 1. Set httpRequest to a clone of request.
1388
- httpRequest = cloneRequest(request);
1389
-
1390
- // 2. Set httpFetchParams to a copy of fetchParams.
1391
- httpFetchParams = { ...fetchParams };
1392
-
1393
- // 3. Set httpFetchParams’s request to httpRequest.
1394
- httpFetchParams.request = httpRequest;
1395
- }
1396
-
1397
- // 3. Let includeCredentials be true if one of
1398
- const includeCredentials =
1399
- request.credentials === 'include' ||
1400
- (request.credentials === 'same-origin' &&
1401
- request.responseTainting === 'basic');
1402
-
1403
- // 4. Let contentLength be httpRequest’s body’s length, if httpRequest’s
1404
- // body is non-null; otherwise null.
1405
- const contentLength = httpRequest.body ? httpRequest.body.length : null;
1406
-
1407
- // 5. Let contentLengthHeaderValue be null.
1408
- let contentLengthHeaderValue = null;
1409
-
1410
- // 6. If httpRequest’s body is null and httpRequest’s method is `POST` or
1411
- // `PUT`, then set contentLengthHeaderValue to `0`.
1412
- if (
1413
- httpRequest.body == null &&
1414
- ['POST', 'PUT'].includes(httpRequest.method)
1415
- ) {
1416
- contentLengthHeaderValue = '0';
1417
- }
1418
-
1419
- // 7. If contentLength is non-null, then set contentLengthHeaderValue to
1420
- // contentLength, serialized and isomorphic encoded.
1421
- if (contentLength != null) {
1422
- contentLengthHeaderValue = isomorphicEncode(`${contentLength}`);
1423
- }
1424
-
1425
- // 8. If contentLengthHeaderValue is non-null, then append
1426
- // `Content-Length`/contentLengthHeaderValue to httpRequest’s header
1427
- // list.
1428
- if (contentLengthHeaderValue != null) {
1429
- httpRequest.headersList.append('content-length', contentLengthHeaderValue, true);
1430
- }
1431
-
1432
- // 9. If contentLengthHeaderValue is non-null, then append (`Content-Length`,
1433
- // contentLengthHeaderValue) to httpRequest’s header list.
1434
-
1435
- // 10. If contentLength is non-null and httpRequest’s keepalive is true,
1436
- // then:
1437
- if (contentLength != null && httpRequest.keepalive) ;
1438
-
1439
- // 11. If httpRequest’s referrer is a URL, then append
1440
- // `Referer`/httpRequest’s referrer, serialized and isomorphic encoded,
1441
- // to httpRequest’s header list.
1442
- if (httpRequest.referrer instanceof URL) {
1443
- httpRequest.headersList.append('referer', isomorphicEncode(httpRequest.referrer.href), true);
1444
- }
1445
-
1446
- // 12. Append a request `Origin` header for httpRequest.
1447
- appendRequestOriginHeader(httpRequest);
1448
-
1449
- // 13. Append the Fetch metadata headers for httpRequest. [FETCH-METADATA]
1450
- appendFetchMetadata(httpRequest);
1451
-
1452
- // 14. If httpRequest’s header list does not contain `User-Agent`, then
1453
- // user agents should append `User-Agent`/default `User-Agent` value to
1454
- // httpRequest’s header list.
1455
- if (!httpRequest.headersList.contains('user-agent', true)) {
1456
- httpRequest.headersList.append('user-agent', defaultUserAgent);
1457
- }
1458
-
1459
- // 15. If httpRequest’s cache mode is "default" and httpRequest’s header
1460
- // list contains `If-Modified-Since`, `If-None-Match`,
1461
- // `If-Unmodified-Since`, `If-Match`, or `If-Range`, then set
1462
- // httpRequest’s cache mode to "no-store".
1463
- if (
1464
- httpRequest.cache === 'default' &&
1465
- (httpRequest.headersList.contains('if-modified-since', true) ||
1466
- httpRequest.headersList.contains('if-none-match', true) ||
1467
- httpRequest.headersList.contains('if-unmodified-since', true) ||
1468
- httpRequest.headersList.contains('if-match', true) ||
1469
- httpRequest.headersList.contains('if-range', true))
1470
- ) {
1471
- httpRequest.cache = 'no-store';
1472
- }
1473
-
1474
- // 16. If httpRequest’s cache mode is "no-cache", httpRequest’s prevent
1475
- // no-cache cache-control header modification flag is unset, and
1476
- // httpRequest’s header list does not contain `Cache-Control`, then append
1477
- // `Cache-Control`/`max-age=0` to httpRequest’s header list.
1478
- if (
1479
- httpRequest.cache === 'no-cache' &&
1480
- !httpRequest.preventNoCacheCacheControlHeaderModification &&
1481
- !httpRequest.headersList.contains('cache-control', true)
1482
- ) {
1483
- httpRequest.headersList.append('cache-control', 'max-age=0', true);
1484
- }
1485
-
1486
- // 17. If httpRequest’s cache mode is "no-store" or "reload", then:
1487
- if (httpRequest.cache === 'no-store' || httpRequest.cache === 'reload') {
1488
- // 1. If httpRequest’s header list does not contain `Pragma`, then append
1489
- // `Pragma`/`no-cache` to httpRequest’s header list.
1490
- if (!httpRequest.headersList.contains('pragma', true)) {
1491
- httpRequest.headersList.append('pragma', 'no-cache', true);
1492
- }
1493
-
1494
- // 2. If httpRequest’s header list does not contain `Cache-Control`,
1495
- // then append `Cache-Control`/`no-cache` to httpRequest’s header list.
1496
- if (!httpRequest.headersList.contains('cache-control', true)) {
1497
- httpRequest.headersList.append('cache-control', 'no-cache', true);
1498
- }
1499
- }
1500
-
1501
- // 18. If httpRequest’s header list contains `Range`, then append
1502
- // `Accept-Encoding`/`identity` to httpRequest’s header list.
1503
- if (httpRequest.headersList.contains('range', true)) {
1504
- httpRequest.headersList.append('accept-encoding', 'identity', true);
1505
- }
1506
-
1507
- // 19. Modify httpRequest’s header list per HTTP. Do not append a given
1508
- // header if httpRequest’s header list contains that header’s name.
1509
- // TODO: https://github.com/whatwg/fetch/issues/1285#issuecomment-896560129
1510
- if (!httpRequest.headersList.contains('accept-encoding', true)) {
1511
- if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) {
1512
- httpRequest.headersList.append('accept-encoding', 'br, gzip, deflate', true);
1513
- } else {
1514
- httpRequest.headersList.append('accept-encoding', 'gzip, deflate', true);
1515
- }
1516
- }
1517
-
1518
- httpRequest.headersList.delete('host', true);
1519
-
1520
- // 21. If there’s a proxy-authentication entry, use it as appropriate.
1521
- // TODO: proxy-authentication
1522
-
1523
- // 22. Set httpCache to the result of determining the HTTP cache
1524
- // partition, given httpRequest.
1525
- // TODO: cache
1526
-
1527
- // 23. If httpCache is null, then set httpRequest’s cache mode to
1528
- // "no-store".
1529
- {
1530
- httpRequest.cache = 'no-store';
1531
- }
1532
-
1533
- // 24. If httpRequest’s cache mode is neither "no-store" nor "reload",
1534
- // then:
1535
- if (httpRequest.cache !== 'no-store' && httpRequest.cache !== 'reload') ;
1536
-
1537
- // 9. If aborted, then return the appropriate network error for fetchParams.
1538
- // TODO
1539
-
1540
- // 10. If response is null, then:
1541
- if (response == null) {
1542
- // 1. If httpRequest’s cache mode is "only-if-cached", then return a
1543
- // network error.
1544
- if (httpRequest.cache === 'only-if-cached') {
1545
- return makeNetworkError('only if cached')
1546
- }
1547
-
1548
- // 2. Let forwardResponse be the result of running HTTP-network fetch
1549
- // given httpFetchParams, includeCredentials, and isNewConnectionFetch.
1550
- const forwardResponse = await httpNetworkFetch(
1551
- httpFetchParams,
1552
- includeCredentials,
1553
- isNewConnectionFetch
1554
- );
1555
-
1556
- // 3. If httpRequest’s method is unsafe and forwardResponse’s status is
1557
- // in the range 200 to 399, inclusive, invalidate appropriate stored
1558
- // responses in httpCache, as per the "Invalidation" chapter of HTTP
1559
- // Caching, and set storedResponse to null. [HTTP-CACHING]
1560
- if (
1561
- !safeMethodsSet.has(httpRequest.method) &&
1562
- forwardResponse.status >= 200 &&
1563
- forwardResponse.status <= 399
1564
- ) ;
1565
-
1566
- // 5. If response is null, then:
1567
- if (response == null) {
1568
- // 1. Set response to forwardResponse.
1569
- response = forwardResponse;
1570
-
1571
- // 2. Store httpRequest and forwardResponse in httpCache, as per the
1572
- // "Storing Responses in Caches" chapter of HTTP Caching. [HTTP-CACHING]
1573
- // TODO: cache
1574
- }
1575
- }
1576
-
1577
- // 11. Set response’s URL list to a clone of httpRequest’s URL list.
1578
- response.urlList = [...httpRequest.urlList];
1579
-
1580
- // 12. If httpRequest’s header list contains `Range`, then set response’s
1581
- // range-requested flag.
1582
- if (httpRequest.headersList.contains('range', true)) {
1583
- response.rangeRequested = true;
1584
- }
1585
-
1586
- // 13. Set response’s request-includes-credentials to includeCredentials.
1587
- response.requestIncludesCredentials = includeCredentials;
1588
-
1589
- // 14. If response’s status is 401, httpRequest’s response tainting is not
1590
- // "cors", includeCredentials is true, and request’s window is an environment
1591
- // settings object, then:
1592
- // TODO
1593
-
1594
- // 15. If response’s status is 407, then:
1595
- if (response.status === 407) {
1596
- // 1. If request’s window is "no-window", then return a network error.
1597
- if (request.window === 'no-window') {
1598
- return makeNetworkError()
1599
- }
1600
-
1601
- // 2. ???
1602
-
1603
- // 3. If fetchParams is canceled, then return the appropriate network error for fetchParams.
1604
- if (isCancelled(fetchParams)) {
1605
- return makeAppropriateNetworkError(fetchParams)
1606
- }
1607
-
1608
- // 4. Prompt the end user as appropriate in request’s window and store
1609
- // the result as a proxy-authentication entry. [HTTP-AUTH]
1610
- // TODO: Invoke some kind of callback?
1611
-
1612
- // 5. Set response to the result of running HTTP-network-or-cache fetch given
1613
- // fetchParams.
1614
- // TODO
1615
- return makeNetworkError('proxy authentication required')
1616
- }
1617
-
1618
- // 16. If all of the following are true
1619
- if (
1620
- // response’s status is 421
1621
- response.status === 421 &&
1622
- // isNewConnectionFetch is false
1623
- !isNewConnectionFetch &&
1624
- // request’s body is null, or request’s body is non-null and request’s body’s source is non-null
1625
- (request.body == null || request.body.source != null)
1626
- ) {
1627
- // then:
1628
-
1629
- // 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.
1630
- if (isCancelled(fetchParams)) {
1631
- return makeAppropriateNetworkError(fetchParams)
1632
- }
1633
-
1634
- // 2. Set response to the result of running HTTP-network-or-cache
1635
- // fetch given fetchParams, isAuthenticationFetch, and true.
1636
-
1637
- // TODO (spec): The spec doesn't specify this but we need to cancel
1638
- // the active response before we can start a new one.
1639
- // https://github.com/whatwg/fetch/issues/1293
1640
- fetchParams.controller.connection.destroy();
1641
-
1642
- response = await httpNetworkOrCacheFetch(
1643
- fetchParams,
1644
- isAuthenticationFetch,
1645
- true
1646
- );
1647
- }
1648
-
1649
- // 18. Return response.
1650
- return response
1651
- }
1652
-
1653
- // https://fetch.spec.whatwg.org/#http-network-fetch
1654
- async function httpNetworkFetch (
1655
- fetchParams,
1656
- includeCredentials = false,
1657
- forceNewConnection = false
1658
- ) {
1659
- assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed);
1660
-
1661
- fetchParams.controller.connection = {
1662
- abort: null,
1663
- destroyed: false,
1664
- destroy (err, abort = true) {
1665
- if (!this.destroyed) {
1666
- this.destroyed = true;
1667
- if (abort) {
1668
- this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'));
1669
- }
1670
- }
1671
- }
1672
- };
1673
-
1674
- // 1. Let request be fetchParams’s request.
1675
- const request = fetchParams.request;
1676
-
1677
- // 2. Let response be null.
1678
- let response = null;
1679
-
1680
- // 3. Let timingInfo be fetchParams’s timing info.
1681
- const timingInfo = fetchParams.timingInfo;
1682
-
1683
- // 5. If httpCache is null, then set request’s cache mode to "no-store".
1684
- {
1685
- request.cache = 'no-store';
1686
- }
1687
-
1688
- // 8. Switch on request’s mode:
1689
- if (request.mode === 'websocket') ;
1690
-
1691
- // 9. Run these steps, but abort when the ongoing fetch is terminated:
1692
-
1693
- // 1. If connection is failure, then return a network error.
1694
-
1695
- // 2. Set timingInfo’s final connection timing info to the result of
1696
- // calling clamp and coarsen connection timing info with connection’s
1697
- // timing info, timingInfo’s post-redirect start time, and fetchParams’s
1698
- // cross-origin isolated capability.
1699
-
1700
- // 3. If connection is not an HTTP/2 connection, request’s body is non-null,
1701
- // and request’s body’s source is null, then append (`Transfer-Encoding`,
1702
- // `chunked`) to request’s header list.
1703
-
1704
- // 4. Set timingInfo’s final network-request start time to the coarsened
1705
- // shared current time given fetchParams’s cross-origin isolated
1706
- // capability.
1707
-
1708
- // 5. Set response to the result of making an HTTP request over connection
1709
- // using request with the following caveats:
1710
-
1711
- // - Follow the relevant requirements from HTTP. [HTTP] [HTTP-SEMANTICS]
1712
- // [HTTP-COND] [HTTP-CACHING] [HTTP-AUTH]
1713
-
1714
- // - If request’s body is non-null, and request’s body’s source is null,
1715
- // then the user agent may have a buffer of up to 64 kibibytes and store
1716
- // a part of request’s body in that buffer. If the user agent reads from
1717
- // request’s body beyond that buffer’s size and the user agent needs to
1718
- // resend request, then instead return a network error.
1719
-
1720
- // - Set timingInfo’s final network-response start time to the coarsened
1721
- // shared current time given fetchParams’s cross-origin isolated capability,
1722
- // immediately after the user agent’s HTTP parser receives the first byte
1723
- // of the response (e.g., frame header bytes for HTTP/2 or response status
1724
- // line for HTTP/1.x).
1725
-
1726
- // - Wait until all the headers are transmitted.
1727
-
1728
- // - Any responses whose status is in the range 100 to 199, inclusive,
1729
- // and is not 101, are to be ignored, except for the purposes of setting
1730
- // timingInfo’s final network-response start time above.
1731
-
1732
- // - If request’s header list contains `Transfer-Encoding`/`chunked` and
1733
- // response is transferred via HTTP/1.0 or older, then return a network
1734
- // error.
1735
-
1736
- // - If the HTTP request results in a TLS client certificate dialog, then:
1737
-
1738
- // 1. If request’s window is an environment settings object, make the
1739
- // dialog available in request’s window.
1740
-
1741
- // 2. Otherwise, return a network error.
1742
-
1743
- // To transmit request’s body body, run these steps:
1744
- let requestBody = null;
1745
- // 1. If body is null and fetchParams’s process request end-of-body is
1746
- // non-null, then queue a fetch task given fetchParams’s process request
1747
- // end-of-body and fetchParams’s task destination.
1748
- if (request.body == null && fetchParams.processRequestEndOfBody) {
1749
- queueMicrotask(() => fetchParams.processRequestEndOfBody());
1750
- } else if (request.body != null) {
1751
- // 2. Otherwise, if body is non-null:
1752
-
1753
- // 1. Let processBodyChunk given bytes be these steps:
1754
- const processBodyChunk = async function * (bytes) {
1755
- // 1. If the ongoing fetch is terminated, then abort these steps.
1756
- if (isCancelled(fetchParams)) {
1757
- return
1758
- }
1759
-
1760
- // 2. Run this step in parallel: transmit bytes.
1761
- yield bytes;
1762
-
1763
- // 3. If fetchParams’s process request body is non-null, then run
1764
- // fetchParams’s process request body given bytes’s length.
1765
- fetchParams.processRequestBodyChunkLength?.(bytes.byteLength);
1766
- };
1767
-
1768
- // 2. Let processEndOfBody be these steps:
1769
- const processEndOfBody = () => {
1770
- // 1. If fetchParams is canceled, then abort these steps.
1771
- if (isCancelled(fetchParams)) {
1772
- return
1773
- }
1774
-
1775
- // 2. If fetchParams’s process request end-of-body is non-null,
1776
- // then run fetchParams’s process request end-of-body.
1777
- if (fetchParams.processRequestEndOfBody) {
1778
- fetchParams.processRequestEndOfBody();
1779
- }
1780
- };
1781
-
1782
- // 3. Let processBodyError given e be these steps:
1783
- const processBodyError = (e) => {
1784
- // 1. If fetchParams is canceled, then abort these steps.
1785
- if (isCancelled(fetchParams)) {
1786
- return
1787
- }
1788
-
1789
- // 2. If e is an "AbortError" DOMException, then abort fetchParams’s controller.
1790
- if (e.name === 'AbortError') {
1791
- fetchParams.controller.abort();
1792
- } else {
1793
- fetchParams.controller.terminate(e);
1794
- }
1795
- };
1796
-
1797
- // 4. Incrementally read request’s body given processBodyChunk, processEndOfBody,
1798
- // processBodyError, and fetchParams’s task destination.
1799
- requestBody = (async function * () {
1800
- try {
1801
- for await (const bytes of request.body.stream) {
1802
- yield * processBodyChunk(bytes);
1803
- }
1804
- processEndOfBody();
1805
- } catch (err) {
1806
- processBodyError(err);
1807
- }
1808
- })();
1809
- }
1810
-
1811
- try {
1812
- // socket is only provided for websockets
1813
- const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody });
1814
-
1815
- if (socket) {
1816
- response = makeResponse({ status, statusText, headersList, socket });
1817
- } else {
1818
- const iterator = body[Symbol.asyncIterator]();
1819
- fetchParams.controller.next = () => iterator.next();
1820
-
1821
- response = makeResponse({ status, statusText, headersList });
1822
- }
1823
- } catch (err) {
1824
- // 10. If aborted, then:
1825
- if (err.name === 'AbortError') {
1826
- // 1. If connection uses HTTP/2, then transmit an RST_STREAM frame.
1827
- fetchParams.controller.connection.destroy();
1828
-
1829
- // 2. Return the appropriate network error for fetchParams.
1830
- return makeAppropriateNetworkError(fetchParams, err)
1831
- }
1832
-
1833
- return makeNetworkError(err)
1834
- }
1835
-
1836
- // 11. Let pullAlgorithm be an action that resumes the ongoing fetch
1837
- // if it is suspended.
1838
- const pullAlgorithm = async () => {
1839
- await fetchParams.controller.resume();
1840
- };
1841
-
1842
- // 12. Let cancelAlgorithm be an algorithm that aborts fetchParams’s
1843
- // controller with reason, given reason.
1844
- const cancelAlgorithm = (reason) => {
1845
- // If the aborted fetch was already terminated, then we do not
1846
- // need to do anything.
1847
- if (!isCancelled(fetchParams)) {
1848
- fetchParams.controller.abort(reason);
1849
- }
1850
- };
1851
-
1852
- // 13. Let highWaterMark be a non-negative, non-NaN number, chosen by
1853
- // the user agent.
1854
- // TODO
1855
-
1856
- // 14. Let sizeAlgorithm be an algorithm that accepts a chunk object
1857
- // and returns a non-negative, non-NaN, non-infinite number, chosen by the user agent.
1858
- // TODO
1859
-
1860
- // 15. Let stream be a new ReadableStream.
1861
- // 16. Set up stream with byte reading support with pullAlgorithm set to pullAlgorithm,
1862
- // cancelAlgorithm set to cancelAlgorithm.
1863
- const stream = new ReadableStream(
1864
- {
1865
- async start (controller) {
1866
- fetchParams.controller.controller = controller;
1867
- },
1868
- async pull (controller) {
1869
- await pullAlgorithm();
1870
- },
1871
- async cancel (reason) {
1872
- await cancelAlgorithm(reason);
1873
- },
1874
- type: 'bytes'
1875
- }
1876
- );
1877
-
1878
- // 17. Run these steps, but abort when the ongoing fetch is terminated:
1879
-
1880
- // 1. Set response’s body to a new body whose stream is stream.
1881
- response.body = { stream, source: null, length: null };
1882
-
1883
- // 2. If response is not a network error and request’s cache mode is
1884
- // not "no-store", then update response in httpCache for request.
1885
- // TODO
1886
-
1887
- // 3. If includeCredentials is true and the user agent is not configured
1888
- // to block cookies for request (see section 7 of [COOKIES]), then run the
1889
- // "set-cookie-string" parsing algorithm (see section 5.2 of [COOKIES]) on
1890
- // the value of each header whose name is a byte-case-insensitive match for
1891
- // `Set-Cookie` in response’s header list, if any, and request’s current URL.
1892
- // TODO
1893
-
1894
- // 18. If aborted, then:
1895
- // TODO
1896
-
1897
- // 19. Run these steps in parallel:
1898
-
1899
- // 1. Run these steps, but abort when fetchParams is canceled:
1900
- fetchParams.controller.onAborted = onAborted;
1901
- fetchParams.controller.on('terminated', onAborted);
1902
- fetchParams.controller.resume = async () => {
1903
- // 1. While true
1904
- while (true) {
1905
- // 1-3. See onData...
1906
-
1907
- // 4. Set bytes to the result of handling content codings given
1908
- // codings and bytes.
1909
- let bytes;
1910
- let isFailure;
1911
- try {
1912
- const { done, value } = await fetchParams.controller.next();
1913
-
1914
- if (isAborted(fetchParams)) {
1915
- break
1916
- }
1917
-
1918
- bytes = done ? undefined : value;
1919
- } catch (err) {
1920
- if (fetchParams.controller.ended && !timingInfo.encodedBodySize) {
1921
- // zlib doesn't like empty streams.
1922
- bytes = undefined;
1923
- } else {
1924
- bytes = err;
1925
-
1926
- // err may be propagated from the result of calling readablestream.cancel,
1927
- // which might not be an error. https://github.com/nodejs/undici/issues/2009
1928
- isFailure = true;
1929
- }
1930
- }
1931
-
1932
- if (bytes === undefined) {
1933
- // 2. Otherwise, if the bytes transmission for response’s message
1934
- // body is done normally and stream is readable, then close
1935
- // stream, finalize response for fetchParams and response, and
1936
- // abort these in-parallel steps.
1937
- readableStreamClose(fetchParams.controller.controller);
1938
-
1939
- finalizeResponse(fetchParams, response);
1940
-
1941
- return
1942
- }
1943
-
1944
- // 5. Increase timingInfo’s decoded body size by bytes’s length.
1945
- timingInfo.decodedBodySize += bytes?.byteLength ?? 0;
1946
-
1947
- // 6. If bytes is failure, then terminate fetchParams’s controller.
1948
- if (isFailure) {
1949
- fetchParams.controller.terminate(bytes);
1950
- return
1951
- }
1952
-
1953
- // 7. Enqueue a Uint8Array wrapping an ArrayBuffer containing bytes
1954
- // into stream.
1955
- const buffer = new Uint8Array(bytes);
1956
- if (buffer.byteLength) {
1957
- fetchParams.controller.controller.enqueue(buffer);
1958
- }
1959
-
1960
- // 8. If stream is errored, then terminate the ongoing fetch.
1961
- if (isErrored(stream)) {
1962
- fetchParams.controller.terminate();
1963
- return
1964
- }
1965
-
1966
- // 9. If stream doesn’t need more data ask the user agent to suspend
1967
- // the ongoing fetch.
1968
- if (fetchParams.controller.controller.desiredSize <= 0) {
1969
- return
1970
- }
1971
- }
1972
- };
1973
-
1974
- // 2. If aborted, then:
1975
- function onAborted (reason) {
1976
- // 2. If fetchParams is aborted, then:
1977
- if (isAborted(fetchParams)) {
1978
- // 1. Set response’s aborted flag.
1979
- response.aborted = true;
1980
-
1981
- // 2. If stream is readable, then error stream with the result of
1982
- // deserialize a serialized abort reason given fetchParams’s
1983
- // controller’s serialized abort reason and an
1984
- // implementation-defined realm.
1985
- if (isReadable(stream)) {
1986
- fetchParams.controller.controller.error(
1987
- fetchParams.controller.serializedAbortReason
1988
- );
1989
- }
1990
- } else {
1991
- // 3. Otherwise, if stream is readable, error stream with a TypeError.
1992
- if (isReadable(stream)) {
1993
- fetchParams.controller.controller.error(new TypeError('terminated', {
1994
- cause: isErrorLike(reason) ? reason : undefined
1995
- }));
1996
- }
1997
- }
1998
-
1999
- // 4. If connection uses HTTP/2, then transmit an RST_STREAM frame.
2000
- // 5. Otherwise, the user agent should close connection unless it would be bad for performance to do so.
2001
- fetchParams.controller.connection.destroy();
2002
- }
2003
-
2004
- // 20. Return response.
2005
- return response
2006
-
2007
- function dispatch ({ body }) {
2008
- const url = requestCurrentURL(request);
2009
- /** @type {import('../..').Agent} */
2010
- const agent = fetchParams.controller.dispatcher;
2011
-
2012
- return new Promise((resolve, reject) => agent.dispatch(
2013
- {
2014
- path: url.pathname + url.search,
2015
- origin: url.origin,
2016
- method: request.method,
2017
- body: agent.isMockActive ? request.body && (request.body.source || request.body.stream) : body,
2018
- headers: request.headersList.entries,
2019
- maxRedirections: 0,
2020
- upgrade: request.mode === 'websocket' ? 'websocket' : undefined
2021
- },
2022
- {
2023
- body: null,
2024
- abort: null,
2025
-
2026
- onConnect (abort) {
2027
- // TODO (fix): Do we need connection here?
2028
- const { connection } = fetchParams.controller;
2029
-
2030
- // Set timingInfo’s final connection timing info to the result of calling clamp and coarsen
2031
- // connection timing info with connection’s timing info, timingInfo’s post-redirect start
2032
- // time, and fetchParams’s cross-origin isolated capability.
2033
- // TODO: implement connection timing
2034
- timingInfo.finalConnectionTimingInfo = clampAndCoarsenConnectionTimingInfo(undefined, timingInfo.postRedirectStartTime, fetchParams.crossOriginIsolatedCapability);
2035
-
2036
- if (connection.destroyed) {
2037
- abort(new DOMException('The operation was aborted.', 'AbortError'));
2038
- } else {
2039
- fetchParams.controller.on('terminated', abort);
2040
- this.abort = connection.abort = abort;
2041
- }
2042
-
2043
- // Set timingInfo’s final network-request start time to the coarsened shared current time given
2044
- // fetchParams’s cross-origin isolated capability.
2045
- timingInfo.finalNetworkRequestStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability);
2046
- },
2047
-
2048
- onResponseStarted () {
2049
- // Set timingInfo’s final network-response start time to the coarsened shared current
2050
- // time given fetchParams’s cross-origin isolated capability, immediately after the
2051
- // user agent’s HTTP parser receives the first byte of the response (e.g., frame header
2052
- // bytes for HTTP/2 or response status line for HTTP/1.x).
2053
- timingInfo.finalNetworkResponseStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability);
2054
- },
2055
-
2056
- onHeaders (status, rawHeaders, resume, statusText) {
2057
- if (status < 200) {
2058
- return
2059
- }
2060
-
2061
- let location = '';
2062
-
2063
- const headersList = new HeadersList();
2064
-
2065
- for (let i = 0; i < rawHeaders.length; i += 2) {
2066
- headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString('latin1'), true);
2067
- }
2068
- location = headersList.get('location', true);
2069
-
2070
- this.body = new Readable({ read: resume });
2071
-
2072
- const decoders = [];
2073
-
2074
- const willFollow = location && request.redirect === 'follow' &&
2075
- redirectStatusSet.has(status);
2076
-
2077
- // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
2078
- if (request.method !== 'HEAD' && request.method !== 'CONNECT' && !nullBodyStatus.includes(status) && !willFollow) {
2079
- // https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1
2080
- const contentEncoding = headersList.get('content-encoding', true);
2081
- // "All content-coding values are case-insensitive..."
2082
- /** @type {string[]} */
2083
- const codings = contentEncoding ? contentEncoding.toLowerCase().split(',') : [];
2084
-
2085
- // Limit the number of content-encodings to prevent resource exhaustion.
2086
- // CVE fix similar to urllib3 (GHSA-gm62-xv2j-4w53) and curl (CVE-2022-32206).
2087
- const maxContentEncodings = 5;
2088
- if (codings.length > maxContentEncodings) {
2089
- reject(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`));
2090
- return true
2091
- }
2092
-
2093
- for (let i = codings.length - 1; i >= 0; --i) {
2094
- const coding = codings[i].trim();
2095
- // https://www.rfc-editor.org/rfc/rfc9112.html#section-7.2
2096
- if (coding === 'x-gzip' || coding === 'gzip') {
2097
- decoders.push(zlib.createGunzip({
2098
- // Be less strict when decoding compressed responses, since sometimes
2099
- // servers send slightly invalid responses that are still accepted
2100
- // by common browsers.
2101
- // Always using Z_SYNC_FLUSH is what cURL does.
2102
- flush: zlib.constants.Z_SYNC_FLUSH,
2103
- finishFlush: zlib.constants.Z_SYNC_FLUSH
2104
- }));
2105
- } else if (coding === 'deflate') {
2106
- decoders.push(createInflate({
2107
- flush: zlib.constants.Z_SYNC_FLUSH,
2108
- finishFlush: zlib.constants.Z_SYNC_FLUSH
2109
- }));
2110
- } else if (coding === 'br') {
2111
- decoders.push(zlib.createBrotliDecompress({
2112
- flush: zlib.constants.BROTLI_OPERATION_FLUSH,
2113
- finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
2114
- }));
2115
- } else {
2116
- decoders.length = 0;
2117
- break
2118
- }
2119
- }
2120
- }
2121
-
2122
- const onError = this.onError.bind(this);
2123
-
2124
- resolve({
2125
- status,
2126
- statusText,
2127
- headersList,
2128
- body: decoders.length
2129
- ? pipeline(this.body, ...decoders, (err) => {
2130
- if (err) {
2131
- this.onError(err);
2132
- }
2133
- }).on('error', onError)
2134
- : this.body.on('error', onError)
2135
- });
2136
-
2137
- return true
2138
- },
2139
-
2140
- onData (chunk) {
2141
- if (fetchParams.controller.dump) {
2142
- return
2143
- }
2144
-
2145
- // 1. If one or more bytes have been transmitted from response’s
2146
- // message body, then:
2147
-
2148
- // 1. Let bytes be the transmitted bytes.
2149
- const bytes = chunk;
2150
-
2151
- // 2. Let codings be the result of extracting header list values
2152
- // given `Content-Encoding` and response’s header list.
2153
- // See pullAlgorithm.
2154
-
2155
- // 3. Increase timingInfo’s encoded body size by bytes’s length.
2156
- timingInfo.encodedBodySize += bytes.byteLength;
2157
-
2158
- // 4. See pullAlgorithm...
2159
-
2160
- return this.body.push(bytes)
2161
- },
2162
-
2163
- onComplete () {
2164
- if (this.abort) {
2165
- fetchParams.controller.off('terminated', this.abort);
2166
- }
2167
-
2168
- if (fetchParams.controller.onAborted) {
2169
- fetchParams.controller.off('terminated', fetchParams.controller.onAborted);
2170
- }
2171
-
2172
- fetchParams.controller.ended = true;
2173
-
2174
- this.body.push(null);
2175
- },
2176
-
2177
- onError (error) {
2178
- if (this.abort) {
2179
- fetchParams.controller.off('terminated', this.abort);
2180
- }
2181
-
2182
- this.body?.destroy(error);
2183
-
2184
- fetchParams.controller.terminate(error);
2185
-
2186
- reject(error);
2187
- },
2188
-
2189
- onUpgrade (status, rawHeaders, socket) {
2190
- if (status !== 101) {
2191
- return
2192
- }
2193
-
2194
- const headersList = new HeadersList();
2195
-
2196
- for (let i = 0; i < rawHeaders.length; i += 2) {
2197
- headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString('latin1'), true);
2198
- }
2199
-
2200
- resolve({
2201
- status,
2202
- statusText: STATUS_CODES[status],
2203
- headersList,
2204
- socket
2205
- });
2206
-
2207
- return true
2208
- }
2209
- }
2210
- ))
2211
- }
2212
- }
2213
-
2214
- fetch_1 = {
2215
- fetch,
2216
- Fetch,
2217
- fetching,
2218
- finalizeAndReportTiming
2219
- };
2220
- return fetch_1;
2221
- }
2222
-
2223
- export { requireFetch as __require };
2224
- //# sourceMappingURL=index.js.map