@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,1161 @@
1
+ import { __require as requireConstants } from './constants.js';
2
+ import { __require as requireGlobal } from './global.js';
3
+ import require$$2 from 'node:perf_hooks';
4
+ import { __require as requireUtil$1 } from '../core/util.js';
5
+ import require$$0 from 'node:assert';
6
+ import require$$5 from 'node:util/types';
7
+ import require$$14 from 'node:stream/web';
8
+
9
+ var util;
10
+ var hasRequiredUtil;
11
+
12
+ function requireUtil () {
13
+ if (hasRequiredUtil) return util;
14
+ hasRequiredUtil = 1;
15
+
16
+ const { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = requireConstants();
17
+ const { getGlobalOrigin } = requireGlobal();
18
+ const { performance } = require$$2;
19
+ const { isBlobLike, toUSVString, ReadableStreamFrom } = requireUtil$1();
20
+ const assert = require$$0;
21
+ const { isUint8Array } = require$$5;
22
+
23
+ let supportedHashes = [];
24
+
25
+ // https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable
26
+ /** @type {import('crypto')|undefined} */
27
+ let crypto;
28
+
29
+ try {
30
+ crypto = require('crypto');
31
+ const possibleRelevantHashes = ['sha256', 'sha384', 'sha512'];
32
+ supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash));
33
+ /* c8 ignore next 3 */
34
+ } catch {
35
+ }
36
+
37
+ function responseURL (response) {
38
+ // https://fetch.spec.whatwg.org/#responses
39
+ // A response has an associated URL. It is a pointer to the last URL
40
+ // in response’s URL list and null if response’s URL list is empty.
41
+ const urlList = response.urlList;
42
+ const length = urlList.length;
43
+ return length === 0 ? null : urlList[length - 1].toString()
44
+ }
45
+
46
+ // https://fetch.spec.whatwg.org/#concept-response-location-url
47
+ function responseLocationURL (response, requestFragment) {
48
+ // 1. If response’s status is not a redirect status, then return null.
49
+ if (!redirectStatusSet.has(response.status)) {
50
+ return null
51
+ }
52
+
53
+ // 2. Let location be the result of extracting header list values given
54
+ // `Location` and response’s header list.
55
+ let location = response.headersList.get('location');
56
+
57
+ // 3. If location is a header value, then set location to the result of
58
+ // parsing location with response’s URL.
59
+ if (location !== null && isValidHeaderValue(location)) {
60
+ location = new URL(location, responseURL(response));
61
+ }
62
+
63
+ // 4. If location is a URL whose fragment is null, then set location’s
64
+ // fragment to requestFragment.
65
+ if (location && !location.hash) {
66
+ location.hash = requestFragment;
67
+ }
68
+
69
+ // 5. Return location.
70
+ return location
71
+ }
72
+
73
+ /** @returns {URL} */
74
+ function requestCurrentURL (request) {
75
+ return request.urlList[request.urlList.length - 1]
76
+ }
77
+
78
+ function requestBadPort (request) {
79
+ // 1. Let url be request’s current URL.
80
+ const url = requestCurrentURL(request);
81
+
82
+ // 2. If url’s scheme is an HTTP(S) scheme and url’s port is a bad port,
83
+ // then return blocked.
84
+ if (urlIsHttpHttpsScheme(url) && badPortsSet.has(url.port)) {
85
+ return 'blocked'
86
+ }
87
+
88
+ // 3. Return allowed.
89
+ return 'allowed'
90
+ }
91
+
92
+ function isErrorLike (object) {
93
+ return object instanceof Error || (
94
+ object?.constructor?.name === 'Error' ||
95
+ object?.constructor?.name === 'DOMException'
96
+ )
97
+ }
98
+
99
+ // Check whether |statusText| is a ByteString and
100
+ // matches the Reason-Phrase token production.
101
+ // RFC 2616: https://tools.ietf.org/html/rfc2616
102
+ // RFC 7230: https://tools.ietf.org/html/rfc7230
103
+ // "reason-phrase = *( HTAB / SP / VCHAR / obs-text )"
104
+ // https://github.com/chromium/chromium/blob/94.0.4604.1/third_party/blink/renderer/core/fetch/response.cc#L116
105
+ function isValidReasonPhrase (statusText) {
106
+ for (let i = 0; i < statusText.length; ++i) {
107
+ const c = statusText.charCodeAt(i);
108
+ if (
109
+ !(
110
+ (
111
+ c === 0x09 || // HTAB
112
+ (c >= 0x20 && c <= 0x7e) || // SP / VCHAR
113
+ (c >= 0x80 && c <= 0xff)
114
+ ) // obs-text
115
+ )
116
+ ) {
117
+ return false
118
+ }
119
+ }
120
+ return true
121
+ }
122
+
123
+ /**
124
+ * @see https://tools.ietf.org/html/rfc7230#section-3.2.6
125
+ * @param {number} c
126
+ */
127
+ function isTokenCharCode (c) {
128
+ switch (c) {
129
+ case 0x22:
130
+ case 0x28:
131
+ case 0x29:
132
+ case 0x2c:
133
+ case 0x2f:
134
+ case 0x3a:
135
+ case 0x3b:
136
+ case 0x3c:
137
+ case 0x3d:
138
+ case 0x3e:
139
+ case 0x3f:
140
+ case 0x40:
141
+ case 0x5b:
142
+ case 0x5c:
143
+ case 0x5d:
144
+ case 0x7b:
145
+ case 0x7d:
146
+ // DQUOTE and "(),/:;<=>?@[\]{}"
147
+ return false
148
+ default:
149
+ // VCHAR %x21-7E
150
+ return c >= 0x21 && c <= 0x7e
151
+ }
152
+ }
153
+
154
+ /**
155
+ * @param {string} characters
156
+ */
157
+ function isValidHTTPToken (characters) {
158
+ if (characters.length === 0) {
159
+ return false
160
+ }
161
+ for (let i = 0; i < characters.length; ++i) {
162
+ if (!isTokenCharCode(characters.charCodeAt(i))) {
163
+ return false
164
+ }
165
+ }
166
+ return true
167
+ }
168
+
169
+ /**
170
+ * @see https://fetch.spec.whatwg.org/#header-name
171
+ * @param {string} potentialValue
172
+ */
173
+ function isValidHeaderName (potentialValue) {
174
+ return isValidHTTPToken(potentialValue)
175
+ }
176
+
177
+ /**
178
+ * @see https://fetch.spec.whatwg.org/#header-value
179
+ * @param {string} potentialValue
180
+ */
181
+ function isValidHeaderValue (potentialValue) {
182
+ // - Has no leading or trailing HTTP tab or space bytes.
183
+ // - Contains no 0x00 (NUL) or HTTP newline bytes.
184
+ if (
185
+ potentialValue.startsWith('\t') ||
186
+ potentialValue.startsWith(' ') ||
187
+ potentialValue.endsWith('\t') ||
188
+ potentialValue.endsWith(' ')
189
+ ) {
190
+ return false
191
+ }
192
+
193
+ if (
194
+ potentialValue.includes('\0') ||
195
+ potentialValue.includes('\r') ||
196
+ potentialValue.includes('\n')
197
+ ) {
198
+ return false
199
+ }
200
+
201
+ return true
202
+ }
203
+
204
+ // https://w3c.github.io/webappsec-referrer-policy/#set-requests-referrer-policy-on-redirect
205
+ function setRequestReferrerPolicyOnRedirect (request, actualResponse) {
206
+ // Given a request request and a response actualResponse, this algorithm
207
+ // updates request’s referrer policy according to the Referrer-Policy
208
+ // header (if any) in actualResponse.
209
+
210
+ // 1. Let policy be the result of executing § 8.1 Parse a referrer policy
211
+ // from a Referrer-Policy header on actualResponse.
212
+
213
+ // 8.1 Parse a referrer policy from a Referrer-Policy header
214
+ // 1. Let policy-tokens be the result of extracting header list values given `Referrer-Policy` and response’s header list.
215
+ const { headersList } = actualResponse;
216
+ // 2. Let policy be the empty string.
217
+ // 3. For each token in policy-tokens, if token is a referrer policy and token is not the empty string, then set policy to token.
218
+ // 4. Return policy.
219
+ const policyHeader = (headersList.get('referrer-policy') ?? '').split(',');
220
+
221
+ // Note: As the referrer-policy can contain multiple policies
222
+ // separated by comma, we need to loop through all of them
223
+ // and pick the first valid one.
224
+ // Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy#specify_a_fallback_policy
225
+ let policy = '';
226
+ if (policyHeader.length > 0) {
227
+ // The right-most policy takes precedence.
228
+ // The left-most policy is the fallback.
229
+ for (let i = policyHeader.length; i !== 0; i--) {
230
+ const token = policyHeader[i - 1].trim();
231
+ if (referrerPolicyTokens.has(token)) {
232
+ policy = token;
233
+ break
234
+ }
235
+ }
236
+ }
237
+
238
+ // 2. If policy is not the empty string, then set request’s referrer policy to policy.
239
+ if (policy !== '') {
240
+ request.referrerPolicy = policy;
241
+ }
242
+ }
243
+
244
+ // https://fetch.spec.whatwg.org/#cross-origin-resource-policy-check
245
+ function crossOriginResourcePolicyCheck () {
246
+ // TODO
247
+ return 'allowed'
248
+ }
249
+
250
+ // https://fetch.spec.whatwg.org/#concept-cors-check
251
+ function corsCheck () {
252
+ // TODO
253
+ return 'success'
254
+ }
255
+
256
+ // https://fetch.spec.whatwg.org/#concept-tao-check
257
+ function TAOCheck () {
258
+ // TODO
259
+ return 'success'
260
+ }
261
+
262
+ function appendFetchMetadata (httpRequest) {
263
+ // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-dest-header
264
+ // TODO
265
+
266
+ // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-mode-header
267
+
268
+ // 1. Assert: r’s url is a potentially trustworthy URL.
269
+ // TODO
270
+
271
+ // 2. Let header be a Structured Header whose value is a token.
272
+ let header = null;
273
+
274
+ // 3. Set header’s value to r’s mode.
275
+ header = httpRequest.mode;
276
+
277
+ // 4. Set a structured field value `Sec-Fetch-Mode`/header in r’s header list.
278
+ httpRequest.headersList.set('sec-fetch-mode', header);
279
+
280
+ // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-site-header
281
+ // TODO
282
+
283
+ // https://w3c.github.io/webappsec-fetch-metadata/#sec-fetch-user-header
284
+ // TODO
285
+ }
286
+
287
+ // https://fetch.spec.whatwg.org/#append-a-request-origin-header
288
+ function appendRequestOriginHeader (request) {
289
+ // 1. Let serializedOrigin be the result of byte-serializing a request origin with request.
290
+ let serializedOrigin = request.origin;
291
+
292
+ // 2. If request’s response tainting is "cors" or request’s mode is "websocket", then append (`Origin`, serializedOrigin) to request’s header list.
293
+ if (request.responseTainting === 'cors' || request.mode === 'websocket') {
294
+ if (serializedOrigin) {
295
+ request.headersList.append('origin', serializedOrigin);
296
+ }
297
+
298
+ // 3. Otherwise, if request’s method is neither `GET` nor `HEAD`, then:
299
+ } else if (request.method !== 'GET' && request.method !== 'HEAD') {
300
+ // 1. Switch on request’s referrer policy:
301
+ switch (request.referrerPolicy) {
302
+ case 'no-referrer':
303
+ // Set serializedOrigin to `null`.
304
+ serializedOrigin = null;
305
+ break
306
+ case 'no-referrer-when-downgrade':
307
+ case 'strict-origin':
308
+ case 'strict-origin-when-cross-origin':
309
+ // If request’s origin is a tuple origin, its scheme is "https", and request’s current URL’s scheme is not "https", then set serializedOrigin to `null`.
310
+ if (request.origin && urlHasHttpsScheme(request.origin) && !urlHasHttpsScheme(requestCurrentURL(request))) {
311
+ serializedOrigin = null;
312
+ }
313
+ break
314
+ case 'same-origin':
315
+ // If request’s origin is not same origin with request’s current URL’s origin, then set serializedOrigin to `null`.
316
+ if (!sameOrigin(request, requestCurrentURL(request))) {
317
+ serializedOrigin = null;
318
+ }
319
+ break
320
+ // Do nothing.
321
+ }
322
+
323
+ if (serializedOrigin) {
324
+ // 2. Append (`Origin`, serializedOrigin) to request’s header list.
325
+ request.headersList.append('origin', serializedOrigin);
326
+ }
327
+ }
328
+ }
329
+
330
+ function coarsenedSharedCurrentTime (crossOriginIsolatedCapability) {
331
+ // TODO
332
+ return performance.now()
333
+ }
334
+
335
+ // https://fetch.spec.whatwg.org/#create-an-opaque-timing-info
336
+ function createOpaqueTimingInfo (timingInfo) {
337
+ return {
338
+ startTime: timingInfo.startTime ?? 0,
339
+ redirectStartTime: 0,
340
+ redirectEndTime: 0,
341
+ postRedirectStartTime: timingInfo.startTime ?? 0,
342
+ finalServiceWorkerStartTime: 0,
343
+ finalNetworkResponseStartTime: 0,
344
+ finalNetworkRequestStartTime: 0,
345
+ endTime: 0,
346
+ encodedBodySize: 0,
347
+ decodedBodySize: 0,
348
+ finalConnectionTimingInfo: null
349
+ }
350
+ }
351
+
352
+ // https://html.spec.whatwg.org/multipage/origin.html#policy-container
353
+ function makePolicyContainer () {
354
+ // Note: the fetch spec doesn't make use of embedder policy or CSP list
355
+ return {
356
+ referrerPolicy: 'strict-origin-when-cross-origin'
357
+ }
358
+ }
359
+
360
+ // https://html.spec.whatwg.org/multipage/origin.html#clone-a-policy-container
361
+ function clonePolicyContainer (policyContainer) {
362
+ return {
363
+ referrerPolicy: policyContainer.referrerPolicy
364
+ }
365
+ }
366
+
367
+ // https://w3c.github.io/webappsec-referrer-policy/#determine-requests-referrer
368
+ function determineRequestsReferrer (request) {
369
+ // 1. Let policy be request's referrer policy.
370
+ const policy = request.referrerPolicy;
371
+
372
+ // Note: policy cannot (shouldn't) be null or an empty string.
373
+ assert(policy);
374
+
375
+ // 2. Let environment be request’s client.
376
+
377
+ let referrerSource = null;
378
+
379
+ // 3. Switch on request’s referrer:
380
+ if (request.referrer === 'client') {
381
+ // Note: node isn't a browser and doesn't implement document/iframes,
382
+ // so we bypass this step and replace it with our own.
383
+
384
+ const globalOrigin = getGlobalOrigin();
385
+
386
+ if (!globalOrigin || globalOrigin.origin === 'null') {
387
+ return 'no-referrer'
388
+ }
389
+
390
+ // note: we need to clone it as it's mutated
391
+ referrerSource = new URL(globalOrigin);
392
+ } else if (request.referrer instanceof URL) {
393
+ // Let referrerSource be request’s referrer.
394
+ referrerSource = request.referrer;
395
+ }
396
+
397
+ // 4. Let request’s referrerURL be the result of stripping referrerSource for
398
+ // use as a referrer.
399
+ let referrerURL = stripURLForReferrer(referrerSource);
400
+
401
+ // 5. Let referrerOrigin be the result of stripping referrerSource for use as
402
+ // a referrer, with the origin-only flag set to true.
403
+ const referrerOrigin = stripURLForReferrer(referrerSource, true);
404
+
405
+ // 6. If the result of serializing referrerURL is a string whose length is
406
+ // greater than 4096, set referrerURL to referrerOrigin.
407
+ if (referrerURL.toString().length > 4096) {
408
+ referrerURL = referrerOrigin;
409
+ }
410
+
411
+ const areSameOrigin = sameOrigin(request, referrerURL);
412
+ const isNonPotentiallyTrustWorthy = isURLPotentiallyTrustworthy(referrerURL) &&
413
+ !isURLPotentiallyTrustworthy(request.url);
414
+
415
+ // 8. Execute the switch statements corresponding to the value of policy:
416
+ switch (policy) {
417
+ case 'origin': return referrerOrigin != null ? referrerOrigin : stripURLForReferrer(referrerSource, true)
418
+ case 'unsafe-url': return referrerURL
419
+ case 'same-origin':
420
+ return areSameOrigin ? referrerOrigin : 'no-referrer'
421
+ case 'origin-when-cross-origin':
422
+ return areSameOrigin ? referrerURL : referrerOrigin
423
+ case 'strict-origin-when-cross-origin': {
424
+ const currentURL = requestCurrentURL(request);
425
+
426
+ // 1. If the origin of referrerURL and the origin of request’s current
427
+ // URL are the same, then return referrerURL.
428
+ if (sameOrigin(referrerURL, currentURL)) {
429
+ return referrerURL
430
+ }
431
+
432
+ // 2. If referrerURL is a potentially trustworthy URL and request’s
433
+ // current URL is not a potentially trustworthy URL, then return no
434
+ // referrer.
435
+ if (isURLPotentiallyTrustworthy(referrerURL) && !isURLPotentiallyTrustworthy(currentURL)) {
436
+ return 'no-referrer'
437
+ }
438
+
439
+ // 3. Return referrerOrigin.
440
+ return referrerOrigin
441
+ }
442
+ case 'strict-origin': // eslint-disable-line
443
+ /**
444
+ * 1. If referrerURL is a potentially trustworthy URL and
445
+ * request’s current URL is not a potentially trustworthy URL,
446
+ * then return no referrer.
447
+ * 2. Return referrerOrigin
448
+ */
449
+ case 'no-referrer-when-downgrade': // eslint-disable-line
450
+ /**
451
+ * 1. If referrerURL is a potentially trustworthy URL and
452
+ * request’s current URL is not a potentially trustworthy URL,
453
+ * then return no referrer.
454
+ * 2. Return referrerOrigin
455
+ */
456
+
457
+ default: // eslint-disable-line
458
+ return isNonPotentiallyTrustWorthy ? 'no-referrer' : referrerOrigin
459
+ }
460
+ }
461
+
462
+ /**
463
+ * @see https://w3c.github.io/webappsec-referrer-policy/#strip-url
464
+ * @param {URL} url
465
+ * @param {boolean|undefined} originOnly
466
+ */
467
+ function stripURLForReferrer (url, originOnly) {
468
+ // 1. Assert: url is a URL.
469
+ assert(url instanceof URL);
470
+
471
+ // 2. If url’s scheme is a local scheme, then return no referrer.
472
+ if (url.protocol === 'file:' || url.protocol === 'about:' || url.protocol === 'blank:') {
473
+ return 'no-referrer'
474
+ }
475
+
476
+ // 3. Set url’s username to the empty string.
477
+ url.username = '';
478
+
479
+ // 4. Set url’s password to the empty string.
480
+ url.password = '';
481
+
482
+ // 5. Set url’s fragment to null.
483
+ url.hash = '';
484
+
485
+ // 6. If the origin-only flag is true, then:
486
+ if (originOnly) {
487
+ // 1. Set url’s path to « the empty string ».
488
+ url.pathname = '';
489
+
490
+ // 2. Set url’s query to null.
491
+ url.search = '';
492
+ }
493
+
494
+ // 7. Return url.
495
+ return url
496
+ }
497
+
498
+ function isURLPotentiallyTrustworthy (url) {
499
+ if (!(url instanceof URL)) {
500
+ return false
501
+ }
502
+
503
+ // If child of about, return true
504
+ if (url.href === 'about:blank' || url.href === 'about:srcdoc') {
505
+ return true
506
+ }
507
+
508
+ // If scheme is data, return true
509
+ if (url.protocol === 'data:') return true
510
+
511
+ // If file, return true
512
+ if (url.protocol === 'file:') return true
513
+
514
+ return isOriginPotentiallyTrustworthy(url.origin)
515
+
516
+ function isOriginPotentiallyTrustworthy (origin) {
517
+ // If origin is explicitly null, return false
518
+ if (origin == null || origin === 'null') return false
519
+
520
+ const originAsURL = new URL(origin);
521
+
522
+ // If secure, return true
523
+ if (originAsURL.protocol === 'https:' || originAsURL.protocol === 'wss:') {
524
+ return true
525
+ }
526
+
527
+ // If localhost or variants, return true
528
+ if (/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(originAsURL.hostname) ||
529
+ (originAsURL.hostname === 'localhost' || originAsURL.hostname.includes('localhost.')) ||
530
+ (originAsURL.hostname.endsWith('.localhost'))) {
531
+ return true
532
+ }
533
+
534
+ // If any other, return false
535
+ return false
536
+ }
537
+ }
538
+
539
+ /**
540
+ * @see https://w3c.github.io/webappsec-subresource-integrity/#does-response-match-metadatalist
541
+ * @param {Uint8Array} bytes
542
+ * @param {string} metadataList
543
+ */
544
+ function bytesMatch (bytes, metadataList) {
545
+ // If node is not built with OpenSSL support, we cannot check
546
+ // a request's integrity, so allow it by default (the spec will
547
+ // allow requests if an invalid hash is given, as precedence).
548
+ /* istanbul ignore if: only if node is built with --without-ssl */
549
+ if (crypto === undefined) {
550
+ return true
551
+ }
552
+
553
+ // 1. Let parsedMetadata be the result of parsing metadataList.
554
+ const parsedMetadata = parseMetadata(metadataList);
555
+
556
+ // 2. If parsedMetadata is no metadata, return true.
557
+ if (parsedMetadata === 'no metadata') {
558
+ return true
559
+ }
560
+
561
+ // 3. If response is not eligible for integrity validation, return false.
562
+ // TODO
563
+
564
+ // 4. If parsedMetadata is the empty set, return true.
565
+ if (parsedMetadata.length === 0) {
566
+ return true
567
+ }
568
+
569
+ // 5. Let metadata be the result of getting the strongest
570
+ // metadata from parsedMetadata.
571
+ const strongest = getStrongestMetadata(parsedMetadata);
572
+ const metadata = filterMetadataListByAlgorithm(parsedMetadata, strongest);
573
+
574
+ // 6. For each item in metadata:
575
+ for (const item of metadata) {
576
+ // 1. Let algorithm be the alg component of item.
577
+ const algorithm = item.algo;
578
+
579
+ // 2. Let expectedValue be the val component of item.
580
+ const expectedValue = item.hash;
581
+
582
+ // See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e
583
+ // "be liberal with padding". This is annoying, and it's not even in the spec.
584
+
585
+ // 3. Let actualValue be the result of applying algorithm to bytes.
586
+ let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64');
587
+
588
+ if (actualValue[actualValue.length - 1] === '=') {
589
+ if (actualValue[actualValue.length - 2] === '=') {
590
+ actualValue = actualValue.slice(0, -2);
591
+ } else {
592
+ actualValue = actualValue.slice(0, -1);
593
+ }
594
+ }
595
+
596
+ // 4. If actualValue is a case-sensitive match for expectedValue,
597
+ // return true.
598
+ if (compareBase64Mixed(actualValue, expectedValue)) {
599
+ return true
600
+ }
601
+ }
602
+
603
+ // 7. Return false.
604
+ return false
605
+ }
606
+
607
+ // https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options
608
+ // https://www.w3.org/TR/CSP2/#source-list-syntax
609
+ // https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1
610
+ const parseHashWithOptions = /(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;
611
+
612
+ /**
613
+ * @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata
614
+ * @param {string} metadata
615
+ */
616
+ function parseMetadata (metadata) {
617
+ // 1. Let result be the empty set.
618
+ /** @type {{ algo: string, hash: string }[]} */
619
+ const result = [];
620
+
621
+ // 2. Let empty be equal to true.
622
+ let empty = true;
623
+
624
+ // 3. For each token returned by splitting metadata on spaces:
625
+ for (const token of metadata.split(' ')) {
626
+ // 1. Set empty to false.
627
+ empty = false;
628
+
629
+ // 2. Parse token as a hash-with-options.
630
+ const parsedToken = parseHashWithOptions.exec(token);
631
+
632
+ // 3. If token does not parse, continue to the next token.
633
+ if (
634
+ parsedToken === null ||
635
+ parsedToken.groups === undefined ||
636
+ parsedToken.groups.algo === undefined
637
+ ) {
638
+ // Note: Chromium blocks the request at this point, but Firefox
639
+ // gives a warning that an invalid integrity was given. The
640
+ // correct behavior is to ignore these, and subsequently not
641
+ // check the integrity of the resource.
642
+ continue
643
+ }
644
+
645
+ // 4. Let algorithm be the hash-algo component of token.
646
+ const algorithm = parsedToken.groups.algo.toLowerCase();
647
+
648
+ // 5. If algorithm is a hash function recognized by the user
649
+ // agent, add the parsed token to result.
650
+ if (supportedHashes.includes(algorithm)) {
651
+ result.push(parsedToken.groups);
652
+ }
653
+ }
654
+
655
+ // 4. Return no metadata if empty is true, otherwise return result.
656
+ if (empty === true) {
657
+ return 'no metadata'
658
+ }
659
+
660
+ return result
661
+ }
662
+
663
+ /**
664
+ * @param {{ algo: 'sha256' | 'sha384' | 'sha512' }[]} metadataList
665
+ */
666
+ function getStrongestMetadata (metadataList) {
667
+ // Let algorithm be the algo component of the first item in metadataList.
668
+ // Can be sha256
669
+ let algorithm = metadataList[0].algo;
670
+ // If the algorithm is sha512, then it is the strongest
671
+ // and we can return immediately
672
+ if (algorithm[3] === '5') {
673
+ return algorithm
674
+ }
675
+
676
+ for (let i = 1; i < metadataList.length; ++i) {
677
+ const metadata = metadataList[i];
678
+ // If the algorithm is sha512, then it is the strongest
679
+ // and we can break the loop immediately
680
+ if (metadata.algo[3] === '5') {
681
+ algorithm = 'sha512';
682
+ break
683
+ // If the algorithm is sha384, then a potential sha256 or sha384 is ignored
684
+ } else if (algorithm[3] === '3') {
685
+ continue
686
+ // algorithm is sha256, check if algorithm is sha384 and if so, set it as
687
+ // the strongest
688
+ } else if (metadata.algo[3] === '3') {
689
+ algorithm = 'sha384';
690
+ }
691
+ }
692
+ return algorithm
693
+ }
694
+
695
+ function filterMetadataListByAlgorithm (metadataList, algorithm) {
696
+ if (metadataList.length === 1) {
697
+ return metadataList
698
+ }
699
+
700
+ let pos = 0;
701
+ for (let i = 0; i < metadataList.length; ++i) {
702
+ if (metadataList[i].algo === algorithm) {
703
+ metadataList[pos++] = metadataList[i];
704
+ }
705
+ }
706
+
707
+ metadataList.length = pos;
708
+
709
+ return metadataList
710
+ }
711
+
712
+ /**
713
+ * Compares two base64 strings, allowing for base64url
714
+ * in the second string.
715
+ *
716
+ * @param {string} actualValue always base64
717
+ * @param {string} expectedValue base64 or base64url
718
+ * @returns {boolean}
719
+ */
720
+ function compareBase64Mixed (actualValue, expectedValue) {
721
+ if (actualValue.length !== expectedValue.length) {
722
+ return false
723
+ }
724
+ for (let i = 0; i < actualValue.length; ++i) {
725
+ if (actualValue[i] !== expectedValue[i]) {
726
+ if (
727
+ (actualValue[i] === '+' && expectedValue[i] === '-') ||
728
+ (actualValue[i] === '/' && expectedValue[i] === '_')
729
+ ) {
730
+ continue
731
+ }
732
+ return false
733
+ }
734
+ }
735
+
736
+ return true
737
+ }
738
+
739
+ // https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request
740
+ function tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {
741
+ // TODO
742
+ }
743
+
744
+ /**
745
+ * @link {https://html.spec.whatwg.org/multipage/origin.html#same-origin}
746
+ * @param {URL} A
747
+ * @param {URL} B
748
+ */
749
+ function sameOrigin (A, B) {
750
+ // 1. If A and B are the same opaque origin, then return true.
751
+ if (A.origin === B.origin && A.origin === 'null') {
752
+ return true
753
+ }
754
+
755
+ // 2. If A and B are both tuple origins and their schemes,
756
+ // hosts, and port are identical, then return true.
757
+ if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {
758
+ return true
759
+ }
760
+
761
+ // 3. Return false.
762
+ return false
763
+ }
764
+
765
+ function createDeferredPromise () {
766
+ let res;
767
+ let rej;
768
+ const promise = new Promise((resolve, reject) => {
769
+ res = resolve;
770
+ rej = reject;
771
+ });
772
+
773
+ return { promise, resolve: res, reject: rej }
774
+ }
775
+
776
+ function isAborted (fetchParams) {
777
+ return fetchParams.controller.state === 'aborted'
778
+ }
779
+
780
+ function isCancelled (fetchParams) {
781
+ return fetchParams.controller.state === 'aborted' ||
782
+ fetchParams.controller.state === 'terminated'
783
+ }
784
+
785
+ const normalizeMethodRecord = {
786
+ delete: 'DELETE',
787
+ DELETE: 'DELETE',
788
+ get: 'GET',
789
+ GET: 'GET',
790
+ head: 'HEAD',
791
+ HEAD: 'HEAD',
792
+ options: 'OPTIONS',
793
+ OPTIONS: 'OPTIONS',
794
+ post: 'POST',
795
+ POST: 'POST',
796
+ put: 'PUT',
797
+ PUT: 'PUT'
798
+ };
799
+
800
+ // Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.
801
+ Object.setPrototypeOf(normalizeMethodRecord, null);
802
+
803
+ /**
804
+ * @see https://fetch.spec.whatwg.org/#concept-method-normalize
805
+ * @param {string} method
806
+ */
807
+ function normalizeMethod (method) {
808
+ return normalizeMethodRecord[method.toLowerCase()] ?? method
809
+ }
810
+
811
+ // https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-a-json-string
812
+ function serializeJavascriptValueToJSONString (value) {
813
+ // 1. Let result be ? Call(%JSON.stringify%, undefined, « value »).
814
+ const result = JSON.stringify(value);
815
+
816
+ // 2. If result is undefined, then throw a TypeError.
817
+ if (result === undefined) {
818
+ throw new TypeError('Value is not JSON serializable')
819
+ }
820
+
821
+ // 3. Assert: result is a string.
822
+ assert(typeof result === 'string');
823
+
824
+ // 4. Return result.
825
+ return result
826
+ }
827
+
828
+ // https://tc39.es/ecma262/#sec-%25iteratorprototype%25-object
829
+ const esIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));
830
+
831
+ /**
832
+ * @see https://webidl.spec.whatwg.org/#dfn-iterator-prototype-object
833
+ * @param {() => unknown[]} iterator
834
+ * @param {string} name name of the instance
835
+ * @param {'key'|'value'|'key+value'} kind
836
+ */
837
+ function makeIterator (iterator, name, kind) {
838
+ const object = {
839
+ index: 0,
840
+ kind,
841
+ target: iterator
842
+ };
843
+
844
+ const i = {
845
+ next () {
846
+ // 1. Let interface be the interface for which the iterator prototype object exists.
847
+
848
+ // 2. Let thisValue be the this value.
849
+
850
+ // 3. Let object be ? ToObject(thisValue).
851
+
852
+ // 4. If object is a platform object, then perform a security
853
+ // check, passing:
854
+
855
+ // 5. If object is not a default iterator object for interface,
856
+ // then throw a TypeError.
857
+ if (Object.getPrototypeOf(this) !== i) {
858
+ throw new TypeError(
859
+ `'next' called on an object that does not implement interface ${name} Iterator.`
860
+ )
861
+ }
862
+
863
+ // 6. Let index be object’s index.
864
+ // 7. Let kind be object’s kind.
865
+ // 8. Let values be object’s target's value pairs to iterate over.
866
+ const { index, kind, target } = object;
867
+ const values = target();
868
+
869
+ // 9. Let len be the length of values.
870
+ const len = values.length;
871
+
872
+ // 10. If index is greater than or equal to len, then return
873
+ // CreateIterResultObject(undefined, true).
874
+ if (index >= len) {
875
+ return { value: undefined, done: true }
876
+ }
877
+
878
+ // 11. Let pair be the entry in values at index index.
879
+ const pair = values[index];
880
+
881
+ // 12. Set object’s index to index + 1.
882
+ object.index = index + 1;
883
+
884
+ // 13. Return the iterator result for pair and kind.
885
+ return iteratorResult(pair, kind)
886
+ },
887
+ // The class string of an iterator prototype object for a given interface is the
888
+ // result of concatenating the identifier of the interface and the string " Iterator".
889
+ [Symbol.toStringTag]: `${name} Iterator`
890
+ };
891
+
892
+ // The [[Prototype]] internal slot of an iterator prototype object must be %IteratorPrototype%.
893
+ Object.setPrototypeOf(i, esIteratorPrototype);
894
+ // esIteratorPrototype needs to be the prototype of i
895
+ // which is the prototype of an empty object. Yes, it's confusing.
896
+ return Object.setPrototypeOf({}, i)
897
+ }
898
+
899
+ // https://webidl.spec.whatwg.org/#iterator-result
900
+ function iteratorResult (pair, kind) {
901
+ let result;
902
+
903
+ // 1. Let result be a value determined by the value of kind:
904
+ switch (kind) {
905
+ case 'key': {
906
+ // 1. Let idlKey be pair’s key.
907
+ // 2. Let key be the result of converting idlKey to an
908
+ // ECMAScript value.
909
+ // 3. result is key.
910
+ result = pair[0];
911
+ break
912
+ }
913
+ case 'value': {
914
+ // 1. Let idlValue be pair’s value.
915
+ // 2. Let value be the result of converting idlValue to
916
+ // an ECMAScript value.
917
+ // 3. result is value.
918
+ result = pair[1];
919
+ break
920
+ }
921
+ case 'key+value': {
922
+ // 1. Let idlKey be pair’s key.
923
+ // 2. Let idlValue be pair’s value.
924
+ // 3. Let key be the result of converting idlKey to an
925
+ // ECMAScript value.
926
+ // 4. Let value be the result of converting idlValue to
927
+ // an ECMAScript value.
928
+ // 5. Let array be ! ArrayCreate(2).
929
+ // 6. Call ! CreateDataProperty(array, "0", key).
930
+ // 7. Call ! CreateDataProperty(array, "1", value).
931
+ // 8. result is array.
932
+ result = pair;
933
+ break
934
+ }
935
+ }
936
+
937
+ // 2. Return CreateIterResultObject(result, false).
938
+ return { value: result, done: false }
939
+ }
940
+
941
+ /**
942
+ * @see https://fetch.spec.whatwg.org/#body-fully-read
943
+ */
944
+ async function fullyReadBody (body, processBody, processBodyError) {
945
+ // 1. If taskDestination is null, then set taskDestination to
946
+ // the result of starting a new parallel queue.
947
+
948
+ // 2. Let successSteps given a byte sequence bytes be to queue a
949
+ // fetch task to run processBody given bytes, with taskDestination.
950
+ const successSteps = processBody;
951
+
952
+ // 3. Let errorSteps be to queue a fetch task to run processBodyError,
953
+ // with taskDestination.
954
+ const errorSteps = processBodyError;
955
+
956
+ // 4. Let reader be the result of getting a reader for body’s stream.
957
+ // If that threw an exception, then run errorSteps with that
958
+ // exception and return.
959
+ let reader;
960
+
961
+ try {
962
+ reader = body.stream.getReader();
963
+ } catch (e) {
964
+ errorSteps(e);
965
+ return
966
+ }
967
+
968
+ // 5. Read all bytes from reader, given successSteps and errorSteps.
969
+ try {
970
+ const result = await readAllBytes(reader);
971
+ successSteps(result);
972
+ } catch (e) {
973
+ errorSteps(e);
974
+ }
975
+ }
976
+
977
+ /** @type {ReadableStream} */
978
+ let ReadableStream = globalThis.ReadableStream;
979
+
980
+ function isReadableStreamLike (stream) {
981
+ if (!ReadableStream) {
982
+ ReadableStream = require$$14.ReadableStream;
983
+ }
984
+
985
+ return stream instanceof ReadableStream || (
986
+ stream[Symbol.toStringTag] === 'ReadableStream' &&
987
+ typeof stream.tee === 'function'
988
+ )
989
+ }
990
+
991
+ const MAXIMUM_ARGUMENT_LENGTH = 65535;
992
+
993
+ /**
994
+ * @see https://infra.spec.whatwg.org/#isomorphic-decode
995
+ * @param {number[]|Uint8Array} input
996
+ */
997
+ function isomorphicDecode (input) {
998
+ // 1. To isomorphic decode a byte sequence input, return a string whose code point
999
+ // length is equal to input’s length and whose code points have the same values
1000
+ // as the values of input’s bytes, in the same order.
1001
+
1002
+ if (input.length < MAXIMUM_ARGUMENT_LENGTH) {
1003
+ return String.fromCharCode(...input)
1004
+ }
1005
+
1006
+ return input.reduce((previous, current) => previous + String.fromCharCode(current), '')
1007
+ }
1008
+
1009
+ /**
1010
+ * @param {ReadableStreamController<Uint8Array>} controller
1011
+ */
1012
+ function readableStreamClose (controller) {
1013
+ try {
1014
+ controller.close();
1015
+ } catch (err) {
1016
+ // TODO: add comment explaining why this error occurs.
1017
+ if (!err.message.includes('Controller is already closed')) {
1018
+ throw err
1019
+ }
1020
+ }
1021
+ }
1022
+
1023
+ /**
1024
+ * @see https://infra.spec.whatwg.org/#isomorphic-encode
1025
+ * @param {string} input
1026
+ */
1027
+ function isomorphicEncode (input) {
1028
+ // 1. Assert: input contains no code points greater than U+00FF.
1029
+ for (let i = 0; i < input.length; i++) {
1030
+ assert(input.charCodeAt(i) <= 0xFF);
1031
+ }
1032
+
1033
+ // 2. Return a byte sequence whose length is equal to input’s code
1034
+ // point length and whose bytes have the same values as the
1035
+ // values of input’s code points, in the same order
1036
+ return input
1037
+ }
1038
+
1039
+ /**
1040
+ * @see https://streams.spec.whatwg.org/#readablestreamdefaultreader-read-all-bytes
1041
+ * @see https://streams.spec.whatwg.org/#read-loop
1042
+ * @param {ReadableStreamDefaultReader} reader
1043
+ */
1044
+ async function readAllBytes (reader) {
1045
+ const bytes = [];
1046
+ let byteLength = 0;
1047
+
1048
+ while (true) {
1049
+ const { done, value: chunk } = await reader.read();
1050
+
1051
+ if (done) {
1052
+ // 1. Call successSteps with bytes.
1053
+ return Buffer.concat(bytes, byteLength)
1054
+ }
1055
+
1056
+ // 1. If chunk is not a Uint8Array object, call failureSteps
1057
+ // with a TypeError and abort these steps.
1058
+ if (!isUint8Array(chunk)) {
1059
+ throw new TypeError('Received non-Uint8Array chunk')
1060
+ }
1061
+
1062
+ // 2. Append the bytes represented by chunk to bytes.
1063
+ bytes.push(chunk);
1064
+ byteLength += chunk.length;
1065
+
1066
+ // 3. Read-loop given reader, bytes, successSteps, and failureSteps.
1067
+ }
1068
+ }
1069
+
1070
+ /**
1071
+ * @see https://fetch.spec.whatwg.org/#is-local
1072
+ * @param {URL} url
1073
+ */
1074
+ function urlIsLocal (url) {
1075
+ assert('protocol' in url); // ensure it's a url object
1076
+
1077
+ const protocol = url.protocol;
1078
+
1079
+ return protocol === 'about:' || protocol === 'blob:' || protocol === 'data:'
1080
+ }
1081
+
1082
+ /**
1083
+ * @param {string|URL} url
1084
+ */
1085
+ function urlHasHttpsScheme (url) {
1086
+ if (typeof url === 'string') {
1087
+ return url.startsWith('https:')
1088
+ }
1089
+
1090
+ return url.protocol === 'https:'
1091
+ }
1092
+
1093
+ /**
1094
+ * @see https://fetch.spec.whatwg.org/#http-scheme
1095
+ * @param {URL} url
1096
+ */
1097
+ function urlIsHttpHttpsScheme (url) {
1098
+ assert('protocol' in url); // ensure it's a url object
1099
+
1100
+ const protocol = url.protocol;
1101
+
1102
+ return protocol === 'http:' || protocol === 'https:'
1103
+ }
1104
+
1105
+ /**
1106
+ * Fetch supports node >= 16.8.0, but Object.hasOwn was added in v16.9.0.
1107
+ */
1108
+ const hasOwn = Object.hasOwn || ((dict, key) => Object.prototype.hasOwnProperty.call(dict, key));
1109
+
1110
+ util = {
1111
+ isAborted,
1112
+ isCancelled,
1113
+ createDeferredPromise,
1114
+ ReadableStreamFrom,
1115
+ toUSVString,
1116
+ tryUpgradeRequestToAPotentiallyTrustworthyURL,
1117
+ coarsenedSharedCurrentTime,
1118
+ determineRequestsReferrer,
1119
+ makePolicyContainer,
1120
+ clonePolicyContainer,
1121
+ appendFetchMetadata,
1122
+ appendRequestOriginHeader,
1123
+ TAOCheck,
1124
+ corsCheck,
1125
+ crossOriginResourcePolicyCheck,
1126
+ createOpaqueTimingInfo,
1127
+ setRequestReferrerPolicyOnRedirect,
1128
+ isValidHTTPToken,
1129
+ requestBadPort,
1130
+ requestCurrentURL,
1131
+ responseURL,
1132
+ responseLocationURL,
1133
+ isBlobLike,
1134
+ isURLPotentiallyTrustworthy,
1135
+ isValidReasonPhrase,
1136
+ sameOrigin,
1137
+ normalizeMethod,
1138
+ serializeJavascriptValueToJSONString,
1139
+ makeIterator,
1140
+ isValidHeaderName,
1141
+ isValidHeaderValue,
1142
+ hasOwn,
1143
+ isErrorLike,
1144
+ fullyReadBody,
1145
+ bytesMatch,
1146
+ isReadableStreamLike,
1147
+ readableStreamClose,
1148
+ isomorphicEncode,
1149
+ isomorphicDecode,
1150
+ urlIsLocal,
1151
+ urlHasHttpsScheme,
1152
+ urlIsHttpHttpsScheme,
1153
+ readAllBytes,
1154
+ normalizeMethodRecord,
1155
+ parseMetadata
1156
+ };
1157
+ return util;
1158
+ }
1159
+
1160
+ export { requireUtil as __require };
1161
+ //# sourceMappingURL=util.js.map