@relative-ci/core 5.3.0-beta.1 → 5.3.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (704) hide show
  1. package/lib/cjs/__/@actions/http-client/__/undici/index.js +226 -0
  2. package/lib/cjs/__/@actions/http-client/__/undici/index.js.map +1 -0
  3. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js +73 -0
  4. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +1 -0
  5. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js +131 -0
  6. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +1 -0
  7. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +276 -0
  8. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +1 -0
  9. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js +238 -0
  10. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js.map +1 -0
  11. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js +246 -0
  12. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +1 -0
  13. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +131 -0
  14. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +1 -0
  15. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js +25 -0
  16. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js.map +1 -0
  17. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js +405 -0
  18. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js.map +1 -0
  19. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js +114 -0
  20. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js.map +1 -0
  21. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js +266 -0
  22. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js.map +1 -0
  23. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js +130 -0
  24. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js.map +1 -0
  25. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js +222 -0
  26. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +1 -0
  27. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js +418 -0
  28. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js.map +1 -0
  29. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js +417 -0
  30. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js.map +1 -0
  31. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js +80 -0
  32. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js.map +1 -0
  33. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js +166 -0
  34. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js.map +1 -0
  35. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js +755 -0
  36. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js.map +1 -0
  37. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +149 -0
  38. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +1 -0
  39. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js +227 -0
  40. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
  41. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js +1397 -0
  42. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +1 -0
  43. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js +768 -0
  44. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +1 -0
  45. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js +650 -0
  46. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +1 -0
  47. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +206 -0
  48. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
  49. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +83 -0
  50. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
  51. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js +177 -0
  52. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
  53. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js +129 -0
  54. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
  55. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +211 -0
  56. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +1 -0
  57. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js +49 -0
  58. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
  59. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +126 -0
  60. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +1 -0
  61. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js +299 -0
  62. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
  63. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js +50 -0
  64. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
  65. package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js +47 -0
  66. package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js.map +1 -0
  67. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js +56 -0
  68. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +1 -0
  69. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +237 -0
  70. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +1 -0
  71. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js +395 -0
  72. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +1 -0
  73. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js +397 -0
  74. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +1 -0
  75. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js +139 -0
  76. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +1 -0
  77. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js +35 -0
  78. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
  79. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js +38 -0
  80. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +1 -0
  81. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js +33 -0
  82. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +1 -0
  83. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js +288 -0
  84. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +1 -0
  85. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +23 -0
  86. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  87. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +23 -0
  88. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  89. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js +28 -0
  90. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +1 -0
  91. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +183 -0
  92. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +1 -0
  93. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js +83 -0
  94. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +1 -0
  95. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +42 -0
  96. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +1 -0
  97. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +224 -0
  98. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  99. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +83 -0
  100. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +1 -0
  101. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +35 -0
  102. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +1 -0
  103. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +390 -0
  104. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +1 -0
  105. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +63 -0
  106. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  107. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +41 -0
  108. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +1 -0
  109. package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js +435 -0
  110. package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js.map +1 -0
  111. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js +886 -0
  112. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +1 -0
  113. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js +169 -0
  114. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +1 -0
  115. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js +19 -0
  116. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +1 -0
  117. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js +65 -0
  118. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +1 -0
  119. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js +24 -0
  120. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +1 -0
  121. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js +201 -0
  122. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +1 -0
  123. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js +338 -0
  124. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +1 -0
  125. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js +294 -0
  126. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +1 -0
  127. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js +417 -0
  128. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
  129. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js +508 -0
  130. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
  131. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js +49 -0
  132. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +1 -0
  133. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js +560 -0
  134. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +1 -0
  135. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js +136 -0
  136. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +1 -0
  137. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js +762 -0
  138. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +1 -0
  139. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js +60 -0
  140. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
  141. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js +146 -0
  142. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +1 -0
  143. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js +499 -0
  144. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
  145. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +275 -0
  146. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +1 -0
  147. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js +52 -0
  148. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +1 -0
  149. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +709 -0
  150. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +1 -0
  151. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js +2235 -0
  152. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +1 -0
  153. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js +1069 -0
  154. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +1 -0
  155. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js +640 -0
  156. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +1 -0
  157. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js +21 -0
  158. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +1 -0
  159. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js +1662 -0
  160. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +1 -0
  161. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +716 -0
  162. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +1 -0
  163. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js +302 -0
  164. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +1 -0
  165. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js +361 -0
  166. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +1 -0
  167. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js +92 -0
  168. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
  169. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js +22 -0
  170. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +1 -0
  171. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +417 -0
  172. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +1 -0
  173. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js +391 -0
  174. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +1 -0
  175. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js +78 -0
  176. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +1 -0
  177. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js +350 -0
  178. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +1 -0
  179. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js +110 -0
  180. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +1 -0
  181. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +89 -0
  182. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
  183. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +451 -0
  184. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +1 -0
  185. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js +120 -0
  186. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +1 -0
  187. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js +24 -0
  188. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +1 -0
  189. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js +336 -0
  190. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +1 -0
  191. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +618 -0
  192. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +1 -0
  193. package/lib/cjs/__/@actions/http-client/lib/index.js +2 -2
  194. package/lib/cjs/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  195. package/lib/cjs/__/@octokit/core/dist-src/index.js.map +1 -0
  196. package/lib/cjs/__/@octokit/core/dist-src/version.js.map +1 -0
  197. package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +1 -1
  198. package/lib/cjs/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  199. package/lib/cjs/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  200. package/lib/cjs/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  201. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  202. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  203. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  204. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  205. package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/request/dist-bundle/index.js +5 -4
  206. package/lib/cjs/__/@octokit/request/dist-bundle/index.js.map +1 -0
  207. package/lib/cjs/__/@octokit/request-error/dist-src/index.js.map +1 -0
  208. package/lib/cjs/__/before-after-hook/index.js.map +1 -0
  209. package/lib/cjs/__/before-after-hook/lib/add.js.map +1 -0
  210. package/lib/cjs/__/before-after-hook/lib/register.js.map +1 -0
  211. package/lib/cjs/__/before-after-hook/lib/remove.js.map +1 -0
  212. package/lib/cjs/__/cross-spawn/index.js +1 -1
  213. package/lib/cjs/__/env-ci/lib/git.js +1 -1
  214. package/lib/cjs/__/{env-ci/__/execa → execa}/index.js +3 -3
  215. package/lib/cjs/__/execa/index.js.map +1 -0
  216. package/lib/cjs/__/execa/lib/command.js.map +1 -0
  217. package/lib/cjs/__/execa/lib/error.js.map +1 -0
  218. package/lib/cjs/__/execa/lib/promise.js.map +1 -0
  219. package/lib/cjs/__/execa/lib/stdio.js.map +1 -0
  220. package/lib/cjs/__/{env-ci/__/execa → execa}/lib/stream.js +1 -1
  221. package/lib/cjs/__/execa/lib/stream.js.map +1 -0
  222. package/lib/cjs/__/execa/lib/verbose.js.map +1 -0
  223. package/lib/cjs/__/get-stream/source/array-buffer.js.map +1 -0
  224. package/lib/cjs/__/human-signals/build/src/core.js.map +1 -0
  225. package/lib/cjs/__/human-signals/build/src/main.js.map +1 -0
  226. package/lib/cjs/__/human-signals/build/src/realtime.js.map +1 -0
  227. package/lib/cjs/__/human-signals/build/src/signals.js.map +1 -0
  228. package/lib/cjs/__/is-stream/index.js.map +1 -0
  229. package/lib/cjs/__/json-with-bigint/json-with-bigint.js +151 -0
  230. package/lib/cjs/__/json-with-bigint/json-with-bigint.js.map +1 -0
  231. package/lib/cjs/__/npm-run-path/__/path-key/index.js.map +1 -0
  232. package/lib/cjs/__/{env-ci/__/npm-run-path → npm-run-path}/index.js +1 -1
  233. package/lib/cjs/__/npm-run-path/index.js.map +1 -0
  234. package/lib/cjs/__/path-key/index.js +1 -1
  235. package/lib/cjs/__/signal-exit/dist/mjs/index.js.map +1 -0
  236. package/lib/cjs/__/signal-exit/dist/mjs/signals.js.map +1 -0
  237. package/lib/cjs/__/strip-final-newline/index.js.map +1 -0
  238. package/lib/cjs/__/undici/index.js +1 -1
  239. package/lib/cjs/__/undici/lib/api/api-connect.js +3 -3
  240. package/lib/cjs/__/undici/lib/api/api-pipeline.js +3 -3
  241. package/lib/cjs/__/undici/lib/api/api-request.js +3 -3
  242. package/lib/cjs/__/undici/lib/api/api-stream.js +3 -3
  243. package/lib/cjs/__/undici/lib/api/api-upgrade.js +3 -3
  244. package/lib/cjs/__/undici/lib/core/util.js +14 -14
  245. package/lib/cjs/__/undici/lib/fetch/body.js +8 -8
  246. package/lib/cjs/__/undici/lib/fetch/constants.js +3 -3
  247. package/lib/cjs/__/undici/lib/fetch/dataURL.js +5 -5
  248. package/lib/cjs/__/undici/lib/fetch/file.js +3 -3
  249. package/lib/cjs/__/undici/lib/fetch/formdata.js +3 -3
  250. package/lib/cjs/__/undici/lib/fetch/index.js +3 -3
  251. package/lib/cjs/__/undici/lib/fetch/index.js.map +1 -1
  252. package/lib/cjs/__/undici/lib/fetch/util.js +6 -6
  253. package/lib/cjs/__/undici/lib/fileapi/util.js +6 -6
  254. package/lib/cjs/__/undici/lib/websocket/events.js +3 -3
  255. package/lib/cjs/__/universal-user-agent/index.js.map +1 -0
  256. package/lib/cjs/_virtual/api-request2.js +6 -0
  257. package/lib/cjs/_virtual/api-request2.js.map +1 -0
  258. package/lib/cjs/_virtual/constants2.js +6 -0
  259. package/lib/cjs/_virtual/constants2.js.map +1 -0
  260. package/lib/cjs/_virtual/index10.js +2 -2
  261. package/lib/cjs/_virtual/index11.js +2 -2
  262. package/lib/cjs/_virtual/index14.js +2 -2
  263. package/lib/cjs/_virtual/index15.js +6 -0
  264. package/lib/cjs/_virtual/index15.js.map +1 -0
  265. package/lib/cjs/_virtual/index16.js +6 -0
  266. package/lib/cjs/_virtual/index16.js.map +1 -0
  267. package/lib/cjs/_virtual/index2.js +1 -1
  268. package/lib/cjs/_virtual/index3.js +1 -1
  269. package/lib/cjs/_virtual/index4.js +1 -1
  270. package/lib/cjs/_virtual/index8.js +2 -2
  271. package/lib/cjs/_virtual/mock-interceptor2.js +6 -0
  272. package/lib/cjs/_virtual/mock-interceptor2.js.map +1 -0
  273. package/lib/cjs/_virtual/utils4.js +6 -0
  274. package/lib/cjs/_virtual/utils4.js.map +1 -0
  275. package/lib/cjs/env/load.js +1 -1
  276. package/lib/cjs/env/load.js.map +1 -1
  277. package/lib/esm/__/@actions/http-client/__/undici/index.js +220 -0
  278. package/lib/esm/__/@actions/http-client/__/undici/index.js.map +1 -0
  279. package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js +71 -0
  280. package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +1 -0
  281. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js +124 -0
  282. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +1 -0
  283. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +268 -0
  284. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +1 -0
  285. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js +231 -0
  286. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js.map +1 -0
  287. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js +238 -0
  288. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +1 -0
  289. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +124 -0
  290. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +1 -0
  291. package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js +23 -0
  292. package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js.map +1 -0
  293. package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js +398 -0
  294. package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js.map +1 -0
  295. package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js +108 -0
  296. package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js.map +1 -0
  297. package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js +258 -0
  298. package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js.map +1 -0
  299. package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js +128 -0
  300. package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js.map +1 -0
  301. package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js +215 -0
  302. package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +1 -0
  303. package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js +416 -0
  304. package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js.map +1 -0
  305. package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js +411 -0
  306. package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js.map +1 -0
  307. package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js +78 -0
  308. package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js.map +1 -0
  309. package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js +164 -0
  310. package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js.map +1 -0
  311. package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js +742 -0
  312. package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js.map +1 -0
  313. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +147 -0
  314. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +1 -0
  315. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js +225 -0
  316. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
  317. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js +1391 -0
  318. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +1 -0
  319. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js +761 -0
  320. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +1 -0
  321. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js +642 -0
  322. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +1 -0
  323. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +204 -0
  324. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
  325. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +77 -0
  326. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
  327. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js +175 -0
  328. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
  329. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js +127 -0
  330. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
  331. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +209 -0
  332. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +1 -0
  333. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js +47 -0
  334. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
  335. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +124 -0
  336. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +1 -0
  337. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js +293 -0
  338. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
  339. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js +48 -0
  340. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
  341. package/lib/esm/__/@actions/http-client/__/undici/lib/global.js +45 -0
  342. package/lib/esm/__/@actions/http-client/__/undici/lib/global.js.map +1 -0
  343. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js +54 -0
  344. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +1 -0
  345. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +230 -0
  346. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +1 -0
  347. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js +389 -0
  348. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +1 -0
  349. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js +390 -0
  350. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +1 -0
  351. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js +137 -0
  352. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +1 -0
  353. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js +33 -0
  354. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
  355. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js +36 -0
  356. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +1 -0
  357. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js +31 -0
  358. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +1 -0
  359. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js +286 -0
  360. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +1 -0
  361. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +17 -0
  362. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  363. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +17 -0
  364. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  365. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js +26 -0
  366. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +1 -0
  367. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +181 -0
  368. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +1 -0
  369. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js +77 -0
  370. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +1 -0
  371. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +40 -0
  372. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +1 -0
  373. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +222 -0
  374. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  375. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +77 -0
  376. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +1 -0
  377. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +33 -0
  378. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +1 -0
  379. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +383 -0
  380. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +1 -0
  381. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +56 -0
  382. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  383. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +39 -0
  384. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +1 -0
  385. package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js +433 -0
  386. package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js.map +1 -0
  387. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js +880 -0
  388. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +1 -0
  389. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js +167 -0
  390. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +1 -0
  391. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js +17 -0
  392. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +1 -0
  393. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js +59 -0
  394. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +1 -0
  395. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js +22 -0
  396. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +1 -0
  397. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js +199 -0
  398. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +1 -0
  399. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js +332 -0
  400. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +1 -0
  401. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js +292 -0
  402. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +1 -0
  403. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js +411 -0
  404. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
  405. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js +502 -0
  406. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
  407. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js +47 -0
  408. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +1 -0
  409. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js +551 -0
  410. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +1 -0
  411. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js +134 -0
  412. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +1 -0
  413. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js +756 -0
  414. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +1 -0
  415. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js +58 -0
  416. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
  417. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js +140 -0
  418. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +1 -0
  419. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js +492 -0
  420. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
  421. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +268 -0
  422. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +1 -0
  423. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js +50 -0
  424. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +1 -0
  425. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +702 -0
  426. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +1 -0
  427. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js +2224 -0
  428. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +1 -0
  429. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js +1061 -0
  430. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +1 -0
  431. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js +633 -0
  432. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +1 -0
  433. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js +19 -0
  434. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +1 -0
  435. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js +1652 -0
  436. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +1 -0
  437. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +709 -0
  438. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +1 -0
  439. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js +300 -0
  440. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +1 -0
  441. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js +359 -0
  442. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +1 -0
  443. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js +90 -0
  444. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
  445. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js +20 -0
  446. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +1 -0
  447. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +409 -0
  448. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +1 -0
  449. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js +389 -0
  450. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +1 -0
  451. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js +76 -0
  452. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +1 -0
  453. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js +344 -0
  454. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +1 -0
  455. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js +108 -0
  456. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +1 -0
  457. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +83 -0
  458. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
  459. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +444 -0
  460. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +1 -0
  461. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js +118 -0
  462. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +1 -0
  463. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js +22 -0
  464. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +1 -0
  465. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js +330 -0
  466. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +1 -0
  467. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +612 -0
  468. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +1 -0
  469. package/lib/esm/__/@actions/http-client/lib/index.js +2 -2
  470. package/lib/esm/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  471. package/lib/esm/__/@octokit/core/dist-src/index.js.map +1 -0
  472. package/lib/esm/__/@octokit/core/dist-src/version.js.map +1 -0
  473. package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +1 -1
  474. package/lib/esm/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  475. package/lib/esm/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  476. package/lib/esm/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  477. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  478. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  479. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  480. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  481. package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/request/dist-bundle/index.js +5 -4
  482. package/lib/esm/__/@octokit/request/dist-bundle/index.js.map +1 -0
  483. package/lib/esm/__/@octokit/request-error/dist-src/index.js.map +1 -0
  484. package/lib/esm/__/before-after-hook/index.js.map +1 -0
  485. package/lib/esm/__/before-after-hook/lib/add.js.map +1 -0
  486. package/lib/esm/__/before-after-hook/lib/register.js.map +1 -0
  487. package/lib/esm/__/before-after-hook/lib/remove.js.map +1 -0
  488. package/lib/esm/__/cross-spawn/index.js +1 -1
  489. package/lib/esm/__/env-ci/lib/git.js +1 -1
  490. package/lib/esm/__/{env-ci/__/execa → execa}/index.js +1 -1
  491. package/lib/esm/__/execa/index.js.map +1 -0
  492. package/lib/esm/__/execa/lib/command.js.map +1 -0
  493. package/lib/esm/__/execa/lib/error.js.map +1 -0
  494. package/lib/esm/__/execa/lib/promise.js.map +1 -0
  495. package/lib/esm/__/execa/lib/stdio.js.map +1 -0
  496. package/lib/esm/__/{env-ci/__/execa → execa}/lib/stream.js +1 -1
  497. package/lib/esm/__/execa/lib/stream.js.map +1 -0
  498. package/lib/esm/__/execa/lib/verbose.js.map +1 -0
  499. package/lib/esm/__/get-stream/source/array-buffer.js.map +1 -0
  500. package/lib/esm/__/human-signals/build/src/core.js.map +1 -0
  501. package/lib/esm/__/human-signals/build/src/main.js.map +1 -0
  502. package/lib/esm/__/human-signals/build/src/realtime.js.map +1 -0
  503. package/lib/esm/__/human-signals/build/src/signals.js.map +1 -0
  504. package/lib/esm/__/is-stream/index.js.map +1 -0
  505. package/lib/esm/__/java-properties/dist-node/index.js +1 -1
  506. package/lib/esm/__/json-with-bigint/json-with-bigint.js +148 -0
  507. package/lib/esm/__/json-with-bigint/json-with-bigint.js.map +1 -0
  508. package/lib/esm/__/npm-run-path/__/path-key/index.js.map +1 -0
  509. package/lib/esm/__/{env-ci/__/npm-run-path → npm-run-path}/index.js +1 -1
  510. package/lib/esm/__/npm-run-path/index.js.map +1 -0
  511. package/lib/esm/__/path-key/index.js +1 -1
  512. package/lib/esm/__/signal-exit/dist/mjs/index.js.map +1 -0
  513. package/lib/esm/__/signal-exit/dist/mjs/signals.js.map +1 -0
  514. package/lib/esm/__/strip-final-newline/index.js.map +1 -0
  515. package/lib/esm/__/undici/index.js +1 -1
  516. package/lib/esm/__/undici/lib/api/api-connect.js +2 -2
  517. package/lib/esm/__/undici/lib/api/api-pipeline.js +2 -2
  518. package/lib/esm/__/undici/lib/api/api-request.js +2 -2
  519. package/lib/esm/__/undici/lib/api/api-request.js.map +1 -1
  520. package/lib/esm/__/undici/lib/api/api-stream.js +2 -2
  521. package/lib/esm/__/undici/lib/api/api-stream.js.map +1 -1
  522. package/lib/esm/__/undici/lib/api/api-upgrade.js +2 -2
  523. package/lib/esm/__/undici/lib/api/api-upgrade.js.map +1 -1
  524. package/lib/esm/__/undici/lib/core/util.js +10 -10
  525. package/lib/esm/__/undici/lib/core/util.js.map +1 -1
  526. package/lib/esm/__/undici/lib/fetch/body.js +6 -6
  527. package/lib/esm/__/undici/lib/fetch/body.js.map +1 -1
  528. package/lib/esm/__/undici/lib/fetch/constants.js +2 -2
  529. package/lib/esm/__/undici/lib/fetch/constants.js.map +1 -1
  530. package/lib/esm/__/undici/lib/fetch/dataURL.js +4 -4
  531. package/lib/esm/__/undici/lib/fetch/dataURL.js.map +1 -1
  532. package/lib/esm/__/undici/lib/fetch/file.js +2 -2
  533. package/lib/esm/__/undici/lib/fetch/file.js.map +1 -1
  534. package/lib/esm/__/undici/lib/fetch/formdata.js +2 -2
  535. package/lib/esm/__/undici/lib/fetch/index.js +2 -2
  536. package/lib/esm/__/undici/lib/fetch/index.js.map +1 -1
  537. package/lib/esm/__/undici/lib/fetch/util.js +4 -4
  538. package/lib/esm/__/undici/lib/fetch/util.js.map +1 -1
  539. package/lib/esm/__/undici/lib/fileapi/util.js +4 -4
  540. package/lib/esm/__/undici/lib/fileapi/util.js.map +1 -1
  541. package/lib/esm/__/undici/lib/websocket/events.js +2 -2
  542. package/lib/esm/__/universal-user-agent/index.js.map +1 -0
  543. package/lib/esm/_virtual/api-request2.js +4 -0
  544. package/lib/esm/_virtual/api-request2.js.map +1 -0
  545. package/lib/esm/_virtual/constants2.js +4 -0
  546. package/lib/esm/_virtual/constants2.js.map +1 -0
  547. package/lib/esm/_virtual/index10.js +4 -2
  548. package/lib/esm/_virtual/index10.js.map +1 -1
  549. package/lib/esm/_virtual/index11.js +2 -2
  550. package/lib/esm/_virtual/index14.js +2 -2
  551. package/lib/esm/_virtual/index15.js +4 -0
  552. package/lib/esm/_virtual/index15.js.map +1 -0
  553. package/lib/esm/_virtual/index16.js +4 -0
  554. package/lib/esm/_virtual/index16.js.map +1 -0
  555. package/lib/esm/_virtual/index2.js +1 -1
  556. package/lib/esm/_virtual/index3.js +1 -1
  557. package/lib/esm/_virtual/index4.js +1 -1
  558. package/lib/esm/_virtual/index5.js +2 -6
  559. package/lib/esm/_virtual/index5.js.map +1 -1
  560. package/lib/esm/_virtual/index6.js +6 -2
  561. package/lib/esm/_virtual/index6.js.map +1 -1
  562. package/lib/esm/_virtual/index8.js +2 -4
  563. package/lib/esm/_virtual/index8.js.map +1 -1
  564. package/lib/esm/_virtual/index9.js +2 -2
  565. package/lib/esm/_virtual/mock-interceptor2.js +4 -0
  566. package/lib/esm/_virtual/mock-interceptor2.js.map +1 -0
  567. package/lib/esm/_virtual/utils4.js +4 -0
  568. package/lib/esm/_virtual/utils4.js.map +1 -0
  569. package/lib/esm/env/load.js +1 -1
  570. package/lib/esm/env/load.js.map +1 -1
  571. package/lib/types/env/load.d.ts +5 -5
  572. package/lib/types/utils/log-response.d.ts +5 -5
  573. package/lib/types/utils/logger.d.ts +5 -5
  574. package/package.json +9 -9
  575. package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
  576. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
  577. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
  578. package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
  579. package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
  580. package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
  581. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
  582. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
  583. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
  584. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
  585. package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
  586. package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
  587. package/lib/cjs/__/@actions/github/__/before-after-hook/index.js.map +0 -1
  588. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
  589. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
  590. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
  591. package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
  592. package/lib/cjs/__/env-ci/__/execa/index.js.map +0 -1
  593. package/lib/cjs/__/env-ci/__/execa/lib/command.js.map +0 -1
  594. package/lib/cjs/__/env-ci/__/execa/lib/error.js.map +0 -1
  595. package/lib/cjs/__/env-ci/__/execa/lib/promise.js.map +0 -1
  596. package/lib/cjs/__/env-ci/__/execa/lib/stdio.js.map +0 -1
  597. package/lib/cjs/__/env-ci/__/execa/lib/stream.js.map +0 -1
  598. package/lib/cjs/__/env-ci/__/execa/lib/verbose.js.map +0 -1
  599. package/lib/cjs/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
  600. package/lib/cjs/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
  601. package/lib/cjs/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
  602. package/lib/cjs/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
  603. package/lib/cjs/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
  604. package/lib/cjs/__/env-ci/__/is-stream/index.js.map +0 -1
  605. package/lib/cjs/__/env-ci/__/npm-run-path/index.js.map +0 -1
  606. package/lib/cjs/__/env-ci/__/path-key/index.js.map +0 -1
  607. package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
  608. package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
  609. package/lib/cjs/__/env-ci/__/strip-final-newline/index.js.map +0 -1
  610. package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
  611. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
  612. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
  613. package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
  614. package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
  615. package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
  616. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
  617. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
  618. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
  619. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
  620. package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
  621. package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
  622. package/lib/esm/__/@actions/github/__/before-after-hook/index.js.map +0 -1
  623. package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
  624. package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
  625. package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
  626. package/lib/esm/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
  627. package/lib/esm/__/env-ci/__/execa/index.js.map +0 -1
  628. package/lib/esm/__/env-ci/__/execa/lib/command.js.map +0 -1
  629. package/lib/esm/__/env-ci/__/execa/lib/error.js.map +0 -1
  630. package/lib/esm/__/env-ci/__/execa/lib/promise.js.map +0 -1
  631. package/lib/esm/__/env-ci/__/execa/lib/stdio.js.map +0 -1
  632. package/lib/esm/__/env-ci/__/execa/lib/stream.js.map +0 -1
  633. package/lib/esm/__/env-ci/__/execa/lib/verbose.js.map +0 -1
  634. package/lib/esm/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
  635. package/lib/esm/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
  636. package/lib/esm/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
  637. package/lib/esm/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
  638. package/lib/esm/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
  639. package/lib/esm/__/env-ci/__/is-stream/index.js.map +0 -1
  640. package/lib/esm/__/env-ci/__/npm-run-path/index.js.map +0 -1
  641. package/lib/esm/__/env-ci/__/path-key/index.js.map +0 -1
  642. package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
  643. package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
  644. package/lib/esm/__/env-ci/__/strip-final-newline/index.js.map +0 -1
  645. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
  646. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
  647. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
  648. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
  649. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
  650. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
  651. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
  652. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
  653. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
  654. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
  655. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
  656. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
  657. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
  658. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
  659. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
  660. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
  661. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
  662. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
  663. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/verbose.js +0 -0
  664. /package/lib/cjs/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
  665. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
  666. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
  667. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
  668. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
  669. /package/lib/cjs/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
  670. /package/lib/cjs/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
  671. /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
  672. /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
  673. /package/lib/cjs/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
  674. /package/lib/cjs/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
  675. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
  676. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
  677. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
  678. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
  679. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
  680. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
  681. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
  682. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
  683. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
  684. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
  685. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
  686. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
  687. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
  688. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
  689. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
  690. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
  691. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
  692. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
  693. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/verbose.js +0 -0
  694. /package/lib/esm/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
  695. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
  696. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
  697. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
  698. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
  699. /package/lib/esm/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
  700. /package/lib/esm/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
  701. /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
  702. /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
  703. /package/lib/esm/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
  704. /package/lib/esm/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
