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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (610) hide show
  1. package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js +57 -0
  2. package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  3. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js +144 -0
  4. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js.map +1 -0
  5. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js +6 -0
  6. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js.map +1 -0
  7. package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js +349 -0
  8. package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  9. package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js +125 -0
  10. package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  11. package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js +417 -0
  12. package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  13. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +128 -0
  14. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  15. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +2295 -0
  16. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  17. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js +24 -0
  18. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  19. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +6 -0
  20. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  21. package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js +199 -0
  22. package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +1 -0
  23. package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js +43 -0
  24. package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +1 -0
  25. package/lib/cjs/__/@actions/github/__/before-after-hook/index.js +41 -0
  26. package/lib/cjs/__/@actions/github/__/before-after-hook/index.js.map +1 -0
  27. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js +51 -0
  28. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js.map +1 -0
  29. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js +32 -0
  30. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js.map +1 -0
  31. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js +24 -0
  32. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js.map +1 -0
  33. package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js +18 -0
  34. package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js.map +1 -0
  35. package/lib/cjs/__/@actions/github/lib/context.js +76 -0
  36. package/lib/cjs/__/@actions/github/lib/context.js.map +1 -0
  37. package/lib/cjs/__/@actions/github/lib/github.js +66 -0
  38. package/lib/cjs/__/@actions/github/lib/github.js.map +1 -0
  39. package/lib/cjs/__/@actions/github/lib/internal/utils.js +94 -0
  40. package/lib/cjs/__/@actions/github/lib/internal/utils.js.map +1 -0
  41. package/lib/cjs/__/@actions/github/lib/utils.js +89 -0
  42. package/lib/cjs/__/@actions/github/lib/utils.js.map +1 -0
  43. package/lib/cjs/__/@actions/http-client/lib/index.js +760 -0
  44. package/lib/cjs/__/@actions/http-client/lib/index.js.map +1 -0
  45. package/lib/cjs/__/@actions/http-client/lib/proxy.js +107 -0
  46. package/lib/cjs/__/@actions/http-client/lib/proxy.js.map +1 -0
  47. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js +236 -0
  48. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +1 -0
  49. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +122 -0
  50. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +1 -0
  51. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js +33 -0
  52. package/lib/cjs/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +1 -0
  53. package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js +248 -0
  54. package/lib/cjs/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +1 -0
  55. package/lib/cjs/__/@fastify/busboy/lib/main.js +109 -0
  56. package/lib/cjs/__/@fastify/busboy/lib/main.js.map +1 -0
  57. package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js +331 -0
  58. package/lib/cjs/__/@fastify/busboy/lib/types/multipart.js.map +1 -0
  59. package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js +206 -0
  60. package/lib/cjs/__/@fastify/busboy/lib/types/urlencoded.js.map +1 -0
  61. package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js +66 -0
  62. package/lib/cjs/__/@fastify/busboy/lib/utils/Decoder.js.map +1 -0
  63. package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js +26 -0
  64. package/lib/cjs/__/@fastify/busboy/lib/utils/basename.js.map +1 -0
  65. package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js +126 -0
  66. package/lib/cjs/__/@fastify/busboy/lib/utils/decodeText.js.map +1 -0
  67. package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js +28 -0
  68. package/lib/cjs/__/@fastify/busboy/lib/utils/getLimit.js.map +1 -0
  69. package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js +211 -0
  70. package/lib/cjs/__/@fastify/busboy/lib/utils/parseParams.js.map +1 -0
  71. package/lib/cjs/__/cross-spawn/index.js +1 -1
  72. package/lib/cjs/__/env-ci/__/execa/index.js +3 -3
  73. package/lib/cjs/__/env-ci/__/execa/index.js.map +1 -1
  74. package/lib/cjs/__/env-ci/__/execa/lib/stream.js +1 -1
  75. package/lib/cjs/__/env-ci/__/execa/lib/verbose.js +2 -2
  76. package/lib/cjs/__/env-ci/__/execa/lib/verbose.js.map +1 -1
  77. package/lib/cjs/__/env-ci/__/npm-run-path/index.js +3 -3
  78. package/lib/cjs/__/env-ci/__/npm-run-path/index.js.map +1 -1
  79. package/lib/cjs/__/fast-content-type-parse/index.js +182 -0
  80. package/lib/cjs/__/fast-content-type-parse/index.js.map +1 -0
  81. package/lib/cjs/__/java-properties/dist-node/index.js +1 -1
  82. package/lib/cjs/__/path-key/index.js +1 -1
  83. package/lib/cjs/__/tunnel/index.js +16 -0
  84. package/lib/cjs/__/tunnel/index.js.map +1 -0
  85. package/lib/cjs/__/tunnel/lib/tunnel.js +289 -0
  86. package/lib/cjs/__/tunnel/lib/tunnel.js.map +1 -0
  87. package/lib/cjs/__/undici/index.js +212 -0
  88. package/lib/cjs/__/undici/index.js.map +1 -0
  89. package/lib/cjs/__/undici/lib/agent.js +169 -0
  90. package/lib/cjs/__/undici/lib/agent.js.map +1 -0
  91. package/lib/cjs/__/undici/lib/api/abort-signal.js +70 -0
  92. package/lib/cjs/__/undici/lib/api/abort-signal.js.map +1 -0
  93. package/lib/cjs/__/undici/lib/api/api-connect.js +125 -0
  94. package/lib/cjs/__/undici/lib/api/api-connect.js.map +1 -0
  95. package/lib/cjs/__/undici/lib/api/api-pipeline.js +274 -0
  96. package/lib/cjs/__/undici/lib/api/api-pipeline.js.map +1 -0
  97. package/lib/cjs/__/undici/lib/api/api-request.js +203 -0
  98. package/lib/cjs/__/undici/lib/api/api-request.js.map +1 -0
  99. package/lib/cjs/__/undici/lib/api/api-stream.js +244 -0
  100. package/lib/cjs/__/undici/lib/api/api-stream.js.map +1 -0
  101. package/lib/cjs/__/undici/lib/api/api-upgrade.js +128 -0
  102. package/lib/cjs/__/undici/lib/api/api-upgrade.js.map +1 -0
  103. package/lib/cjs/__/undici/lib/api/index.js +25 -0
  104. package/lib/cjs/__/undici/lib/api/index.js.map +1 -0
  105. package/lib/cjs/__/undici/lib/api/readable.js +342 -0
  106. package/lib/cjs/__/undici/lib/api/readable.js.map +1 -0
  107. package/lib/cjs/__/undici/lib/api/util.js +67 -0
  108. package/lib/cjs/__/undici/lib/api/util.js.map +1 -0
  109. package/lib/cjs/__/undici/lib/balanced-pool.js +208 -0
  110. package/lib/cjs/__/undici/lib/balanced-pool.js.map +1 -0
  111. package/lib/cjs/__/undici/lib/cache/cache.js +867 -0
  112. package/lib/cjs/__/undici/lib/cache/cache.js.map +1 -0
  113. package/lib/cjs/__/undici/lib/cache/cachestorage.js +161 -0
  114. package/lib/cjs/__/undici/lib/cache/cachestorage.js.map +1 -0
  115. package/lib/cjs/__/undici/lib/cache/symbols.js +19 -0
  116. package/lib/cjs/__/undici/lib/cache/symbols.js.map +1 -0
  117. package/lib/cjs/__/undici/lib/cache/util.js +69 -0
  118. package/lib/cjs/__/undici/lib/cache/util.js.map +1 -0
  119. package/lib/cjs/__/undici/lib/client.js +2314 -0
  120. package/lib/cjs/__/undici/lib/client.js.map +1 -0
  121. package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js +63 -0
  122. package/lib/cjs/__/undici/lib/compat/dispatcher-weakref.js.map +1 -0
  123. package/lib/cjs/__/undici/lib/cookies/constants.js +24 -0
  124. package/lib/cjs/__/undici/lib/cookies/constants.js.map +1 -0
  125. package/lib/cjs/__/undici/lib/cookies/index.js +200 -0
  126. package/lib/cjs/__/undici/lib/cookies/index.js.map +1 -0
  127. package/lib/cjs/__/undici/lib/cookies/parse.js +338 -0
  128. package/lib/cjs/__/undici/lib/cookies/parse.js.map +1 -0
  129. package/lib/cjs/__/undici/lib/cookies/util.js +286 -0
  130. package/lib/cjs/__/undici/lib/cookies/util.js.map +1 -0
  131. package/lib/cjs/__/undici/lib/core/connect.js +214 -0
  132. package/lib/cjs/__/undici/lib/core/connect.js.map +1 -0
  133. package/lib/cjs/__/undici/lib/core/constants.js +130 -0
  134. package/lib/cjs/__/undici/lib/core/constants.js.map +1 -0
  135. package/lib/cjs/__/undici/lib/core/errors.js +242 -0
  136. package/lib/cjs/__/undici/lib/core/errors.js.map +1 -0
  137. package/lib/cjs/__/undici/lib/core/request.js +521 -0
  138. package/lib/cjs/__/undici/lib/core/request.js.map +1 -0
  139. package/lib/cjs/__/undici/lib/core/symbols.js +76 -0
  140. package/lib/cjs/__/undici/lib/core/symbols.js.map +1 -0
  141. package/lib/cjs/__/undici/lib/core/util.js +557 -0
  142. package/lib/cjs/__/undici/lib/core/util.js.map +1 -0
  143. package/lib/cjs/__/undici/lib/dispatcher-base.js +208 -0
  144. package/lib/cjs/__/undici/lib/dispatcher-base.js.map +1 -0
  145. package/lib/cjs/__/undici/lib/dispatcher.js +37 -0
  146. package/lib/cjs/__/undici/lib/dispatcher.js.map +1 -0
  147. package/lib/cjs/__/undici/lib/fetch/body.js +647 -0
  148. package/lib/cjs/__/undici/lib/fetch/body.js.map +1 -0
  149. package/lib/cjs/__/undici/lib/fetch/constants.js +169 -0
  150. package/lib/cjs/__/undici/lib/fetch/constants.js.map +1 -0
  151. package/lib/cjs/__/undici/lib/fetch/dataURL.js +649 -0
  152. package/lib/cjs/__/undici/lib/fetch/dataURL.js.map +1 -0
  153. package/lib/cjs/__/undici/lib/fetch/file.js +369 -0
  154. package/lib/cjs/__/undici/lib/fetch/file.js.map +1 -0
  155. package/lib/cjs/__/undici/lib/fetch/formdata.js +287 -0
  156. package/lib/cjs/__/undici/lib/fetch/formdata.js.map +1 -0
  157. package/lib/cjs/__/undici/lib/fetch/global.js +52 -0
  158. package/lib/cjs/__/undici/lib/fetch/global.js.map +1 -0
  159. package/lib/cjs/__/undici/lib/fetch/headers.js +609 -0
  160. package/lib/cjs/__/undici/lib/fetch/headers.js.map +1 -0
  161. package/lib/cjs/__/undici/lib/fetch/index.js +2114 -0
  162. package/lib/cjs/__/undici/lib/fetch/index.js.map +1 -0
  163. package/lib/cjs/__/undici/lib/fetch/request.js +979 -0
  164. package/lib/cjs/__/undici/lib/fetch/request.js.map +1 -0
  165. package/lib/cjs/__/undici/lib/fetch/response.js +604 -0
  166. package/lib/cjs/__/undici/lib/fetch/response.js.map +1 -0
  167. package/lib/cjs/__/undici/lib/fetch/symbols.js +22 -0
  168. package/lib/cjs/__/undici/lib/fetch/symbols.js.map +1 -0
  169. package/lib/cjs/__/undici/lib/fetch/util.js +1170 -0
  170. package/lib/cjs/__/undici/lib/fetch/util.js.map +1 -0
  171. package/lib/cjs/__/undici/lib/fetch/webidl.js +665 -0
  172. package/lib/cjs/__/undici/lib/fetch/webidl.js.map +1 -0
  173. package/lib/cjs/__/undici/lib/fileapi/encoding.js +302 -0
  174. package/lib/cjs/__/undici/lib/fileapi/encoding.js.map +1 -0
  175. package/lib/cjs/__/undici/lib/fileapi/filereader.js +361 -0
  176. package/lib/cjs/__/undici/lib/fileapi/filereader.js.map +1 -0
  177. package/lib/cjs/__/undici/lib/fileapi/progressevent.js +92 -0
  178. package/lib/cjs/__/undici/lib/fileapi/progressevent.js.map +1 -0
  179. package/lib/cjs/__/undici/lib/fileapi/symbols.js +22 -0
  180. package/lib/cjs/__/undici/lib/fileapi/symbols.js.map +1 -0
  181. package/lib/cjs/__/undici/lib/fileapi/util.js +419 -0
  182. package/lib/cjs/__/undici/lib/fileapi/util.js.map +1 -0
  183. package/lib/cjs/__/undici/lib/global.js +47 -0
  184. package/lib/cjs/__/undici/lib/global.js.map +1 -0
  185. package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js +47 -0
  186. package/lib/cjs/__/undici/lib/handler/DecoratorHandler.js.map +1 -0
  187. package/lib/cjs/__/undici/lib/handler/RedirectHandler.js +226 -0
  188. package/lib/cjs/__/undici/lib/handler/RedirectHandler.js.map +1 -0
  189. package/lib/cjs/__/undici/lib/handler/RetryHandler.js +358 -0
  190. package/lib/cjs/__/undici/lib/handler/RetryHandler.js.map +1 -0
  191. package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js +35 -0
  192. package/lib/cjs/__/undici/lib/interceptor/redirectInterceptor.js.map +1 -0
  193. package/lib/cjs/__/undici/lib/llhttp/constants.js +288 -0
  194. package/lib/cjs/__/undici/lib/llhttp/constants.js.map +1 -0
  195. package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js +14 -0
  196. package/lib/cjs/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  197. package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js +14 -0
  198. package/lib/cjs/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  199. package/lib/cjs/__/undici/lib/llhttp/utils.js +28 -0
  200. package/lib/cjs/__/undici/lib/llhttp/utils.js.map +1 -0
  201. package/lib/cjs/__/undici/lib/mock/mock-agent.js +194 -0
  202. package/lib/cjs/__/undici/lib/mock/mock-agent.js.map +1 -0
  203. package/lib/cjs/__/undici/lib/mock/mock-client.js +83 -0
  204. package/lib/cjs/__/undici/lib/mock/mock-client.js.map +1 -0
  205. package/lib/cjs/__/undici/lib/mock/mock-errors.js +31 -0
  206. package/lib/cjs/__/undici/lib/mock/mock-errors.js.map +1 -0
  207. package/lib/cjs/__/undici/lib/mock/mock-interceptor.js +223 -0
  208. package/lib/cjs/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  209. package/lib/cjs/__/undici/lib/mock/mock-pool.js +83 -0
  210. package/lib/cjs/__/undici/lib/mock/mock-pool.js.map +1 -0
  211. package/lib/cjs/__/undici/lib/mock/mock-symbols.js +35 -0
  212. package/lib/cjs/__/undici/lib/mock/mock-symbols.js.map +1 -0
  213. package/lib/cjs/__/undici/lib/mock/mock-utils.js +374 -0
  214. package/lib/cjs/__/undici/lib/mock/mock-utils.js.map +1 -0
  215. package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js +60 -0
  216. package/lib/cjs/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  217. package/lib/cjs/__/undici/lib/mock/pluralizer.js +41 -0
  218. package/lib/cjs/__/undici/lib/mock/pluralizer.js.map +1 -0
  219. package/lib/cjs/__/undici/lib/node/fixed-queue.js +129 -0
  220. package/lib/cjs/__/undici/lib/node/fixed-queue.js.map +1 -0
  221. package/lib/cjs/__/undici/lib/pool-base.js +211 -0
  222. package/lib/cjs/__/undici/lib/pool-base.js.map +1 -0
  223. package/lib/cjs/__/undici/lib/pool-stats.js +49 -0
  224. package/lib/cjs/__/undici/lib/pool-stats.js.map +1 -0
  225. package/lib/cjs/__/undici/lib/pool.js +127 -0
  226. package/lib/cjs/__/undici/lib/pool.js.map +1 -0
  227. package/lib/cjs/__/undici/lib/proxy-agent.js +213 -0
  228. package/lib/cjs/__/undici/lib/proxy-agent.js.map +1 -0
  229. package/lib/cjs/__/undici/lib/timers.js +109 -0
  230. package/lib/cjs/__/undici/lib/timers.js.map +1 -0
  231. package/lib/cjs/__/undici/lib/websocket/connection.js +318 -0
  232. package/lib/cjs/__/undici/lib/websocket/connection.js.map +1 -0
  233. package/lib/cjs/__/undici/lib/websocket/constants.js +63 -0
  234. package/lib/cjs/__/undici/lib/websocket/constants.js.map +1 -0
  235. package/lib/cjs/__/undici/lib/websocket/events.js +323 -0
  236. package/lib/cjs/__/undici/lib/websocket/events.js.map +1 -0
  237. package/lib/cjs/__/undici/lib/websocket/frame.js +87 -0
  238. package/lib/cjs/__/undici/lib/websocket/frame.js.map +1 -0
  239. package/lib/cjs/__/undici/lib/websocket/receiver.js +368 -0
  240. package/lib/cjs/__/undici/lib/websocket/receiver.js.map +1 -0
  241. package/lib/cjs/__/undici/lib/websocket/symbols.js +24 -0
  242. package/lib/cjs/__/undici/lib/websocket/symbols.js.map +1 -0
  243. package/lib/cjs/__/undici/lib/websocket/util.js +216 -0
  244. package/lib/cjs/__/undici/lib/websocket/util.js.map +1 -0
  245. package/lib/cjs/__/undici/lib/websocket/websocket.js +668 -0
  246. package/lib/cjs/__/undici/lib/websocket/websocket.js.map +1 -0
  247. package/lib/cjs/_virtual/_commonjsHelpers.js +30 -0
  248. package/lib/cjs/_virtual/_commonjsHelpers.js.map +1 -1
  249. package/lib/cjs/_virtual/api-request.js +6 -0
  250. package/lib/cjs/_virtual/api-request.js.map +1 -0
  251. package/lib/cjs/_virtual/constants.js +6 -0
  252. package/lib/cjs/_virtual/constants.js.map +1 -0
  253. package/lib/cjs/_virtual/context.js +6 -0
  254. package/lib/cjs/_virtual/context.js.map +1 -0
  255. package/lib/cjs/_virtual/github.js +8 -0
  256. package/lib/cjs/_virtual/github.js.map +1 -0
  257. package/lib/cjs/_virtual/github2.js +6 -0
  258. package/lib/cjs/_virtual/github2.js.map +1 -0
  259. package/lib/cjs/_virtual/index10.js +6 -0
  260. package/lib/cjs/_virtual/index10.js.map +1 -0
  261. package/lib/cjs/_virtual/index11.js +6 -0
  262. package/lib/cjs/_virtual/index11.js.map +1 -0
  263. package/lib/cjs/_virtual/index12.js +6 -0
  264. package/lib/cjs/_virtual/index12.js.map +1 -0
  265. package/lib/cjs/_virtual/index13.js +6 -0
  266. package/lib/cjs/_virtual/index13.js.map +1 -0
  267. package/lib/cjs/_virtual/index14.js +6 -0
  268. package/lib/cjs/_virtual/index14.js.map +1 -0
  269. package/lib/cjs/_virtual/index2.js +5 -2
  270. package/lib/cjs/_virtual/index2.js.map +1 -1
  271. package/lib/cjs/_virtual/index3.js +3 -4
  272. package/lib/cjs/_virtual/index3.js.map +1 -1
  273. package/lib/cjs/_virtual/index4.js +5 -2
  274. package/lib/cjs/_virtual/index4.js.map +1 -1
  275. package/lib/cjs/_virtual/index5.js +2 -2
  276. package/lib/cjs/_virtual/index6.js +6 -2
  277. package/lib/cjs/_virtual/index6.js.map +1 -1
  278. package/lib/cjs/_virtual/index7.js +6 -0
  279. package/lib/cjs/_virtual/index7.js.map +1 -0
  280. package/lib/cjs/_virtual/index8.js +6 -0
  281. package/lib/cjs/_virtual/index8.js.map +1 -0
  282. package/lib/cjs/_virtual/index9.js +8 -0
  283. package/lib/cjs/_virtual/index9.js.map +1 -0
  284. package/lib/cjs/_virtual/main.js +6 -0
  285. package/lib/cjs/_virtual/main.js.map +1 -0
  286. package/lib/cjs/_virtual/mock-interceptor.js +6 -0
  287. package/lib/cjs/_virtual/mock-interceptor.js.map +1 -0
  288. package/lib/cjs/_virtual/proxy.js +6 -0
  289. package/lib/cjs/_virtual/proxy.js.map +1 -0
  290. package/lib/cjs/_virtual/tunnel.js +6 -0
  291. package/lib/cjs/_virtual/tunnel.js.map +1 -0
  292. package/lib/cjs/_virtual/utils.js +6 -0
  293. package/lib/cjs/_virtual/utils.js.map +1 -0
  294. package/lib/cjs/_virtual/utils2.js +6 -0
  295. package/lib/cjs/_virtual/utils2.js.map +1 -0
  296. package/lib/cjs/_virtual/utils3.js +6 -0
  297. package/lib/cjs/_virtual/utils3.js.map +1 -0
  298. package/lib/cjs/artifacts/filter-artifacts.js.map +1 -1
  299. package/lib/cjs/env/ci-env.js +6 -1
  300. package/lib/cjs/env/ci-env.js.map +1 -1
  301. package/lib/cjs/env/load.js +1 -1
  302. package/lib/cjs/env/load.js.map +1 -1
  303. package/lib/cjs/env/service/github.js +3 -22
  304. package/lib/cjs/env/service/github.js.map +1 -1
  305. package/lib/cjs/ingest/ingest.js +4 -4
  306. package/lib/cjs/ingest/ingest.js.map +1 -1
  307. package/lib/cjs/locales/en.js.map +1 -1
  308. package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js +55 -0
  309. package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  310. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js +142 -0
  311. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js.map +1 -0
  312. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js +4 -0
  313. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js.map +1 -0
  314. package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js +347 -0
  315. package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  316. package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js +122 -0
  317. package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  318. package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js +412 -0
  319. package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  320. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +126 -0
  321. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  322. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +2293 -0
  323. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  324. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js +21 -0
  325. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  326. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +4 -0
  327. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  328. package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js +197 -0
  329. package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +1 -0
  330. package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js +41 -0
  331. package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +1 -0
  332. package/lib/esm/__/@actions/github/__/before-after-hook/index.js +39 -0
  333. package/lib/esm/__/@actions/github/__/before-after-hook/index.js.map +1 -0
  334. package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js +49 -0
  335. package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js.map +1 -0
  336. package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js +30 -0
  337. package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js.map +1 -0
  338. package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js +22 -0
  339. package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js.map +1 -0
  340. package/lib/esm/__/@actions/github/__/universal-user-agent/index.js +16 -0
  341. package/lib/esm/__/@actions/github/__/universal-user-agent/index.js.map +1 -0
  342. package/lib/esm/__/@actions/github/lib/context.js +69 -0
  343. package/lib/esm/__/@actions/github/lib/context.js.map +1 -0
  344. package/lib/esm/__/@actions/github/lib/github.js +64 -0
  345. package/lib/esm/__/@actions/github/lib/github.js.map +1 -0
  346. package/lib/esm/__/@actions/github/lib/internal/utils.js +92 -0
  347. package/lib/esm/__/@actions/github/lib/internal/utils.js.map +1 -0
  348. package/lib/esm/__/@actions/github/lib/utils.js +87 -0
  349. package/lib/esm/__/@actions/github/lib/utils.js.map +1 -0
  350. package/lib/esm/__/@actions/http-client/lib/index.js +753 -0
  351. package/lib/esm/__/@actions/http-client/lib/index.js.map +1 -0
  352. package/lib/esm/__/@actions/http-client/lib/proxy.js +105 -0
  353. package/lib/esm/__/@actions/http-client/lib/proxy.js.map +1 -0
  354. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js +229 -0
  355. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/Dicer.js.map +1 -0
  356. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js +115 -0
  357. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/HeaderParser.js.map +1 -0
  358. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js +26 -0
  359. package/lib/esm/__/@fastify/busboy/deps/dicer/lib/PartStream.js.map +1 -0
  360. package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js +241 -0
  361. package/lib/esm/__/@fastify/busboy/deps/streamsearch/sbmh.js.map +1 -0
  362. package/lib/esm/__/@fastify/busboy/lib/main.js +102 -0
  363. package/lib/esm/__/@fastify/busboy/lib/main.js.map +1 -0
  364. package/lib/esm/__/@fastify/busboy/lib/types/multipart.js +324 -0
  365. package/lib/esm/__/@fastify/busboy/lib/types/multipart.js.map +1 -0
  366. package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js +204 -0
  367. package/lib/esm/__/@fastify/busboy/lib/types/urlencoded.js.map +1 -0
  368. package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js +64 -0
  369. package/lib/esm/__/@fastify/busboy/lib/utils/Decoder.js.map +1 -0
  370. package/lib/esm/__/@fastify/busboy/lib/utils/basename.js +24 -0
  371. package/lib/esm/__/@fastify/busboy/lib/utils/basename.js.map +1 -0
  372. package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js +124 -0
  373. package/lib/esm/__/@fastify/busboy/lib/utils/decodeText.js.map +1 -0
  374. package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js +26 -0
  375. package/lib/esm/__/@fastify/busboy/lib/utils/getLimit.js.map +1 -0
  376. package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js +209 -0
  377. package/lib/esm/__/@fastify/busboy/lib/utils/parseParams.js.map +1 -0
  378. package/lib/esm/__/cross-spawn/index.js +1 -1
  379. package/lib/esm/__/env-ci/__/execa/index.js +1 -1
  380. package/lib/esm/__/env-ci/__/execa/lib/stream.js +1 -1
  381. package/lib/esm/__/fast-content-type-parse/index.js +180 -0
  382. package/lib/esm/__/fast-content-type-parse/index.js.map +1 -0
  383. package/lib/esm/__/java-properties/dist-node/index.js +1 -1
  384. package/lib/esm/__/path-key/index.js +1 -1
  385. package/lib/esm/__/tunnel/index.js +14 -0
  386. package/lib/esm/__/tunnel/index.js.map +1 -0
  387. package/lib/esm/__/tunnel/lib/tunnel.js +279 -0
  388. package/lib/esm/__/tunnel/lib/tunnel.js.map +1 -0
  389. package/lib/esm/__/undici/index.js +210 -0
  390. package/lib/esm/__/undici/index.js.map +1 -0
  391. package/lib/esm/__/undici/lib/agent.js +167 -0
  392. package/lib/esm/__/undici/lib/agent.js.map +1 -0
  393. package/lib/esm/__/undici/lib/api/abort-signal.js +68 -0
  394. package/lib/esm/__/undici/lib/api/abort-signal.js.map +1 -0
  395. package/lib/esm/__/undici/lib/api/api-connect.js +119 -0
  396. package/lib/esm/__/undici/lib/api/api-connect.js.map +1 -0
  397. package/lib/esm/__/undici/lib/api/api-pipeline.js +266 -0
  398. package/lib/esm/__/undici/lib/api/api-pipeline.js.map +1 -0
  399. package/lib/esm/__/undici/lib/api/api-request.js +197 -0
  400. package/lib/esm/__/undici/lib/api/api-request.js.map +1 -0
  401. package/lib/esm/__/undici/lib/api/api-stream.js +237 -0
  402. package/lib/esm/__/undici/lib/api/api-stream.js.map +1 -0
  403. package/lib/esm/__/undici/lib/api/api-upgrade.js +121 -0
  404. package/lib/esm/__/undici/lib/api/api-upgrade.js.map +1 -0
  405. package/lib/esm/__/undici/lib/api/index.js +23 -0
  406. package/lib/esm/__/undici/lib/api/index.js.map +1 -0
  407. package/lib/esm/__/undici/lib/api/readable.js +335 -0
  408. package/lib/esm/__/undici/lib/api/readable.js.map +1 -0
  409. package/lib/esm/__/undici/lib/api/util.js +61 -0
  410. package/lib/esm/__/undici/lib/api/util.js.map +1 -0
  411. package/lib/esm/__/undici/lib/balanced-pool.js +206 -0
  412. package/lib/esm/__/undici/lib/balanced-pool.js.map +1 -0
  413. package/lib/esm/__/undici/lib/cache/cache.js +861 -0
  414. package/lib/esm/__/undici/lib/cache/cache.js.map +1 -0
  415. package/lib/esm/__/undici/lib/cache/cachestorage.js +159 -0
  416. package/lib/esm/__/undici/lib/cache/cachestorage.js.map +1 -0
  417. package/lib/esm/__/undici/lib/cache/symbols.js +17 -0
  418. package/lib/esm/__/undici/lib/cache/symbols.js.map +1 -0
  419. package/lib/esm/__/undici/lib/cache/util.js +63 -0
  420. package/lib/esm/__/undici/lib/cache/util.js.map +1 -0
  421. package/lib/esm/__/undici/lib/client.js +2305 -0
  422. package/lib/esm/__/undici/lib/client.js.map +1 -0
  423. package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js +61 -0
  424. package/lib/esm/__/undici/lib/compat/dispatcher-weakref.js.map +1 -0
  425. package/lib/esm/__/undici/lib/cookies/constants.js +22 -0
  426. package/lib/esm/__/undici/lib/cookies/constants.js.map +1 -0
  427. package/lib/esm/__/undici/lib/cookies/index.js +198 -0
  428. package/lib/esm/__/undici/lib/cookies/index.js.map +1 -0
  429. package/lib/esm/__/undici/lib/cookies/parse.js +332 -0
  430. package/lib/esm/__/undici/lib/cookies/parse.js.map +1 -0
  431. package/lib/esm/__/undici/lib/cookies/util.js +284 -0
  432. package/lib/esm/__/undici/lib/cookies/util.js.map +1 -0
  433. package/lib/esm/__/undici/lib/core/connect.js +206 -0
  434. package/lib/esm/__/undici/lib/core/connect.js.map +1 -0
  435. package/lib/esm/__/undici/lib/core/constants.js +128 -0
  436. package/lib/esm/__/undici/lib/core/constants.js.map +1 -0
  437. package/lib/esm/__/undici/lib/core/errors.js +240 -0
  438. package/lib/esm/__/undici/lib/core/errors.js.map +1 -0
  439. package/lib/esm/__/undici/lib/core/request.js +515 -0
  440. package/lib/esm/__/undici/lib/core/request.js.map +1 -0
  441. package/lib/esm/__/undici/lib/core/symbols.js +74 -0
  442. package/lib/esm/__/undici/lib/core/symbols.js.map +1 -0
  443. package/lib/esm/__/undici/lib/core/util.js +544 -0
  444. package/lib/esm/__/undici/lib/core/util.js.map +1 -0
  445. package/lib/esm/__/undici/lib/dispatcher-base.js +206 -0
  446. package/lib/esm/__/undici/lib/dispatcher-base.js.map +1 -0
  447. package/lib/esm/__/undici/lib/dispatcher.js +31 -0
  448. package/lib/esm/__/undici/lib/dispatcher.js.map +1 -0
  449. package/lib/esm/__/undici/lib/fetch/body.js +638 -0
  450. package/lib/esm/__/undici/lib/fetch/body.js.map +1 -0
  451. package/lib/esm/__/undici/lib/fetch/constants.js +163 -0
  452. package/lib/esm/__/undici/lib/fetch/constants.js.map +1 -0
  453. package/lib/esm/__/undici/lib/fetch/dataURL.js +642 -0
  454. package/lib/esm/__/undici/lib/fetch/dataURL.js.map +1 -0
  455. package/lib/esm/__/undici/lib/fetch/file.js +362 -0
  456. package/lib/esm/__/undici/lib/fetch/file.js.map +1 -0
  457. package/lib/esm/__/undici/lib/fetch/formdata.js +281 -0
  458. package/lib/esm/__/undici/lib/fetch/formdata.js.map +1 -0
  459. package/lib/esm/__/undici/lib/fetch/global.js +50 -0
  460. package/lib/esm/__/undici/lib/fetch/global.js.map +1 -0
  461. package/lib/esm/__/undici/lib/fetch/headers.js +602 -0
  462. package/lib/esm/__/undici/lib/fetch/headers.js.map +1 -0
  463. package/lib/esm/__/undici/lib/fetch/index.js +2102 -0
  464. package/lib/esm/__/undici/lib/fetch/index.js.map +1 -0
  465. package/lib/esm/__/undici/lib/fetch/request.js +971 -0
  466. package/lib/esm/__/undici/lib/fetch/request.js.map +1 -0
  467. package/lib/esm/__/undici/lib/fetch/response.js +596 -0
  468. package/lib/esm/__/undici/lib/fetch/response.js.map +1 -0
  469. package/lib/esm/__/undici/lib/fetch/symbols.js +20 -0
  470. package/lib/esm/__/undici/lib/fetch/symbols.js.map +1 -0
  471. package/lib/esm/__/undici/lib/fetch/util.js +1161 -0
  472. package/lib/esm/__/undici/lib/fetch/util.js.map +1 -0
  473. package/lib/esm/__/undici/lib/fetch/webidl.js +659 -0
  474. package/lib/esm/__/undici/lib/fetch/webidl.js.map +1 -0
  475. package/lib/esm/__/undici/lib/fileapi/encoding.js +300 -0
  476. package/lib/esm/__/undici/lib/fileapi/encoding.js.map +1 -0
  477. package/lib/esm/__/undici/lib/fileapi/filereader.js +359 -0
  478. package/lib/esm/__/undici/lib/fileapi/filereader.js.map +1 -0
  479. package/lib/esm/__/undici/lib/fileapi/progressevent.js +90 -0
  480. package/lib/esm/__/undici/lib/fileapi/progressevent.js.map +1 -0
  481. package/lib/esm/__/undici/lib/fileapi/symbols.js +20 -0
  482. package/lib/esm/__/undici/lib/fileapi/symbols.js.map +1 -0
  483. package/lib/esm/__/undici/lib/fileapi/util.js +411 -0
  484. package/lib/esm/__/undici/lib/fileapi/util.js.map +1 -0
  485. package/lib/esm/__/undici/lib/global.js +45 -0
  486. package/lib/esm/__/undici/lib/global.js.map +1 -0
  487. package/lib/esm/__/undici/lib/handler/DecoratorHandler.js +45 -0
  488. package/lib/esm/__/undici/lib/handler/DecoratorHandler.js.map +1 -0
  489. package/lib/esm/__/undici/lib/handler/RedirectHandler.js +219 -0
  490. package/lib/esm/__/undici/lib/handler/RedirectHandler.js.map +1 -0
  491. package/lib/esm/__/undici/lib/handler/RetryHandler.js +352 -0
  492. package/lib/esm/__/undici/lib/handler/RetryHandler.js.map +1 -0
  493. package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js +33 -0
  494. package/lib/esm/__/undici/lib/interceptor/redirectInterceptor.js.map +1 -0
  495. package/lib/esm/__/undici/lib/llhttp/constants.js +286 -0
  496. package/lib/esm/__/undici/lib/llhttp/constants.js.map +1 -0
  497. package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js +12 -0
  498. package/lib/esm/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  499. package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js +12 -0
  500. package/lib/esm/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  501. package/lib/esm/__/undici/lib/llhttp/utils.js +26 -0
  502. package/lib/esm/__/undici/lib/llhttp/utils.js.map +1 -0
  503. package/lib/esm/__/undici/lib/mock/mock-agent.js +192 -0
  504. package/lib/esm/__/undici/lib/mock/mock-agent.js.map +1 -0
  505. package/lib/esm/__/undici/lib/mock/mock-client.js +77 -0
  506. package/lib/esm/__/undici/lib/mock/mock-client.js.map +1 -0
  507. package/lib/esm/__/undici/lib/mock/mock-errors.js +29 -0
  508. package/lib/esm/__/undici/lib/mock/mock-errors.js.map +1 -0
  509. package/lib/esm/__/undici/lib/mock/mock-interceptor.js +221 -0
  510. package/lib/esm/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  511. package/lib/esm/__/undici/lib/mock/mock-pool.js +77 -0
  512. package/lib/esm/__/undici/lib/mock/mock-pool.js.map +1 -0
  513. package/lib/esm/__/undici/lib/mock/mock-symbols.js +33 -0
  514. package/lib/esm/__/undici/lib/mock/mock-symbols.js.map +1 -0
  515. package/lib/esm/__/undici/lib/mock/mock-utils.js +367 -0
  516. package/lib/esm/__/undici/lib/mock/mock-utils.js.map +1 -0
  517. package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js +53 -0
  518. package/lib/esm/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  519. package/lib/esm/__/undici/lib/mock/pluralizer.js +39 -0
  520. package/lib/esm/__/undici/lib/mock/pluralizer.js.map +1 -0
  521. package/lib/esm/__/undici/lib/node/fixed-queue.js +127 -0
  522. package/lib/esm/__/undici/lib/node/fixed-queue.js.map +1 -0
  523. package/lib/esm/__/undici/lib/pool-base.js +209 -0
  524. package/lib/esm/__/undici/lib/pool-base.js.map +1 -0
  525. package/lib/esm/__/undici/lib/pool-stats.js +47 -0
  526. package/lib/esm/__/undici/lib/pool-stats.js.map +1 -0
  527. package/lib/esm/__/undici/lib/pool.js +125 -0
  528. package/lib/esm/__/undici/lib/pool.js.map +1 -0
  529. package/lib/esm/__/undici/lib/proxy-agent.js +207 -0
  530. package/lib/esm/__/undici/lib/proxy-agent.js.map +1 -0
  531. package/lib/esm/__/undici/lib/timers.js +107 -0
  532. package/lib/esm/__/undici/lib/timers.js.map +1 -0
  533. package/lib/esm/__/undici/lib/websocket/connection.js +312 -0
  534. package/lib/esm/__/undici/lib/websocket/connection.js.map +1 -0
  535. package/lib/esm/__/undici/lib/websocket/constants.js +61 -0
  536. package/lib/esm/__/undici/lib/websocket/constants.js.map +1 -0
  537. package/lib/esm/__/undici/lib/websocket/events.js +317 -0
  538. package/lib/esm/__/undici/lib/websocket/events.js.map +1 -0
  539. package/lib/esm/__/undici/lib/websocket/frame.js +85 -0
  540. package/lib/esm/__/undici/lib/websocket/frame.js.map +1 -0
  541. package/lib/esm/__/undici/lib/websocket/receiver.js +361 -0
  542. package/lib/esm/__/undici/lib/websocket/receiver.js.map +1 -0
  543. package/lib/esm/__/undici/lib/websocket/symbols.js +22 -0
  544. package/lib/esm/__/undici/lib/websocket/symbols.js.map +1 -0
  545. package/lib/esm/__/undici/lib/websocket/util.js +214 -0
  546. package/lib/esm/__/undici/lib/websocket/util.js.map +1 -0
  547. package/lib/esm/__/undici/lib/websocket/websocket.js +662 -0
  548. package/lib/esm/__/undici/lib/websocket/websocket.js.map +1 -0
  549. package/lib/esm/_virtual/_commonjsHelpers.js +30 -1
  550. package/lib/esm/_virtual/_commonjsHelpers.js.map +1 -1
  551. package/lib/esm/_virtual/api-request.js +4 -0
  552. package/lib/esm/_virtual/api-request.js.map +1 -0
  553. package/lib/esm/_virtual/constants.js +4 -0
  554. package/lib/esm/_virtual/constants.js.map +1 -0
  555. package/lib/esm/_virtual/context.js +4 -0
  556. package/lib/esm/_virtual/context.js.map +1 -0
  557. package/lib/esm/_virtual/github.js +6 -0
  558. package/lib/esm/_virtual/github.js.map +1 -0
  559. package/lib/esm/_virtual/github2.js +4 -0
  560. package/lib/esm/_virtual/github2.js.map +1 -0
  561. package/lib/esm/_virtual/index10.js +4 -0
  562. package/lib/esm/_virtual/index10.js.map +1 -0
  563. package/lib/esm/_virtual/index11.js +4 -0
  564. package/lib/esm/_virtual/index11.js.map +1 -0
  565. package/lib/esm/_virtual/index12.js +4 -0
  566. package/lib/esm/_virtual/index12.js.map +1 -0
  567. package/lib/esm/_virtual/index13.js +4 -0
  568. package/lib/esm/_virtual/index13.js.map +1 -0
  569. package/lib/esm/_virtual/index14.js +4 -0
  570. package/lib/esm/_virtual/index14.js.map +1 -0
  571. package/lib/esm/_virtual/index2.js +4 -5
  572. package/lib/esm/_virtual/index2.js.map +1 -1
  573. package/lib/esm/_virtual/index3.js +5 -2
  574. package/lib/esm/_virtual/index3.js.map +1 -1
  575. package/lib/esm/_virtual/index4.js +5 -2
  576. package/lib/esm/_virtual/index4.js.map +1 -1
  577. package/lib/esm/_virtual/index5.js +2 -2
  578. package/lib/esm/_virtual/index6.js +6 -2
  579. package/lib/esm/_virtual/index6.js.map +1 -1
  580. package/lib/esm/_virtual/index7.js +4 -0
  581. package/lib/esm/_virtual/index7.js.map +1 -0
  582. package/lib/esm/_virtual/index8.js +6 -0
  583. package/lib/esm/_virtual/index8.js.map +1 -0
  584. package/lib/esm/_virtual/index9.js +4 -0
  585. package/lib/esm/_virtual/index9.js.map +1 -0
  586. package/lib/esm/_virtual/main.js +4 -0
  587. package/lib/esm/_virtual/main.js.map +1 -0
  588. package/lib/esm/_virtual/mock-interceptor.js +4 -0
  589. package/lib/esm/_virtual/mock-interceptor.js.map +1 -0
  590. package/lib/esm/_virtual/proxy.js +4 -0
  591. package/lib/esm/_virtual/proxy.js.map +1 -0
  592. package/lib/esm/_virtual/tunnel.js +4 -0
  593. package/lib/esm/_virtual/tunnel.js.map +1 -0
  594. package/lib/esm/_virtual/utils.js +4 -0
  595. package/lib/esm/_virtual/utils.js.map +1 -0
  596. package/lib/esm/_virtual/utils2.js +4 -0
  597. package/lib/esm/_virtual/utils2.js.map +1 -0
  598. package/lib/esm/_virtual/utils3.js +4 -0
  599. package/lib/esm/_virtual/utils3.js.map +1 -0
  600. package/lib/esm/artifacts/filter-artifacts.js.map +1 -1
  601. package/lib/esm/env/ci-env.js +6 -1
  602. package/lib/esm/env/ci-env.js.map +1 -1
  603. package/lib/esm/env/load.js +1 -1
  604. package/lib/esm/env/load.js.map +1 -1
  605. package/lib/esm/env/service/github.js +3 -3
  606. package/lib/esm/env/service/github.js.map +1 -1
  607. package/lib/esm/ingest/ingest.js +1 -1
  608. package/lib/esm/ingest/ingest.js.map +1 -1
  609. package/lib/esm/locales/en.js.map +1 -1
  610. package/package.json +11 -11
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.js","sources":["../../../../../../../../node_modules/undici/lib/websocket/connection.js"],"sourcesContent":["'use strict'\n\nconst diagnosticsChannel = require('diagnostics_channel')\nconst { uid, states } = require('./constants')\nconst {\n kReadyState,\n kSentClose,\n kByteParser,\n kReceivedClose\n} = require('./symbols')\nconst { fireEvent, failWebsocketConnection } = require('./util')\nconst { CloseEvent } = require('./events')\nconst { makeRequest } = require('../fetch/request')\nconst { fetching } = require('../fetch/index')\nconst { Headers } = require('../fetch/headers')\nconst { getGlobalDispatcher } = require('../global')\nconst { kHeadersList } = require('../core/symbols')\n\nconst channels = {}\nchannels.open = diagnosticsChannel.channel('undici:websocket:open')\nchannels.close = diagnosticsChannel.channel('undici:websocket:close')\nchannels.socketError = diagnosticsChannel.channel('undici:websocket:socket_error')\n\n/** @type {import('crypto')} */\nlet crypto\ntry {\n crypto = require('crypto')\n} catch {\n\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#concept-websocket-establish\n * @param {URL} url\n * @param {string|string[]} protocols\n * @param {import('./websocket').WebSocket} ws\n * @param {(response: any) => void} onEstablish\n * @param {Partial<import('../../types/websocket').WebSocketInit>} options\n */\nfunction establishWebSocketConnection (url, protocols, ws, onEstablish, options) {\n // 1. Let requestURL be a copy of url, with its scheme set to \"http\", if url’s\n // scheme is \"ws\", and to \"https\" otherwise.\n const requestURL = url\n\n requestURL.protocol = url.protocol === 'ws:' ? 'http:' : 'https:'\n\n // 2. Let request be a new request, whose URL is requestURL, client is client,\n // service-workers mode is \"none\", referrer is \"no-referrer\", mode is\n // \"websocket\", credentials mode is \"include\", cache mode is \"no-store\" ,\n // and redirect mode is \"error\".\n const request = makeRequest({\n urlList: [requestURL],\n serviceWorkers: 'none',\n referrer: 'no-referrer',\n mode: 'websocket',\n credentials: 'include',\n cache: 'no-store',\n redirect: 'error'\n })\n\n // Note: undici extension, allow setting custom headers.\n if (options.headers) {\n const headersList = new Headers(options.headers)[kHeadersList]\n\n request.headersList = headersList\n }\n\n // 3. Append (`Upgrade`, `websocket`) to request’s header list.\n // 4. Append (`Connection`, `Upgrade`) to request’s header list.\n // Note: both of these are handled by undici currently.\n // https://github.com/nodejs/undici/blob/68c269c4144c446f3f1220951338daef4a6b5ec4/lib/client.js#L1397\n\n // 5. Let keyValue be a nonce consisting of a randomly selected\n // 16-byte value that has been forgiving-base64-encoded and\n // isomorphic encoded.\n const keyValue = crypto.randomBytes(16).toString('base64')\n\n // 6. Append (`Sec-WebSocket-Key`, keyValue) to request’s\n // header list.\n request.headersList.append('sec-websocket-key', keyValue)\n\n // 7. Append (`Sec-WebSocket-Version`, `13`) to request’s\n // header list.\n request.headersList.append('sec-websocket-version', '13')\n\n // 8. For each protocol in protocols, combine\n // (`Sec-WebSocket-Protocol`, protocol) in request’s header\n // list.\n for (const protocol of protocols) {\n request.headersList.append('sec-websocket-protocol', protocol)\n }\n\n // 9. Let permessageDeflate be a user-agent defined\n // \"permessage-deflate\" extension header value.\n // https://github.com/mozilla/gecko-dev/blob/ce78234f5e653a5d3916813ff990f053510227bc/netwerk/protocol/websocket/WebSocketChannel.cpp#L2673\n // TODO: enable once permessage-deflate is supported\n const permessageDeflate = '' // 'permessage-deflate; 15'\n\n // 10. Append (`Sec-WebSocket-Extensions`, permessageDeflate) to\n // request’s header list.\n // request.headersList.append('sec-websocket-extensions', permessageDeflate)\n\n // 11. Fetch request with useParallelQueue set to true, and\n // processResponse given response being these steps:\n const controller = fetching({\n request,\n useParallelQueue: true,\n dispatcher: options.dispatcher ?? getGlobalDispatcher(),\n processResponse (response) {\n // 1. If response is a network error or its status is not 101,\n // fail the WebSocket connection.\n if (response.type === 'error' || response.status !== 101) {\n failWebsocketConnection(ws, 'Received network error or non-101 status code.')\n return\n }\n\n // 2. If protocols is not the empty list and extracting header\n // list values given `Sec-WebSocket-Protocol` and response’s\n // header list results in null, failure, or the empty byte\n // sequence, then fail the WebSocket connection.\n if (protocols.length !== 0 && !response.headersList.get('Sec-WebSocket-Protocol')) {\n failWebsocketConnection(ws, 'Server did not respond with sent protocols.')\n return\n }\n\n // 3. Follow the requirements stated step 2 to step 6, inclusive,\n // of the last set of steps in section 4.1 of The WebSocket\n // Protocol to validate response. This either results in fail\n // the WebSocket connection or the WebSocket connection is\n // established.\n\n // 2. If the response lacks an |Upgrade| header field or the |Upgrade|\n // header field contains a value that is not an ASCII case-\n // insensitive match for the value \"websocket\", the client MUST\n // _Fail the WebSocket Connection_.\n if (response.headersList.get('Upgrade')?.toLowerCase() !== 'websocket') {\n failWebsocketConnection(ws, 'Server did not set Upgrade header to \"websocket\".')\n return\n }\n\n // 3. If the response lacks a |Connection| header field or the\n // |Connection| header field doesn't contain a token that is an\n // ASCII case-insensitive match for the value \"Upgrade\", the client\n // MUST _Fail the WebSocket Connection_.\n if (response.headersList.get('Connection')?.toLowerCase() !== 'upgrade') {\n failWebsocketConnection(ws, 'Server did not set Connection header to \"upgrade\".')\n return\n }\n\n // 4. If the response lacks a |Sec-WebSocket-Accept| header field or\n // the |Sec-WebSocket-Accept| contains a value other than the\n // base64-encoded SHA-1 of the concatenation of the |Sec-WebSocket-\n // Key| (as a string, not base64-decoded) with the string \"258EAFA5-\n // E914-47DA-95CA-C5AB0DC85B11\" but ignoring any leading and\n // trailing whitespace, the client MUST _Fail the WebSocket\n // Connection_.\n const secWSAccept = response.headersList.get('Sec-WebSocket-Accept')\n const digest = crypto.createHash('sha1').update(keyValue + uid).digest('base64')\n if (secWSAccept !== digest) {\n failWebsocketConnection(ws, 'Incorrect hash received in Sec-WebSocket-Accept header.')\n return\n }\n\n // 5. If the response includes a |Sec-WebSocket-Extensions| header\n // field and this header field indicates the use of an extension\n // that was not present in the client's handshake (the server has\n // indicated an extension not requested by the client), the client\n // MUST _Fail the WebSocket Connection_. (The parsing of this\n // header field to determine which extensions are requested is\n // discussed in Section 9.1.)\n const secExtension = response.headersList.get('Sec-WebSocket-Extensions')\n\n if (secExtension !== null && secExtension !== permessageDeflate) {\n failWebsocketConnection(ws, 'Received different permessage-deflate than the one set.')\n return\n }\n\n // 6. If the response includes a |Sec-WebSocket-Protocol| header field\n // and this header field indicates the use of a subprotocol that was\n // not present in the client's handshake (the server has indicated a\n // subprotocol not requested by the client), the client MUST _Fail\n // the WebSocket Connection_.\n const secProtocol = response.headersList.get('Sec-WebSocket-Protocol')\n\n if (secProtocol !== null && secProtocol !== request.headersList.get('Sec-WebSocket-Protocol')) {\n failWebsocketConnection(ws, 'Protocol was not set in the opening handshake.')\n return\n }\n\n response.socket.on('data', onSocketData)\n response.socket.on('close', onSocketClose)\n response.socket.on('error', onSocketError)\n\n if (channels.open.hasSubscribers) {\n channels.open.publish({\n address: response.socket.address(),\n protocol: secProtocol,\n extensions: secExtension\n })\n }\n\n onEstablish(response)\n }\n })\n\n return controller\n}\n\n/**\n * @param {Buffer} chunk\n */\nfunction onSocketData (chunk) {\n if (!this.ws[kByteParser].write(chunk)) {\n this.pause()\n }\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#feedback-from-the-protocol\n * @see https://datatracker.ietf.org/doc/html/rfc6455#section-7.1.4\n */\nfunction onSocketClose () {\n const { ws } = this\n\n // If the TCP connection was closed after the\n // WebSocket closing handshake was completed, the WebSocket connection\n // is said to have been closed _cleanly_.\n const wasClean = ws[kSentClose] && ws[kReceivedClose]\n\n let code = 1005\n let reason = ''\n\n const result = ws[kByteParser].closingInfo\n\n if (result) {\n code = result.code ?? 1005\n reason = result.reason\n } else if (!ws[kSentClose]) {\n // If _The WebSocket\n // Connection is Closed_ and no Close control frame was received by the\n // endpoint (such as could occur if the underlying transport connection\n // is lost), _The WebSocket Connection Close Code_ is considered to be\n // 1006.\n code = 1006\n }\n\n // 1. Change the ready state to CLOSED (3).\n ws[kReadyState] = states.CLOSED\n\n // 2. If the user agent was required to fail the WebSocket\n // connection, or if the WebSocket connection was closed\n // after being flagged as full, fire an event named error\n // at the WebSocket object.\n // TODO\n\n // 3. Fire an event named close at the WebSocket object,\n // using CloseEvent, with the wasClean attribute\n // initialized to true if the connection closed cleanly\n // and false otherwise, the code attribute initialized to\n // the WebSocket connection close code, and the reason\n // attribute initialized to the result of applying UTF-8\n // decode without BOM to the WebSocket connection close\n // reason.\n fireEvent('close', ws, CloseEvent, {\n wasClean, code, reason\n })\n\n if (channels.close.hasSubscribers) {\n channels.close.publish({\n websocket: ws,\n code,\n reason\n })\n }\n}\n\nfunction onSocketError (error) {\n const { ws } = this\n\n ws[kReadyState] = states.CLOSING\n\n if (channels.socketError.hasSubscribers) {\n channels.socketError.publish(error)\n }\n\n this.destroy()\n}\n\nmodule.exports = {\n establishWebSocketConnection\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA,CAAA,MAAM,kBAAkB,GAAGA;AAC3B,CAAA,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAGC,mBAAA;CACxB,MAAM;AACN,GAAE,WAAW;AACb,GAAE,UAAU;AACZ,GAAE,WAAW;GACX;AACF,EAAC,GAAGC,iBAAA;AACJ,CAAA,MAAM,EAAE,SAAS,EAAE,uBAAuB,EAAE,GAAGC,cAAA;CAC/C,MAAM,EAAE,UAAU,EAAE,GAAGC,gBAAA;CACvB,MAAM,EAAE,WAAW,EAAE,GAAGC,iBAAA;CACxB,MAAM,EAAE,QAAQ,EAAE,GAAGC,eAAA;CACrB,MAAM,EAAE,OAAO,EAAE,GAAGC,iBAAA;CACpB,MAAM,EAAE,mBAAmB,EAAE,GAAGC,gBAAA;CAChC,MAAM,EAAE,YAAY,EAAE,GAAGC,mBA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,SAAS,EAAE,EAAE;AACnB,OAAM,IAAI;OACJ;MACD;AACL,GAAA;AACA,CAAA;;CAEA,SAAS,aAAa,EAAE,KAAK,EAAE;AAC/B,GAAE,MAAM,EAAE,EAAE,EAAE,GAAG;;AAEjB,GAAE,EAAE,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC;;AAE3B,GAAE,IAAI,QAAQ,CAAC,WAAW,CAAC,cAAc,EAAE;AAC3C,KAAI,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK;AACtC,GAAA;;GAEE,IAAI,CAAC,OAAO;AACd,CAAA;;AAEA,CAAA,UAAc,GAAG;GACf;AACF;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,63 @@
1
+ 'use strict';
2
+
3
+ var constants;
4
+ var hasRequiredConstants;
5
+
6
+ function requireConstants () {
7
+ if (hasRequiredConstants) return constants;
8
+ hasRequiredConstants = 1;
9
+
10
+ // This is a Globally Unique Identifier unique used
11
+ // to validate that the endpoint accepts websocket
12
+ // connections.
13
+ // See https://www.rfc-editor.org/rfc/rfc6455.html#section-1.3
14
+ const uid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
15
+
16
+ /** @type {PropertyDescriptor} */
17
+ const staticPropertyDescriptors = {
18
+ enumerable: true,
19
+ writable: false,
20
+ configurable: false
21
+ };
22
+
23
+ const states = {
24
+ CONNECTING: 0,
25
+ OPEN: 1,
26
+ CLOSING: 2,
27
+ CLOSED: 3
28
+ };
29
+
30
+ const opcodes = {
31
+ CONTINUATION: 0x0,
32
+ TEXT: 0x1,
33
+ BINARY: 0x2,
34
+ CLOSE: 0x8,
35
+ PING: 0x9,
36
+ PONG: 0xA
37
+ };
38
+
39
+ const maxUnsigned16Bit = 2 ** 16 - 1; // 65535
40
+
41
+ const parserStates = {
42
+ INFO: 0,
43
+ PAYLOADLENGTH_16: 2,
44
+ PAYLOADLENGTH_64: 3,
45
+ READ_DATA: 4
46
+ };
47
+
48
+ const emptyBuffer = Buffer.allocUnsafe(0);
49
+
50
+ constants = {
51
+ uid,
52
+ staticPropertyDescriptors,
53
+ states,
54
+ opcodes,
55
+ maxUnsigned16Bit,
56
+ parserStates,
57
+ emptyBuffer
58
+ };
59
+ return constants;
60
+ }
61
+
62
+ exports.__require = requireConstants;
63
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../../../../../node_modules/undici/lib/websocket/constants.js"],"sourcesContent":["'use strict'\n\n// This is a Globally Unique Identifier unique used\n// to validate that the endpoint accepts websocket\n// connections.\n// See https://www.rfc-editor.org/rfc/rfc6455.html#section-1.3\nconst uid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'\n\n/** @type {PropertyDescriptor} */\nconst staticPropertyDescriptors = {\n enumerable: true,\n writable: false,\n configurable: false\n}\n\nconst states = {\n CONNECTING: 0,\n OPEN: 1,\n CLOSING: 2,\n CLOSED: 3\n}\n\nconst opcodes = {\n CONTINUATION: 0x0,\n TEXT: 0x1,\n BINARY: 0x2,\n CLOSE: 0x8,\n PING: 0x9,\n PONG: 0xA\n}\n\nconst maxUnsigned16Bit = 2 ** 16 - 1 // 65535\n\nconst parserStates = {\n INFO: 0,\n PAYLOADLENGTH_16: 2,\n PAYLOADLENGTH_64: 3,\n READ_DATA: 4\n}\n\nconst emptyBuffer = Buffer.allocUnsafe(0)\n\nmodule.exports = {\n uid,\n staticPropertyDescriptors,\n states,\n opcodes,\n maxUnsigned16Bit,\n parserStates,\n emptyBuffer\n}\n"],"names":[],"mappings":";;;;;;;;;AAEA;AACA;AACA;AACA;AACA,CAAA,MAAM,GAAG,GAAG;;AAEZ;AACA,CAAA,MAAM,yBAAyB,GAAG;GAChC,UAAU,EAAE,IAAI;GAChB,QAAQ,EAAE,KAAK;AACjB,GAAE,YAAY,EAAE;AAChB;;AAEA,CAAA,MAAM,MAAM,GAAG;GACb,UAAU,EAAE,CAAC;GACb,IAAI,EAAE,CAAC;GACP,OAAO,EAAE,CAAC;AACZ,GAAE,MAAM,EAAE;AACV;;AAEA,CAAA,MAAM,OAAO,GAAG;GACd,YAAY,EAAE,GAAG;GACjB,IAAI,EAAE,GAAG;GACT,MAAM,EAAE,GAAG;GACX,KAAK,EAAE,GAAG;GACV,IAAI,EAAE,GAAG;AACX,GAAE,IAAI,EAAE;AACR;;AAEA,CAAA,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,GAAG,EAAC;;AAEpC,CAAA,MAAM,YAAY,GAAG;GACnB,IAAI,EAAE,CAAC;GACP,gBAAgB,EAAE,CAAC;GACnB,gBAAgB,EAAE,CAAC;AACrB,GAAE,SAAS,EAAE;AACb;;AAEA,CAAA,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;;AAExC,CAAA,SAAc,GAAG;AACjB,GAAE,GAAG;AACL,GAAE,yBAAyB;AAC3B,GAAE,MAAM;AACR,GAAE,OAAO;AACT,GAAE,gBAAgB;AAClB,GAAE,YAAY;GACZ;AACF;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,323 @@
1
+ 'use strict';
2
+
3
+ var webidl = require('../fetch/webidl.js');
4
+ var util = require('../core/util.js');
5
+ var require$$0 = require('node:worker_threads');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
10
+
11
+ var events;
12
+ var hasRequiredEvents;
13
+
14
+ function requireEvents () {
15
+ if (hasRequiredEvents) return events;
16
+ hasRequiredEvents = 1;
17
+
18
+ const { webidl: webidl$1 } = webidl.__require();
19
+ const { kEnumerableProperty } = util.__require();
20
+ const { MessagePort } = require$$0__default.default;
21
+
22
+ /**
23
+ * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent
24
+ */
25
+ class MessageEvent extends Event {
26
+ #eventInit
27
+
28
+ constructor (type, eventInitDict = {}) {
29
+ webidl$1.argumentLengthCheck(arguments, 1, { header: 'MessageEvent constructor' });
30
+
31
+ type = webidl$1.converters.DOMString(type);
32
+ eventInitDict = webidl$1.converters.MessageEventInit(eventInitDict);
33
+
34
+ super(type, eventInitDict);
35
+
36
+ this.#eventInit = eventInitDict;
37
+ }
38
+
39
+ get data () {
40
+ webidl$1.brandCheck(this, MessageEvent);
41
+
42
+ return this.#eventInit.data
43
+ }
44
+
45
+ get origin () {
46
+ webidl$1.brandCheck(this, MessageEvent);
47
+
48
+ return this.#eventInit.origin
49
+ }
50
+
51
+ get lastEventId () {
52
+ webidl$1.brandCheck(this, MessageEvent);
53
+
54
+ return this.#eventInit.lastEventId
55
+ }
56
+
57
+ get source () {
58
+ webidl$1.brandCheck(this, MessageEvent);
59
+
60
+ return this.#eventInit.source
61
+ }
62
+
63
+ get ports () {
64
+ webidl$1.brandCheck(this, MessageEvent);
65
+
66
+ if (!Object.isFrozen(this.#eventInit.ports)) {
67
+ Object.freeze(this.#eventInit.ports);
68
+ }
69
+
70
+ return this.#eventInit.ports
71
+ }
72
+
73
+ initMessageEvent (
74
+ type,
75
+ bubbles = false,
76
+ cancelable = false,
77
+ data = null,
78
+ origin = '',
79
+ lastEventId = '',
80
+ source = null,
81
+ ports = []
82
+ ) {
83
+ webidl$1.brandCheck(this, MessageEvent);
84
+
85
+ webidl$1.argumentLengthCheck(arguments, 1, { header: 'MessageEvent.initMessageEvent' });
86
+
87
+ return new MessageEvent(type, {
88
+ bubbles, cancelable, data, origin, lastEventId, source, ports
89
+ })
90
+ }
91
+ }
92
+
93
+ /**
94
+ * @see https://websockets.spec.whatwg.org/#the-closeevent-interface
95
+ */
96
+ class CloseEvent extends Event {
97
+ #eventInit
98
+
99
+ constructor (type, eventInitDict = {}) {
100
+ webidl$1.argumentLengthCheck(arguments, 1, { header: 'CloseEvent constructor' });
101
+
102
+ type = webidl$1.converters.DOMString(type);
103
+ eventInitDict = webidl$1.converters.CloseEventInit(eventInitDict);
104
+
105
+ super(type, eventInitDict);
106
+
107
+ this.#eventInit = eventInitDict;
108
+ }
109
+
110
+ get wasClean () {
111
+ webidl$1.brandCheck(this, CloseEvent);
112
+
113
+ return this.#eventInit.wasClean
114
+ }
115
+
116
+ get code () {
117
+ webidl$1.brandCheck(this, CloseEvent);
118
+
119
+ return this.#eventInit.code
120
+ }
121
+
122
+ get reason () {
123
+ webidl$1.brandCheck(this, CloseEvent);
124
+
125
+ return this.#eventInit.reason
126
+ }
127
+ }
128
+
129
+ // https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface
130
+ class ErrorEvent extends Event {
131
+ #eventInit
132
+
133
+ constructor (type, eventInitDict) {
134
+ webidl$1.argumentLengthCheck(arguments, 1, { header: 'ErrorEvent constructor' });
135
+
136
+ super(type, eventInitDict);
137
+
138
+ type = webidl$1.converters.DOMString(type);
139
+ eventInitDict = webidl$1.converters.ErrorEventInit(eventInitDict ?? {});
140
+
141
+ this.#eventInit = eventInitDict;
142
+ }
143
+
144
+ get message () {
145
+ webidl$1.brandCheck(this, ErrorEvent);
146
+
147
+ return this.#eventInit.message
148
+ }
149
+
150
+ get filename () {
151
+ webidl$1.brandCheck(this, ErrorEvent);
152
+
153
+ return this.#eventInit.filename
154
+ }
155
+
156
+ get lineno () {
157
+ webidl$1.brandCheck(this, ErrorEvent);
158
+
159
+ return this.#eventInit.lineno
160
+ }
161
+
162
+ get colno () {
163
+ webidl$1.brandCheck(this, ErrorEvent);
164
+
165
+ return this.#eventInit.colno
166
+ }
167
+
168
+ get error () {
169
+ webidl$1.brandCheck(this, ErrorEvent);
170
+
171
+ return this.#eventInit.error
172
+ }
173
+ }
174
+
175
+ Object.defineProperties(MessageEvent.prototype, {
176
+ [Symbol.toStringTag]: {
177
+ value: 'MessageEvent',
178
+ configurable: true
179
+ },
180
+ data: kEnumerableProperty,
181
+ origin: kEnumerableProperty,
182
+ lastEventId: kEnumerableProperty,
183
+ source: kEnumerableProperty,
184
+ ports: kEnumerableProperty,
185
+ initMessageEvent: kEnumerableProperty
186
+ });
187
+
188
+ Object.defineProperties(CloseEvent.prototype, {
189
+ [Symbol.toStringTag]: {
190
+ value: 'CloseEvent',
191
+ configurable: true
192
+ },
193
+ reason: kEnumerableProperty,
194
+ code: kEnumerableProperty,
195
+ wasClean: kEnumerableProperty
196
+ });
197
+
198
+ Object.defineProperties(ErrorEvent.prototype, {
199
+ [Symbol.toStringTag]: {
200
+ value: 'ErrorEvent',
201
+ configurable: true
202
+ },
203
+ message: kEnumerableProperty,
204
+ filename: kEnumerableProperty,
205
+ lineno: kEnumerableProperty,
206
+ colno: kEnumerableProperty,
207
+ error: kEnumerableProperty
208
+ });
209
+
210
+ webidl$1.converters.MessagePort = webidl$1.interfaceConverter(MessagePort);
211
+
212
+ webidl$1.converters['sequence<MessagePort>'] = webidl$1.sequenceConverter(
213
+ webidl$1.converters.MessagePort
214
+ );
215
+
216
+ const eventInit = [
217
+ {
218
+ key: 'bubbles',
219
+ converter: webidl$1.converters.boolean,
220
+ defaultValue: false
221
+ },
222
+ {
223
+ key: 'cancelable',
224
+ converter: webidl$1.converters.boolean,
225
+ defaultValue: false
226
+ },
227
+ {
228
+ key: 'composed',
229
+ converter: webidl$1.converters.boolean,
230
+ defaultValue: false
231
+ }
232
+ ];
233
+
234
+ webidl$1.converters.MessageEventInit = webidl$1.dictionaryConverter([
235
+ ...eventInit,
236
+ {
237
+ key: 'data',
238
+ converter: webidl$1.converters.any,
239
+ defaultValue: null
240
+ },
241
+ {
242
+ key: 'origin',
243
+ converter: webidl$1.converters.USVString,
244
+ defaultValue: ''
245
+ },
246
+ {
247
+ key: 'lastEventId',
248
+ converter: webidl$1.converters.DOMString,
249
+ defaultValue: ''
250
+ },
251
+ {
252
+ key: 'source',
253
+ // Node doesn't implement WindowProxy or ServiceWorker, so the only
254
+ // valid value for source is a MessagePort.
255
+ converter: webidl$1.nullableConverter(webidl$1.converters.MessagePort),
256
+ defaultValue: null
257
+ },
258
+ {
259
+ key: 'ports',
260
+ converter: webidl$1.converters['sequence<MessagePort>'],
261
+ get defaultValue () {
262
+ return []
263
+ }
264
+ }
265
+ ]);
266
+
267
+ webidl$1.converters.CloseEventInit = webidl$1.dictionaryConverter([
268
+ ...eventInit,
269
+ {
270
+ key: 'wasClean',
271
+ converter: webidl$1.converters.boolean,
272
+ defaultValue: false
273
+ },
274
+ {
275
+ key: 'code',
276
+ converter: webidl$1.converters['unsigned short'],
277
+ defaultValue: 0
278
+ },
279
+ {
280
+ key: 'reason',
281
+ converter: webidl$1.converters.USVString,
282
+ defaultValue: ''
283
+ }
284
+ ]);
285
+
286
+ webidl$1.converters.ErrorEventInit = webidl$1.dictionaryConverter([
287
+ ...eventInit,
288
+ {
289
+ key: 'message',
290
+ converter: webidl$1.converters.DOMString,
291
+ defaultValue: ''
292
+ },
293
+ {
294
+ key: 'filename',
295
+ converter: webidl$1.converters.USVString,
296
+ defaultValue: ''
297
+ },
298
+ {
299
+ key: 'lineno',
300
+ converter: webidl$1.converters['unsigned long'],
301
+ defaultValue: 0
302
+ },
303
+ {
304
+ key: 'colno',
305
+ converter: webidl$1.converters['unsigned long'],
306
+ defaultValue: 0
307
+ },
308
+ {
309
+ key: 'error',
310
+ converter: webidl$1.converters.any
311
+ }
312
+ ]);
313
+
314
+ events = {
315
+ MessageEvent,
316
+ CloseEvent,
317
+ ErrorEvent
318
+ };
319
+ return events;
320
+ }
321
+
322
+ exports.__require = requireEvents;
323
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sources":["../../../../../../../../node_modules/undici/lib/websocket/events.js"],"sourcesContent":["'use strict'\n\nconst { webidl } = require('../fetch/webidl')\nconst { kEnumerableProperty } = require('../core/util')\nconst { MessagePort } = require('worker_threads')\n\n/**\n * @see https://html.spec.whatwg.org/multipage/comms.html#messageevent\n */\nclass MessageEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict = {}) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent constructor' })\n\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.MessageEventInit(eventInitDict)\n\n super(type, eventInitDict)\n\n this.#eventInit = eventInitDict\n }\n\n get data () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.data\n }\n\n get origin () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.origin\n }\n\n get lastEventId () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.lastEventId\n }\n\n get source () {\n webidl.brandCheck(this, MessageEvent)\n\n return this.#eventInit.source\n }\n\n get ports () {\n webidl.brandCheck(this, MessageEvent)\n\n if (!Object.isFrozen(this.#eventInit.ports)) {\n Object.freeze(this.#eventInit.ports)\n }\n\n return this.#eventInit.ports\n }\n\n initMessageEvent (\n type,\n bubbles = false,\n cancelable = false,\n data = null,\n origin = '',\n lastEventId = '',\n source = null,\n ports = []\n ) {\n webidl.brandCheck(this, MessageEvent)\n\n webidl.argumentLengthCheck(arguments, 1, { header: 'MessageEvent.initMessageEvent' })\n\n return new MessageEvent(type, {\n bubbles, cancelable, data, origin, lastEventId, source, ports\n })\n }\n}\n\n/**\n * @see https://websockets.spec.whatwg.org/#the-closeevent-interface\n */\nclass CloseEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict = {}) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'CloseEvent constructor' })\n\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.CloseEventInit(eventInitDict)\n\n super(type, eventInitDict)\n\n this.#eventInit = eventInitDict\n }\n\n get wasClean () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.wasClean\n }\n\n get code () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.code\n }\n\n get reason () {\n webidl.brandCheck(this, CloseEvent)\n\n return this.#eventInit.reason\n }\n}\n\n// https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface\nclass ErrorEvent extends Event {\n #eventInit\n\n constructor (type, eventInitDict) {\n webidl.argumentLengthCheck(arguments, 1, { header: 'ErrorEvent constructor' })\n\n super(type, eventInitDict)\n\n type = webidl.converters.DOMString(type)\n eventInitDict = webidl.converters.ErrorEventInit(eventInitDict ?? {})\n\n this.#eventInit = eventInitDict\n }\n\n get message () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.message\n }\n\n get filename () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.filename\n }\n\n get lineno () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.lineno\n }\n\n get colno () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.colno\n }\n\n get error () {\n webidl.brandCheck(this, ErrorEvent)\n\n return this.#eventInit.error\n }\n}\n\nObject.defineProperties(MessageEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'MessageEvent',\n configurable: true\n },\n data: kEnumerableProperty,\n origin: kEnumerableProperty,\n lastEventId: kEnumerableProperty,\n source: kEnumerableProperty,\n ports: kEnumerableProperty,\n initMessageEvent: kEnumerableProperty\n})\n\nObject.defineProperties(CloseEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'CloseEvent',\n configurable: true\n },\n reason: kEnumerableProperty,\n code: kEnumerableProperty,\n wasClean: kEnumerableProperty\n})\n\nObject.defineProperties(ErrorEvent.prototype, {\n [Symbol.toStringTag]: {\n value: 'ErrorEvent',\n configurable: true\n },\n message: kEnumerableProperty,\n filename: kEnumerableProperty,\n lineno: kEnumerableProperty,\n colno: kEnumerableProperty,\n error: kEnumerableProperty\n})\n\nwebidl.converters.MessagePort = webidl.interfaceConverter(MessagePort)\n\nwebidl.converters['sequence<MessagePort>'] = webidl.sequenceConverter(\n webidl.converters.MessagePort\n)\n\nconst eventInit = [\n {\n key: 'bubbles',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'cancelable',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'composed',\n converter: webidl.converters.boolean,\n defaultValue: false\n }\n]\n\nwebidl.converters.MessageEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'data',\n converter: webidl.converters.any,\n defaultValue: null\n },\n {\n key: 'origin',\n converter: webidl.converters.USVString,\n defaultValue: ''\n },\n {\n key: 'lastEventId',\n converter: webidl.converters.DOMString,\n defaultValue: ''\n },\n {\n key: 'source',\n // Node doesn't implement WindowProxy or ServiceWorker, so the only\n // valid value for source is a MessagePort.\n converter: webidl.nullableConverter(webidl.converters.MessagePort),\n defaultValue: null\n },\n {\n key: 'ports',\n converter: webidl.converters['sequence<MessagePort>'],\n get defaultValue () {\n return []\n }\n }\n])\n\nwebidl.converters.CloseEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'wasClean',\n converter: webidl.converters.boolean,\n defaultValue: false\n },\n {\n key: 'code',\n converter: webidl.converters['unsigned short'],\n defaultValue: 0\n },\n {\n key: 'reason',\n converter: webidl.converters.USVString,\n defaultValue: ''\n }\n])\n\nwebidl.converters.ErrorEventInit = webidl.dictionaryConverter([\n ...eventInit,\n {\n key: 'message',\n converter: webidl.converters.DOMString,\n defaultValue: ''\n },\n {\n key: 'filename',\n converter: webidl.converters.USVString,\n defaultValue: ''\n },\n {\n key: 'lineno',\n converter: webidl.converters['unsigned long'],\n defaultValue: 0\n },\n {\n key: 'colno',\n converter: webidl.converters['unsigned long'],\n defaultValue: 0\n },\n {\n key: 'error',\n converter: webidl.converters.any\n }\n])\n\nmodule.exports = {\n MessageEvent,\n CloseEvent,\n ErrorEvent\n}\n"],"names":["webidl","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;;CAEA,MAAM,UAAEA,QAAM,EAAE,GAAGC,gBAAA;CACnB,MAAM,EAAE,mBAAmB,EAAE,GAAGC,cAAA;CAChC,MAAM,EAAE,WAAW,EAAE,GAAGC;;AAExB;AACA;AACA;CACA,MAAM,YAAY,SAAS,KAAK,CAAC;GAC/B;;GAEA,WAAW,CAAC,CAAC,IAAI,EAAE,aAAa,GAAG,EAAE,EAAE;AACzC,KAAIH,QAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,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ACf;GACD;KACE,GAAG,EAAE,QAAQ;AACjB,KAAI,SAAS,EAAEA,QAAM,CAAC,UAAU,CAAC,SAAS;AAC1C,KAAI,YAAY,EAAE;AAClB;EACC;;CAEDA,QAAM,CAAC,UAAU,CAAC,cAAc,GAAGA,QAAM,CAAC,mBAAmB,CAAC;AAC9D,GAAE,GAAG,SAAS;GACZ;KACE,GAAG,EAAE,SAAS;AAClB,KAAI,SAAS,EAAEA,QAAM,CAAC,UAAU,CAAC,SAAS;AAC1C,KAAI,YAAY,EAAE;IACf;GACD;KACE,GAAG,EAAE,UAAU;AACnB,KAAI,SAAS,EAAEA,QAAM,CAAC,UAAU,CAAC,SAAS;AAC1C,KAAI,YAAY,EAAE;IACf;GACD;KACE,GAAG,EAAE,QAAQ;AACjB,KAAI,SAAS,EAAEA,QAAM,CAAC,UAAU,CAAC,eAAe,CAAC;AACjD,KAAI,YAAY,EAAE;IACf;GACD;KACE,GAAG,EAAE,OAAO;AAChB,KAAI,SAAS,EAAEA,QAAM,CAAC,UAAU,CAAC,eAAe,CAAC;AACjD,KAAI,YAAY,EAAE;IACf;GACD;KACE,GAAG,EAAE,OAAO;AAChB,KAAI,SAAS,EAAEA,QAAM,CAAC,UAAU,CAAC;AACjC;EACC;;AAED,CAAA,MAAc,GAAG;AACjB,GAAE,YAAY;AACd,GAAE,UAAU;GACV;AACF;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,87 @@
1
+ 'use strict';
2
+
3
+ var constants = require('./constants.js');
4
+
5
+ var frame;
6
+ var hasRequiredFrame;
7
+
8
+ function requireFrame () {
9
+ if (hasRequiredFrame) return frame;
10
+ hasRequiredFrame = 1;
11
+
12
+ const { maxUnsigned16Bit } = constants.__require();
13
+
14
+ /** @type {import('crypto')} */
15
+ let crypto;
16
+ try {
17
+ crypto = require('crypto');
18
+ } catch {
19
+
20
+ }
21
+
22
+ class WebsocketFrameSend {
23
+ /**
24
+ * @param {Buffer|undefined} data
25
+ */
26
+ constructor (data) {
27
+ this.frameData = data;
28
+ this.maskKey = crypto.randomBytes(4);
29
+ }
30
+
31
+ createFrame (opcode) {
32
+ const bodyLength = this.frameData?.byteLength ?? 0;
33
+
34
+ /** @type {number} */
35
+ let payloadLength = bodyLength; // 0-125
36
+ let offset = 6;
37
+
38
+ if (bodyLength > maxUnsigned16Bit) {
39
+ offset += 8; // payload length is next 8 bytes
40
+ payloadLength = 127;
41
+ } else if (bodyLength > 125) {
42
+ offset += 2; // payload length is next 2 bytes
43
+ payloadLength = 126;
44
+ }
45
+
46
+ const buffer = Buffer.allocUnsafe(bodyLength + offset);
47
+
48
+ // Clear first 2 bytes, everything else is overwritten
49
+ buffer[0] = buffer[1] = 0;
50
+ buffer[0] |= 0x80; // FIN
51
+ buffer[0] = (buffer[0] & 0xF0) + opcode; // opcode
52
+
53
+ /*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */
54
+ buffer[offset - 4] = this.maskKey[0];
55
+ buffer[offset - 3] = this.maskKey[1];
56
+ buffer[offset - 2] = this.maskKey[2];
57
+ buffer[offset - 1] = this.maskKey[3];
58
+
59
+ buffer[1] = payloadLength;
60
+
61
+ if (payloadLength === 126) {
62
+ buffer.writeUInt16BE(bodyLength, 2);
63
+ } else if (payloadLength === 127) {
64
+ // Clear extended payload length
65
+ buffer[2] = buffer[3] = 0;
66
+ buffer.writeUIntBE(bodyLength, 4, 6);
67
+ }
68
+
69
+ buffer[1] |= 0x80; // MASK
70
+
71
+ // mask body
72
+ for (let i = 0; i < bodyLength; i++) {
73
+ buffer[offset + i] = this.frameData[i] ^ this.maskKey[i % 4];
74
+ }
75
+
76
+ return buffer
77
+ }
78
+ }
79
+
80
+ frame = {
81
+ WebsocketFrameSend
82
+ };
83
+ return frame;
84
+ }
85
+
86
+ exports.__require = requireFrame;
87
+ //# sourceMappingURL=frame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame.js","sources":["../../../../../../../../node_modules/undici/lib/websocket/frame.js"],"sourcesContent":["'use strict'\n\nconst { maxUnsigned16Bit } = require('./constants')\n\n/** @type {import('crypto')} */\nlet crypto\ntry {\n crypto = require('crypto')\n} catch {\n\n}\n\nclass WebsocketFrameSend {\n /**\n * @param {Buffer|undefined} data\n */\n constructor (data) {\n this.frameData = data\n this.maskKey = crypto.randomBytes(4)\n }\n\n createFrame (opcode) {\n const bodyLength = this.frameData?.byteLength ?? 0\n\n /** @type {number} */\n let payloadLength = bodyLength // 0-125\n let offset = 6\n\n if (bodyLength > maxUnsigned16Bit) {\n offset += 8 // payload length is next 8 bytes\n payloadLength = 127\n } else if (bodyLength > 125) {\n offset += 2 // payload length is next 2 bytes\n payloadLength = 126\n }\n\n const buffer = Buffer.allocUnsafe(bodyLength + offset)\n\n // Clear first 2 bytes, everything else is overwritten\n buffer[0] = buffer[1] = 0\n buffer[0] |= 0x80 // FIN\n buffer[0] = (buffer[0] & 0xF0) + opcode // opcode\n\n /*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */\n buffer[offset - 4] = this.maskKey[0]\n buffer[offset - 3] = this.maskKey[1]\n buffer[offset - 2] = this.maskKey[2]\n buffer[offset - 1] = this.maskKey[3]\n\n buffer[1] = payloadLength\n\n if (payloadLength === 126) {\n buffer.writeUInt16BE(bodyLength, 2)\n } else if (payloadLength === 127) {\n // Clear extended payload length\n buffer[2] = buffer[3] = 0\n buffer.writeUIntBE(bodyLength, 4, 6)\n }\n\n buffer[1] |= 0x80 // MASK\n\n // mask body\n for (let i = 0; i < bodyLength; i++) {\n buffer[offset + i] = this.frameData[i] ^ this.maskKey[i % 4]\n }\n\n return buffer\n }\n}\n\nmodule.exports = {\n WebsocketFrameSend\n}\n"],"names":["require$$0"],"mappings":";;;;;;;;;;;CAEA,MAAM,EAAE,gBAAgB,EAAE,GAAGA,mBAAA;;AAE7B;CACA,IAAI;CACJ,IAAI;GACF,MAAM,GAAG,OAAA,CAAQ,QAAQ;AAC3B,CAAA,CAAC,CAAC,MAAM;;AAER,CAAA;;AAEA,CAAA,MA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