@relative-ci/core 5.2.2 → 5.3.0-alpha.1

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 (610) hide show
  1. package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js +57 -0
  2. package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  3. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js +144 -0
  4. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js.map +1 -0
  5. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js +6 -0
  6. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js.map +1 -0
  7. package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js +349 -0
  8. package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  9. package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js +125 -0
  10. package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  11. package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js +417 -0
  12. package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  13. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +128 -0
  14. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  15. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +2295 -0
  16. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  17. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js +24 -0
  18. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  19. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +6 -0
  20. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  21. package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js +199 -0
  22. package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +1 -0
  23. package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js +43 -0
  24. package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +1 -0
  25. package/lib/cjs/__/@actions/github/__/before-after-hook/index.js +41 -0
  26. package/lib/cjs/__/@actions/github/__/before-after-hook/index.js.map +1 -0
  27. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js +51 -0
  28. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js.map +1 -0
  29. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js +32 -0
  30. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js.map +1 -0
  31. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js +24 -0
  32. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js.map +1 -0
  33. package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js +18 -0
  34. package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js.map +1 -0
  35. package/lib/cjs/__/@actions/github/lib/context.js +76 -0
  36. package/lib/cjs/__/@actions/github/lib/context.js.map +1 -0
  37. package/lib/cjs/__/@actions/github/lib/github.js +66 -0
  38. package/lib/cjs/__/@actions/github/lib/github.js.map +1 -0
  39. package/lib/cjs/__/@actions/github/lib/internal/utils.js +94 -0
  40. package/lib/cjs/__/@actions/github/lib/internal/utils.js.map +1 -0
  41. package/lib/cjs/__/@actions/github/lib/utils.js +89 -0
  42. package/lib/cjs/__/@actions/github/lib/utils.js.map +1 -0
  43. package/lib/cjs/__/@actions/http-client/lib/index.js +760 -0
  44. package/lib/cjs/__/@actions/http-client/lib/index.js.map +1 -0
  45. package/lib/cjs/__/@actions/http-client/lib/proxy.js +107 -0
  46. package/lib/cjs/__/@actions/http-client/lib/proxy.js.map +1 -0
  47. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js +236 -0
  48. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +1 -0
  49. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +122 -0
  50. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +1 -0
  51. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js +33 -0
  52. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +1 -0
  53. package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js +248 -0
  54. package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +1 -0
  55. package/lib/cjs/__/@fastify/busboy/lib/main.js +109 -0
  56. package/lib/cjs/__/@fastify/busboy/lib/main.js.map +1 -0
  57. package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js +331 -0
  58. package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js.map +1 -0
  59. package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js +206 -0
  60. package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js.map +1 -0
  61. package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js +66 -0
  62. package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js.map +1 -0
  63. package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js +26 -0
  64. package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js.map +1 -0
  65. package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js +126 -0
  66. package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js.map +1 -0
  67. package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js +28 -0
  68. package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js.map +1 -0
  69. package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js +211 -0
  70. package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js.map +1 -0
  71. package/lib/cjs/__/cross-spawn/index.js +1 -1
  72. package/lib/cjs/__/env-ci/__/execa/index.js +3 -3
  73. package/lib/cjs/__/env-ci/__/execa/index.js.map +1 -1
  74. package/lib/cjs/__/env-ci/__/execa/lib/stream.js +1 -1
  75. package/lib/cjs/__/env-ci/__/execa/lib/verbose.js +2 -2
  76. package/lib/cjs/__/env-ci/__/execa/lib/verbose.js.map +1 -1
  77. package/lib/cjs/__/env-ci/__/npm-run-path/index.js +3 -3
  78. package/lib/cjs/__/env-ci/__/npm-run-path/index.js.map +1 -1
  79. package/lib/cjs/__/fast-content-type-parse/index.js +182 -0
  80. package/lib/cjs/__/fast-content-type-parse/index.js.map +1 -0
  81. package/lib/cjs/__/java-properties/dist-node/index.js +1 -1
  82. package/lib/cjs/__/path-key/index.js +1 -1
  83. package/lib/cjs/__/tunnel/index.js +16 -0
  84. package/lib/cjs/__/tunnel/index.js.map +1 -0
  85. package/lib/cjs/__/tunnel/lib/tunnel.js +289 -0
  86. package/lib/cjs/__/tunnel/lib/tunnel.js.map +1 -0
  87. package/lib/cjs/__/undici/index.js +212 -0
  88. package/lib/cjs/__/undici/index.js.map +1 -0
  89. package/lib/cjs/__/undici/lib/agent.js +169 -0
  90. package/lib/cjs/__/undici/lib/agent.js.map +1 -0
  91. package/lib/cjs/__/undici/lib/api/abort-signal.js +70 -0
  92. package/lib/cjs/__/undici/lib/api/abort-signal.js.map +1 -0
  93. package/lib/cjs/__/undici/lib/api/api-connect.js +125 -0
  94. package/lib/cjs/__/undici/lib/api/api-connect.js.map +1 -0
  95. package/lib/cjs/__/undici/lib/api/api-pipeline.js +274 -0
  96. package/lib/cjs/__/undici/lib/api/api-pipeline.js.map +1 -0
  97. package/lib/cjs/__/undici/lib/api/api-request.js +203 -0
  98. package/lib/cjs/__/undici/lib/api/api-request.js.map +1 -0
  99. package/lib/cjs/__/undici/lib/api/api-stream.js +244 -0
  100. package/lib/cjs/__/undici/lib/api/api-stream.js.map +1 -0
  101. package/lib/cjs/__/undici/lib/api/api-upgrade.js +128 -0
  102. package/lib/cjs/__/undici/lib/api/api-upgrade.js.map +1 -0
  103. package/lib/cjs/__/undici/lib/api/index.js +25 -0
  104. package/lib/cjs/__/undici/lib/api/index.js.map +1 -0
  105. package/lib/cjs/__/undici/lib/api/readable.js +342 -0
  106. package/lib/cjs/__/undici/lib/api/readable.js.map +1 -0
  107. package/lib/cjs/__/undici/lib/api/util.js +67 -0
  108. package/lib/cjs/__/undici/lib/api/util.js.map +1 -0
  109. package/lib/cjs/__/undici/lib/balanced-pool.js +208 -0
  110. package/lib/cjs/__/undici/lib/balanced-pool.js.map +1 -0
  111. package/lib/cjs/__/undici/lib/cache/cache.js +867 -0
  112. package/lib/cjs/__/undici/lib/cache/cache.js.map +1 -0
  113. package/lib/cjs/__/undici/lib/cache/cachestorage.js +161 -0
  114. package/lib/cjs/__/undici/lib/cache/cachestorage.js.map +1 -0
  115. package/lib/cjs/__/undici/lib/cache/symbols.js +19 -0
  116. package/lib/cjs/__/undici/lib/cache/symbols.js.map +1 -0
  117. package/lib/cjs/__/undici/lib/cache/util.js +69 -0
  118. package/lib/cjs/__/undici/lib/cache/util.js.map +1 -0
  119. package/lib/cjs/__/undici/lib/client.js +2314 -0
  120. package/lib/cjs/__/undici/lib/client.js.map +1 -0
  121. package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js +63 -0
  122. package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js.map +1 -0
  123. package/lib/cjs/__/undici/lib/cookies/constants.js +24 -0
  124. package/lib/cjs/__/undici/lib/cookies/constants.js.map +1 -0
  125. package/lib/cjs/__/undici/lib/cookies/index.js +200 -0
  126. package/lib/cjs/__/undici/lib/cookies/index.js.map +1 -0
  127. package/lib/cjs/__/undici/lib/cookies/parse.js +338 -0
  128. package/lib/cjs/__/undici/lib/cookies/parse.js.map +1 -0
  129. package/lib/cjs/__/undici/lib/cookies/util.js +286 -0
  130. package/lib/cjs/__/undici/lib/cookies/util.js.map +1 -0
  131. package/lib/cjs/__/undici/lib/core/connect.js +214 -0
  132. package/lib/cjs/__/undici/lib/core/connect.js.map +1 -0
  133. package/lib/cjs/__/undici/lib/core/constants.js +130 -0
  134. package/lib/cjs/__/undici/lib/core/constants.js.map +1 -0
  135. package/lib/cjs/__/undici/lib/core/errors.js +242 -0
  136. package/lib/cjs/__/undici/lib/core/errors.js.map +1 -0
  137. package/lib/cjs/__/undici/lib/core/request.js +521 -0
  138. package/lib/cjs/__/undici/lib/core/request.js.map +1 -0
  139. package/lib/cjs/__/undici/lib/core/symbols.js +76 -0
  140. package/lib/cjs/__/undici/lib/core/symbols.js.map +1 -0
  141. package/lib/cjs/__/undici/lib/core/util.js +557 -0
  142. package/lib/cjs/__/undici/lib/core/util.js.map +1 -0
  143. package/lib/cjs/__/undici/lib/dispatcher-base.js +208 -0
  144. package/lib/cjs/__/undici/lib/dispatcher-base.js.map +1 -0
  145. package/lib/cjs/__/undici/lib/dispatcher.js +37 -0
  146. package/lib/cjs/__/undici/lib/dispatcher.js.map +1 -0
  147. package/lib/cjs/__/undici/lib/fetch/body.js +647 -0
  148. package/lib/cjs/__/undici/lib/fetch/body.js.map +1 -0
  149. package/lib/cjs/__/undici/lib/fetch/constants.js +169 -0
  150. package/lib/cjs/__/undici/lib/fetch/constants.js.map +1 -0
  151. package/lib/cjs/__/undici/lib/fetch/dataURL.js +649 -0
  152. package/lib/cjs/__/undici/lib/fetch/dataURL.js.map +1 -0
  153. package/lib/cjs/__/undici/lib/fetch/file.js +369 -0
  154. package/lib/cjs/__/undici/lib/fetch/file.js.map +1 -0
  155. package/lib/cjs/__/undici/lib/fetch/formdata.js +287 -0
  156. package/lib/cjs/__/undici/lib/fetch/formdata.js.map +1 -0
  157. package/lib/cjs/__/undici/lib/fetch/global.js +52 -0
  158. package/lib/cjs/__/undici/lib/fetch/global.js.map +1 -0
  159. package/lib/cjs/__/undici/lib/fetch/headers.js +609 -0
  160. package/lib/cjs/__/undici/lib/fetch/headers.js.map +1 -0
  161. package/lib/cjs/__/undici/lib/fetch/index.js +2114 -0
  162. package/lib/cjs/__/undici/lib/fetch/index.js.map +1 -0
  163. package/lib/cjs/__/undici/lib/fetch/request.js +979 -0
  164. package/lib/cjs/__/undici/lib/fetch/request.js.map +1 -0
  165. package/lib/cjs/__/undici/lib/fetch/response.js +604 -0
  166. package/lib/cjs/__/undici/lib/fetch/response.js.map +1 -0
  167. package/lib/cjs/__/undici/lib/fetch/symbols.js +22 -0
  168. package/lib/cjs/__/undici/lib/fetch/symbols.js.map +1 -0
  169. package/lib/cjs/__/undici/lib/fetch/util.js +1170 -0
  170. package/lib/cjs/__/undici/lib/fetch/util.js.map +1 -0
  171. package/lib/cjs/__/undici/lib/fetch/webidl.js +665 -0
  172. package/lib/cjs/__/undici/lib/fetch/webidl.js.map +1 -0
  173. package/lib/cjs/__/undici/lib/fileapi/encoding.js +302 -0
  174. package/lib/cjs/__/undici/lib/fileapi/encoding.js.map +1 -0
  175. package/lib/cjs/__/undici/lib/fileapi/filereader.js +361 -0
  176. package/lib/cjs/__/undici/lib/fileapi/filereader.js.map +1 -0
  177. package/lib/cjs/__/undici/lib/fileapi/progressevent.js +92 -0
  178. package/lib/cjs/__/undici/lib/fileapi/progressevent.js.map +1 -0
  179. package/lib/cjs/__/undici/lib/fileapi/symbols.js +22 -0
  180. package/lib/cjs/__/undici/lib/fileapi/symbols.js.map +1 -0
  181. package/lib/cjs/__/undici/lib/fileapi/util.js +419 -0
  182. package/lib/cjs/__/undici/lib/fileapi/util.js.map +1 -0
  183. package/lib/cjs/__/undici/lib/global.js +47 -0
  184. package/lib/cjs/__/undici/lib/global.js.map +1 -0
  185. package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js +47 -0
  186. package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js.map +1 -0
  187. package/lib/cjs/__/undici/lib/handler/RedirectHandler.js +226 -0
  188. package/lib/cjs/__/undici/lib/handler/RedirectHandler.js.map +1 -0
  189. package/lib/cjs/__/undici/lib/handler/RetryHandler.js +358 -0
  190. package/lib/cjs/__/undici/lib/handler/RetryHandler.js.map +1 -0
  191. package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js +35 -0
  192. package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js.map +1 -0
  193. package/lib/cjs/__/undici/lib/llhttp/constants.js +288 -0
  194. package/lib/cjs/__/undici/lib/llhttp/constants.js.map +1 -0
  195. package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js +14 -0
  196. package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  197. package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js +14 -0
  198. package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  199. package/lib/cjs/__/undici/lib/llhttp/utils.js +28 -0
  200. package/lib/cjs/__/undici/lib/llhttp/utils.js.map +1 -0
  201. package/lib/cjs/__/undici/lib/mock/mock-agent.js +194 -0
  202. package/lib/cjs/__/undici/lib/mock/mock-agent.js.map +1 -0
  203. package/lib/cjs/__/undici/lib/mock/mock-client.js +83 -0
  204. package/lib/cjs/__/undici/lib/mock/mock-client.js.map +1 -0
  205. package/lib/cjs/__/undici/lib/mock/mock-errors.js +31 -0
  206. package/lib/cjs/__/undici/lib/mock/mock-errors.js.map +1 -0
  207. package/lib/cjs/__/undici/lib/mock/mock-interceptor.js +223 -0
  208. package/lib/cjs/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  209. package/lib/cjs/__/undici/lib/mock/mock-pool.js +83 -0
  210. package/lib/cjs/__/undici/lib/mock/mock-pool.js.map +1 -0
  211. package/lib/cjs/__/undici/lib/mock/mock-symbols.js +35 -0
  212. package/lib/cjs/__/undici/lib/mock/mock-symbols.js.map +1 -0
  213. package/lib/cjs/__/undici/lib/mock/mock-utils.js +374 -0
  214. package/lib/cjs/__/undici/lib/mock/mock-utils.js.map +1 -0
  215. package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js +60 -0
  216. package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  217. package/lib/cjs/__/undici/lib/mock/pluralizer.js +41 -0
  218. package/lib/cjs/__/undici/lib/mock/pluralizer.js.map +1 -0
  219. package/lib/cjs/__/undici/lib/node/fixed-queue.js +129 -0
  220. package/lib/cjs/__/undici/lib/node/fixed-queue.js.map +1 -0
  221. package/lib/cjs/__/undici/lib/pool-base.js +211 -0
  222. package/lib/cjs/__/undici/lib/pool-base.js.map +1 -0
  223. package/lib/cjs/__/undici/lib/pool-stats.js +49 -0
  224. package/lib/cjs/__/undici/lib/pool-stats.js.map +1 -0
  225. package/lib/cjs/__/undici/lib/pool.js +127 -0
  226. package/lib/cjs/__/undici/lib/pool.js.map +1 -0
  227. package/lib/cjs/__/undici/lib/proxy-agent.js +213 -0
  228. package/lib/cjs/__/undici/lib/proxy-agent.js.map +1 -0
  229. package/lib/cjs/__/undici/lib/timers.js +109 -0
  230. package/lib/cjs/__/undici/lib/timers.js.map +1 -0
  231. package/lib/cjs/__/undici/lib/websocket/connection.js +318 -0
  232. package/lib/cjs/__/undici/lib/websocket/connection.js.map +1 -0
  233. package/lib/cjs/__/undici/lib/websocket/constants.js +63 -0
  234. package/lib/cjs/__/undici/lib/websocket/constants.js.map +1 -0
  235. package/lib/cjs/__/undici/lib/websocket/events.js +323 -0
  236. package/lib/cjs/__/undici/lib/websocket/events.js.map +1 -0
  237. package/lib/cjs/__/undici/lib/websocket/frame.js +87 -0
  238. package/lib/cjs/__/undici/lib/websocket/frame.js.map +1 -0
  239. package/lib/cjs/__/undici/lib/websocket/receiver.js +368 -0
  240. package/lib/cjs/__/undici/lib/websocket/receiver.js.map +1 -0
  241. package/lib/cjs/__/undici/lib/websocket/symbols.js +24 -0
  242. package/lib/cjs/__/undici/lib/websocket/symbols.js.map +1 -0
  243. package/lib/cjs/__/undici/lib/websocket/util.js +216 -0
  244. package/lib/cjs/__/undici/lib/websocket/util.js.map +1 -0
  245. package/lib/cjs/__/undici/lib/websocket/websocket.js +668 -0
  246. package/lib/cjs/__/undici/lib/websocket/websocket.js.map +1 -0
  247. package/lib/cjs/_virtual/_commonjsHelpers.js +30 -0
  248. package/lib/cjs/_virtual/_commonjsHelpers.js.map +1 -1
  249. package/lib/cjs/_virtual/api-request.js +6 -0
  250. package/lib/cjs/_virtual/api-request.js.map +1 -0
  251. package/lib/cjs/_virtual/constants.js +6 -0
  252. package/lib/cjs/_virtual/constants.js.map +1 -0
  253. package/lib/cjs/_virtual/context.js +6 -0
  254. package/lib/cjs/_virtual/context.js.map +1 -0
  255. package/lib/cjs/_virtual/github.js +8 -0
  256. package/lib/cjs/_virtual/github.js.map +1 -0
  257. package/lib/cjs/_virtual/github2.js +6 -0
  258. package/lib/cjs/_virtual/github2.js.map +1 -0
  259. package/lib/cjs/_virtual/index10.js +6 -0
  260. package/lib/cjs/_virtual/index10.js.map +1 -0
  261. package/lib/cjs/_virtual/index11.js +6 -0
  262. package/lib/cjs/_virtual/index11.js.map +1 -0
  263. package/lib/cjs/_virtual/index12.js +6 -0
  264. package/lib/cjs/_virtual/index12.js.map +1 -0
  265. package/lib/cjs/_virtual/index13.js +6 -0
  266. package/lib/cjs/_virtual/index13.js.map +1 -0
  267. package/lib/cjs/_virtual/index14.js +6 -0
  268. package/lib/cjs/_virtual/index14.js.map +1 -0
  269. package/lib/cjs/_virtual/index2.js +5 -2
  270. package/lib/cjs/_virtual/index2.js.map +1 -1
  271. package/lib/cjs/_virtual/index3.js +3 -4
  272. package/lib/cjs/_virtual/index3.js.map +1 -1
  273. package/lib/cjs/_virtual/index4.js +5 -2
  274. package/lib/cjs/_virtual/index4.js.map +1 -1
  275. package/lib/cjs/_virtual/index5.js +2 -2
  276. package/lib/cjs/_virtual/index6.js +6 -2
  277. package/lib/cjs/_virtual/index6.js.map +1 -1
  278. package/lib/cjs/_virtual/index7.js +6 -0
  279. package/lib/cjs/_virtual/index7.js.map +1 -0
  280. package/lib/cjs/_virtual/index8.js +6 -0
  281. package/lib/cjs/_virtual/index8.js.map +1 -0
  282. package/lib/cjs/_virtual/index9.js +8 -0
  283. package/lib/cjs/_virtual/index9.js.map +1 -0
  284. package/lib/cjs/_virtual/main.js +6 -0
  285. package/lib/cjs/_virtual/main.js.map +1 -0
  286. package/lib/cjs/_virtual/mock-interceptor.js +6 -0
  287. package/lib/cjs/_virtual/mock-interceptor.js.map +1 -0
  288. package/lib/cjs/_virtual/proxy.js +6 -0
  289. package/lib/cjs/_virtual/proxy.js.map +1 -0
  290. package/lib/cjs/_virtual/tunnel.js +6 -0
  291. package/lib/cjs/_virtual/tunnel.js.map +1 -0
  292. package/lib/cjs/_virtual/utils.js +6 -0
  293. package/lib/cjs/_virtual/utils.js.map +1 -0
  294. package/lib/cjs/_virtual/utils2.js +6 -0
  295. package/lib/cjs/_virtual/utils2.js.map +1 -0
  296. package/lib/cjs/_virtual/utils3.js +6 -0
  297. package/lib/cjs/_virtual/utils3.js.map +1 -0
  298. package/lib/cjs/artifacts/filter-artifacts.js.map +1 -1
  299. package/lib/cjs/env/ci-env.js +6 -1
  300. package/lib/cjs/env/ci-env.js.map +1 -1
  301. package/lib/cjs/env/load.js +1 -1
  302. package/lib/cjs/env/load.js.map +1 -1
  303. package/lib/cjs/env/service/github.js +3 -22
  304. package/lib/cjs/env/service/github.js.map +1 -1
  305. package/lib/cjs/ingest/ingest.js +4 -4
  306. package/lib/cjs/ingest/ingest.js.map +1 -1
  307. package/lib/cjs/locales/en.js.map +1 -1
  308. package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js +55 -0
  309. package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  310. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js +142 -0
  311. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js.map +1 -0
  312. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js +4 -0
  313. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js.map +1 -0
  314. package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js +347 -0
  315. package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  316. package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js +122 -0
  317. package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  318. package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js +412 -0
  319. package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  320. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +126 -0
  321. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  322. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +2293 -0
  323. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  324. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js +21 -0
  325. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  326. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +4 -0
  327. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  328. package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js +197 -0
  329. package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +1 -0
  330. package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js +41 -0
  331. package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +1 -0
  332. package/lib/esm/__/@actions/github/__/before-after-hook/index.js +39 -0
  333. package/lib/esm/__/@actions/github/__/before-after-hook/index.js.map +1 -0
  334. package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js +49 -0
  335. package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js.map +1 -0
  336. package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js +30 -0
  337. package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js.map +1 -0
  338. package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js +22 -0
  339. package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js.map +1 -0
  340. package/lib/esm/__/@actions/github/__/universal-user-agent/index.js +16 -0
  341. package/lib/esm/__/@actions/github/__/universal-user-agent/index.js.map +1 -0
  342. package/lib/esm/__/@actions/github/lib/context.js +69 -0
  343. package/lib/esm/__/@actions/github/lib/context.js.map +1 -0
  344. package/lib/esm/__/@actions/github/lib/github.js +64 -0
  345. package/lib/esm/__/@actions/github/lib/github.js.map +1 -0
  346. package/lib/esm/__/@actions/github/lib/internal/utils.js +92 -0
  347. package/lib/esm/__/@actions/github/lib/internal/utils.js.map +1 -0
  348. package/lib/esm/__/@actions/github/lib/utils.js +87 -0
  349. package/lib/esm/__/@actions/github/lib/utils.js.map +1 -0
  350. package/lib/esm/__/@actions/http-client/lib/index.js +753 -0
  351. package/lib/esm/__/@actions/http-client/lib/index.js.map +1 -0
  352. package/lib/esm/__/@actions/http-client/lib/proxy.js +105 -0
  353. package/lib/esm/__/@actions/http-client/lib/proxy.js.map +1 -0
  354. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js +229 -0
  355. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +1 -0
  356. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +115 -0
  357. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +1 -0
  358. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js +26 -0
  359. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +1 -0
  360. package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js +241 -0
  361. package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +1 -0
  362. package/lib/esm/__/@fastify/busboy/lib/main.js +102 -0
  363. package/lib/esm/__/@fastify/busboy/lib/main.js.map +1 -0
  364. package/lib/esm/__/@fastify/busboy/lib/types/multipart.js +324 -0
  365. package/lib/esm/__/@fastify/busboy/lib/types/multipart.js.map +1 -0
  366. package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js +204 -0
  367. package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js.map +1 -0
  368. package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js +64 -0
  369. package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js.map +1 -0
  370. package/lib/esm/__/@fastify/busboy/lib/utils/basename.js +24 -0
  371. package/lib/esm/__/@fastify/busboy/lib/utils/basename.js.map +1 -0
  372. package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js +124 -0
  373. package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js.map +1 -0
  374. package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js +26 -0
  375. package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js.map +1 -0
  376. package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js +209 -0
  377. package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js.map +1 -0
  378. package/lib/esm/__/cross-spawn/index.js +1 -1
  379. package/lib/esm/__/env-ci/__/execa/index.js +1 -1
  380. package/lib/esm/__/env-ci/__/execa/lib/stream.js +1 -1
  381. package/lib/esm/__/fast-content-type-parse/index.js +180 -0
  382. package/lib/esm/__/fast-content-type-parse/index.js.map +1 -0
  383. package/lib/esm/__/java-properties/dist-node/index.js +1 -1
  384. package/lib/esm/__/path-key/index.js +1 -1
  385. package/lib/esm/__/tunnel/index.js +14 -0
  386. package/lib/esm/__/tunnel/index.js.map +1 -0
  387. package/lib/esm/__/tunnel/lib/tunnel.js +279 -0
  388. package/lib/esm/__/tunnel/lib/tunnel.js.map +1 -0
  389. package/lib/esm/__/undici/index.js +210 -0
  390. package/lib/esm/__/undici/index.js.map +1 -0
  391. package/lib/esm/__/undici/lib/agent.js +167 -0
  392. package/lib/esm/__/undici/lib/agent.js.map +1 -0
  393. package/lib/esm/__/undici/lib/api/abort-signal.js +68 -0
  394. package/lib/esm/__/undici/lib/api/abort-signal.js.map +1 -0
  395. package/lib/esm/__/undici/lib/api/api-connect.js +119 -0
  396. package/lib/esm/__/undici/lib/api/api-connect.js.map +1 -0
  397. package/lib/esm/__/undici/lib/api/api-pipeline.js +266 -0
  398. package/lib/esm/__/undici/lib/api/api-pipeline.js.map +1 -0
  399. package/lib/esm/__/undici/lib/api/api-request.js +197 -0
  400. package/lib/esm/__/undici/lib/api/api-request.js.map +1 -0
  401. package/lib/esm/__/undici/lib/api/api-stream.js +237 -0
  402. package/lib/esm/__/undici/lib/api/api-stream.js.map +1 -0
  403. package/lib/esm/__/undici/lib/api/api-upgrade.js +121 -0
  404. package/lib/esm/__/undici/lib/api/api-upgrade.js.map +1 -0
  405. package/lib/esm/__/undici/lib/api/index.js +23 -0
  406. package/lib/esm/__/undici/lib/api/index.js.map +1 -0
  407. package/lib/esm/__/undici/lib/api/readable.js +335 -0
  408. package/lib/esm/__/undici/lib/api/readable.js.map +1 -0
  409. package/lib/esm/__/undici/lib/api/util.js +61 -0
  410. package/lib/esm/__/undici/lib/api/util.js.map +1 -0
  411. package/lib/esm/__/undici/lib/balanced-pool.js +206 -0
  412. package/lib/esm/__/undici/lib/balanced-pool.js.map +1 -0
  413. package/lib/esm/__/undici/lib/cache/cache.js +861 -0
  414. package/lib/esm/__/undici/lib/cache/cache.js.map +1 -0
  415. package/lib/esm/__/undici/lib/cache/cachestorage.js +159 -0
  416. package/lib/esm/__/undici/lib/cache/cachestorage.js.map +1 -0
  417. package/lib/esm/__/undici/lib/cache/symbols.js +17 -0
  418. package/lib/esm/__/undici/lib/cache/symbols.js.map +1 -0
  419. package/lib/esm/__/undici/lib/cache/util.js +63 -0
  420. package/lib/esm/__/undici/lib/cache/util.js.map +1 -0
  421. package/lib/esm/__/undici/lib/client.js +2305 -0
  422. package/lib/esm/__/undici/lib/client.js.map +1 -0
  423. package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js +61 -0
  424. package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js.map +1 -0
  425. package/lib/esm/__/undici/lib/cookies/constants.js +22 -0
  426. package/lib/esm/__/undici/lib/cookies/constants.js.map +1 -0
  427. package/lib/esm/__/undici/lib/cookies/index.js +198 -0
  428. package/lib/esm/__/undici/lib/cookies/index.js.map +1 -0
  429. package/lib/esm/__/undici/lib/cookies/parse.js +332 -0
  430. package/lib/esm/__/undici/lib/cookies/parse.js.map +1 -0
  431. package/lib/esm/__/undici/lib/cookies/util.js +284 -0
  432. package/lib/esm/__/undici/lib/cookies/util.js.map +1 -0
  433. package/lib/esm/__/undici/lib/core/connect.js +206 -0
  434. package/lib/esm/__/undici/lib/core/connect.js.map +1 -0
  435. package/lib/esm/__/undici/lib/core/constants.js +128 -0
  436. package/lib/esm/__/undici/lib/core/constants.js.map +1 -0
  437. package/lib/esm/__/undici/lib/core/errors.js +240 -0
  438. package/lib/esm/__/undici/lib/core/errors.js.map +1 -0
  439. package/lib/esm/__/undici/lib/core/request.js +515 -0
  440. package/lib/esm/__/undici/lib/core/request.js.map +1 -0
  441. package/lib/esm/__/undici/lib/core/symbols.js +74 -0
  442. package/lib/esm/__/undici/lib/core/symbols.js.map +1 -0
  443. package/lib/esm/__/undici/lib/core/util.js +544 -0
  444. package/lib/esm/__/undici/lib/core/util.js.map +1 -0
  445. package/lib/esm/__/undici/lib/dispatcher-base.js +206 -0
  446. package/lib/esm/__/undici/lib/dispatcher-base.js.map +1 -0
  447. package/lib/esm/__/undici/lib/dispatcher.js +31 -0
  448. package/lib/esm/__/undici/lib/dispatcher.js.map +1 -0
  449. package/lib/esm/__/undici/lib/fetch/body.js +638 -0
  450. package/lib/esm/__/undici/lib/fetch/body.js.map +1 -0
  451. package/lib/esm/__/undici/lib/fetch/constants.js +163 -0
  452. package/lib/esm/__/undici/lib/fetch/constants.js.map +1 -0
  453. package/lib/esm/__/undici/lib/fetch/dataURL.js +642 -0
  454. package/lib/esm/__/undici/lib/fetch/dataURL.js.map +1 -0
  455. package/lib/esm/__/undici/lib/fetch/file.js +362 -0
  456. package/lib/esm/__/undici/lib/fetch/file.js.map +1 -0
  457. package/lib/esm/__/undici/lib/fetch/formdata.js +281 -0
  458. package/lib/esm/__/undici/lib/fetch/formdata.js.map +1 -0
  459. package/lib/esm/__/undici/lib/fetch/global.js +50 -0
  460. package/lib/esm/__/undici/lib/fetch/global.js.map +1 -0
  461. package/lib/esm/__/undici/lib/fetch/headers.js +602 -0
  462. package/lib/esm/__/undici/lib/fetch/headers.js.map +1 -0
  463. package/lib/esm/__/undici/lib/fetch/index.js +2102 -0
  464. package/lib/esm/__/undici/lib/fetch/index.js.map +1 -0
  465. package/lib/esm/__/undici/lib/fetch/request.js +971 -0
  466. package/lib/esm/__/undici/lib/fetch/request.js.map +1 -0
  467. package/lib/esm/__/undici/lib/fetch/response.js +596 -0
  468. package/lib/esm/__/undici/lib/fetch/response.js.map +1 -0
  469. package/lib/esm/__/undici/lib/fetch/symbols.js +20 -0
  470. package/lib/esm/__/undici/lib/fetch/symbols.js.map +1 -0
  471. package/lib/esm/__/undici/lib/fetch/util.js +1161 -0
  472. package/lib/esm/__/undici/lib/fetch/util.js.map +1 -0
  473. package/lib/esm/__/undici/lib/fetch/webidl.js +659 -0
  474. package/lib/esm/__/undici/lib/fetch/webidl.js.map +1 -0
  475. package/lib/esm/__/undici/lib/fileapi/encoding.js +300 -0
  476. package/lib/esm/__/undici/lib/fileapi/encoding.js.map +1 -0
  477. package/lib/esm/__/undici/lib/fileapi/filereader.js +359 -0
  478. package/lib/esm/__/undici/lib/fileapi/filereader.js.map +1 -0
  479. package/lib/esm/__/undici/lib/fileapi/progressevent.js +90 -0
  480. package/lib/esm/__/undici/lib/fileapi/progressevent.js.map +1 -0
  481. package/lib/esm/__/undici/lib/fileapi/symbols.js +20 -0
  482. package/lib/esm/__/undici/lib/fileapi/symbols.js.map +1 -0
  483. package/lib/esm/__/undici/lib/fileapi/util.js +411 -0
  484. package/lib/esm/__/undici/lib/fileapi/util.js.map +1 -0
  485. package/lib/esm/__/undici/lib/global.js +45 -0
  486. package/lib/esm/__/undici/lib/global.js.map +1 -0
  487. package/lib/esm/__/undici/lib/handler/DecoratorHandler.js +45 -0
  488. package/lib/esm/__/undici/lib/handler/DecoratorHandler.js.map +1 -0
  489. package/lib/esm/__/undici/lib/handler/RedirectHandler.js +219 -0
  490. package/lib/esm/__/undici/lib/handler/RedirectHandler.js.map +1 -0
  491. package/lib/esm/__/undici/lib/handler/RetryHandler.js +352 -0
  492. package/lib/esm/__/undici/lib/handler/RetryHandler.js.map +1 -0
  493. package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js +33 -0
  494. package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js.map +1 -0
  495. package/lib/esm/__/undici/lib/llhttp/constants.js +286 -0
  496. package/lib/esm/__/undici/lib/llhttp/constants.js.map +1 -0
  497. package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js +12 -0
  498. package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  499. package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js +12 -0
  500. package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  501. package/lib/esm/__/undici/lib/llhttp/utils.js +26 -0
  502. package/lib/esm/__/undici/lib/llhttp/utils.js.map +1 -0
  503. package/lib/esm/__/undici/lib/mock/mock-agent.js +192 -0
  504. package/lib/esm/__/undici/lib/mock/mock-agent.js.map +1 -0
  505. package/lib/esm/__/undici/lib/mock/mock-client.js +77 -0
  506. package/lib/esm/__/undici/lib/mock/mock-client.js.map +1 -0
  507. package/lib/esm/__/undici/lib/mock/mock-errors.js +29 -0
  508. package/lib/esm/__/undici/lib/mock/mock-errors.js.map +1 -0
  509. package/lib/esm/__/undici/lib/mock/mock-interceptor.js +221 -0
  510. package/lib/esm/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  511. package/lib/esm/__/undici/lib/mock/mock-pool.js +77 -0
  512. package/lib/esm/__/undici/lib/mock/mock-pool.js.map +1 -0
  513. package/lib/esm/__/undici/lib/mock/mock-symbols.js +33 -0
  514. package/lib/esm/__/undici/lib/mock/mock-symbols.js.map +1 -0
  515. package/lib/esm/__/undici/lib/mock/mock-utils.js +367 -0
  516. package/lib/esm/__/undici/lib/mock/mock-utils.js.map +1 -0
  517. package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js +53 -0
  518. package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  519. package/lib/esm/__/undici/lib/mock/pluralizer.js +39 -0
  520. package/lib/esm/__/undici/lib/mock/pluralizer.js.map +1 -0
  521. package/lib/esm/__/undici/lib/node/fixed-queue.js +127 -0
  522. package/lib/esm/__/undici/lib/node/fixed-queue.js.map +1 -0
  523. package/lib/esm/__/undici/lib/pool-base.js +209 -0
  524. package/lib/esm/__/undici/lib/pool-base.js.map +1 -0
  525. package/lib/esm/__/undici/lib/pool-stats.js +47 -0
  526. package/lib/esm/__/undici/lib/pool-stats.js.map +1 -0
  527. package/lib/esm/__/undici/lib/pool.js +125 -0
  528. package/lib/esm/__/undici/lib/pool.js.map +1 -0
  529. package/lib/esm/__/undici/lib/proxy-agent.js +207 -0
  530. package/lib/esm/__/undici/lib/proxy-agent.js.map +1 -0
  531. package/lib/esm/__/undici/lib/timers.js +107 -0
  532. package/lib/esm/__/undici/lib/timers.js.map +1 -0
  533. package/lib/esm/__/undici/lib/websocket/connection.js +312 -0
  534. package/lib/esm/__/undici/lib/websocket/connection.js.map +1 -0
  535. package/lib/esm/__/undici/lib/websocket/constants.js +61 -0
  536. package/lib/esm/__/undici/lib/websocket/constants.js.map +1 -0
  537. package/lib/esm/__/undici/lib/websocket/events.js +317 -0
  538. package/lib/esm/__/undici/lib/websocket/events.js.map +1 -0
  539. package/lib/esm/__/undici/lib/websocket/frame.js +85 -0
  540. package/lib/esm/__/undici/lib/websocket/frame.js.map +1 -0
  541. package/lib/esm/__/undici/lib/websocket/receiver.js +361 -0
  542. package/lib/esm/__/undici/lib/websocket/receiver.js.map +1 -0
  543. package/lib/esm/__/undici/lib/websocket/symbols.js +22 -0
  544. package/lib/esm/__/undici/lib/websocket/symbols.js.map +1 -0
  545. package/lib/esm/__/undici/lib/websocket/util.js +214 -0
  546. package/lib/esm/__/undici/lib/websocket/util.js.map +1 -0
  547. package/lib/esm/__/undici/lib/websocket/websocket.js +662 -0
  548. package/lib/esm/__/undici/lib/websocket/websocket.js.map +1 -0
  549. package/lib/esm/_virtual/_commonjsHelpers.js +30 -1
  550. package/lib/esm/_virtual/_commonjsHelpers.js.map +1 -1
  551. package/lib/esm/_virtual/api-request.js +4 -0
  552. package/lib/esm/_virtual/api-request.js.map +1 -0
  553. package/lib/esm/_virtual/constants.js +4 -0
  554. package/lib/esm/_virtual/constants.js.map +1 -0
  555. package/lib/esm/_virtual/context.js +4 -0
  556. package/lib/esm/_virtual/context.js.map +1 -0
  557. package/lib/esm/_virtual/github.js +6 -0
  558. package/lib/esm/_virtual/github.js.map +1 -0
  559. package/lib/esm/_virtual/github2.js +4 -0
  560. package/lib/esm/_virtual/github2.js.map +1 -0
  561. package/lib/esm/_virtual/index10.js +4 -0
  562. package/lib/esm/_virtual/index10.js.map +1 -0
  563. package/lib/esm/_virtual/index11.js +4 -0
  564. package/lib/esm/_virtual/index11.js.map +1 -0
  565. package/lib/esm/_virtual/index12.js +4 -0
  566. package/lib/esm/_virtual/index12.js.map +1 -0
  567. package/lib/esm/_virtual/index13.js +4 -0
  568. package/lib/esm/_virtual/index13.js.map +1 -0
  569. package/lib/esm/_virtual/index14.js +4 -0
  570. package/lib/esm/_virtual/index14.js.map +1 -0
  571. package/lib/esm/_virtual/index2.js +4 -5
  572. package/lib/esm/_virtual/index2.js.map +1 -1
  573. package/lib/esm/_virtual/index3.js +5 -2
  574. package/lib/esm/_virtual/index3.js.map +1 -1
  575. package/lib/esm/_virtual/index4.js +5 -2
  576. package/lib/esm/_virtual/index4.js.map +1 -1
  577. package/lib/esm/_virtual/index5.js +6 -2
  578. package/lib/esm/_virtual/index5.js.map +1 -1
  579. package/lib/esm/_virtual/index6.js +2 -2
  580. package/lib/esm/_virtual/index7.js +4 -0
  581. package/lib/esm/_virtual/index7.js.map +1 -0
  582. package/lib/esm/_virtual/index8.js +6 -0
  583. package/lib/esm/_virtual/index8.js.map +1 -0
  584. package/lib/esm/_virtual/index9.js +4 -0
  585. package/lib/esm/_virtual/index9.js.map +1 -0
  586. package/lib/esm/_virtual/main.js +4 -0
  587. package/lib/esm/_virtual/main.js.map +1 -0
  588. package/lib/esm/_virtual/mock-interceptor.js +4 -0
  589. package/lib/esm/_virtual/mock-interceptor.js.map +1 -0
  590. package/lib/esm/_virtual/proxy.js +4 -0
  591. package/lib/esm/_virtual/proxy.js.map +1 -0
  592. package/lib/esm/_virtual/tunnel.js +4 -0
  593. package/lib/esm/_virtual/tunnel.js.map +1 -0
  594. package/lib/esm/_virtual/utils.js +4 -0
  595. package/lib/esm/_virtual/utils.js.map +1 -0
  596. package/lib/esm/_virtual/utils2.js +4 -0
  597. package/lib/esm/_virtual/utils2.js.map +1 -0
  598. package/lib/esm/_virtual/utils3.js +4 -0
  599. package/lib/esm/_virtual/utils3.js.map +1 -0
  600. package/lib/esm/artifacts/filter-artifacts.js.map +1 -1
  601. package/lib/esm/env/ci-env.js +6 -1
  602. package/lib/esm/env/ci-env.js.map +1 -1
  603. package/lib/esm/env/load.js +1 -1
  604. package/lib/esm/env/load.js.map +1 -1
  605. package/lib/esm/env/service/github.js +3 -3
  606. package/lib/esm/env/service/github.js.map +1 -1
  607. package/lib/esm/ingest/ingest.js +1 -1
  608. package/lib/esm/ingest/ingest.js.map +1 -1
  609. package/lib/esm/locales/en.js.map +1 -1
  610. package/package.json +11 -11