@@ -0,0 +1,451 @@
1
+ 'use strict';
2
+
3
+ var require$$0 = require('node:stream');
4
+ var require$$0$1 = require('node:assert');
5
+ var constants = require('./constants.js');
6
+ var symbols = require('./symbols.js');
7
+ var diagnostics = require('../../core/diagnostics.js');
8
+ var util = require('./util.js');
9
+ var frame = require('./frame.js');
10
+ var connection = require('./connection.js');
11
+ var permessageDeflate = require('./permessage-deflate.js');
12
+
13
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
14
+
15
+ var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
16
+ var require$$0__default$1 = /*#__PURE__*/_interopDefault(require$$0$1);
17
+
18
+ var receiver;
19
+ var hasRequiredReceiver;
20
+
21
+ function requireReceiver () {
22
+ if (hasRequiredReceiver) return receiver;
23
+ hasRequiredReceiver = 1;
24
+
25
+ const { Writable } = require$$0__default.default;
26
+ const assert = require$$0__default$1.default;
27
+ const { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = constants.__require();
28
+ const { kReadyState, kSentClose, kResponse, kReceivedClose } = symbols.__require();
29
+ const { channels } = diagnostics.__require();
30
+ const {
31
+ isValidStatusCode,
32
+ isValidOpcode,
33
+ failWebsocketConnection,
34
+ websocketMessageReceived,
35
+ utf8Decode,
36
+ isControlFrame,
37
+ isTextBinaryFrame,
38
+ isContinuationFrame
39
+ } = util.__require();
40
+ const { WebsocketFrameSend } = frame.__require();
41
+ const { closeWebSocketConnection } = connection.__require();
42
+ const { PerMessageDeflate } = permessageDeflate.__require();
43
+
44
+ // This code was influenced by ws released under the MIT license.
45
+ // Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
46
+ // Copyright (c) 2013 Arnout Kazemier and contributors
47
+ // Copyright (c) 2016 Luigi Pinca and contributors
48
+
49
+ class ByteParser extends Writable {
50
+ #buffers = []
51
+ #byteOffset = 0
52
+ #loop = false
53
+
54
+ #state = parserStates.INFO
55
+
56
+ #info = {}
57
+ #fragments = []
58
+
59
+ /** @type {Map<string, PerMessageDeflate>} */
60
+ #extensions
61
+
62
+ constructor (ws, extensions) {
63
+ super();
64
+
65
+ this.ws = ws;
66
+ this.#extensions = extensions == null ? new Map() : extensions;
67
+
68
+ if (this.#extensions.has('permessage-deflate')) {
69
+ this.#extensions.set('permessage-deflate', new PerMessageDeflate(extensions));
70
+ }
71
+ }
72
+
73
+ /**
74
+ * @param {Buffer} chunk
75
+ * @param {() => void} callback
76
+ */
77
+ _write (chunk, _, callback) {
78
+ this.#buffers.push(chunk);
79
+ this.#byteOffset += chunk.length;
80
+ this.#loop = true;
81
+
82
+ this.run(callback);
83
+ }
84
+
85
+ /**
86
+ * Runs whenever a new chunk is received.
87
+ * Callback is called whenever there are no more chunks buffering,
88
+ * or not enough bytes are buffered to parse.
89
+ */
90
+ run (callback) {
91
+ while (this.#loop) {
92
+ if (this.#state === parserStates.INFO) {
93
+ // If there aren't enough bytes to parse the payload length, etc.
94
+ if (this.#byteOffset < 2) {
95
+ return callback()
96
+ }
97
+
98
+ const buffer = this.consume(2);
99
+ const fin = (buffer[0] & 0x80) !== 0;
100
+ const opcode = buffer[0] & 0x0F;
101
+ const masked = (buffer[1] & 0x80) === 0x80;
102
+
103
+ const fragmented = !fin && opcode !== opcodes.CONTINUATION;
104
+ const payloadLength = buffer[1] & 0x7F;
105
+
106
+ const rsv1 = buffer[0] & 0x40;
107
+ const rsv2 = buffer[0] & 0x20;
108
+ const rsv3 = buffer[0] & 0x10;
109
+
110
+ if (!isValidOpcode(opcode)) {
111
+ failWebsocketConnection(this.ws, 'Invalid opcode received');
112
+ return callback()
113
+ }
114
+
115
+ if (masked) {
116
+ failWebsocketConnection(this.ws, 'Frame cannot be masked');
117
+ return callback()
118
+ }
119
+
120
+ // MUST be 0 unless an extension is negotiated that defines meanings
121
+ // for non-zero values. If a nonzero value is received and none of
122
+ // the negotiated extensions defines the meaning of such a nonzero
123
+ // value, the receiving endpoint MUST _Fail the WebSocket
124
+ // Connection_.
125
+ // This document allocates the RSV1 bit of the WebSocket header for
126
+ // PMCEs and calls the bit the "Per-Message Compressed" bit. On a
127
+ // WebSocket connection where a PMCE is in use, this bit indicates
128
+ // whether a message is compressed or not.
129
+ if (rsv1 !== 0 && !this.#extensions.has('permessage-deflate')) {
130
+ failWebsocketConnection(this.ws, 'Expected RSV1 to be clear.');
131
+ return
132
+ }
133
+
134
+ if (rsv2 !== 0 || rsv3 !== 0) {
135
+ failWebsocketConnection(this.ws, 'RSV1, RSV2, RSV3 must be clear');
136
+ return
137
+ }
138
+
139
+ if (fragmented && !isTextBinaryFrame(opcode)) {
140
+ // Only text and binary frames can be fragmented
141
+ failWebsocketConnection(this.ws, 'Invalid frame type was fragmented.');
142
+ return
143
+ }
144
+
145
+ // If we are already parsing a text/binary frame and do not receive either
146
+ // a continuation frame or close frame, fail the connection.
147
+ if (isTextBinaryFrame(opcode) && this.#fragments.length > 0) {
148
+ failWebsocketConnection(this.ws, 'Expected continuation frame');
149
+ return
150
+ }
151
+
152
+ if (this.#info.fragmented && fragmented) {
153
+ // A fragmented frame can't be fragmented itself
154
+ failWebsocketConnection(this.ws, 'Fragmented frame exceeded 125 bytes.');
155
+ return
156
+ }
157
+
158
+ // "All control frames MUST have a payload length of 125 bytes or less
159
+ // and MUST NOT be fragmented."
160
+ if ((payloadLength > 125 || fragmented) && isControlFrame(opcode)) {
161
+ failWebsocketConnection(this.ws, 'Control frame either too large or fragmented');
162
+ return
163
+ }
164
+
165
+ if (isContinuationFrame(opcode) && this.#fragments.length === 0 && !this.#info.compressed) {
166
+ failWebsocketConnection(this.ws, 'Unexpected continuation frame');
167
+ return
168
+ }
169
+
170
+ if (payloadLength <= 125) {
171
+ this.#info.payloadLength = payloadLength;
172
+ this.#state = parserStates.READ_DATA;
173
+ } else if (payloadLength === 126) {
174
+ this.#state = parserStates.PAYLOADLENGTH_16;
175
+ } else if (payloadLength === 127) {
176
+ this.#state = parserStates.PAYLOADLENGTH_64;
177
+ }
178
+
179
+ if (isTextBinaryFrame(opcode)) {
180
+ this.#info.binaryType = opcode;
181
+ this.#info.compressed = rsv1 !== 0;
182
+ }
183
+
184
+ this.#info.opcode = opcode;
185
+ this.#info.masked = masked;
186
+ this.#info.fin = fin;
187
+ this.#info.fragmented = fragmented;
188
+ } else if (this.#state === parserStates.PAYLOADLENGTH_16) {
189
+ if (this.#byteOffset < 2) {
190
+ return callback()
191
+ }
192
+
193
+ const buffer = this.consume(2);
194
+
195
+ this.#info.payloadLength = buffer.readUInt16BE(0);
196
+ this.#state = parserStates.READ_DATA;
197
+ } else if (this.#state === parserStates.PAYLOADLENGTH_64) {
198
+ if (this.#byteOffset < 8) {
199
+ return callback()
200
+ }
201
+
202
+ const buffer = this.consume(8);
203
+ const upper = buffer.readUInt32BE(0);
204
+
205
+ // 2^31 is the maximum bytes an arraybuffer can contain
206
+ // on 32-bit systems. Although, on 64-bit systems, this is
207
+ // 2^53-1 bytes.
208
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length
209
+ // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/common/globals.h;drc=1946212ac0100668f14eb9e2843bdd846e510a1e;bpv=1;bpt=1;l=1275
210
+ // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/js-array-buffer.h;l=34;drc=1946212ac0100668f14eb9e2843bdd846e510a1e
211
+ if (upper > 2 ** 31 - 1) {
212
+ failWebsocketConnection(this.ws, 'Received payload length > 2^31 bytes.');
213
+ return
214
+ }
215
+
216
+ const lower = buffer.readUInt32BE(4);
217
+
218
+ this.#info.payloadLength = (upper << 8) + lower;
219
+ this.#state = parserStates.READ_DATA;
220
+ } else if (this.#state === parserStates.READ_DATA) {
221
+ if (this.#byteOffset < this.#info.payloadLength) {
222
+ return callback()
223
+ }
224
+
225
+ const body = this.consume(this.#info.payloadLength);
226
+
227
+ if (isControlFrame(this.#info.opcode)) {
228
+ this.#loop = this.parseControlFrame(body);
229
+ this.#state = parserStates.INFO;
230
+ } else {
231
+ if (!this.#info.compressed) {
232
+ this.#fragments.push(body);
233
+
234
+ // If the frame is not fragmented, a message has been received.
235
+ // If the frame is fragmented, it will terminate with a fin bit set
236
+ // and an opcode of 0 (continuation), therefore we handle that when
237
+ // parsing continuation frames, not here.
238
+ if (!this.#info.fragmented && this.#info.fin) {
239
+ const fullMessage = Buffer.concat(this.#fragments);
240
+ websocketMessageReceived(this.ws, this.#info.binaryType, fullMessage);
241
+ this.#fragments.length = 0;
242
+ }
243
+
244
+ this.#state = parserStates.INFO;
245
+ } else {
246
+ this.#extensions.get('permessage-deflate').decompress(body, this.#info.fin, (error, data) => {
247
+ if (error) {
248
+ closeWebSocketConnection(this.ws, 1007, error.message, error.message.length);
249
+ return
250
+ }
251
+
252
+ this.#fragments.push(data);
253
+
254
+ if (!this.#info.fin) {
255
+ this.#state = parserStates.INFO;
256
+ this.#loop = true;
257
+ this.run(callback);
258
+ return
259
+ }
260
+
261
+ websocketMessageReceived(this.ws, this.#info.binaryType, Buffer.concat(this.#fragments));
262
+
263
+ this.#loop = true;
264
+ this.#state = parserStates.INFO;
265
+ this.#fragments.length = 0;
266
+ this.run(callback);
267
+ });
268
+
269
+ this.#loop = false;
270
+ break
271
+ }
272
+ }
273
+ }
274
+ }
275
+ }
276
+
277
+ /**
278
+ * Take n bytes from the buffered Buffers
279
+ * @param {number} n
280
+ * @returns {Buffer}
281
+ */
282
+ consume (n) {
283
+ if (n > this.#byteOffset) {
284
+ throw new Error('Called consume() before buffers satiated.')
285
+ } else if (n === 0) {
286
+ return emptyBuffer
287
+ }
288
+
289
+ if (this.#buffers[0].length === n) {
290
+ this.#byteOffset -= this.#buffers[0].length;
291
+ return this.#buffers.shift()
292
+ }
293
+
294
+ const buffer = Buffer.allocUnsafe(n);
295
+ let offset = 0;
296
+
297
+ while (offset !== n) {
298
+ const next = this.#buffers[0];
299
+ const { length } = next;
300
+
301
+ if (length + offset === n) {
302
+ buffer.set(this.#buffers.shift(), offset);
303
+ break
304
+ } else if (length + offset > n) {
305
+ buffer.set(next.subarray(0, n - offset), offset);
306
+ this.#buffers[0] = next.subarray(n - offset);
307
+ break
308
+ } else {
309
+ buffer.set(this.#buffers.shift(), offset);
310
+ offset += next.length;
311
+ }
312
+ }
313
+
314
+ this.#byteOffset -= n;
315
+
316
+ return buffer
317
+ }
318
+
319
+ parseCloseBody (data) {
320
+ assert(data.length !== 1);
321
+
322
+ // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.5
323
+ /** @type {number|undefined} */
324
+ let code;
325
+
326
+ if (data.length >= 2) {
327
+ // _The WebSocket Connection Close Code_ is
328
+ // defined as the status code (Section 7.4) contained in the first Close
329
+ // control frame received by the application
330
+ code = data.readUInt16BE(0);
331
+ }
332
+
333
+ if (code !== undefined && !isValidStatusCode(code)) {
334
+ return { code: 1002, reason: 'Invalid status code', error: true }
335
+ }
336
+
337
+ // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.6
338
+ /** @type {Buffer} */
339
+ let reason = data.subarray(2);
340
+
341
+ // Remove BOM
342
+ if (reason[0] === 0xEF && reason[1] === 0xBB && reason[2] === 0xBF) {
343
+ reason = reason.subarray(3);
344
+ }
345
+
346
+ try {
347
+ reason = utf8Decode(reason);
348
+ } catch {
349
+ return { code: 1007, reason: 'Invalid UTF-8', error: true }
350
+ }
351
+
352
+ return { code, reason, error: false }
353
+ }
354
+
355
+ /**
356
+ * Parses control frames.
357
+ * @param {Buffer} body
358
+ */
359
+ parseControlFrame (body) {
360
+ const { opcode, payloadLength } = this.#info;
361
+
362
+ if (opcode === opcodes.CLOSE) {
363
+ if (payloadLength === 1) {
364
+ failWebsocketConnection(this.ws, 'Received close frame with a 1-byte body.');
365
+ return false
366
+ }
367
+
368
+ this.#info.closeInfo = this.parseCloseBody(body);
369
+
370
+ if (this.#info.closeInfo.error) {
371
+ const { code, reason } = this.#info.closeInfo;
372
+
373
+ closeWebSocketConnection(this.ws, code, reason, reason.length);
374
+ failWebsocketConnection(this.ws, reason);
375
+ return false
376
+ }
377
+
378
+ if (this.ws[kSentClose] !== sentCloseFrameState.SENT) {
379
+ // If an endpoint receives a Close frame and did not previously send a
380
+ // Close frame, the endpoint MUST send a Close frame in response. (When
381
+ // sending a Close frame in response, the endpoint typically echos the
382
+ // status code it received.)
383
+ let body = emptyBuffer;
384
+ if (this.#info.closeInfo.code) {
385
+ body = Buffer.allocUnsafe(2);
386
+ body.writeUInt16BE(this.#info.closeInfo.code, 0);
387
+ }
388
+ const closeFrame = new WebsocketFrameSend(body);
389
+
390
+ this.ws[kResponse].socket.write(
391
+ closeFrame.createFrame(opcodes.CLOSE),
392
+ (err) => {
393
+ if (!err) {
394
+ this.ws[kSentClose] = sentCloseFrameState.SENT;
395
+ }
396
+ }
397
+ );
398
+ }
399
+
400
+ // Upon either sending or receiving a Close control frame, it is said
401
+ // that _The WebSocket Closing Handshake is Started_ and that the
402
+ // WebSocket connection is in the CLOSING state.
403
+ this.ws[kReadyState] = states.CLOSING;
404
+ this.ws[kReceivedClose] = true;
405
+
406
+ return false
407
+ } else if (opcode === opcodes.PING) {
408
+ // Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in
409
+ // response, unless it already received a Close frame.
410
+ // A Pong frame sent in response to a Ping frame must have identical
411
+ // "Application data"
412
+
413
+ if (!this.ws[kReceivedClose]) {
414
+ const frame = new WebsocketFrameSend(body);
415
+
416
+ this.ws[kResponse].socket.write(frame.createFrame(opcodes.PONG));
417
+
418
+ if (channels.ping.hasSubscribers) {
419
+ channels.ping.publish({
420
+ payload: body
421
+ });
422
+ }
423
+ }
424
+ } else if (opcode === opcodes.PONG) {
425
+ // A Pong frame MAY be sent unsolicited. This serves as a
426
+ // unidirectional heartbeat. A response to an unsolicited Pong frame is
427
+ // not expected.
428
+
429
+ if (channels.pong.hasSubscribers) {
430
+ channels.pong.publish({
431
+ payload: body
432
+ });
433
+ }
434
+ }
435
+
436
+ return true
437
+ }
438
+
439
+ get closingInfo () {
440
+ return this.#info.closeInfo
441
+ }
442
+ }
443
+
444
+ receiver = {
445
+ ByteParser
446
+ };
447
+ return receiver;
448
+ }
449
+
450
+ exports.__require = requireReceiver;
451
+ //# sourceMappingURL=receiver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receiver.js","sources":["../../../../../../../../../../../../node_modules/@actions/http-client/node_modules/undici/lib/web/websocket/receiver.js"],"sourcesContent":["'use strict'\n\nconst { Writable } = require('node:stream')\nconst assert = require('node:assert')\nconst { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = require('./constants')\nconst { kReadyState, kSentClose, kResponse, kReceivedClose } = require('./symbols')\nconst { channels } = require('../../core/diagnostics')\nconst {\n isValidStatusCode,\n isValidOpcode,\n failWebsocketConnection,\n websocketMessageReceived,\n utf8Decode,\n isControlFrame,\n isTextBinaryFrame,\n isContinuationFrame\n} = require('./util')\nconst { WebsocketFrameSend } = require('./frame')\nconst { closeWebSocketConnection } = require('./connection')\nconst { PerMessageDeflate } = require('./permessage-deflate')\n\n// This code was influenced by ws released under the MIT license.\n// Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>\n// Copyright (c) 2013 Arnout Kazemier and contributors\n// Copyright (c) 2016 Luigi Pinca and contributors\n\nclass ByteParser extends Writable {\n #buffers = []\n #byteOffset = 0\n #loop = false\n\n #state = parserStates.INFO\n\n #info = {}\n #fragments = []\n\n /** @type {Map<string, PerMessageDeflate>} */\n #extensions\n\n constructor (ws, extensions) {\n super()\n\n this.ws = ws\n this.#extensions = extensions == null ? new Map() : extensions\n\n if (this.#extensions.has('permessage-deflate')) {\n this.#extensions.set('permessage-deflate', new PerMessageDeflate(extensions))\n }\n }\n\n /**\n * @param {Buffer} chunk\n * @param {() => void} callback\n */\n _write (chunk, _, callback) {\n this.#buffers.push(chunk)\n this.#byteOffset += chunk.length\n this.#loop = true\n\n this.run(callback)\n }\n\n /**\n * Runs whenever a new chunk is received.\n * Callback is called whenever there are no more chunks buffering,\n * or not enough bytes are buffered to parse.\n */\n run (callback) {\n while (this.#loop) {\n if (this.#state === parserStates.INFO) {\n // If there aren't enough bytes to parse the payload length, etc.\n if (this.#byteOffset < 2) {\n return callback()\n }\n\n const buffer = this.consume(2)\n const fin = (buffer[0] & 0x80) !== 0\n const opcode = buffer[0] & 0x0F\n const masked = (buffer[1] & 0x80) === 0x80\n\n const fragmented = !fin && opcode !== opcodes.CONTINUATION\n const payloadLength = buffer[1] & 0x7F\n\n const rsv1 = buffer[0] & 0x40\n const rsv2 = buffer[0] & 0x20\n const rsv3 = buffer[0] & 0x10\n\n if (!isValidOpcode(opcode)) {\n failWebsocketConnection(this.ws, 'Invalid opcode received')\n return callback()\n }\n\n if (masked) {\n failWebsocketConnection(this.ws, 'Frame cannot be masked')\n return callback()\n }\n\n // MUST be 0 unless an extension is negotiated that defines meanings\n // for non-zero values. If a nonzero value is received and none of\n // the negotiated extensions defines the meaning of such a nonzero\n // value, the receiving endpoint MUST _Fail the WebSocket\n // Connection_.\n // This document allocates the RSV1 bit of the WebSocket header for\n // PMCEs and calls the bit the \"Per-Message Compressed\" bit. On a\n // WebSocket connection where a PMCE is in use, this bit indicates\n // whether a message is compressed or not.\n if (rsv1 !== 0 && !this.#extensions.has('permessage-deflate')) {\n failWebsocketConnection(this.ws, 'Expected RSV1 to be clear.')\n return\n }\n\n if (rsv2 !== 0 || rsv3 !== 0) {\n failWebsocketConnection(this.ws, 'RSV1, RSV2, RSV3 must be clear')\n return\n }\n\n if (fragmented && !isTextBinaryFrame(opcode)) {\n // Only text and binary frames can be fragmented\n failWebsocketConnection(this.ws, 'Invalid frame type was fragmented.')\n return\n }\n\n // If we are already parsing a text/binary frame and do not receive either\n // a continuation frame or close frame, fail the connection.\n if (isTextBinaryFrame(opcode) && this.#fragments.length > 0) {\n failWebsocketConnection(this.ws, 'Expected continuation frame')\n return\n }\n\n if (this.#info.fragmented && fragmented) {\n // A fragmented frame can't be fragmented itself\n failWebsocketConnection(this.ws, 'Fragmented frame exceeded 125 bytes.')\n return\n }\n\n // \"All control frames MUST have a payload length of 125 bytes or less\n // and MUST NOT be fragmented.\"\n if ((payloadLength > 125 || fragmented) && isControlFrame(opcode)) {\n failWebsocketConnection(this.ws, 'Control frame either too large or fragmented')\n return\n }\n\n if (isContinuationFrame(opcode) && this.#fragments.length === 0 && !this.#info.compressed) {\n failWebsocketConnection(this.ws, 'Unexpected continuation frame')\n return\n }\n\n if (payloadLength <= 125) {\n this.#info.payloadLength = payloadLength\n this.#state = parserStates.READ_DATA\n } else if (payloadLength === 126) {\n this.#state = parserStates.PAYLOADLENGTH_16\n } else if (payloadLength === 127) {\n this.#state = parserStates.PAYLOADLENGTH_64\n }\n\n if (isTextBinaryFrame(opcode)) {\n this.#info.binaryType = opcode\n this.#info.compressed = rsv1 !== 0\n }\n\n this.#info.opcode = opcode\n this.#info.masked = masked\n this.#info.fin = fin\n this.#info.fragmented = fragmented\n } else if (this.#state === parserStates.PAYLOADLENGTH_16) {\n if (this.#byteOffset < 2) {\n return callback()\n }\n\n const buffer = this.consume(2)\n\n this.#info.payloadLength = buffer.readUInt16BE(0)\n this.#state = parserStates.READ_DATA\n } else if (this.#state === parserStates.PAYLOADLENGTH_64) {\n if (this.#byteOffset < 8) {\n return callback()\n }\n\n const buffer = this.consume(8)\n const upper = buffer.readUInt32BE(0)\n\n // 2^31 is the maximum bytes an arraybuffer can contain\n // on 32-bit systems. Although, on 64-bit systems, this is\n // 2^53-1 bytes.\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length\n // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/common/globals.h;drc=1946212ac0100668f14eb9e2843bdd846e510a1e;bpv=1;bpt=1;l=1275\n // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/objects/js-array-buffer.h;l=34;drc=1946212ac0100668f14eb9e2843bdd846e510a1e\n if (upper > 2 ** 31 - 1) {\n failWebsocketConnection(this.ws, 'Received payload length > 2^31 bytes.')\n return\n }\n\n const lower = buffer.readUInt32BE(4)\n\n this.#info.payloadLength = (upper << 8) + lower\n this.#state = parserStates.READ_DATA\n } else if (this.#state === parserStates.READ_DATA) {\n if (this.#byteOffset < this.#info.payloadLength) {\n return callback()\n }\n\n const body = this.consume(this.#info.payloadLength)\n\n if (isControlFrame(this.#info.opcode)) {\n this.#loop = this.parseControlFrame(body)\n this.#state = parserStates.INFO\n } else {\n if (!this.#info.compressed) {\n this.#fragments.push(body)\n\n // If the frame is not fragmented, a message has been received.\n // If the frame is fragmented, it will terminate with a fin bit set\n // and an opcode of 0 (continuation), therefore we handle that when\n // parsing continuation frames, not here.\n if (!this.#info.fragmented && this.#info.fin) {\n const fullMessage = Buffer.concat(this.#fragments)\n websocketMessageReceived(this.ws, this.#info.binaryType, fullMessage)\n this.#fragments.length = 0\n }\n\n this.#state = parserStates.INFO\n } else {\n this.#extensions.get('permessage-deflate').decompress(body, this.#info.fin, (error, data) => {\n if (error) {\n closeWebSocketConnection(this.ws, 1007, error.message, error.message.length)\n return\n }\n\n this.#fragments.push(data)\n\n if (!this.#info.fin) {\n this.#state = parserStates.INFO\n this.#loop = true\n this.run(callback)\n return\n }\n\n websocketMessageReceived(this.ws, this.#info.binaryType, Buffer.concat(this.#fragments))\n\n this.#loop = true\n this.#state = parserStates.INFO\n this.#fragments.length = 0\n this.run(callback)\n })\n\n this.#loop = false\n break\n }\n }\n }\n }\n }\n\n /**\n * Take n bytes from the buffered Buffers\n * @param {number} n\n * @returns {Buffer}\n */\n consume (n) {\n if (n > this.#byteOffset) {\n throw new Error('Called consume() before buffers satiated.')\n } else if (n === 0) {\n return emptyBuffer\n }\n\n if (this.#buffers[0].length === n) {\n this.#byteOffset -= this.#buffers[0].length\n return this.#buffers.shift()\n }\n\n const buffer = Buffer.allocUnsafe(n)\n let offset = 0\n\n while (offset !== n) {\n const next = this.#buffers[0]\n const { length } = next\n\n if (length + offset === n) {\n buffer.set(this.#buffers.shift(), offset)\n break\n } else if (length + offset > n) {\n buffer.set(next.subarray(0, n - offset), offset)\n this.#buffers[0] = next.subarray(n - offset)\n break\n } else {\n buffer.set(this.#buffers.shift(), offset)\n offset += next.length\n }\n }\n\n this.#byteOffset -= n\n\n return buffer\n }\n\n parseCloseBody (data) {\n assert(data.length !== 1)\n\n // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.5\n /** @type {number|undefined} */\n let code\n\n if (data.length >= 2) {\n // _The WebSocket Connection Close Code_ is\n // defined as the status code (Section 7.4) contained in the first Close\n // control frame received by the application\n code = data.readUInt16BE(0)\n }\n\n if (code !== undefined && !isValidStatusCode(code)) {\n return { code: 1002, reason: 'Invalid status code', error: true }\n }\n\n // https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.6\n /** @type {Buffer} */\n let reason = data.subarray(2)\n\n // Remove BOM\n if (reason[0] === 0xEF && reason[1] === 0xBB && reason[2] === 0xBF) {\n reason = reason.subarray(3)\n }\n\n try {\n reason = utf8Decode(reason)\n } catch {\n return { code: 1007, reason: 'Invalid UTF-8', error: true }\n }\n\n return { code, reason, error: false }\n }\n\n /**\n * Parses control frames.\n * @param {Buffer} body\n */\n parseControlFrame (body) {\n const { opcode, payloadLength } = this.#info\n\n if (opcode === opcodes.CLOSE) {\n if (payloadLength === 1) {\n failWebsocketConnection(this.ws, 'Received close frame with a 1-byte body.')\n return false\n }\n\n this.#info.closeInfo = this.parseCloseBody(body)\n\n if (this.#info.closeInfo.error) {\n const { code, reason } = this.#info.closeInfo\n\n closeWebSocketConnection(this.ws, code, reason, reason.length)\n failWebsocketConnection(this.ws, reason)\n return false\n }\n\n if (this.ws[kSentClose] !== sentCloseFrameState.SENT) {\n // If an endpoint receives a Close frame and did not previously send a\n // Close frame, the endpoint MUST send a Close frame in response. (When\n // sending a Close frame in response, the endpoint typically echos the\n // status code it received.)\n let body = emptyBuffer\n if (this.#info.closeInfo.code) {\n body = Buffer.allocUnsafe(2)\n body.writeUInt16BE(this.#info.closeInfo.code, 0)\n }\n const closeFrame = new WebsocketFrameSend(body)\n\n this.ws[kResponse].socket.write(\n closeFrame.createFrame(opcodes.CLOSE),\n (err) => {\n if (!err) {\n this.ws[kSentClose] = sentCloseFrameState.SENT\n }\n }\n )\n }\n\n // Upon either sending or receiving a Close control frame, it is said\n // that _The WebSocket Closing Handshake is Started_ and that the\n // WebSocket connection is in the CLOSING state.\n this.ws[kReadyState] = states.CLOSING\n this.ws[kReceivedClose] = true\n\n return false\n } else if (opcode === opcodes.PING) {\n // Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in\n // response, unless it already received a Close frame.\n // A Pong frame sent in response to a Ping frame must have identical\n // \"Application data\"\n\n if (!this.ws[kReceivedClose]) {\n const frame = new WebsocketFrameSend(body)\n\n this.ws[kResponse].socket.write(frame.createFrame(opcodes.PONG))\n\n if (channels.ping.hasSubscribers) {\n channels.ping.publish({\n payload: body\n })\n }\n }\n } else if (opcode === opcodes.PONG) {\n // A Pong frame MAY be sent unsolicited. This serves as a\n // unidirectional heartbeat. A response to an unsolicited Pong frame is\n // not expected.\n\n if (channels.pong.hasSubscribers) {\n channels.pong.publish({\n payload: body\n })\n }\n }\n\n return true\n }\n\n get closingInfo () {\n return this.#info.closeInfo\n }\n}\n\nmodule.exports = {\n ByteParser\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAEA,MAAM,EAAE,QAAQ,EAAE,GAAGA;AACrB,CAAA,MAAM,MAAM,GAAGC;CACf,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,GAAGC,mBAAA;CAC5E,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,GAAGC,iBAAA;CAC/D,MAAM,EAAE,QAAQ,EAAE,GAAGC,qBAAA;CACrB,MAAM;AACN,GAAE,iBAAiB;AACnB,GAAE,aAAa;AACf,GAAE,uBAAuB;AACzB,GAAE,wBAAwB;AAC1B,GAAE,UAAU;AACZ,GAAE,cAAc;AAChB,GAAE,iBAAiB;GACjB;AACF,EAAC,GAAGC,cAAA;CACJ,MAAM,EAAE,kBAAkB,EAAE,GAAGC,eAAA;CAC/B,MAAM,EAAE,wBAAwB,EAAE,GAAGC,oBAAA;CACrC,MAAM,EAA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,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC;;AAEvE,SAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE;AAC1C,WAAU,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;AAChC,aAAY,OAAO,EAAE;YACV;AACX,SAAA;AACA,OAAA;AACA,KAAA,CAAK,MAAM,IAAI,MAAM,KAAK,OAAO,CAAC,IAAI,EAAE;AACxC;AACA;AACA;;AAEA,OAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE;AACxC,SAAQ,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;AAC9B,WAAU,OAAO,EAAE;UACV;AACT,OAAA;AACA,KAAA;;AAEA,KAAI,OAAO;AACX,GAAA;;GAEE,IAAI,WAAW,CAAC,GAAG;AACrB,KAAI,OAAO,IAAI,CAAC,KAAK,CAAC;AACtB,GAAA;AACA;;AAEA,CAAA,QAAc,GAAG;GACf;AACF;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,120 @@
1
+ 'use strict';
2
+
3
+ var frame = require('./frame.js');
4
+ var constants = require('./constants.js');
5
+ var fixedQueue = require('../../dispatcher/fixed-queue.js');
6
+
7
+ var sender;
8
+ var hasRequiredSender;
9
+
10
+ function requireSender () {
11
+ if (hasRequiredSender) return sender;
12
+ hasRequiredSender = 1;
13
+
14
+ const { WebsocketFrameSend } = frame.__require();
15
+ const { opcodes, sendHints } = constants.__require();
16
+ const FixedQueue = fixedQueue.__require();
17
+
18
+ /** @type {typeof Uint8Array} */
19
+ const FastBuffer = Buffer[Symbol.species];
20
+
21
+ /**
22
+ * @typedef {object} SendQueueNode
23
+ * @property {Promise<void> | null} promise
24
+ * @property {((...args: any[]) => any)} callback
25
+ * @property {Buffer | null} frame
26
+ */
27
+
28
+ class SendQueue {
29
+ /**
30
+ * @type {FixedQueue}
31
+ */
32
+ #queue = new FixedQueue()
33
+
34
+ /**
35
+ * @type {boolean}
36
+ */
37
+ #running = false
38
+
39
+ /** @type {import('node:net').Socket} */
40
+ #socket
41
+
42
+ constructor (socket) {
43
+ this.#socket = socket;
44
+ }
45
+
46
+ add (item, cb, hint) {
47
+ if (hint !== sendHints.blob) {
48
+ const frame = createFrame(item, hint);
49
+ if (!this.#running) {
50
+ // fast-path
51
+ this.#socket.write(frame, cb);
52
+ } else {
53
+ /** @type {SendQueueNode} */
54
+ const node = {
55
+ promise: null,
56
+ callback: cb,
57
+ frame
58
+ };
59
+ this.#queue.push(node);
60
+ }
61
+ return
62
+ }
63
+
64
+ /** @type {SendQueueNode} */
65
+ const node = {
66
+ promise: item.arrayBuffer().then((ab) => {
67
+ node.promise = null;
68
+ node.frame = createFrame(ab, hint);
69
+ }),
70
+ callback: cb,
71
+ frame: null
72
+ };
73
+
74
+ this.#queue.push(node);
75
+
76
+ if (!this.#running) {
77
+ this.#run();
78
+ }
79
+ }
80
+
81
+ async #run () {
82
+ this.#running = true;
83
+ const queue = this.#queue;
84
+ while (!queue.isEmpty()) {
85
+ const node = queue.shift();
86
+ // wait pending promise
87
+ if (node.promise !== null) {
88
+ await node.promise;
89
+ }
90
+ // write
91
+ this.#socket.write(node.frame, node.callback);
92
+ // cleanup
93
+ node.callback = node.frame = null;
94
+ }
95
+ this.#running = false;
96
+ }
97
+ }
98
+
99
+ function createFrame (data, hint) {
100
+ return new WebsocketFrameSend(toBuffer(data, hint)).createFrame(hint === sendHints.string ? opcodes.TEXT : opcodes.BINARY)
101
+ }
102
+
103
+ function toBuffer (data, hint) {
104
+ switch (hint) {
105
+ case sendHints.string:
106
+ return Buffer.from(data)
107
+ case sendHints.arrayBuffer:
108
+ case sendHints.blob:
109
+ return new FastBuffer(data)
110
+ case sendHints.typedArray:
111
+ return new FastBuffer(data.buffer, data.byteOffset, data.byteLength)
112
+ }
113
+ }
114
+
115
+ sender = { SendQueue };
116
+ return sender;
117
+ }
118
+
119
+ exports.__require = requireSender;
120
+ //# sourceMappingURL=sender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sender.js","sources":["../../../../../../../../../../../../node_modules/@actions/http-client/node_modules/undici/lib/web/websocket/sender.js"],"sourcesContent":["'use strict'\n\nconst { WebsocketFrameSend } = require('./frame')\nconst { opcodes, sendHints } = require('./constants')\nconst FixedQueue = require('../../dispatcher/fixed-queue')\n\n/** @type {typeof Uint8Array} */\nconst FastBuffer = Buffer[Symbol.species]\n\n/**\n * @typedef {object} SendQueueNode\n * @property {Promise<void> | null} promise\n * @property {((...args: any[]) => any)} callback\n * @property {Buffer | null} frame\n */\n\nclass SendQueue {\n /**\n * @type {FixedQueue}\n */\n #queue = new FixedQueue()\n\n /**\n * @type {boolean}\n */\n #running = false\n\n /** @type {import('node:net').Socket} */\n #socket\n\n constructor (socket) {\n this.#socket = socket\n }\n\n add (item, cb, hint) {\n if (hint !== sendHints.blob) {\n const frame = createFrame(item, hint)\n if (!this.#running) {\n // fast-path\n this.#socket.write(frame, cb)\n } else {\n /** @type {SendQueueNode} */\n const node = {\n promise: null,\n callback: cb,\n frame\n }\n this.#queue.push(node)\n }\n return\n }\n\n /** @type {SendQueueNode} */\n const node = {\n promise: item.arrayBuffer().then((ab) => {\n node.promise = null\n node.frame = createFrame(ab, hint)\n }),\n callback: cb,\n frame: null\n }\n\n this.#queue.push(node)\n\n if (!this.#running) {\n this.#run()\n }\n }\n\n async #run () {\n this.#running = true\n const queue = this.#queue\n while (!queue.isEmpty()) {\n const node = queue.shift()\n // wait pending promise\n if (node.promise !== null) {\n await node.promise\n }\n // write\n this.#socket.write(node.frame, node.callback)\n // cleanup\n node.callback = node.frame = null\n }\n this.#running = false\n }\n}\n\nfunction createFrame (data, hint) {\n return new WebsocketFrameSend(toBuffer(data, hint)).createFrame(hint === sendHints.string ? opcodes.TEXT : opcodes.BINARY)\n}\n\nfunction toBuffer (data, hint) {\n switch (hint) {\n case sendHints.string:\n return Buffer.from(data)\n case sendHints.arrayBuffer:\n case sendHints.blob:\n return new FastBuffer(data)\n case sendHints.typedArray:\n return new FastBuffer(data.buffer, data.byteOffset, data.byteLength)\n }\n}\n\nmodule.exports = { SendQueue }\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;CAEA,MAAM,EAAE,kBAAkB,EAAE,GAAGA,eAAA;AAC/B,CAAA,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAGC,mBAAA;AAC/B,CAAA,MAAM,UAAU,GAAGC,oBAAA;;AAEnB;AACA,CAAA,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO;;AAExC;AACA;AACA;AACA;AACA;AACA;;AAEA,CAAA,MAAM,SAAS,CAAC;AAChB;AACA;AACA;GACE,MAAM,GAAG,IAAI,UAAU;;AAEzB;AACA;AACA;AACA,GAAE,QAAQ,GAAG;;AAEb;GACE;;AAEF,GAAE,WAAW,CAAC,CAAC,MAAM,EAAE;KACnB,IAAI,CAAC,OAAO,GAAG;AACnB,GAAA;;GAEE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE;AACvB,KAAI,IAAI,IAAI,KAAK,SAAS,CAAC,IAAI,EAAE;AACjC,OAAM,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,IAAI;AAC1C,OAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAC1B;SACQ,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE;AACpC,OAAA,CAAO,MAAM;AACb;SACQ,MAAM,IAAI,GAAG;WACX,OAAO,EAAE,IAAI;WACb,QAAQ,EAAE,EAAE;WACZ;AACV;AACA,SAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI;AAC7B,OAAA;OACM;AACN,KAAA;;AAEA;KACI,MAAM,IAAI,GAAG;OACX,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,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IAAI,CAAC,IAAI;KACzB,KAAK,SAAS,CAAC,WAAW;KAC1B,KAAK,SAAS,CAAC,IAAI;AACvB,OAAM,OAAO,IAAI,UAAU,CAAC,IAAI;KAC5B,KAAK,SAAS,CAAC,UAAU;AAC7B,OAAM,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU;AACzE;AACA,CAAA;;AAEA,CAAA,MAAc,GAAG,EAAE,SAAS;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var symbols;
4
+ var hasRequiredSymbols;
5
+
6
+ function requireSymbols () {
7
+ if (hasRequiredSymbols) return symbols;
8
+ hasRequiredSymbols = 1;
9
+
10
+ symbols = {
11
+ kWebSocketURL: Symbol('url'),
12
+ kReadyState: Symbol('ready state'),
13
+ kController: Symbol('controller'),
14
+ kResponse: Symbol('response'),
15
+ kBinaryType: Symbol('binary type'),
16
+ kSentClose: Symbol('sent close'),
17
+ kReceivedClose: Symbol('received close'),
18
+ kByteParser: Symbol('byte parser')
19
+ };
20
+ return symbols;
21
+ }
22
+
23
+ exports.__require = requireSymbols;
24
+ //# sourceMappingURL=symbols.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"symbols.js","sources":["../../../../../../../../../../../../node_modules/@actions/http-client/node_modules/undici/lib/web/websocket/symbols.js"],"sourcesContent":["'use strict'\n\nmodule.exports = {\n kWebSocketURL: Symbol('url'),\n kReadyState: Symbol('ready state'),\n kController: Symbol('controller'),\n kResponse: Symbol('response'),\n kBinaryType: Symbol('binary type'),\n kSentClose: Symbol('sent close'),\n kReceivedClose: Symbol('received close'),\n kByteParser: Symbol('byte parser')\n}\n"],"names":[],"mappings":";;;;;;;;;AAEA,CAAA,OAAc,GAAG;AACjB,GAAE,aAAa,EAAE,MAAM,CAAC,KAAK,CAAC;AAC9B,GAAE,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;AACpC,GAAE,WAAW,EAAE,MAAM,CAAC,YAAY,CAAC;AACnC,GAAE,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC;AAC/B,GAAE,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;AACpC,GAAE,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC;AAClC,GAAE,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAC1C,GAAE,WAAW,EAAE,MAAM,CAAC,aAAa;AACnC;;;;;;","x_google_ignoreList":[0]}