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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +2 -2
  578. package/lib/esm/_virtual/index6.js +6 -2
  579. package/lib/esm/_virtual/index6.js.map +1 -1
  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,861 @@
1
+ import { __require as requireSymbols } from './symbols.js';
2
+ import { __require as requireUtil } from './util.js';
3
+ import { __require as requireUtil$1 } from '../core/util.js';
4
+ import { __require as requireSymbols$1 } from '../core/symbols.js';
5
+ import { __require as requireWebidl } from '../fetch/webidl.js';
6
+ import { __require as requireResponse } from '../fetch/response.js';
7
+ import { __require as requireRequest } from '../fetch/request.js';
8
+ import { __require as requireSymbols$2 } from '../fetch/symbols.js';
9
+ import { __require as requireFetch } from '../fetch/index.js';
10
+ import { __require as requireUtil$2 } from '../fetch/util.js';
11
+ import require$$0 from 'node:assert';
12
+ import { __require as requireGlobal } from '../global.js';
13
+
14
+ var cache;
15
+ var hasRequiredCache;
16
+
17
+ function requireCache () {
18
+ if (hasRequiredCache) return cache;
19
+ hasRequiredCache = 1;
20
+
21
+ const { kConstruct } = requireSymbols();
22
+ const { urlEquals, fieldValues: getFieldValues } = requireUtil();
23
+ const { kEnumerableProperty, isDisturbed } = requireUtil$1();
24
+ const { kHeadersList } = requireSymbols$1();
25
+ const { webidl } = requireWebidl();
26
+ const { Response, cloneResponse } = requireResponse();
27
+ const { Request } = requireRequest();
28
+ const { kState, kHeaders, kGuard, kRealm } = requireSymbols$2();
29
+ const { fetching } = requireFetch();
30
+ const { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = requireUtil$2();
31
+ const assert = require$$0;
32
+ const { getGlobalDispatcher } = requireGlobal();
33
+
34
+ /**
35
+ * @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation
36
+ * @typedef {Object} CacheBatchOperation
37
+ * @property {'delete' | 'put'} type
38
+ * @property {any} request
39
+ * @property {any} response
40
+ * @property {import('../../types/cache').CacheQueryOptions} options
41
+ */
42
+
43
+ /**
44
+ * @see https://w3c.github.io/ServiceWorker/#dfn-request-response-list
45
+ * @typedef {[any, any][]} requestResponseList
46
+ */
47
+
48
+ class Cache {
49
+ /**
50
+ * @see https://w3c.github.io/ServiceWorker/#dfn-relevant-request-response-list
51
+ * @type {requestResponseList}
52
+ */
53
+ #relevantRequestResponseList
54
+
55
+ constructor () {
56
+ if (arguments[0] !== kConstruct) {
57
+ webidl.illegalConstructor();
58
+ }
59
+
60
+ this.#relevantRequestResponseList = arguments[1];
61
+ }
62
+
63
+ async match (request, options = {}) {
64
+ webidl.brandCheck(this, Cache);
65
+ webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.match' });
66
+
67
+ request = webidl.converters.RequestInfo(request);
68
+ options = webidl.converters.CacheQueryOptions(options);
69
+
70
+ const p = await this.matchAll(request, options);
71
+
72
+ if (p.length === 0) {
73
+ return
74
+ }
75
+
76
+ return p[0]
77
+ }
78
+
79
+ async matchAll (request = undefined, options = {}) {
80
+ webidl.brandCheck(this, Cache);
81
+
82
+ if (request !== undefined) request = webidl.converters.RequestInfo(request);
83
+ options = webidl.converters.CacheQueryOptions(options);
84
+
85
+ // 1.
86
+ let r = null;
87
+
88
+ // 2.
89
+ if (request !== undefined) {
90
+ if (request instanceof Request) {
91
+ // 2.1.1
92
+ r = request[kState];
93
+
94
+ // 2.1.2
95
+ if (r.method !== 'GET' && !options.ignoreMethod) {
96
+ return []
97
+ }
98
+ } else if (typeof request === 'string') {
99
+ // 2.2.1
100
+ r = new Request(request)[kState];
101
+ }
102
+ }
103
+
104
+ // 5.
105
+ // 5.1
106
+ const responses = [];
107
+
108
+ // 5.2
109
+ if (request === undefined) {
110
+ // 5.2.1
111
+ for (const requestResponse of this.#relevantRequestResponseList) {
112
+ responses.push(requestResponse[1]);
113
+ }
114
+ } else { // 5.3
115
+ // 5.3.1
116
+ const requestResponses = this.#queryCache(r, options);
117
+
118
+ // 5.3.2
119
+ for (const requestResponse of requestResponses) {
120
+ responses.push(requestResponse[1]);
121
+ }
122
+ }
123
+
124
+ // 5.4
125
+ // We don't implement CORs so we don't need to loop over the responses, yay!
126
+
127
+ // 5.5.1
128
+ const responseList = [];
129
+
130
+ // 5.5.2
131
+ for (const response of responses) {
132
+ // 5.5.2.1
133
+ const responseObject = new Response(response.body?.source ?? null);
134
+ const body = responseObject[kState].body;
135
+ responseObject[kState] = response;
136
+ responseObject[kState].body = body;
137
+ responseObject[kHeaders][kHeadersList] = response.headersList;
138
+ responseObject[kHeaders][kGuard] = 'immutable';
139
+
140
+ responseList.push(responseObject);
141
+ }
142
+
143
+ // 6.
144
+ return Object.freeze(responseList)
145
+ }
146
+
147
+ async add (request) {
148
+ webidl.brandCheck(this, Cache);
149
+ webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.add' });
150
+
151
+ request = webidl.converters.RequestInfo(request);
152
+
153
+ // 1.
154
+ const requests = [request];
155
+
156
+ // 2.
157
+ const responseArrayPromise = this.addAll(requests);
158
+
159
+ // 3.
160
+ return await responseArrayPromise
161
+ }
162
+
163
+ async addAll (requests) {
164
+ webidl.brandCheck(this, Cache);
165
+ webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.addAll' });
166
+
167
+ requests = webidl.converters['sequence<RequestInfo>'](requests);
168
+
169
+ // 1.
170
+ const responsePromises = [];
171
+
172
+ // 2.
173
+ const requestList = [];
174
+
175
+ // 3.
176
+ for (const request of requests) {
177
+ if (typeof request === 'string') {
178
+ continue
179
+ }
180
+
181
+ // 3.1
182
+ const r = request[kState];
183
+
184
+ // 3.2
185
+ if (!urlIsHttpHttpsScheme(r.url) || r.method !== 'GET') {
186
+ throw webidl.errors.exception({
187
+ header: 'Cache.addAll',
188
+ message: 'Expected http/s scheme when method is not GET.'
189
+ })
190
+ }
191
+ }
192
+
193
+ // 4.
194
+ /** @type {ReturnType<typeof fetching>[]} */
195
+ const fetchControllers = [];
196
+
197
+ // 5.
198
+ for (const request of requests) {
199
+ // 5.1
200
+ const r = new Request(request)[kState];
201
+
202
+ // 5.2
203
+ if (!urlIsHttpHttpsScheme(r.url)) {
204
+ throw webidl.errors.exception({
205
+ header: 'Cache.addAll',
206
+ message: 'Expected http/s scheme.'
207
+ })
208
+ }
209
+
210
+ // 5.4
211
+ r.initiator = 'fetch';
212
+ r.destination = 'subresource';
213
+
214
+ // 5.5
215
+ requestList.push(r);
216
+
217
+ // 5.6
218
+ const responsePromise = createDeferredPromise();
219
+
220
+ // 5.7
221
+ fetchControllers.push(fetching({
222
+ request: r,
223
+ dispatcher: getGlobalDispatcher(),
224
+ processResponse (response) {
225
+ // 1.
226
+ if (response.type === 'error' || response.status === 206 || response.status < 200 || response.status > 299) {
227
+ responsePromise.reject(webidl.errors.exception({
228
+ header: 'Cache.addAll',
229
+ message: 'Received an invalid status code or the request failed.'
230
+ }));
231
+ } else if (response.headersList.contains('vary')) { // 2.
232
+ // 2.1
233
+ const fieldValues = getFieldValues(response.headersList.get('vary'));
234
+
235
+ // 2.2
236
+ for (const fieldValue of fieldValues) {
237
+ // 2.2.1
238
+ if (fieldValue === '*') {
239
+ responsePromise.reject(webidl.errors.exception({
240
+ header: 'Cache.addAll',
241
+ message: 'invalid vary field value'
242
+ }));
243
+
244
+ for (const controller of fetchControllers) {
245
+ controller.abort();
246
+ }
247
+
248
+ return
249
+ }
250
+ }
251
+ }
252
+ },
253
+ processResponseEndOfBody (response) {
254
+ // 1.
255
+ if (response.aborted) {
256
+ responsePromise.reject(new DOMException('aborted', 'AbortError'));
257
+ return
258
+ }
259
+
260
+ // 2.
261
+ responsePromise.resolve(response);
262
+ }
263
+ }));
264
+
265
+ // 5.8
266
+ responsePromises.push(responsePromise.promise);
267
+ }
268
+
269
+ // 6.
270
+ const p = Promise.all(responsePromises);
271
+
272
+ // 7.
273
+ const responses = await p;
274
+
275
+ // 7.1
276
+ const operations = [];
277
+
278
+ // 7.2
279
+ let index = 0;
280
+
281
+ // 7.3
282
+ for (const response of responses) {
283
+ // 7.3.1
284
+ /** @type {CacheBatchOperation} */
285
+ const operation = {
286
+ type: 'put', // 7.3.2
287
+ request: requestList[index], // 7.3.3
288
+ response // 7.3.4
289
+ };
290
+
291
+ operations.push(operation); // 7.3.5
292
+
293
+ index++; // 7.3.6
294
+ }
295
+
296
+ // 7.5
297
+ const cacheJobPromise = createDeferredPromise();
298
+
299
+ // 7.6.1
300
+ let errorData = null;
301
+
302
+ // 7.6.2
303
+ try {
304
+ this.#batchCacheOperations(operations);
305
+ } catch (e) {
306
+ errorData = e;
307
+ }
308
+
309
+ // 7.6.3
310
+ queueMicrotask(() => {
311
+ // 7.6.3.1
312
+ if (errorData === null) {
313
+ cacheJobPromise.resolve(undefined);
314
+ } else {
315
+ // 7.6.3.2
316
+ cacheJobPromise.reject(errorData);
317
+ }
318
+ });
319
+
320
+ // 7.7
321
+ return cacheJobPromise.promise
322
+ }
323
+
324
+ async put (request, response) {
325
+ webidl.brandCheck(this, Cache);
326
+ webidl.argumentLengthCheck(arguments, 2, { header: 'Cache.put' });
327
+
328
+ request = webidl.converters.RequestInfo(request);
329
+ response = webidl.converters.Response(response);
330
+
331
+ // 1.
332
+ let innerRequest = null;
333
+
334
+ // 2.
335
+ if (request instanceof Request) {
336
+ innerRequest = request[kState];
337
+ } else { // 3.
338
+ innerRequest = new Request(request)[kState];
339
+ }
340
+
341
+ // 4.
342
+ if (!urlIsHttpHttpsScheme(innerRequest.url) || innerRequest.method !== 'GET') {
343
+ throw webidl.errors.exception({
344
+ header: 'Cache.put',
345
+ message: 'Expected an http/s scheme when method is not GET'
346
+ })
347
+ }
348
+
349
+ // 5.
350
+ const innerResponse = response[kState];
351
+
352
+ // 6.
353
+ if (innerResponse.status === 206) {
354
+ throw webidl.errors.exception({
355
+ header: 'Cache.put',
356
+ message: 'Got 206 status'
357
+ })
358
+ }
359
+
360
+ // 7.
361
+ if (innerResponse.headersList.contains('vary')) {
362
+ // 7.1.
363
+ const fieldValues = getFieldValues(innerResponse.headersList.get('vary'));
364
+
365
+ // 7.2.
366
+ for (const fieldValue of fieldValues) {
367
+ // 7.2.1
368
+ if (fieldValue === '*') {
369
+ throw webidl.errors.exception({
370
+ header: 'Cache.put',
371
+ message: 'Got * vary field value'
372
+ })
373
+ }
374
+ }
375
+ }
376
+
377
+ // 8.
378
+ if (innerResponse.body && (isDisturbed(innerResponse.body.stream) || innerResponse.body.stream.locked)) {
379
+ throw webidl.errors.exception({
380
+ header: 'Cache.put',
381
+ message: 'Response body is locked or disturbed'
382
+ })
383
+ }
384
+
385
+ // 9.
386
+ const clonedResponse = cloneResponse(innerResponse);
387
+
388
+ // 10.
389
+ const bodyReadPromise = createDeferredPromise();
390
+
391
+ // 11.
392
+ if (innerResponse.body != null) {
393
+ // 11.1
394
+ const stream = innerResponse.body.stream;
395
+
396
+ // 11.2
397
+ const reader = stream.getReader();
398
+
399
+ // 11.3
400
+ readAllBytes(reader).then(bodyReadPromise.resolve, bodyReadPromise.reject);
401
+ } else {
402
+ bodyReadPromise.resolve(undefined);
403
+ }
404
+
405
+ // 12.
406
+ /** @type {CacheBatchOperation[]} */
407
+ const operations = [];
408
+
409
+ // 13.
410
+ /** @type {CacheBatchOperation} */
411
+ const operation = {
412
+ type: 'put', // 14.
413
+ request: innerRequest, // 15.
414
+ response: clonedResponse // 16.
415
+ };
416
+
417
+ // 17.
418
+ operations.push(operation);
419
+
420
+ // 19.
421
+ const bytes = await bodyReadPromise.promise;
422
+
423
+ if (clonedResponse.body != null) {
424
+ clonedResponse.body.source = bytes;
425
+ }
426
+
427
+ // 19.1
428
+ const cacheJobPromise = createDeferredPromise();
429
+
430
+ // 19.2.1
431
+ let errorData = null;
432
+
433
+ // 19.2.2
434
+ try {
435
+ this.#batchCacheOperations(operations);
436
+ } catch (e) {
437
+ errorData = e;
438
+ }
439
+
440
+ // 19.2.3
441
+ queueMicrotask(() => {
442
+ // 19.2.3.1
443
+ if (errorData === null) {
444
+ cacheJobPromise.resolve();
445
+ } else { // 19.2.3.2
446
+ cacheJobPromise.reject(errorData);
447
+ }
448
+ });
449
+
450
+ return cacheJobPromise.promise
451
+ }
452
+
453
+ async delete (request, options = {}) {
454
+ webidl.brandCheck(this, Cache);
455
+ webidl.argumentLengthCheck(arguments, 1, { header: 'Cache.delete' });
456
+
457
+ request = webidl.converters.RequestInfo(request);
458
+ options = webidl.converters.CacheQueryOptions(options);
459
+
460
+ /**
461
+ * @type {Request}
462
+ */
463
+ let r = null;
464
+
465
+ if (request instanceof Request) {
466
+ r = request[kState];
467
+
468
+ if (r.method !== 'GET' && !options.ignoreMethod) {
469
+ return false
470
+ }
471
+ } else {
472
+ assert(typeof request === 'string');
473
+
474
+ r = new Request(request)[kState];
475
+ }
476
+
477
+ /** @type {CacheBatchOperation[]} */
478
+ const operations = [];
479
+
480
+ /** @type {CacheBatchOperation} */
481
+ const operation = {
482
+ type: 'delete',
483
+ request: r,
484
+ options
485
+ };
486
+
487
+ operations.push(operation);
488
+
489
+ const cacheJobPromise = createDeferredPromise();
490
+
491
+ let errorData = null;
492
+ let requestResponses;
493
+
494
+ try {
495
+ requestResponses = this.#batchCacheOperations(operations);
496
+ } catch (e) {
497
+ errorData = e;
498
+ }
499
+
500
+ queueMicrotask(() => {
501
+ if (errorData === null) {
502
+ cacheJobPromise.resolve(!!requestResponses?.length);
503
+ } else {
504
+ cacheJobPromise.reject(errorData);
505
+ }
506
+ });
507
+
508
+ return cacheJobPromise.promise
509
+ }
510
+
511
+ /**
512
+ * @see https://w3c.github.io/ServiceWorker/#dom-cache-keys
513
+ * @param {any} request
514
+ * @param {import('../../types/cache').CacheQueryOptions} options
515
+ * @returns {readonly Request[]}
516
+ */
517
+ async keys (request = undefined, options = {}) {
518
+ webidl.brandCheck(this, Cache);
519
+
520
+ if (request !== undefined) request = webidl.converters.RequestInfo(request);
521
+ options = webidl.converters.CacheQueryOptions(options);
522
+
523
+ // 1.
524
+ let r = null;
525
+
526
+ // 2.
527
+ if (request !== undefined) {
528
+ // 2.1
529
+ if (request instanceof Request) {
530
+ // 2.1.1
531
+ r = request[kState];
532
+
533
+ // 2.1.2
534
+ if (r.method !== 'GET' && !options.ignoreMethod) {
535
+ return []
536
+ }
537
+ } else if (typeof request === 'string') { // 2.2
538
+ r = new Request(request)[kState];
539
+ }
540
+ }
541
+
542
+ // 4.
543
+ const promise = createDeferredPromise();
544
+
545
+ // 5.
546
+ // 5.1
547
+ const requests = [];
548
+
549
+ // 5.2
550
+ if (request === undefined) {
551
+ // 5.2.1
552
+ for (const requestResponse of this.#relevantRequestResponseList) {
553
+ // 5.2.1.1
554
+ requests.push(requestResponse[0]);
555
+ }
556
+ } else { // 5.3
557
+ // 5.3.1
558
+ const requestResponses = this.#queryCache(r, options);
559
+
560
+ // 5.3.2
561
+ for (const requestResponse of requestResponses) {
562
+ // 5.3.2.1
563
+ requests.push(requestResponse[0]);
564
+ }
565
+ }
566
+
567
+ // 5.4
568
+ queueMicrotask(() => {
569
+ // 5.4.1
570
+ const requestList = [];
571
+
572
+ // 5.4.2
573
+ for (const request of requests) {
574
+ const requestObject = new Request('https://a');
575
+ requestObject[kState] = request;
576
+ requestObject[kHeaders][kHeadersList] = request.headersList;
577
+ requestObject[kHeaders][kGuard] = 'immutable';
578
+ requestObject[kRealm] = request.client;
579
+
580
+ // 5.4.2.1
581
+ requestList.push(requestObject);
582
+ }
583
+
584
+ // 5.4.3
585
+ promise.resolve(Object.freeze(requestList));
586
+ });
587
+
588
+ return promise.promise
589
+ }
590
+
591
+ /**
592
+ * @see https://w3c.github.io/ServiceWorker/#batch-cache-operations-algorithm
593
+ * @param {CacheBatchOperation[]} operations
594
+ * @returns {requestResponseList}
595
+ */
596
+ #batchCacheOperations (operations) {
597
+ // 1.
598
+ const cache = this.#relevantRequestResponseList;
599
+
600
+ // 2.
601
+ const backupCache = [...cache];
602
+
603
+ // 3.
604
+ const addedItems = [];
605
+
606
+ // 4.1
607
+ const resultList = [];
608
+
609
+ try {
610
+ // 4.2
611
+ for (const operation of operations) {
612
+ // 4.2.1
613
+ if (operation.type !== 'delete' && operation.type !== 'put') {
614
+ throw webidl.errors.exception({
615
+ header: 'Cache.#batchCacheOperations',
616
+ message: 'operation type does not match "delete" or "put"'
617
+ })
618
+ }
619
+
620
+ // 4.2.2
621
+ if (operation.type === 'delete' && operation.response != null) {
622
+ throw webidl.errors.exception({
623
+ header: 'Cache.#batchCacheOperations',
624
+ message: 'delete operation should not have an associated response'
625
+ })
626
+ }
627
+
628
+ // 4.2.3
629
+ if (this.#queryCache(operation.request, operation.options, addedItems).length) {
630
+ throw new DOMException('???', 'InvalidStateError')
631
+ }
632
+
633
+ // 4.2.4
634
+ let requestResponses;
635
+
636
+ // 4.2.5
637
+ if (operation.type === 'delete') {
638
+ // 4.2.5.1
639
+ requestResponses = this.#queryCache(operation.request, operation.options);
640
+
641
+ // TODO: the spec is wrong, this is needed to pass WPTs
642
+ if (requestResponses.length === 0) {
643
+ return []
644
+ }
645
+
646
+ // 4.2.5.2
647
+ for (const requestResponse of requestResponses) {
648
+ const idx = cache.indexOf(requestResponse);
649
+ assert(idx !== -1);
650
+
651
+ // 4.2.5.2.1
652
+ cache.splice(idx, 1);
653
+ }
654
+ } else if (operation.type === 'put') { // 4.2.6
655
+ // 4.2.6.1
656
+ if (operation.response == null) {
657
+ throw webidl.errors.exception({
658
+ header: 'Cache.#batchCacheOperations',
659
+ message: 'put operation should have an associated response'
660
+ })
661
+ }
662
+
663
+ // 4.2.6.2
664
+ const r = operation.request;
665
+
666
+ // 4.2.6.3
667
+ if (!urlIsHttpHttpsScheme(r.url)) {
668
+ throw webidl.errors.exception({
669
+ header: 'Cache.#batchCacheOperations',
670
+ message: 'expected http or https scheme'
671
+ })
672
+ }
673
+
674
+ // 4.2.6.4
675
+ if (r.method !== 'GET') {
676
+ throw webidl.errors.exception({
677
+ header: 'Cache.#batchCacheOperations',
678
+ message: 'not get method'
679
+ })
680
+ }
681
+
682
+ // 4.2.6.5
683
+ if (operation.options != null) {
684
+ throw webidl.errors.exception({
685
+ header: 'Cache.#batchCacheOperations',
686
+ message: 'options must not be defined'
687
+ })
688
+ }
689
+
690
+ // 4.2.6.6
691
+ requestResponses = this.#queryCache(operation.request);
692
+
693
+ // 4.2.6.7
694
+ for (const requestResponse of requestResponses) {
695
+ const idx = cache.indexOf(requestResponse);
696
+ assert(idx !== -1);
697
+
698
+ // 4.2.6.7.1
699
+ cache.splice(idx, 1);
700
+ }
701
+
702
+ // 4.2.6.8
703
+ cache.push([operation.request, operation.response]);
704
+
705
+ // 4.2.6.10
706
+ addedItems.push([operation.request, operation.response]);
707
+ }
708
+
709
+ // 4.2.7
710
+ resultList.push([operation.request, operation.response]);
711
+ }
712
+
713
+ // 4.3
714
+ return resultList
715
+ } catch (e) { // 5.
716
+ // 5.1
717
+ this.#relevantRequestResponseList.length = 0;
718
+
719
+ // 5.2
720
+ this.#relevantRequestResponseList = backupCache;
721
+
722
+ // 5.3
723
+ throw e
724
+ }
725
+ }
726
+
727
+ /**
728
+ * @see https://w3c.github.io/ServiceWorker/#query-cache
729
+ * @param {any} requestQuery
730
+ * @param {import('../../types/cache').CacheQueryOptions} options
731
+ * @param {requestResponseList} targetStorage
732
+ * @returns {requestResponseList}
733
+ */
734
+ #queryCache (requestQuery, options, targetStorage) {
735
+ /** @type {requestResponseList} */
736
+ const resultList = [];
737
+
738
+ const storage = targetStorage ?? this.#relevantRequestResponseList;
739
+
740
+ for (const requestResponse of storage) {
741
+ const [cachedRequest, cachedResponse] = requestResponse;
742
+ if (this.#requestMatchesCachedItem(requestQuery, cachedRequest, cachedResponse, options)) {
743
+ resultList.push(requestResponse);
744
+ }
745
+ }
746
+
747
+ return resultList
748
+ }
749
+
750
+ /**
751
+ * @see https://w3c.github.io/ServiceWorker/#request-matches-cached-item-algorithm
752
+ * @param {any} requestQuery
753
+ * @param {any} request
754
+ * @param {any | null} response
755
+ * @param {import('../../types/cache').CacheQueryOptions | undefined} options
756
+ * @returns {boolean}
757
+ */
758
+ #requestMatchesCachedItem (requestQuery, request, response = null, options) {
759
+ // if (options?.ignoreMethod === false && request.method === 'GET') {
760
+ // return false
761
+ // }
762
+
763
+ const queryURL = new URL(requestQuery.url);
764
+
765
+ const cachedURL = new URL(request.url);
766
+
767
+ if (options?.ignoreSearch) {
768
+ cachedURL.search = '';
769
+
770
+ queryURL.search = '';
771
+ }
772
+
773
+ if (!urlEquals(queryURL, cachedURL, true)) {
774
+ return false
775
+ }
776
+
777
+ if (
778
+ response == null ||
779
+ options?.ignoreVary ||
780
+ !response.headersList.contains('vary')
781
+ ) {
782
+ return true
783
+ }
784
+
785
+ const fieldValues = getFieldValues(response.headersList.get('vary'));
786
+
787
+ for (const fieldValue of fieldValues) {
788
+ if (fieldValue === '*') {
789
+ return false
790
+ }
791
+
792
+ const requestValue = request.headersList.get(fieldValue);
793
+ const queryValue = requestQuery.headersList.get(fieldValue);
794
+
795
+ // If one has the header and the other doesn't, or one has
796
+ // a different value than the other, return false
797
+ if (requestValue !== queryValue) {
798
+ return false
799
+ }
800
+ }
801
+
802
+ return true
803
+ }
804
+ }
805
+
806
+ Object.defineProperties(Cache.prototype, {
807
+ [Symbol.toStringTag]: {
808
+ value: 'Cache',
809
+ configurable: true
810
+ },
811
+ match: kEnumerableProperty,
812
+ matchAll: kEnumerableProperty,
813
+ add: kEnumerableProperty,
814
+ addAll: kEnumerableProperty,
815
+ put: kEnumerableProperty,
816
+ delete: kEnumerableProperty,
817
+ keys: kEnumerableProperty
818
+ });
819
+
820
+ const cacheQueryOptionConverters = [
821
+ {
822
+ key: 'ignoreSearch',
823
+ converter: webidl.converters.boolean,
824
+ defaultValue: false
825
+ },
826
+ {
827
+ key: 'ignoreMethod',
828
+ converter: webidl.converters.boolean,
829
+ defaultValue: false
830
+ },
831
+ {
832
+ key: 'ignoreVary',
833
+ converter: webidl.converters.boolean,
834
+ defaultValue: false
835
+ }
836
+ ];
837
+
838
+ webidl.converters.CacheQueryOptions = webidl.dictionaryConverter(cacheQueryOptionConverters);
839
+
840
+ webidl.converters.MultiCacheQueryOptions = webidl.dictionaryConverter([
841
+ ...cacheQueryOptionConverters,
842
+ {
843
+ key: 'cacheName',
844
+ converter: webidl.converters.DOMString
845
+ }
846
+ ]);
847
+
848
+ webidl.converters.Response = webidl.interfaceConverter(Response);
849
+
850
+ webidl.converters['sequence<RequestInfo>'] = webidl.sequenceConverter(
851
+ webidl.converters.RequestInfo
852
+ );
853
+
854
+ cache = {
855
+ Cache
856
+ };
857
+ return cache;
858
+ }
859
+
860
+ export { requireCache as __require };
861
+ //# sourceMappingURL=cache.js.map