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