@@ -0,0 +1,647 @@
1
+ 'use strict';
2
+
3
+ var main = require('../../../@fastify/busboy/lib/main.js');
4
+ var util = require('../core/util.js');
5
+ var util$1 = require('./util.js');
6
+ var formdata = require('./formdata.js');
7
+ var symbols = require('./symbols.js');
8
+ var webidl = require('./webidl.js');
9
+ var constants = require('./constants.js');
10
+ var require$$7 = require('node:buffer');
11
+ var symbols$1 = require('../core/symbols.js');
12
+ var require$$0 = require('node:assert');
13
+ var require$$5 = require('node:util/types');
14
+ var file = require('./file.js');
15
+ var dataURL = require('./dataURL.js');
16
+ var require$$14 = require('node:stream/web');
17
+
18
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
19
+
20
+ var require$$7__default = /*#__PURE__*/_interopDefault(require$$7);
21
+ var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
22
+ var require$$5__default = /*#__PURE__*/_interopDefault(require$$5);
23
+ var require$$14__default = /*#__PURE__*/_interopDefault(require$$14);
24
+
25
+ var body;
26
+ var hasRequiredBody;
27
+
28
+ function requireBody () {
29
+ if (hasRequiredBody) return body;
30
+ hasRequiredBody = 1;
31
+
32
+ const Busboy = main.__require();
33
+ const util$2 = util.__require();
34
+ const {
35
+ ReadableStreamFrom,
36
+ isBlobLike,
37
+ isReadableStreamLike,
38
+ readableStreamClose,
39
+ createDeferredPromise,
40
+ fullyReadBody
41
+ } = util$1.__require();
42
+ const { FormData } = formdata.__require();
43
+ const { kState } = symbols.__require();
44
+ const { webidl: webidl$1 } = webidl.__require();
45
+ const { DOMException, structuredClone } = constants.__require();
46
+ const { Blob, File: NativeFile } = require$$7__default.default;
47
+ const { kBodyUsed } = symbols$1.__require();
48
+ const assert = require$$0__default.default;
49
+ const { isErrored } = util.__require();
50
+ const { isUint8Array, isArrayBuffer } = require$$5__default.default;
51
+ const { File: UndiciFile } = file.__require();
52
+ const { parseMIMEType, serializeAMimeType } = dataURL.__require();
53
+
54
+ let random;
55
+ try {
56
+ const crypto = require('node:crypto');
57
+ random = (max) => crypto.randomInt(0, max);
58
+ } catch {
59
+ random = (max) => Math.floor(Math.random(max));
60
+ }
61
+
62
+ let ReadableStream = globalThis.ReadableStream;
63
+
64
+ /** @type {globalThis['File']} */
65
+ const File = NativeFile ?? UndiciFile;
66
+ const textEncoder = new TextEncoder();
67
+ const textDecoder = new TextDecoder();
68
+
69
+ // https://fetch.spec.whatwg.org/#concept-bodyinit-extract
70
+ function extractBody (object, keepalive = false) {
71
+ if (!ReadableStream) {
72
+ ReadableStream = require$$14__default.default.ReadableStream;
73
+ }
74
+
75
+ // 1. Let stream be null.
76
+ let stream = null;
77
+
78
+ // 2. If object is a ReadableStream object, then set stream to object.
79
+ if (object instanceof ReadableStream) {
80
+ stream = object;
81
+ } else if (isBlobLike(object)) {
82
+ // 3. Otherwise, if object is a Blob object, set stream to the
83
+ // result of running object’s get stream.
84
+ stream = object.stream();
85
+ } else {
86
+ // 4. Otherwise, set stream to a new ReadableStream object, and set
87
+ // up stream.
88
+ stream = new ReadableStream({
89
+ async pull (controller) {
90
+ controller.enqueue(
91
+ typeof source === 'string' ? textEncoder.encode(source) : source
92
+ );
93
+ queueMicrotask(() => readableStreamClose(controller));
94
+ },
95
+ start () {},
96
+ type: undefined
97
+ });
98
+ }
99
+
100
+ // 5. Assert: stream is a ReadableStream object.
101
+ assert(isReadableStreamLike(stream));
102
+
103
+ // 6. Let action be null.
104
+ let action = null;
105
+
106
+ // 7. Let source be null.
107
+ let source = null;
108
+
109
+ // 8. Let length be null.
110
+ let length = null;
111
+
112
+ // 9. Let type be null.
113
+ let type = null;
114
+
115
+ // 10. Switch on object:
116
+ if (typeof object === 'string') {
117
+ // Set source to the UTF-8 encoding of object.
118
+ // Note: setting source to a Uint8Array here breaks some mocking assumptions.
119
+ source = object;
120
+
121
+ // Set type to `text/plain;charset=UTF-8`.
122
+ type = 'text/plain;charset=UTF-8';
123
+ } else if (object instanceof URLSearchParams) {
124
+ // URLSearchParams
125
+
126
+ // spec says to run application/x-www-form-urlencoded on body.list
127
+ // this is implemented in Node.js as apart of an URLSearchParams instance toString method
128
+ // See: https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L490
129
+ // and https://github.com/nodejs/node/blob/e46c680bf2b211bbd52cf959ca17ee98c7f657f5/lib/internal/url.js#L1100
130
+
131
+ // Set source to the result of running the application/x-www-form-urlencoded serializer with object’s list.
132
+ source = object.toString();
133
+
134
+ // Set type to `application/x-www-form-urlencoded;charset=UTF-8`.
135
+ type = 'application/x-www-form-urlencoded;charset=UTF-8';
136
+ } else if (isArrayBuffer(object)) {
137
+ // BufferSource/ArrayBuffer
138
+
139
+ // Set source to a copy of the bytes held by object.
140
+ source = new Uint8Array(object.slice());
141
+ } else if (ArrayBuffer.isView(object)) {
142
+ // BufferSource/ArrayBufferView
143
+
144
+ // Set source to a copy of the bytes held by object.
145
+ source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength));
146
+ } else if (util$2.isFormDataLike(object)) {
147
+ const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`;
148
+ const prefix = `--${boundary}\r\nContent-Disposition: form-data`;
149
+
150
+ /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
151
+ const escape = (str) =>
152
+ str.replace(/\n/g, '%0A').replace(/\r/g, '%0D').replace(/"/g, '%22');
153
+ const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, '\r\n');
154
+
155
+ // Set action to this step: run the multipart/form-data
156
+ // encoding algorithm, with object’s entry list and UTF-8.
157
+ // - This ensures that the body is immutable and can't be changed afterwords
158
+ // - That the content-length is calculated in advance.
159
+ // - And that all parts are pre-encoded and ready to be sent.
160
+
161
+ const blobParts = [];
162
+ const rn = new Uint8Array([13, 10]); // '\r\n'
163
+ length = 0;
164
+ let hasUnknownSizeValue = false;
165
+
166
+ for (const [name, value] of object) {
167
+ if (typeof value === 'string') {
168
+ const chunk = textEncoder.encode(prefix +
169
+ `; name="${escape(normalizeLinefeeds(name))}"` +
170
+ `\r\n\r\n${normalizeLinefeeds(value)}\r\n`);
171
+ blobParts.push(chunk);
172
+ length += chunk.byteLength;
173
+ } else {
174
+ const chunk = textEncoder.encode(`${prefix}; name="${escape(normalizeLinefeeds(name))}"` +
175
+ (value.name ? `; filename="${escape(value.name)}"` : '') + '\r\n' +
176
+ `Content-Type: ${
177
+ value.type || 'application/octet-stream'
178
+ }\r\n\r\n`);
179
+ blobParts.push(chunk, value, rn);
180
+ if (typeof value.size === 'number') {
181
+ length += chunk.byteLength + value.size + rn.byteLength;
182
+ } else {
183
+ hasUnknownSizeValue = true;
184
+ }
185
+ }
186
+ }
187
+
188
+ const chunk = textEncoder.encode(`--${boundary}--`);
189
+ blobParts.push(chunk);
190
+ length += chunk.byteLength;
191
+ if (hasUnknownSizeValue) {
192
+ length = null;
193
+ }
194
+
195
+ // Set source to object.
196
+ source = object;
197
+
198
+ action = async function * () {
199
+ for (const part of blobParts) {
200
+ if (part.stream) {
201
+ yield * part.stream();
202
+ } else {
203
+ yield part;
204
+ }
205
+ }
206
+ };
207
+
208
+ // Set type to `multipart/form-data; boundary=`,
209
+ // followed by the multipart/form-data boundary string generated
210
+ // by the multipart/form-data encoding algorithm.
211
+ type = 'multipart/form-data; boundary=' + boundary;
212
+ } else if (isBlobLike(object)) {
213
+ // Blob
214
+
215
+ // Set source to object.
216
+ source = object;
217
+
218
+ // Set length to object’s size.
219
+ length = object.size;
220
+
221
+ // If object’s type attribute is not the empty byte sequence, set
222
+ // type to its value.
223
+ if (object.type) {
224
+ type = object.type;
225
+ }
226
+ } else if (typeof object[Symbol.asyncIterator] === 'function') {
227
+ // If keepalive is true, then throw a TypeError.
228
+ if (keepalive) {
229
+ throw new TypeError('keepalive')
230
+ }
231
+
232
+ // If object is disturbed or locked, then throw a TypeError.
233
+ if (util$2.isDisturbed(object) || object.locked) {
234
+ throw new TypeError(
235
+ 'Response body object should not be disturbed or locked'
236
+ )
237
+ }
238
+
239
+ stream =
240
+ object instanceof ReadableStream ? object : ReadableStreamFrom(object);
241
+ }
242
+
243
+ // 11. If source is a byte sequence, then set action to a
244
+ // step that returns source and length to source’s length.
245
+ if (typeof source === 'string' || util$2.isBuffer(source)) {
246
+ length = Buffer.byteLength(source);
247
+ }
248
+
249
+ // 12. If action is non-null, then run these steps in in parallel:
250
+ if (action != null) {
251
+ // Run action.
252
+ let iterator;
253
+ stream = new ReadableStream({
254
+ async start () {
255
+ iterator = action(object)[Symbol.asyncIterator]();
256
+ },
257
+ async pull (controller) {
258
+ const { value, done } = await iterator.next();
259
+ if (done) {
260
+ // When running action is done, close stream.
261
+ queueMicrotask(() => {
262
+ controller.close();
263
+ });
264
+ } else {
265
+ // Whenever one or more bytes are available and stream is not errored,
266
+ // enqueue a Uint8Array wrapping an ArrayBuffer containing the available
267
+ // bytes into stream.
268
+ if (!isErrored(stream)) {
269
+ controller.enqueue(new Uint8Array(value));
270
+ }
271
+ }
272
+ return controller.desiredSize > 0
273
+ },
274
+ async cancel (reason) {
275
+ await iterator.return();
276
+ },
277
+ type: undefined
278
+ });
279
+ }
280
+
281
+ // 13. Let body be a body whose stream is stream, source is source,
282
+ // and length is length.
283
+ const body = { stream, source, length };
284
+
285
+ // 14. Return (body, type).
286
+ return [body, type]
287
+ }
288
+
289
+ // https://fetch.spec.whatwg.org/#bodyinit-safely-extract
290
+ function safelyExtractBody (object, keepalive = false) {
291
+ if (!ReadableStream) {
292
+ // istanbul ignore next
293
+ ReadableStream = require$$14__default.default.ReadableStream;
294
+ }
295
+
296
+ // To safely extract a body and a `Content-Type` value from
297
+ // a byte sequence or BodyInit object object, run these steps:
298
+
299
+ // 1. If object is a ReadableStream object, then:
300
+ if (object instanceof ReadableStream) {
301
+ // Assert: object is neither disturbed nor locked.
302
+ // istanbul ignore next
303
+ assert(!util$2.isDisturbed(object), 'The body has already been consumed.');
304
+ // istanbul ignore next
305
+ assert(!object.locked, 'The stream is locked.');
306
+ }
307
+
308
+ // 2. Return the results of extracting object.
309
+ return extractBody(object, keepalive)
310
+ }
311
+
312
+ function cloneBody (body) {
313
+ // To clone a body body, run these steps:
314
+
315
+ // https://fetch.spec.whatwg.org/#concept-body-clone
316
+
317
+ // 1. Let « out1, out2 » be the result of teeing body’s stream.
318
+ const [out1, out2] = body.stream.tee();
319
+ const out2Clone = structuredClone(out2, { transfer: [out2] });
320
+ // This, for whatever reasons, unrefs out2Clone which allows
321
+ // the process to exit by itself.
322
+ const [, finalClone] = out2Clone.tee();
323
+
324
+ // 2. Set body’s stream to out1.
325
+ body.stream = out1;
326
+
327
+ // 3. Return a body whose stream is out2 and other members are copied from body.
328
+ return {
329
+ stream: finalClone,
330
+ length: body.length,
331
+ source: body.source
332
+ }
333
+ }
334
+
335
+ async function * consumeBody (body) {
336
+ if (body) {
337
+ if (isUint8Array(body)) {
338
+ yield body;
339
+ } else {
340
+ const stream = body.stream;
341
+
342
+ if (util$2.isDisturbed(stream)) {
343
+ throw new TypeError('The body has already been consumed.')
344
+ }
345
+
346
+ if (stream.locked) {
347
+ throw new TypeError('The stream is locked.')
348
+ }
349
+
350
+ // Compat.
351
+ stream[kBodyUsed] = true;
352
+
353
+ yield * stream;
354
+ }
355
+ }
356
+ }
357
+
358
+ function throwIfAborted (state) {
359
+ if (state.aborted) {
360
+ throw new DOMException('The operation was aborted.', 'AbortError')
361
+ }
362
+ }
363
+
364
+ function bodyMixinMethods (instance) {
365
+ const methods = {
366
+ blob () {
367
+ // The blob() method steps are to return the result of
368
+ // running consume body with this and the following step
369
+ // given a byte sequence bytes: return a Blob whose
370
+ // contents are bytes and whose type attribute is this’s
371
+ // MIME type.
372
+ return specConsumeBody(this, (bytes) => {
373
+ let mimeType = bodyMimeType(this);
374
+
375
+ if (mimeType === 'failure') {
376
+ mimeType = '';
377
+ } else if (mimeType) {
378
+ mimeType = serializeAMimeType(mimeType);
379
+ }
380
+
381
+ // Return a Blob whose contents are bytes and type attribute
382
+ // is mimeType.
383
+ return new Blob([bytes], { type: mimeType })
384
+ }, instance)
385
+ },
386
+
387
+ arrayBuffer () {
388
+ // The arrayBuffer() method steps are to return the result
389
+ // of running consume body with this and the following step
390
+ // given a byte sequence bytes: return a new ArrayBuffer
391
+ // whose contents are bytes.
392
+ return specConsumeBody(this, (bytes) => {
393
+ return new Uint8Array(bytes).buffer
394
+ }, instance)
395
+ },
396
+
397
+ text () {
398
+ // The text() method steps are to return the result of running
399
+ // consume body with this and UTF-8 decode.
400
+ return specConsumeBody(this, utf8DecodeBytes, instance)
401
+ },
402
+
403
+ json () {
404
+ // The json() method steps are to return the result of running
405
+ // consume body with this and parse JSON from bytes.
406
+ return specConsumeBody(this, parseJSONFromBytes, instance)
407
+ },
408
+
409
+ async formData () {
410
+ webidl$1.brandCheck(this, instance);
411
+
412
+ throwIfAborted(this[kState]);
413
+
414
+ const contentType = this.headers.get('Content-Type');
415
+
416
+ // If mimeType’s essence is "multipart/form-data", then:
417
+ if (/multipart\/form-data/.test(contentType)) {
418
+ const headers = {};
419
+ for (const [key, value] of this.headers) headers[key.toLowerCase()] = value;
420
+
421
+ const responseFormData = new FormData();
422
+
423
+ let busboy;
424
+
425
+ try {
426
+ busboy = new Busboy({
427
+ headers,
428
+ preservePath: true
429
+ });
430
+ } catch (err) {
431
+ throw new DOMException(`${err}`, 'AbortError')
432
+ }
433
+
434
+ busboy.on('field', (name, value) => {
435
+ responseFormData.append(name, value);
436
+ });
437
+ busboy.on('file', (name, value, filename, encoding, mimeType) => {
438
+ const chunks = [];
439
+
440
+ if (encoding === 'base64' || encoding.toLowerCase() === 'base64') {
441
+ let base64chunk = '';
442
+
443
+ value.on('data', (chunk) => {
444
+ base64chunk += chunk.toString().replace(/[\r\n]/gm, '');
445
+
446
+ const end = base64chunk.length - base64chunk.length % 4;
447
+ chunks.push(Buffer.from(base64chunk.slice(0, end), 'base64'));
448
+
449
+ base64chunk = base64chunk.slice(end);
450
+ });
451
+ value.on('end', () => {
452
+ chunks.push(Buffer.from(base64chunk, 'base64'));
453
+ responseFormData.append(name, new File(chunks, filename, { type: mimeType }));
454
+ });
455
+ } else {
456
+ value.on('data', (chunk) => {
457
+ chunks.push(chunk);
458
+ });
459
+ value.on('end', () => {
460
+ responseFormData.append(name, new File(chunks, filename, { type: mimeType }));
461
+ });
462
+ }
463
+ });
464
+
465
+ const busboyResolve = new Promise((resolve, reject) => {
466
+ busboy.on('finish', resolve);
467
+ busboy.on('error', (err) => reject(new TypeError(err)));
468
+ });
469
+
470
+ if (this.body !== null) for await (const chunk of consumeBody(this[kState].body)) busboy.write(chunk);
471
+ busboy.end();
472
+ await busboyResolve;
473
+
474
+ return responseFormData
475
+ } else if (/application\/x-www-form-urlencoded/.test(contentType)) {
476
+ // Otherwise, if mimeType’s essence is "application/x-www-form-urlencoded", then:
477
+
478
+ // 1. Let entries be the result of parsing bytes.
479
+ let entries;
480
+ try {
481
+ let text = '';
482
+ // application/x-www-form-urlencoded parser will keep the BOM.
483
+ // https://url.spec.whatwg.org/#concept-urlencoded-parser
484
+ // Note that streaming decoder is stateful and cannot be reused
485
+ const streamingDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
486
+
487
+ for await (const chunk of consumeBody(this[kState].body)) {
488
+ if (!isUint8Array(chunk)) {
489
+ throw new TypeError('Expected Uint8Array chunk')
490
+ }
491
+ text += streamingDecoder.decode(chunk, { stream: true });
492
+ }
493
+ text += streamingDecoder.decode();
494
+ entries = new URLSearchParams(text);
495
+ } catch (err) {
496
+ // istanbul ignore next: Unclear when new URLSearchParams can fail on a string.
497
+ // 2. If entries is failure, then throw a TypeError.
498
+ throw Object.assign(new TypeError(), { cause: err })
499
+ }
500
+
501
+ // 3. Return a new FormData object whose entries are entries.
502
+ const formData = new FormData();
503
+ for (const [name, value] of entries) {
504
+ formData.append(name, value);
505
+ }
506
+ return formData
507
+ } else {
508
+ // Wait a tick before checking if the request has been aborted.
509
+ // Otherwise, a TypeError can be thrown when an AbortError should.
510
+ await Promise.resolve();
511
+
512
+ throwIfAborted(this[kState]);
513
+
514
+ // Otherwise, throw a TypeError.
515
+ throw webidl$1.errors.exception({
516
+ header: `${instance.name}.formData`,
517
+ message: 'Could not parse content as FormData.'
518
+ })
519
+ }
520
+ }
521
+ };
522
+
523
+ return methods
524
+ }
525
+
526
+ function mixinBody (prototype) {
527
+ Object.assign(prototype.prototype, bodyMixinMethods(prototype));
528
+ }
529
+
530
+ /**
531
+ * @see https://fetch.spec.whatwg.org/#concept-body-consume-body
532
+ * @param {Response|Request} object
533
+ * @param {(value: unknown) => unknown} convertBytesToJSValue
534
+ * @param {Response|Request} instance
535
+ */
536
+ async function specConsumeBody (object, convertBytesToJSValue, instance) {
537
+ webidl$1.brandCheck(object, instance);
538
+
539
+ throwIfAborted(object[kState]);
540
+
541
+ // 1. If object is unusable, then return a promise rejected
542
+ // with a TypeError.
543
+ if (bodyUnusable(object[kState].body)) {
544
+ throw new TypeError('Body is unusable')
545
+ }
546
+
547
+ // 2. Let promise be a new promise.
548
+ const promise = createDeferredPromise();
549
+
550
+ // 3. Let errorSteps given error be to reject promise with error.
551
+ const errorSteps = (error) => promise.reject(error);
552
+
553
+ // 4. Let successSteps given a byte sequence data be to resolve
554
+ // promise with the result of running convertBytesToJSValue
555
+ // with data. If that threw an exception, then run errorSteps
556
+ // with that exception.
557
+ const successSteps = (data) => {
558
+ try {
559
+ promise.resolve(convertBytesToJSValue(data));
560
+ } catch (e) {
561
+ errorSteps(e);
562
+ }
563
+ };
564
+
565
+ // 5. If object’s body is null, then run successSteps with an
566
+ // empty byte sequence.
567
+ if (object[kState].body == null) {
568
+ successSteps(new Uint8Array());
569
+ return promise.promise
570
+ }
571
+
572
+ // 6. Otherwise, fully read object’s body given successSteps,
573
+ // errorSteps, and object’s relevant global object.
574
+ await fullyReadBody(object[kState].body, successSteps, errorSteps);
575
+
576
+ // 7. Return promise.
577
+ return promise.promise
578
+ }
579
+
580
+ // https://fetch.spec.whatwg.org/#body-unusable
581
+ function bodyUnusable (body) {
582
+ // An object including the Body interface mixin is
583
+ // said to be unusable if its body is non-null and
584
+ // its body’s stream is disturbed or locked.
585
+ return body != null && (body.stream.locked || util$2.isDisturbed(body.stream))
586
+ }
587
+
588
+ /**
589
+ * @see https://encoding.spec.whatwg.org/#utf-8-decode
590
+ * @param {Buffer} buffer
591
+ */
592
+ function utf8DecodeBytes (buffer) {
593
+ if (buffer.length === 0) {
594
+ return ''
595
+ }
596
+
597
+ // 1. Let buffer be the result of peeking three bytes from
598
+ // ioQueue, converted to a byte sequence.
599
+
600
+ // 2. If buffer is 0xEF 0xBB 0xBF, then read three
601
+ // bytes from ioQueue. (Do nothing with those bytes.)
602
+ if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) {
603
+ buffer = buffer.subarray(3);
604
+ }
605
+
606
+ // 3. Process a queue with an instance of UTF-8’s
607
+ // decoder, ioQueue, output, and "replacement".
608
+ const output = textDecoder.decode(buffer);
609
+
610
+ // 4. Return output.
611
+ return output
612
+ }
613
+
614
+ /**
615
+ * @see https://infra.spec.whatwg.org/#parse-json-bytes-to-a-javascript-value
616
+ * @param {Uint8Array} bytes
617
+ */
618
+ function parseJSONFromBytes (bytes) {
619
+ return JSON.parse(utf8DecodeBytes(bytes))
620
+ }
621
+
622
+ /**
623
+ * @see https://fetch.spec.whatwg.org/#concept-body-mime-type
624
+ * @param {import('./response').Response|import('./request').Request} object
625
+ */
626
+ function bodyMimeType (object) {
627
+ const { headersList } = object[kState];
628
+ const contentType = headersList.get('content-type');
629
+
630
+ if (contentType === null) {
631
+ return 'failure'
632
+ }
633
+
634
+ return parseMIMEType(contentType)
635
+ }
636
+
637
+ body = {
638
+ extractBody,
639
+ safelyExtractBody,
640
+ cloneBody,
641
+ mixinBody
642
+ };
643
+ return body;
644
+ }
645
+
646
+ exports.__require = requireBody;
647
+ //# sourceMappingURL=body.js.map