@capsule-run/sdk 0.8.4 → 0.8.6

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 (333) hide show
  1. package/dist/polyfills/fs.d.ts.map +1 -1
  2. package/dist/polyfills/fs.js +4 -3
  3. package/dist/polyfills/fs.js.map +1 -1
  4. package/dist/polyfills/process.d.ts.map +1 -1
  5. package/dist/polyfills/process.js +10 -8
  6. package/dist/polyfills/process.js.map +1 -1
  7. package/dist/polyfills/unenv-runtime/_internal/types.d.mts +5 -0
  8. package/dist/polyfills/unenv-runtime/_internal/types.mjs +1 -0
  9. package/dist/polyfills/unenv-runtime/_internal/utils.d.mts +14 -0
  10. package/dist/polyfills/unenv-runtime/_internal/utils.mjs +49 -0
  11. package/dist/polyfills/unenv-runtime/mock/empty.d.mts +2 -0
  12. package/dist/polyfills/unenv-runtime/mock/empty.mjs +1 -0
  13. package/dist/polyfills/unenv-runtime/mock/noop.d.mts +2 -0
  14. package/dist/polyfills/unenv-runtime/mock/noop.mjs +1 -0
  15. package/dist/polyfills/unenv-runtime/mock/proxy.d.mts +2 -0
  16. package/dist/polyfills/unenv-runtime/mock/proxy.mjs +43 -0
  17. package/dist/polyfills/unenv-runtime/node/assert/strict.d.mts +4 -0
  18. package/dist/polyfills/unenv-runtime/node/assert/strict.mjs +25 -0
  19. package/dist/polyfills/unenv-runtime/node/assert.d.mts +165 -0
  20. package/dist/polyfills/unenv-runtime/node/assert.mjs +737 -0
  21. package/dist/polyfills/unenv-runtime/node/async_hooks.d.mts +5 -0
  22. package/dist/polyfills/unenv-runtime/node/async_hooks.mjs +15 -0
  23. package/dist/polyfills/unenv-runtime/node/buffer.d.mts +19 -0
  24. package/dist/polyfills/unenv-runtime/node/buffer.mjs +35 -0
  25. package/dist/polyfills/unenv-runtime/node/child_process.d.mts +12 -0
  26. package/dist/polyfills/unenv-runtime/node/child_process.mjs +21 -0
  27. package/dist/polyfills/unenv-runtime/node/cluster.d.mts +33 -0
  28. package/dist/polyfills/unenv-runtime/node/cluster.mjs +71 -0
  29. package/dist/polyfills/unenv-runtime/node/console.d.mts +38 -0
  30. package/dist/polyfills/unenv-runtime/node/console.mjs +74 -0
  31. package/dist/polyfills/unenv-runtime/node/constants.d.mts +13 -0
  32. package/dist/polyfills/unenv-runtime/node/constants.mjs +254 -0
  33. package/dist/polyfills/unenv-runtime/node/crypto.d.mts +6 -0
  34. package/dist/polyfills/unenv-runtime/node/crypto.mjs +138 -0
  35. package/dist/polyfills/unenv-runtime/node/dgram.d.mts +6 -0
  36. package/dist/polyfills/unenv-runtime/node/dgram.mjs +12 -0
  37. package/dist/polyfills/unenv-runtime/node/diagnostics_channel.d.mts +11 -0
  38. package/dist/polyfills/unenv-runtime/node/diagnostics_channel.mjs +34 -0
  39. package/dist/polyfills/unenv-runtime/node/dns/promises.d.mts +27 -0
  40. package/dist/polyfills/unenv-runtime/node/dns/promises.mjs +75 -0
  41. package/dist/polyfills/unenv-runtime/node/dns.d.mts +29 -0
  42. package/dist/polyfills/unenv-runtime/node/dns.mjs +81 -0
  43. package/dist/polyfills/unenv-runtime/node/domain.d.mts +8 -0
  44. package/dist/polyfills/unenv-runtime/node/domain.mjs +16 -0
  45. package/dist/polyfills/unenv-runtime/node/events.d.mts +13 -0
  46. package/dist/polyfills/unenv-runtime/node/events.mjs +12 -0
  47. package/dist/polyfills/unenv-runtime/node/fs/promises.d.mts +7 -0
  48. package/dist/polyfills/unenv-runtime/node/fs/promises.mjs +38 -0
  49. package/dist/polyfills/unenv-runtime/node/fs.d.mts +10 -0
  50. package/dist/polyfills/unenv-runtime/node/fs.mjs +117 -0
  51. package/dist/polyfills/unenv-runtime/node/http.d.mts +23 -0
  52. package/dist/polyfills/unenv-runtime/node/http.mjs +45 -0
  53. package/dist/polyfills/unenv-runtime/node/http2.d.mts +15 -0
  54. package/dist/polyfills/unenv-runtime/node/http2.mjs +284 -0
  55. package/dist/polyfills/unenv-runtime/node/https.d.mts +10 -0
  56. package/dist/polyfills/unenv-runtime/node/https.mjs +16 -0
  57. package/dist/polyfills/unenv-runtime/node/inspector/promises.d.mts +10 -0
  58. package/dist/polyfills/unenv-runtime/node/inspector/promises.mjs +40 -0
  59. package/dist/polyfills/unenv-runtime/node/inspector.d.mts +12 -0
  60. package/dist/polyfills/unenv-runtime/node/inspector.mjs +53 -0
  61. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-hook.d.mts +7 -0
  62. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-hook.mjs +115 -0
  63. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-local-storage.d.mts +2 -0
  64. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-local-storage.mjs +36 -0
  65. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-resource.d.mts +2 -0
  66. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-resource.mjs +37 -0
  67. package/dist/polyfills/unenv-runtime/node/internal/buffer/base64.d.mts +4 -0
  68. package/dist/polyfills/unenv-runtime/node/internal/buffer/base64.mjs +97 -0
  69. package/dist/polyfills/unenv-runtime/node/internal/buffer/buffer.d.mts +13 -0
  70. package/dist/polyfills/unenv-runtime/node/internal/buffer/buffer.mjs +1846 -0
  71. package/dist/polyfills/unenv-runtime/node/internal/buffer/file.d.mts +14 -0
  72. package/dist/polyfills/unenv-runtime/node/internal/buffer/file.mjs +26 -0
  73. package/dist/polyfills/unenv-runtime/node/internal/buffer/ieee754.d.mts +4 -0
  74. package/dist/polyfills/unenv-runtime/node/internal/buffer/ieee754.mjs +89 -0
  75. package/dist/polyfills/unenv-runtime/node/internal/crypto/constants.d.mts +58 -0
  76. package/dist/polyfills/unenv-runtime/node/internal/crypto/constants.mjs +58 -0
  77. package/dist/polyfills/unenv-runtime/node/internal/crypto/node.d.mts +78 -0
  78. package/dist/polyfills/unenv-runtime/node/internal/crypto/node.mjs +110 -0
  79. package/dist/polyfills/unenv-runtime/node/internal/crypto/web.d.mts +5 -0
  80. package/dist/polyfills/unenv-runtime/node/internal/crypto/web.mjs +9 -0
  81. package/dist/polyfills/unenv-runtime/node/internal/dgram/socket.d.mts +31 -0
  82. package/dist/polyfills/unenv-runtime/node/internal/dgram/socket.mjs +61 -0
  83. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/channel.d.mts +18 -0
  84. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/channel.mjs +40 -0
  85. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/tracing-channel.d.mts +19 -0
  86. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/tracing-channel.mjs +48 -0
  87. package/dist/polyfills/unenv-runtime/node/internal/dns/constants.d.mts +28 -0
  88. package/dist/polyfills/unenv-runtime/node/internal/dns/constants.mjs +28 -0
  89. package/dist/polyfills/unenv-runtime/node/internal/domain/domain.d.mts +13 -0
  90. package/dist/polyfills/unenv-runtime/node/internal/domain/domain.mjs +19 -0
  91. package/dist/polyfills/unenv-runtime/node/internal/events/events.d.mts +207 -0
  92. package/dist/polyfills/unenv-runtime/node/internal/events/events.mjs +1097 -0
  93. package/dist/polyfills/unenv-runtime/node/internal/fs/classes.d.mts +8 -0
  94. package/dist/polyfills/unenv-runtime/node/internal/fs/classes.mjs +8 -0
  95. package/dist/polyfills/unenv-runtime/node/internal/fs/constants.d.mts +59 -0
  96. package/dist/polyfills/unenv-runtime/node/internal/fs/constants.mjs +59 -0
  97. package/dist/polyfills/unenv-runtime/node/internal/fs/fs.d.mts +96 -0
  98. package/dist/polyfills/unenv-runtime/node/internal/fs/fs.mjs +106 -0
  99. package/dist/polyfills/unenv-runtime/node/internal/fs/promises.d.mts +32 -0
  100. package/dist/polyfills/unenv-runtime/node/internal/fs/promises.mjs +32 -0
  101. package/dist/polyfills/unenv-runtime/node/internal/http/agent.d.mts +14 -0
  102. package/dist/polyfills/unenv-runtime/node/internal/http/agent.mjs +16 -0
  103. package/dist/polyfills/unenv-runtime/node/internal/http/constants.d.mts +67 -0
  104. package/dist/polyfills/unenv-runtime/node/internal/http/constants.mjs +103 -0
  105. package/dist/polyfills/unenv-runtime/node/internal/http/request.d.mts +31 -0
  106. package/dist/polyfills/unenv-runtime/node/internal/http/request.mjs +53 -0
  107. package/dist/polyfills/unenv-runtime/node/internal/http/response.d.mts +42 -0
  108. package/dist/polyfills/unenv-runtime/node/internal/http/response.mjs +101 -0
  109. package/dist/polyfills/unenv-runtime/node/internal/http2/constants.d.mts +241 -0
  110. package/dist/polyfills/unenv-runtime/node/internal/http2/constants.mjs +241 -0
  111. package/dist/polyfills/unenv-runtime/node/internal/net/server.d.mts +17 -0
  112. package/dist/polyfills/unenv-runtime/node/internal/net/server.mjs +33 -0
  113. package/dist/polyfills/unenv-runtime/node/internal/net/socket.d.mts +45 -0
  114. package/dist/polyfills/unenv-runtime/node/internal/net/socket.mjs +83 -0
  115. package/dist/polyfills/unenv-runtime/node/internal/os/constants.d.mts +133 -0
  116. package/dist/polyfills/unenv-runtime/node/internal/os/constants.mjs +133 -0
  117. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/constants.d.mts +25 -0
  118. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/constants.mjs +25 -0
  119. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/histogram.d.mts +28 -0
  120. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/histogram.mjs +43 -0
  121. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/performance.d.mts +103 -0
  122. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/performance.mjs +232 -0
  123. package/dist/polyfills/unenv-runtime/node/internal/process/env.d.mts +1 -0
  124. package/dist/polyfills/unenv-runtime/node/internal/process/env.mjs +40 -0
  125. package/dist/polyfills/unenv-runtime/node/internal/process/hrtime.d.mts +2 -0
  126. package/dist/polyfills/unenv-runtime/node/internal/process/hrtime.mjs +21 -0
  127. package/dist/polyfills/unenv-runtime/node/internal/process/nexttick.d.mts +3 -0
  128. package/dist/polyfills/unenv-runtime/node/internal/process/nexttick.mjs +55 -0
  129. package/dist/polyfills/unenv-runtime/node/internal/process/node-version.d.mts +2 -0
  130. package/dist/polyfills/unenv-runtime/node/internal/process/node-version.mjs +2 -0
  131. package/dist/polyfills/unenv-runtime/node/internal/process/process.d.mts +113 -0
  132. package/dist/polyfills/unenv-runtime/node/internal/process/process.mjs +238 -0
  133. package/dist/polyfills/unenv-runtime/node/internal/punycode/punycode.d.mts +59 -0
  134. package/dist/polyfills/unenv-runtime/node/internal/punycode/punycode.mjs +410 -0
  135. package/dist/polyfills/unenv-runtime/node/internal/querystring/querystring.d.mts +11 -0
  136. package/dist/polyfills/unenv-runtime/node/internal/querystring/querystring.mjs +320 -0
  137. package/dist/polyfills/unenv-runtime/node/internal/readline/interface.d.mts +20 -0
  138. package/dist/polyfills/unenv-runtime/node/internal/readline/interface.mjs +31 -0
  139. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/interface.d.mts +7 -0
  140. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/interface.mjs +6 -0
  141. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/readline.d.mts +10 -0
  142. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/readline.mjs +20 -0
  143. package/dist/polyfills/unenv-runtime/node/internal/stream/duplex.d.mts +3 -0
  144. package/dist/polyfills/unenv-runtime/node/internal/stream/duplex.mjs +19 -0
  145. package/dist/polyfills/unenv-runtime/node/internal/stream/readable.d.mts +67 -0
  146. package/dist/polyfills/unenv-runtime/node/internal/stream/readable.mjs +112 -0
  147. package/dist/polyfills/unenv-runtime/node/internal/stream/transform.d.mts +10 -0
  148. package/dist/polyfills/unenv-runtime/node/internal/stream/transform.mjs +9 -0
  149. package/dist/polyfills/unenv-runtime/node/internal/stream/writable.d.mts +2 -0
  150. package/dist/polyfills/unenv-runtime/node/internal/stream/writable.mjs +87 -0
  151. package/dist/polyfills/unenv-runtime/node/internal/timers/immediate.d.mts +9 -0
  152. package/dist/polyfills/unenv-runtime/node/internal/timers/immediate.mjs +28 -0
  153. package/dist/polyfills/unenv-runtime/node/internal/timers/scheduler.d.mts +6 -0
  154. package/dist/polyfills/unenv-runtime/node/internal/timers/scheduler.mjs +10 -0
  155. package/dist/polyfills/unenv-runtime/node/internal/timers/set-immediate.d.mts +3 -0
  156. package/dist/polyfills/unenv-runtime/node/internal/timers/set-immediate.mjs +13 -0
  157. package/dist/polyfills/unenv-runtime/node/internal/timers/set-interval.d.mts +2 -0
  158. package/dist/polyfills/unenv-runtime/node/internal/timers/set-interval.mjs +8 -0
  159. package/dist/polyfills/unenv-runtime/node/internal/timers/set-timeout.d.mts +3 -0
  160. package/dist/polyfills/unenv-runtime/node/internal/timers/set-timeout.mjs +11 -0
  161. package/dist/polyfills/unenv-runtime/node/internal/timers/timeout.d.mts +11 -0
  162. package/dist/polyfills/unenv-runtime/node/internal/timers/timeout.mjs +30 -0
  163. package/dist/polyfills/unenv-runtime/node/internal/tls/constants.d.mts +7 -0
  164. package/dist/polyfills/unenv-runtime/node/internal/tls/constants.mjs +7 -0
  165. package/dist/polyfills/unenv-runtime/node/internal/tls/secure-context.d.mts +4 -0
  166. package/dist/polyfills/unenv-runtime/node/internal/tls/secure-context.mjs +3 -0
  167. package/dist/polyfills/unenv-runtime/node/internal/tls/server.d.mts +9 -0
  168. package/dist/polyfills/unenv-runtime/node/internal/tls/server.mjs +15 -0
  169. package/dist/polyfills/unenv-runtime/node/internal/tls/tls-socket.d.mts +31 -0
  170. package/dist/polyfills/unenv-runtime/node/internal/tls/tls-socket.mjs +48 -0
  171. package/dist/polyfills/unenv-runtime/node/internal/trace_events/tracing.d.mts +7 -0
  172. package/dist/polyfills/unenv-runtime/node/internal/trace_events/tracing.mjs +10 -0
  173. package/dist/polyfills/unenv-runtime/node/internal/tty/read-stream.d.mts +8 -0
  174. package/dist/polyfills/unenv-runtime/node/internal/tty/read-stream.mjs +12 -0
  175. package/dist/polyfills/unenv-runtime/node/internal/tty/write-stream.d.mts +20 -0
  176. package/dist/polyfills/unenv-runtime/node/internal/tty/write-stream.mjs +44 -0
  177. package/dist/polyfills/unenv-runtime/node/internal/url/constants.d.mts +44 -0
  178. package/dist/polyfills/unenv-runtime/node/internal/url/constants.mjs +44 -0
  179. package/dist/polyfills/unenv-runtime/node/internal/url/errors.d.mts +26 -0
  180. package/dist/polyfills/unenv-runtime/node/internal/url/errors.mjs +54 -0
  181. package/dist/polyfills/unenv-runtime/node/internal/url/url.d.mts +22 -0
  182. package/dist/polyfills/unenv-runtime/node/internal/url/url.mjs +181 -0
  183. package/dist/polyfills/unenv-runtime/node/internal/url/util.d.mts +4 -0
  184. package/dist/polyfills/unenv-runtime/node/internal/url/util.mjs +7 -0
  185. package/dist/polyfills/unenv-runtime/node/internal/util/inherits.d.mts +1 -0
  186. package/dist/polyfills/unenv-runtime/node/internal/util/inherits.mjs +12 -0
  187. package/dist/polyfills/unenv-runtime/node/internal/util/legacy-types.d.mts +19 -0
  188. package/dist/polyfills/unenv-runtime/node/internal/util/legacy-types.mjs +25 -0
  189. package/dist/polyfills/unenv-runtime/node/internal/util/log.d.mts +8 -0
  190. package/dist/polyfills/unenv-runtime/node/internal/util/log.mjs +55 -0
  191. package/dist/polyfills/unenv-runtime/node/internal/util/mime.d.mts +19 -0
  192. package/dist/polyfills/unenv-runtime/node/internal/util/mime.mjs +35 -0
  193. package/dist/polyfills/unenv-runtime/node/internal/util/promisify.d.mts +3 -0
  194. package/dist/polyfills/unenv-runtime/node/internal/util/promisify.mjs +23 -0
  195. package/dist/polyfills/unenv-runtime/node/internal/util/types.d.mts +45 -0
  196. package/dist/polyfills/unenv-runtime/node/internal/util/types.mjs +45 -0
  197. package/dist/polyfills/unenv-runtime/node/internal/v8/deserializer.d.mts +12 -0
  198. package/dist/polyfills/unenv-runtime/node/internal/v8/deserializer.mjs +23 -0
  199. package/dist/polyfills/unenv-runtime/node/internal/v8/profiler.d.mts +10 -0
  200. package/dist/polyfills/unenv-runtime/node/internal/v8/profiler.mjs +11 -0
  201. package/dist/polyfills/unenv-runtime/node/internal/v8/serializer.d.mts +12 -0
  202. package/dist/polyfills/unenv-runtime/node/internal/v8/serializer.mjs +15 -0
  203. package/dist/polyfills/unenv-runtime/node/internal/vm/constants.d.mts +2 -0
  204. package/dist/polyfills/unenv-runtime/node/internal/vm/constants.mjs +2 -0
  205. package/dist/polyfills/unenv-runtime/node/internal/vm/script.d.mts +7 -0
  206. package/dist/polyfills/unenv-runtime/node/internal/vm/script.mjs +15 -0
  207. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/broadcast-channel.d.mts +10 -0
  208. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/broadcast-channel.mjs +13 -0
  209. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-channel.d.mts +5 -0
  210. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-channel.mjs +5 -0
  211. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-port.d.mts +12 -0
  212. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-port.mjs +17 -0
  213. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/worker.d.mts +21 -0
  214. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/worker.mjs +25 -0
  215. package/dist/polyfills/unenv-runtime/node/internal/zlib/codes.d.mts +21 -0
  216. package/dist/polyfills/unenv-runtime/node/internal/zlib/codes.mjs +21 -0
  217. package/dist/polyfills/unenv-runtime/node/internal/zlib/constants.d.mts +108 -0
  218. package/dist/polyfills/unenv-runtime/node/internal/zlib/constants.mjs +108 -0
  219. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/_shared.d.mts +22 -0
  220. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/_shared.mjs +40 -0
  221. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/brotli.d.mts +16 -0
  222. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/brotli.mjs +16 -0
  223. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/deflate.d.mts +29 -0
  224. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/deflate.mjs +36 -0
  225. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/gzip.d.mts +16 -0
  226. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/gzip.mjs +16 -0
  227. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/zip.d.mts +9 -0
  228. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/zip.mjs +9 -0
  229. package/dist/polyfills/unenv-runtime/node/module.d.mts +54 -0
  230. package/dist/polyfills/unenv-runtime/node/module.mjs +191 -0
  231. package/dist/polyfills/unenv-runtime/node/net.d.mts +22 -0
  232. package/dist/polyfills/unenv-runtime/node/net.mjs +52 -0
  233. package/dist/polyfills/unenv-runtime/node/os.d.mts +26 -0
  234. package/dist/polyfills/unenv-runtime/node/os.mjs +118 -0
  235. package/dist/polyfills/unenv-runtime/node/path/posix.d.mts +2 -0
  236. package/dist/polyfills/unenv-runtime/node/path/posix.mjs +2 -0
  237. package/dist/polyfills/unenv-runtime/node/path/win32.d.mts +2 -0
  238. package/dist/polyfills/unenv-runtime/node/path/win32.mjs +2 -0
  239. package/dist/polyfills/unenv-runtime/node/path.d.mts +12 -0
  240. package/dist/polyfills/unenv-runtime/node/path.mjs +31 -0
  241. package/dist/polyfills/unenv-runtime/node/perf_hooks.d.mts +8 -0
  242. package/dist/polyfills/unenv-runtime/node/perf_hooks.mjs +51 -0
  243. package/dist/polyfills/unenv-runtime/node/process.d.mts +3 -0
  244. package/dist/polyfills/unenv-runtime/node/process.mjs +12 -0
  245. package/dist/polyfills/unenv-runtime/node/punycode.d.mts +3 -0
  246. package/dist/polyfills/unenv-runtime/node/punycode.mjs +3 -0
  247. package/dist/polyfills/unenv-runtime/node/querystring.d.mts +49 -0
  248. package/dist/polyfills/unenv-runtime/node/querystring.mjs +766 -0
  249. package/dist/polyfills/unenv-runtime/node/readline/promises.d.mts +6 -0
  250. package/dist/polyfills/unenv-runtime/node/readline/promises.mjs +10 -0
  251. package/dist/polyfills/unenv-runtime/node/readline.d.mts +13 -0
  252. package/dist/polyfills/unenv-runtime/node/readline.mjs +21 -0
  253. package/dist/polyfills/unenv-runtime/node/repl.d.mts +10 -0
  254. package/dist/polyfills/unenv-runtime/node/repl.mjs +20 -0
  255. package/dist/polyfills/unenv-runtime/node/sqlite.d.mts +6 -0
  256. package/dist/polyfills/unenv-runtime/node/sqlite.mjs +9 -0
  257. package/dist/polyfills/unenv-runtime/node/stream/consumers.d.mts +7 -0
  258. package/dist/polyfills/unenv-runtime/node/stream/consumers.mjs +13 -0
  259. package/dist/polyfills/unenv-runtime/node/stream/promises.d.mts +4 -0
  260. package/dist/polyfills/unenv-runtime/node/stream/promises.mjs +7 -0
  261. package/dist/polyfills/unenv-runtime/node/stream/web.d.mts +24 -0
  262. package/dist/polyfills/unenv-runtime/node/stream/web.mjs +41 -0
  263. package/dist/polyfills/unenv-runtime/node/stream.d.mts +42 -0
  264. package/dist/polyfills/unenv-runtime/node/stream.mjs +54 -0
  265. package/dist/polyfills/unenv-runtime/node/string_decoder.d.mts +5 -0
  266. package/dist/polyfills/unenv-runtime/node/string_decoder.mjs +3 -0
  267. package/dist/polyfills/unenv-runtime/node/sys.d.mts +2 -0
  268. package/dist/polyfills/unenv-runtime/node/sys.mjs +2 -0
  269. package/dist/polyfills/unenv-runtime/node/timers/promises.d.mts +6 -0
  270. package/dist/polyfills/unenv-runtime/node/timers/promises.mjs +14 -0
  271. package/dist/polyfills/unenv-runtime/node/timers.d.mts +15 -0
  272. package/dist/polyfills/unenv-runtime/node/timers.mjs +32 -0
  273. package/dist/polyfills/unenv-runtime/node/tls.d.mts +15 -0
  274. package/dist/polyfills/unenv-runtime/node/tls.mjs +41 -0
  275. package/dist/polyfills/unenv-runtime/node/trace_events.d.mts +5 -0
  276. package/dist/polyfills/unenv-runtime/node/trace_events.mjs +9 -0
  277. package/dist/polyfills/unenv-runtime/node/tty.d.mts +9 -0
  278. package/dist/polyfills/unenv-runtime/node/tty.mjs +12 -0
  279. package/dist/polyfills/unenv-runtime/node/url.d.mts +61 -0
  280. package/dist/polyfills/unenv-runtime/node/url.mjs +1044 -0
  281. package/dist/polyfills/unenv-runtime/node/util/types.d.mts +3 -0
  282. package/dist/polyfills/unenv-runtime/node/util/types.mjs +3 -0
  283. package/dist/polyfills/unenv-runtime/node/util.d.mts +32 -0
  284. package/dist/polyfills/unenv-runtime/node/util.mjs +84 -0
  285. package/dist/polyfills/unenv-runtime/node/v8.d.mts +29 -0
  286. package/dist/polyfills/unenv-runtime/node/v8.mjs +108 -0
  287. package/dist/polyfills/unenv-runtime/node/vm.d.mts +15 -0
  288. package/dist/polyfills/unenv-runtime/node/vm.mjs +41 -0
  289. package/dist/polyfills/unenv-runtime/node/wasi.d.mts +4 -0
  290. package/dist/polyfills/unenv-runtime/node/wasi.mjs +3 -0
  291. package/dist/polyfills/unenv-runtime/node/worker_threads.d.mts +23 -0
  292. package/dist/polyfills/unenv-runtime/node/worker_threads.mjs +55 -0
  293. package/dist/polyfills/unenv-runtime/node/zlib.d.mts +16 -0
  294. package/dist/polyfills/unenv-runtime/node/zlib.mjs +212 -0
  295. package/dist/polyfills/unenv-runtime/npm/cross-fetch.d.mts +6 -0
  296. package/dist/polyfills/unenv-runtime/npm/cross-fetch.mjs +6 -0
  297. package/dist/polyfills/unenv-runtime/npm/debug.d.mts +15 -0
  298. package/dist/polyfills/unenv-runtime/npm/debug.mjs +43 -0
  299. package/dist/polyfills/unenv-runtime/npm/fsevents.d.mts +16 -0
  300. package/dist/polyfills/unenv-runtime/npm/fsevents.mjs +20 -0
  301. package/dist/polyfills/unenv-runtime/npm/inherits.d.mts +2 -0
  302. package/dist/polyfills/unenv-runtime/npm/inherits.mjs +2 -0
  303. package/dist/polyfills/unenv-runtime/npm/node-fetch.d.mts +12 -0
  304. package/dist/polyfills/unenv-runtime/npm/node-fetch.mjs +23 -0
  305. package/dist/polyfills/unenv-runtime/npm/whatwg-url/index.d.mts +13 -0
  306. package/dist/polyfills/unenv-runtime/npm/whatwg-url/index.mjs +15 -0
  307. package/dist/polyfills/unenv-runtime/npm/whatwg-url/webidl2js-wrapper.d.mts +2 -0
  308. package/dist/polyfills/unenv-runtime/npm/whatwg-url/webidl2js-wrapper.mjs +2 -0
  309. package/dist/polyfills/unenv-runtime/polyfill/buffer.d.mts +1 -0
  310. package/dist/polyfills/unenv-runtime/polyfill/buffer.mjs +4 -0
  311. package/dist/polyfills/unenv-runtime/polyfill/globalthis-global.d.mts +1 -0
  312. package/dist/polyfills/unenv-runtime/polyfill/globalthis-global.mjs +5 -0
  313. package/dist/polyfills/unenv-runtime/polyfill/globalthis.d.mts +2 -0
  314. package/dist/polyfills/unenv-runtime/polyfill/globalthis.mjs +2 -0
  315. package/dist/polyfills/unenv-runtime/polyfill/package.json +3 -0
  316. package/dist/polyfills/unenv-runtime/polyfill/performance.d.mts +2 -0
  317. package/dist/polyfills/unenv-runtime/polyfill/performance.mjs +10 -0
  318. package/dist/polyfills/unenv-runtime/polyfill/process.d.mts +2 -0
  319. package/dist/polyfills/unenv-runtime/polyfill/process.mjs +10 -0
  320. package/dist/polyfills/unenv-runtime/polyfill/source-maps.mjs +15 -0
  321. package/dist/polyfills/unenv-runtime/polyfill/timers.d.mts +1 -0
  322. package/dist/polyfills/unenv-runtime/polyfill/timers.mjs +7 -0
  323. package/dist/polyfills/unenv-runtime/web/performance/_polyfills.d.mts +100 -0
  324. package/dist/polyfills/unenv-runtime/web/performance/_polyfills.mjs +184 -0
  325. package/dist/polyfills/unenv-runtime/web/performance/index.d.mts +12 -0
  326. package/dist/polyfills/unenv-runtime/web/performance/index.mjs +14 -0
  327. package/dist/run.d.ts.map +1 -1
  328. package/dist/run.js +39 -10
  329. package/dist/run.js.map +1 -1
  330. package/package.json +2 -2
  331. package/src/polyfills/fs.ts +5 -3
  332. package/src/polyfills/process.ts +10 -8
  333. package/src/run.ts +41 -11
