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