@@ -0,0 +1,53 @@
1
+ import { Socket } from "node:net";
2
+ import { Readable } from "node:stream";
3
+ import { rawHeaders } from "../../../_internal/utils.mjs";
4
+ // Docs: https://nodejs.org/api/http.html#http_class_http_incomingmessage
5
+ // Implementation: https://github.com/nodejs/node/blob/master/lib/_http_incoming.js
6
+ export class IncomingMessage extends Readable {
7
+ __unenv__ = {};
8
+ aborted = false;
9
+ httpVersion = "1.1";
10
+ httpVersionMajor = 1;
11
+ httpVersionMinor = 1;
12
+ complete = true;
13
+ connection;
14
+ socket;
15
+ headers = {};
16
+ trailers = {};
17
+ method = "GET";
18
+ url = "/";
19
+ statusCode = 200;
20
+ statusMessage = "";
21
+ closed = false;
22
+ errored = null;
23
+ readable = false;
24
+ constructor(socket) {
25
+ super();
26
+ this.socket = this.connection = socket || new Socket();
27
+ }
28
+ get rawHeaders() {
29
+ return rawHeaders(this.headers);
30
+ }
31
+ get rawTrailers() {
32
+ return [];
33
+ }
34
+ setTimeout(_msecs, _callback) {
35
+ return this;
36
+ }
37
+ get headersDistinct() {
38
+ return _distinct(this.headers);
39
+ }
40
+ get trailersDistinct() {
41
+ return _distinct(this.trailers);
42
+ }
43
+ _read() {}
44
+ }
45
+ function _distinct(obj) {
46
+ const d = {};
47
+ for (const [key, value] of Object.entries(obj)) {
48
+ if (key) {
49
+ d[key] = (Array.isArray(value) ? value : [value]).filter(Boolean);
50
+ }
51
+ }
52
+ return d;
53
+ }
@@ -0,0 +1,42 @@
1
+ import type nodeHttp from "node:http";
2
+ import type { Socket } from "node:net";
3
+ import type { Callback } from "../../../_internal/types.mjs";
4
+ import { Writable } from "node:stream";
5
+ // Docs: https://nodejs.org/api/http.html#http_class_http_serverresponse
6
+ // Implementation: https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js
7
+ export declare class ServerResponse extends Writable implements nodeHttp.ServerResponse {
8
+ readonly __unenv__: true;
9
+ statusCode: number;
10
+ statusMessage: string;
11
+ upgrading: boolean;
12
+ chunkedEncoding: boolean;
13
+ shouldKeepAlive: boolean;
14
+ useChunkedEncodingByDefault: boolean;
15
+ sendDate: boolean;
16
+ finished: boolean;
17
+ headersSent: boolean;
18
+ strictContentLength: boolean;
19
+ connection: Socket | null;
20
+ socket: Socket | null;
21
+ req: nodeHttp.IncomingMessage;
22
+ _headers: Record<string, number | string | string[] | undefined>;
23
+ constructor(req: nodeHttp.IncomingMessage);
24
+ assignSocket(socket: Socket): void;
25
+ _flush();
26
+ detachSocket(_socket: Socket): void;
27
+ writeContinue(_callback?: Callback): void;
28
+ writeHead(statusCode: number, arg1?: string | nodeHttp.OutgoingHttpHeaders | nodeHttp.OutgoingHttpHeader[], arg2?: nodeHttp.OutgoingHttpHeaders | nodeHttp.OutgoingHttpHeader[]);
29
+ writeProcessing(): void;
30
+ setTimeout(_msecs: number, _callback?: Callback): this;
31
+ appendHeader(name: string, value: string | string[]);
32
+ setHeader(name: string, value: number | string | readonly string[]): this;
33
+ setHeaders(headers: Headers | Map<string, number | string | readonly string[]>): this;
34
+ getHeader(name: string): number | string | string[] | undefined;
35
+ getHeaders(): nodeHttp.OutgoingHttpHeaders;
36
+ getHeaderNames(): string[];
37
+ hasHeader(name: string): boolean;
38
+ removeHeader(name: string): void;
39
+ addTrailers(_headers: nodeHttp.OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
40
+ flushHeaders(): void;
41
+ writeEarlyHints(_headers: nodeHttp.OutgoingHttpHeaders, cb: () => void): void;
42
+ }
@@ -0,0 +1,101 @@
1
+ import { Writable } from "node:stream";
2
+ // Docs: https://nodejs.org/api/http.html#http_class_http_serverresponse
3
+ // Implementation: https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js
4
+ export class ServerResponse extends Writable {
5
+ __unenv__ = true;
6
+ statusCode = 200;
7
+ statusMessage = "";
8
+ upgrading = false;
9
+ chunkedEncoding = false;
10
+ shouldKeepAlive = false;
11
+ useChunkedEncodingByDefault = false;
12
+ sendDate = false;
13
+ finished = false;
14
+ headersSent = false;
15
+ strictContentLength = false;
16
+ connection = null;
17
+ socket = null;
18
+ req;
19
+ _headers = {};
20
+ constructor(req) {
21
+ super();
22
+ this.req = req;
23
+ }
24
+ assignSocket(socket) {
25
+ // @ts-ignore
26
+ socket._httpMessage = this;
27
+ // socket.on('close', onServerResponseClose)
28
+ this.socket = socket;
29
+ this.connection = socket;
30
+ this.emit("socket", socket);
31
+ this._flush();
32
+ }
33
+ _flush() {
34
+ this.flushHeaders();
35
+ }
36
+ detachSocket(_socket) {}
37
+ writeContinue(_callback) {}
38
+ writeHead(statusCode, arg1, arg2) {
39
+ if (statusCode) {
40
+ this.statusCode = statusCode;
41
+ }
42
+ if (typeof arg1 === "string") {
43
+ this.statusMessage = arg1;
44
+ arg1 = undefined;
45
+ }
46
+ const headers = arg2 || arg1;
47
+ if (headers) {
48
+ if (Array.isArray(headers)) {} else {
49
+ for (const key in headers) {
50
+ // @ts-ignore
51
+ this.setHeader(key, headers[key]);
52
+ }
53
+ }
54
+ }
55
+ this.headersSent = true;
56
+ return this;
57
+ }
58
+ writeProcessing() {}
59
+ setTimeout(_msecs, _callback) {
60
+ return this;
61
+ }
62
+ appendHeader(name, value) {
63
+ name = name.toLowerCase();
64
+ const current = this._headers[name];
65
+ const all = [...Array.isArray(current) ? current : [current], ...Array.isArray(value) ? value : [value]].filter(Boolean);
66
+ this._headers[name] = all.length > 1 ? all : all[0];
67
+ return this;
68
+ }
69
+ setHeader(name, value) {
70
+ this._headers[name.toLowerCase()] = Array.isArray(value) ? [...value] : value;
71
+ return this;
72
+ }
73
+ setHeaders(headers) {
74
+ for (const [key, value] of headers.entries()) {
75
+ this.setHeader(key, value);
76
+ }
77
+ return this;
78
+ }
79
+ getHeader(name) {
80
+ return this._headers[name.toLowerCase()];
81
+ }
82
+ getHeaders() {
83
+ return this._headers;
84
+ }
85
+ getHeaderNames() {
86
+ return Object.keys(this._headers);
87
+ }
88
+ hasHeader(name) {
89
+ return name.toLowerCase() in this._headers;
90
+ }
91
+ removeHeader(name) {
92
+ delete this._headers[name.toLowerCase()];
93
+ }
94
+ addTrailers(_headers) {}
95
+ flushHeaders() {}
96
+ writeEarlyHints(_headers, cb) {
97
+ if (typeof cb === "function") {
98
+ cb();
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,241 @@
1
+ // npx -y node@22.14 -e 'const{constants}=require("http2");console.log(Object.entries(constants).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
2
+ export declare const NGHTTP2_ERR_FRAME_SIZE_ERROR = -522;
3
+ export declare const NGHTTP2_SESSION_SERVER = 0;
4
+ export declare const NGHTTP2_SESSION_CLIENT = 1;
5
+ export declare const NGHTTP2_STREAM_STATE_IDLE = 1;
6
+ export declare const NGHTTP2_STREAM_STATE_OPEN = 2;
7
+ export declare const NGHTTP2_STREAM_STATE_RESERVED_LOCAL = 3;
8
+ export declare const NGHTTP2_STREAM_STATE_RESERVED_REMOTE = 4;
9
+ export declare const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL = 5;
10
+ export declare const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE = 6;
11
+ export declare const NGHTTP2_STREAM_STATE_CLOSED = 7;
12
+ export declare const NGHTTP2_FLAG_NONE = 0;
13
+ export declare const NGHTTP2_FLAG_END_STREAM = 1;
14
+ export declare const NGHTTP2_FLAG_END_HEADERS = 4;
15
+ export declare const NGHTTP2_FLAG_ACK = 1;
16
+ export declare const NGHTTP2_FLAG_PADDED = 8;
17
+ export declare const NGHTTP2_FLAG_PRIORITY = 32;
18
+ export declare const DEFAULT_SETTINGS_HEADER_TABLE_SIZE = 4096;
19
+ export declare const DEFAULT_SETTINGS_ENABLE_PUSH = 1;
20
+ export declare const DEFAULT_SETTINGS_MAX_CONCURRENT_STREAMS = 4294967295;
21
+ export declare const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE = 65535;
22
+ export declare const DEFAULT_SETTINGS_MAX_FRAME_SIZE = 16384;
23
+ export declare const DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE = 65535;
24
+ export declare const DEFAULT_SETTINGS_ENABLE_CONNECT_PROTOCOL = 0;
25
+ export declare const MAX_MAX_FRAME_SIZE = 16777215;
26
+ export declare const MIN_MAX_FRAME_SIZE = 16384;
27
+ export declare const MAX_INITIAL_WINDOW_SIZE = 2147483647;
28
+ export declare const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE = 1;
29
+ export declare const NGHTTP2_SETTINGS_ENABLE_PUSH = 2;
30
+ export declare const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS = 3;
31
+ export declare const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE = 4;
32
+ export declare const NGHTTP2_SETTINGS_MAX_FRAME_SIZE = 5;
33
+ export declare const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE = 6;
34
+ export declare const NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL = 8;
35
+ export declare const PADDING_STRATEGY_NONE = 0;
36
+ export declare const PADDING_STRATEGY_ALIGNED = 1;
37
+ export declare const PADDING_STRATEGY_MAX = 2;
38
+ export declare const PADDING_STRATEGY_CALLBACK = 1;
39
+ export declare const NGHTTP2_NO_ERROR = 0;
40
+ export declare const NGHTTP2_PROTOCOL_ERROR = 1;
41
+ export declare const NGHTTP2_INTERNAL_ERROR = 2;
42
+ export declare const NGHTTP2_FLOW_CONTROL_ERROR = 3;
43
+ export declare const NGHTTP2_SETTINGS_TIMEOUT = 4;
44
+ export declare const NGHTTP2_STREAM_CLOSED = 5;
45
+ export declare const NGHTTP2_FRAME_SIZE_ERROR = 6;
46
+ export declare const NGHTTP2_REFUSED_STREAM = 7;
47
+ export declare const NGHTTP2_CANCEL = 8;
48
+ export declare const NGHTTP2_COMPRESSION_ERROR = 9;
49
+ export declare const NGHTTP2_CONNECT_ERROR = 10;
50
+ export declare const NGHTTP2_ENHANCE_YOUR_CALM = 11;
51
+ export declare const NGHTTP2_INADEQUATE_SECURITY = 12;
52
+ export declare const NGHTTP2_HTTP_1_1_REQUIRED = 13;
53
+ export declare const NGHTTP2_DEFAULT_WEIGHT = 16;
54
+ export declare const HTTP2_HEADER_STATUS = ":status";
55
+ export declare const HTTP2_HEADER_METHOD = ":method";
56
+ export declare const HTTP2_HEADER_AUTHORITY = ":authority";
57
+ export declare const HTTP2_HEADER_SCHEME = ":scheme";
58
+ export declare const HTTP2_HEADER_PATH = ":path";
59
+ export declare const HTTP2_HEADER_PROTOCOL = ":protocol";
60
+ export declare const HTTP2_HEADER_ACCEPT_ENCODING = "accept-encoding";
61
+ export declare const HTTP2_HEADER_ACCEPT_LANGUAGE = "accept-language";
62
+ export declare const HTTP2_HEADER_ACCEPT_RANGES = "accept-ranges";
63
+ export declare const HTTP2_HEADER_ACCEPT = "accept";
64
+ export declare const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS = "access-control-allow-credentials";
65
+ export declare const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS = "access-control-allow-headers";
66
+ export declare const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS = "access-control-allow-methods";
67
+ export declare const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN = "access-control-allow-origin";
68
+ export declare const HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS = "access-control-expose-headers";
69
+ export declare const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS = "access-control-request-headers";
70
+ export declare const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD = "access-control-request-method";
71
+ export declare const HTTP2_HEADER_AGE = "age";
72
+ export declare const HTTP2_HEADER_AUTHORIZATION = "authorization";
73
+ export declare const HTTP2_HEADER_CACHE_CONTROL = "cache-control";
74
+ export declare const HTTP2_HEADER_CONNECTION = "connection";
75
+ export declare const HTTP2_HEADER_CONTENT_DISPOSITION = "content-disposition";
76
+ export declare const HTTP2_HEADER_CONTENT_ENCODING = "content-encoding";
77
+ export declare const HTTP2_HEADER_CONTENT_LENGTH = "content-length";
78
+ export declare const HTTP2_HEADER_CONTENT_TYPE = "content-type";
79
+ export declare const HTTP2_HEADER_COOKIE = "cookie";
80
+ export declare const HTTP2_HEADER_DATE = "date";
81
+ export declare const HTTP2_HEADER_ETAG = "etag";
82
+ export declare const HTTP2_HEADER_FORWARDED = "forwarded";
83
+ export declare const HTTP2_HEADER_HOST = "host";
84
+ export declare const HTTP2_HEADER_IF_MODIFIED_SINCE = "if-modified-since";
85
+ export declare const HTTP2_HEADER_IF_NONE_MATCH = "if-none-match";
86
+ export declare const HTTP2_HEADER_IF_RANGE = "if-range";
87
+ export declare const HTTP2_HEADER_LAST_MODIFIED = "last-modified";
88
+ export declare const HTTP2_HEADER_LINK = "link";
89
+ export declare const HTTP2_HEADER_LOCATION = "location";
90
+ export declare const HTTP2_HEADER_RANGE = "range";
91
+ export declare const HTTP2_HEADER_REFERER = "referer";
92
+ export declare const HTTP2_HEADER_SERVER = "server";
93
+ export declare const HTTP2_HEADER_SET_COOKIE = "set-cookie";
94
+ export declare const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY = "strict-transport-security";
95
+ export declare const HTTP2_HEADER_TRANSFER_ENCODING = "transfer-encoding";
96
+ export declare const HTTP2_HEADER_TE = "te";
97
+ export declare const HTTP2_HEADER_UPGRADE_INSECURE_REQUESTS = "upgrade-insecure-requests";
98
+ export declare const HTTP2_HEADER_UPGRADE = "upgrade";
99
+ export declare const HTTP2_HEADER_USER_AGENT = "user-agent";
100
+ export declare const HTTP2_HEADER_VARY = "vary";
101
+ export declare const HTTP2_HEADER_X_CONTENT_TYPE_OPTIONS = "x-content-type-options";
102
+ export declare const HTTP2_HEADER_X_FRAME_OPTIONS = "x-frame-options";
103
+ export declare const HTTP2_HEADER_KEEP_ALIVE = "keep-alive";
104
+ export declare const HTTP2_HEADER_PROXY_CONNECTION = "proxy-connection";
105
+ export declare const HTTP2_HEADER_X_XSS_PROTECTION = "x-xss-protection";
106
+ export declare const HTTP2_HEADER_ALT_SVC = "alt-svc";
107
+ export declare const HTTP2_HEADER_CONTENT_SECURITY_POLICY = "content-security-policy";
108
+ export declare const HTTP2_HEADER_EARLY_DATA = "early-data";
109
+ export declare const HTTP2_HEADER_EXPECT_CT = "expect-ct";
110
+ export declare const HTTP2_HEADER_ORIGIN = "origin";
111
+ export declare const HTTP2_HEADER_PURPOSE = "purpose";
112
+ export declare const HTTP2_HEADER_TIMING_ALLOW_ORIGIN = "timing-allow-origin";
113
+ export declare const HTTP2_HEADER_X_FORWARDED_FOR = "x-forwarded-for";
114
+ export declare const HTTP2_HEADER_PRIORITY = "priority";
115
+ export declare const HTTP2_HEADER_ACCEPT_CHARSET = "accept-charset";
116
+ export declare const HTTP2_HEADER_ACCESS_CONTROL_MAX_AGE = "access-control-max-age";
117
+ export declare const HTTP2_HEADER_ALLOW = "allow";
118
+ export declare const HTTP2_HEADER_CONTENT_LANGUAGE = "content-language";
119
+ export declare const HTTP2_HEADER_CONTENT_LOCATION = "content-location";
120
+ export declare const HTTP2_HEADER_CONTENT_MD5 = "content-md5";
121
+ export declare const HTTP2_HEADER_CONTENT_RANGE = "content-range";
122
+ export declare const HTTP2_HEADER_DNT = "dnt";
123
+ export declare const HTTP2_HEADER_EXPECT = "expect";
124
+ export declare const HTTP2_HEADER_EXPIRES = "expires";
125
+ export declare const HTTP2_HEADER_FROM = "from";
126
+ export declare const HTTP2_HEADER_IF_MATCH = "if-match";
127
+ export declare const HTTP2_HEADER_IF_UNMODIFIED_SINCE = "if-unmodified-since";
128
+ export declare const HTTP2_HEADER_MAX_FORWARDS = "max-forwards";
129
+ export declare const HTTP2_HEADER_PREFER = "prefer";
130
+ export declare const HTTP2_HEADER_PROXY_AUTHENTICATE = "proxy-authenticate";
131
+ export declare const HTTP2_HEADER_PROXY_AUTHORIZATION = "proxy-authorization";
132
+ export declare const HTTP2_HEADER_REFRESH = "refresh";
133
+ export declare const HTTP2_HEADER_RETRY_AFTER = "retry-after";
134
+ export declare const HTTP2_HEADER_TRAILER = "trailer";
135
+ export declare const HTTP2_HEADER_TK = "tk";
136
+ export declare const HTTP2_HEADER_VIA = "via";
137
+ export declare const HTTP2_HEADER_WARNING = "warning";
138
+ export declare const HTTP2_HEADER_WWW_AUTHENTICATE = "www-authenticate";
139
+ export declare const HTTP2_HEADER_HTTP2_SETTINGS = "http2-settings";
140
+ export declare const HTTP2_METHOD_ACL = "ACL";
141
+ export declare const HTTP2_METHOD_BASELINE_CONTROL = "BASELINE-CONTROL";
142
+ export declare const HTTP2_METHOD_BIND = "BIND";
143
+ export declare const HTTP2_METHOD_CHECKIN = "CHECKIN";
144
+ export declare const HTTP2_METHOD_CHECKOUT = "CHECKOUT";
145
+ export declare const HTTP2_METHOD_CONNECT = "CONNECT";
146
+ export declare const HTTP2_METHOD_COPY = "COPY";
147
+ export declare const HTTP2_METHOD_DELETE = "DELETE";
148
+ export declare const HTTP2_METHOD_GET = "GET";
149
+ export declare const HTTP2_METHOD_HEAD = "HEAD";
150
+ export declare const HTTP2_METHOD_LABEL = "LABEL";
151
+ export declare const HTTP2_METHOD_LINK = "LINK";
152
+ export declare const HTTP2_METHOD_LOCK = "LOCK";
153
+ export declare const HTTP2_METHOD_MERGE = "MERGE";
154
+ export declare const HTTP2_METHOD_MKACTIVITY = "MKACTIVITY";
155
+ export declare const HTTP2_METHOD_MKCALENDAR = "MKCALENDAR";
156
+ export declare const HTTP2_METHOD_MKCOL = "MKCOL";
157
+ export declare const HTTP2_METHOD_MKREDIRECTREF = "MKREDIRECTREF";
158
+ export declare const HTTP2_METHOD_MKWORKSPACE = "MKWORKSPACE";
159
+ export declare const HTTP2_METHOD_MOVE = "MOVE";
160
+ export declare const HTTP2_METHOD_OPTIONS = "OPTIONS";
161
+ export declare const HTTP2_METHOD_ORDERPATCH = "ORDERPATCH";
162
+ export declare const HTTP2_METHOD_PATCH = "PATCH";
163
+ export declare const HTTP2_METHOD_POST = "POST";
164
+ export declare const HTTP2_METHOD_PRI = "PRI";
165
+ export declare const HTTP2_METHOD_PROPFIND = "PROPFIND";
166
+ export declare const HTTP2_METHOD_PROPPATCH = "PROPPATCH";
167
+ export declare const HTTP2_METHOD_PUT = "PUT";
168
+ export declare const HTTP2_METHOD_REBIND = "REBIND";
169
+ export declare const HTTP2_METHOD_REPORT = "REPORT";
170
+ export declare const HTTP2_METHOD_SEARCH = "SEARCH";
171
+ export declare const HTTP2_METHOD_TRACE = "TRACE";
172
+ export declare const HTTP2_METHOD_UNBIND = "UNBIND";
173
+ export declare const HTTP2_METHOD_UNCHECKOUT = "UNCHECKOUT";
174
+ export declare const HTTP2_METHOD_UNLINK = "UNLINK";
175
+ export declare const HTTP2_METHOD_UNLOCK = "UNLOCK";
176
+ export declare const HTTP2_METHOD_UPDATE = "UPDATE";
177
+ export declare const HTTP2_METHOD_UPDATEREDIRECTREF = "UPDATEREDIRECTREF";
178
+ export declare const HTTP2_METHOD_VERSION_CONTROL = "VERSION-CONTROL";
179
+ export declare const HTTP_STATUS_CONTINUE = 100;
180
+ export declare const HTTP_STATUS_SWITCHING_PROTOCOLS = 101;
181
+ export declare const HTTP_STATUS_PROCESSING = 102;
182
+ export declare const HTTP_STATUS_EARLY_HINTS = 103;
183
+ export declare const HTTP_STATUS_OK = 200;
184
+ export declare const HTTP_STATUS_CREATED = 201;
185
+ export declare const HTTP_STATUS_ACCEPTED = 202;
186
+ export declare const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION = 203;
187
+ export declare const HTTP_STATUS_NO_CONTENT = 204;
188
+ export declare const HTTP_STATUS_RESET_CONTENT = 205;
189
+ export declare const HTTP_STATUS_PARTIAL_CONTENT = 206;
190
+ export declare const HTTP_STATUS_MULTI_STATUS = 207;
191
+ export declare const HTTP_STATUS_ALREADY_REPORTED = 208;
192
+ export declare const HTTP_STATUS_IM_USED = 226;
193
+ export declare const HTTP_STATUS_MULTIPLE_CHOICES = 300;
194
+ export declare const HTTP_STATUS_MOVED_PERMANENTLY = 301;
195
+ export declare const HTTP_STATUS_FOUND = 302;
196
+ export declare const HTTP_STATUS_SEE_OTHER = 303;
197
+ export declare const HTTP_STATUS_NOT_MODIFIED = 304;
198
+ export declare const HTTP_STATUS_USE_PROXY = 305;
199
+ export declare const HTTP_STATUS_TEMPORARY_REDIRECT = 307;
200
+ export declare const HTTP_STATUS_PERMANENT_REDIRECT = 308;
201
+ export declare const HTTP_STATUS_BAD_REQUEST = 400;
202
+ export declare const HTTP_STATUS_UNAUTHORIZED = 401;
203
+ export declare const HTTP_STATUS_PAYMENT_REQUIRED = 402;
204
+ export declare const HTTP_STATUS_FORBIDDEN = 403;
205
+ export declare const HTTP_STATUS_NOT_FOUND = 404;
206
+ export declare const HTTP_STATUS_METHOD_NOT_ALLOWED = 405;
207
+ export declare const HTTP_STATUS_NOT_ACCEPTABLE = 406;
208
+ export declare const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED = 407;
209
+ export declare const HTTP_STATUS_REQUEST_TIMEOUT = 408;
210
+ export declare const HTTP_STATUS_CONFLICT = 409;
211
+ export declare const HTTP_STATUS_GONE = 410;
212
+ export declare const HTTP_STATUS_LENGTH_REQUIRED = 411;
213
+ export declare const HTTP_STATUS_PRECONDITION_FAILED = 412;
214
+ export declare const HTTP_STATUS_PAYLOAD_TOO_LARGE = 413;
215
+ export declare const HTTP_STATUS_URI_TOO_LONG = 414;
216
+ export declare const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415;
217
+ export declare const HTTP_STATUS_RANGE_NOT_SATISFIABLE = 416;
218
+ export declare const HTTP_STATUS_EXPECTATION_FAILED = 417;
219
+ export declare const HTTP_STATUS_TEAPOT = 418;
220
+ export declare const HTTP_STATUS_MISDIRECTED_REQUEST = 421;
221
+ export declare const HTTP_STATUS_UNPROCESSABLE_ENTITY = 422;
222
+ export declare const HTTP_STATUS_LOCKED = 423;
223
+ export declare const HTTP_STATUS_FAILED_DEPENDENCY = 424;
224
+ export declare const HTTP_STATUS_TOO_EARLY = 425;
225
+ export declare const HTTP_STATUS_UPGRADE_REQUIRED = 426;
226
+ export declare const HTTP_STATUS_PRECONDITION_REQUIRED = 428;
227
+ export declare const HTTP_STATUS_TOO_MANY_REQUESTS = 429;
228
+ export declare const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = 431;
229
+ export declare const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS = 451;
230
+ export declare const HTTP_STATUS_INTERNAL_SERVER_ERROR = 500;
231
+ export declare const HTTP_STATUS_NOT_IMPLEMENTED = 501;
232
+ export declare const HTTP_STATUS_BAD_GATEWAY = 502;
233
+ export declare const HTTP_STATUS_SERVICE_UNAVAILABLE = 503;
234
+ export declare const HTTP_STATUS_GATEWAY_TIMEOUT = 504;
235
+ export declare const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED = 505;
236
+ export declare const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES = 506;
237
+ export declare const HTTP_STATUS_INSUFFICIENT_STORAGE = 507;
238
+ export declare const HTTP_STATUS_LOOP_DETECTED = 508;
239
+ export declare const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED = 509;
240
+ export declare const HTTP_STATUS_NOT_EXTENDED = 510;
241
+ export declare const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED = 511;