@capsule-run/sdk 0.8.4 → 0.8.5

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 (321) hide show
  1. package/dist/polyfills/unenv-runtime/_internal/types.d.mts +5 -0
  2. package/dist/polyfills/unenv-runtime/_internal/types.mjs +1 -0
  3. package/dist/polyfills/unenv-runtime/_internal/utils.d.mts +14 -0
  4. package/dist/polyfills/unenv-runtime/_internal/utils.mjs +49 -0
  5. package/dist/polyfills/unenv-runtime/mock/empty.d.mts +2 -0
  6. package/dist/polyfills/unenv-runtime/mock/empty.mjs +1 -0
  7. package/dist/polyfills/unenv-runtime/mock/noop.d.mts +2 -0
  8. package/dist/polyfills/unenv-runtime/mock/noop.mjs +1 -0
  9. package/dist/polyfills/unenv-runtime/mock/proxy.d.mts +2 -0
  10. package/dist/polyfills/unenv-runtime/mock/proxy.mjs +43 -0
  11. package/dist/polyfills/unenv-runtime/node/assert/strict.d.mts +4 -0
  12. package/dist/polyfills/unenv-runtime/node/assert/strict.mjs +25 -0
  13. package/dist/polyfills/unenv-runtime/node/assert.d.mts +165 -0
  14. package/dist/polyfills/unenv-runtime/node/assert.mjs +737 -0
  15. package/dist/polyfills/unenv-runtime/node/async_hooks.d.mts +5 -0
  16. package/dist/polyfills/unenv-runtime/node/async_hooks.mjs +15 -0
  17. package/dist/polyfills/unenv-runtime/node/buffer.d.mts +19 -0
  18. package/dist/polyfills/unenv-runtime/node/buffer.mjs +35 -0
  19. package/dist/polyfills/unenv-runtime/node/child_process.d.mts +12 -0
  20. package/dist/polyfills/unenv-runtime/node/child_process.mjs +21 -0
  21. package/dist/polyfills/unenv-runtime/node/cluster.d.mts +33 -0
  22. package/dist/polyfills/unenv-runtime/node/cluster.mjs +71 -0
  23. package/dist/polyfills/unenv-runtime/node/console.d.mts +38 -0
  24. package/dist/polyfills/unenv-runtime/node/console.mjs +74 -0
  25. package/dist/polyfills/unenv-runtime/node/constants.d.mts +13 -0
  26. package/dist/polyfills/unenv-runtime/node/constants.mjs +254 -0
  27. package/dist/polyfills/unenv-runtime/node/crypto.d.mts +6 -0
  28. package/dist/polyfills/unenv-runtime/node/crypto.mjs +138 -0
  29. package/dist/polyfills/unenv-runtime/node/dgram.d.mts +6 -0
  30. package/dist/polyfills/unenv-runtime/node/dgram.mjs +12 -0
  31. package/dist/polyfills/unenv-runtime/node/diagnostics_channel.d.mts +11 -0
  32. package/dist/polyfills/unenv-runtime/node/diagnostics_channel.mjs +34 -0
  33. package/dist/polyfills/unenv-runtime/node/dns/promises.d.mts +27 -0
  34. package/dist/polyfills/unenv-runtime/node/dns/promises.mjs +75 -0
  35. package/dist/polyfills/unenv-runtime/node/dns.d.mts +29 -0
  36. package/dist/polyfills/unenv-runtime/node/dns.mjs +81 -0
  37. package/dist/polyfills/unenv-runtime/node/domain.d.mts +8 -0
  38. package/dist/polyfills/unenv-runtime/node/domain.mjs +16 -0
  39. package/dist/polyfills/unenv-runtime/node/events.d.mts +13 -0
  40. package/dist/polyfills/unenv-runtime/node/events.mjs +12 -0
  41. package/dist/polyfills/unenv-runtime/node/fs/promises.d.mts +7 -0
  42. package/dist/polyfills/unenv-runtime/node/fs/promises.mjs +38 -0
  43. package/dist/polyfills/unenv-runtime/node/fs.d.mts +10 -0
  44. package/dist/polyfills/unenv-runtime/node/fs.mjs +117 -0
  45. package/dist/polyfills/unenv-runtime/node/http.d.mts +23 -0
  46. package/dist/polyfills/unenv-runtime/node/http.mjs +45 -0
  47. package/dist/polyfills/unenv-runtime/node/http2.d.mts +15 -0
  48. package/dist/polyfills/unenv-runtime/node/http2.mjs +284 -0
  49. package/dist/polyfills/unenv-runtime/node/https.d.mts +10 -0
  50. package/dist/polyfills/unenv-runtime/node/https.mjs +16 -0
  51. package/dist/polyfills/unenv-runtime/node/inspector/promises.d.mts +10 -0
  52. package/dist/polyfills/unenv-runtime/node/inspector/promises.mjs +40 -0
  53. package/dist/polyfills/unenv-runtime/node/inspector.d.mts +12 -0
  54. package/dist/polyfills/unenv-runtime/node/inspector.mjs +53 -0
  55. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-hook.d.mts +7 -0
  56. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-hook.mjs +115 -0
  57. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-local-storage.d.mts +2 -0
  58. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-local-storage.mjs +36 -0
  59. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-resource.d.mts +2 -0
  60. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-resource.mjs +37 -0
  61. package/dist/polyfills/unenv-runtime/node/internal/buffer/base64.d.mts +4 -0
  62. package/dist/polyfills/unenv-runtime/node/internal/buffer/base64.mjs +97 -0
  63. package/dist/polyfills/unenv-runtime/node/internal/buffer/buffer.d.mts +13 -0
  64. package/dist/polyfills/unenv-runtime/node/internal/buffer/buffer.mjs +1846 -0
  65. package/dist/polyfills/unenv-runtime/node/internal/buffer/file.d.mts +14 -0
  66. package/dist/polyfills/unenv-runtime/node/internal/buffer/file.mjs +26 -0
  67. package/dist/polyfills/unenv-runtime/node/internal/buffer/ieee754.d.mts +4 -0
  68. package/dist/polyfills/unenv-runtime/node/internal/buffer/ieee754.mjs +89 -0
  69. package/dist/polyfills/unenv-runtime/node/internal/crypto/constants.d.mts +58 -0
  70. package/dist/polyfills/unenv-runtime/node/internal/crypto/constants.mjs +58 -0
  71. package/dist/polyfills/unenv-runtime/node/internal/crypto/node.d.mts +78 -0
  72. package/dist/polyfills/unenv-runtime/node/internal/crypto/node.mjs +110 -0
  73. package/dist/polyfills/unenv-runtime/node/internal/crypto/web.d.mts +5 -0
  74. package/dist/polyfills/unenv-runtime/node/internal/crypto/web.mjs +9 -0
  75. package/dist/polyfills/unenv-runtime/node/internal/dgram/socket.d.mts +31 -0
  76. package/dist/polyfills/unenv-runtime/node/internal/dgram/socket.mjs +61 -0
  77. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/channel.d.mts +18 -0
  78. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/channel.mjs +40 -0
  79. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/tracing-channel.d.mts +19 -0
  80. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/tracing-channel.mjs +48 -0
  81. package/dist/polyfills/unenv-runtime/node/internal/dns/constants.d.mts +28 -0
  82. package/dist/polyfills/unenv-runtime/node/internal/dns/constants.mjs +28 -0
  83. package/dist/polyfills/unenv-runtime/node/internal/domain/domain.d.mts +13 -0
  84. package/dist/polyfills/unenv-runtime/node/internal/domain/domain.mjs +19 -0
  85. package/dist/polyfills/unenv-runtime/node/internal/events/events.d.mts +207 -0
  86. package/dist/polyfills/unenv-runtime/node/internal/events/events.mjs +1097 -0
  87. package/dist/polyfills/unenv-runtime/node/internal/fs/classes.d.mts +8 -0
  88. package/dist/polyfills/unenv-runtime/node/internal/fs/classes.mjs +8 -0
  89. package/dist/polyfills/unenv-runtime/node/internal/fs/constants.d.mts +59 -0
  90. package/dist/polyfills/unenv-runtime/node/internal/fs/constants.mjs +59 -0
  91. package/dist/polyfills/unenv-runtime/node/internal/fs/fs.d.mts +96 -0
  92. package/dist/polyfills/unenv-runtime/node/internal/fs/fs.mjs +106 -0
  93. package/dist/polyfills/unenv-runtime/node/internal/fs/promises.d.mts +32 -0
  94. package/dist/polyfills/unenv-runtime/node/internal/fs/promises.mjs +32 -0
  95. package/dist/polyfills/unenv-runtime/node/internal/http/agent.d.mts +14 -0
  96. package/dist/polyfills/unenv-runtime/node/internal/http/agent.mjs +16 -0
  97. package/dist/polyfills/unenv-runtime/node/internal/http/constants.d.mts +67 -0
  98. package/dist/polyfills/unenv-runtime/node/internal/http/constants.mjs +103 -0
  99. package/dist/polyfills/unenv-runtime/node/internal/http/request.d.mts +31 -0
  100. package/dist/polyfills/unenv-runtime/node/internal/http/request.mjs +53 -0
  101. package/dist/polyfills/unenv-runtime/node/internal/http/response.d.mts +42 -0
  102. package/dist/polyfills/unenv-runtime/node/internal/http/response.mjs +101 -0
  103. package/dist/polyfills/unenv-runtime/node/internal/http2/constants.d.mts +241 -0
  104. package/dist/polyfills/unenv-runtime/node/internal/http2/constants.mjs +241 -0
  105. package/dist/polyfills/unenv-runtime/node/internal/net/server.d.mts +17 -0
  106. package/dist/polyfills/unenv-runtime/node/internal/net/server.mjs +33 -0
  107. package/dist/polyfills/unenv-runtime/node/internal/net/socket.d.mts +45 -0
  108. package/dist/polyfills/unenv-runtime/node/internal/net/socket.mjs +83 -0
  109. package/dist/polyfills/unenv-runtime/node/internal/os/constants.d.mts +133 -0
  110. package/dist/polyfills/unenv-runtime/node/internal/os/constants.mjs +133 -0
  111. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/constants.d.mts +25 -0
  112. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/constants.mjs +25 -0
  113. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/histogram.d.mts +28 -0
  114. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/histogram.mjs +43 -0
  115. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/performance.d.mts +103 -0
  116. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/performance.mjs +232 -0
  117. package/dist/polyfills/unenv-runtime/node/internal/process/env.d.mts +1 -0
  118. package/dist/polyfills/unenv-runtime/node/internal/process/env.mjs +40 -0
  119. package/dist/polyfills/unenv-runtime/node/internal/process/hrtime.d.mts +2 -0
  120. package/dist/polyfills/unenv-runtime/node/internal/process/hrtime.mjs +21 -0
  121. package/dist/polyfills/unenv-runtime/node/internal/process/nexttick.d.mts +3 -0
  122. package/dist/polyfills/unenv-runtime/node/internal/process/nexttick.mjs +55 -0
  123. package/dist/polyfills/unenv-runtime/node/internal/process/node-version.d.mts +2 -0
  124. package/dist/polyfills/unenv-runtime/node/internal/process/node-version.mjs +2 -0
  125. package/dist/polyfills/unenv-runtime/node/internal/process/process.d.mts +113 -0
  126. package/dist/polyfills/unenv-runtime/node/internal/process/process.mjs +238 -0
  127. package/dist/polyfills/unenv-runtime/node/internal/punycode/punycode.d.mts +59 -0
  128. package/dist/polyfills/unenv-runtime/node/internal/punycode/punycode.mjs +410 -0
  129. package/dist/polyfills/unenv-runtime/node/internal/querystring/querystring.d.mts +11 -0
  130. package/dist/polyfills/unenv-runtime/node/internal/querystring/querystring.mjs +320 -0
  131. package/dist/polyfills/unenv-runtime/node/internal/readline/interface.d.mts +20 -0
  132. package/dist/polyfills/unenv-runtime/node/internal/readline/interface.mjs +31 -0
  133. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/interface.d.mts +7 -0
  134. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/interface.mjs +6 -0
  135. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/readline.d.mts +10 -0
  136. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/readline.mjs +20 -0
  137. package/dist/polyfills/unenv-runtime/node/internal/stream/duplex.d.mts +3 -0
  138. package/dist/polyfills/unenv-runtime/node/internal/stream/duplex.mjs +19 -0
  139. package/dist/polyfills/unenv-runtime/node/internal/stream/readable.d.mts +67 -0
  140. package/dist/polyfills/unenv-runtime/node/internal/stream/readable.mjs +112 -0
  141. package/dist/polyfills/unenv-runtime/node/internal/stream/transform.d.mts +10 -0
  142. package/dist/polyfills/unenv-runtime/node/internal/stream/transform.mjs +9 -0
  143. package/dist/polyfills/unenv-runtime/node/internal/stream/writable.d.mts +2 -0
  144. package/dist/polyfills/unenv-runtime/node/internal/stream/writable.mjs +87 -0
  145. package/dist/polyfills/unenv-runtime/node/internal/timers/immediate.d.mts +9 -0
  146. package/dist/polyfills/unenv-runtime/node/internal/timers/immediate.mjs +28 -0
  147. package/dist/polyfills/unenv-runtime/node/internal/timers/scheduler.d.mts +6 -0
  148. package/dist/polyfills/unenv-runtime/node/internal/timers/scheduler.mjs +10 -0
  149. package/dist/polyfills/unenv-runtime/node/internal/timers/set-immediate.d.mts +3 -0
  150. package/dist/polyfills/unenv-runtime/node/internal/timers/set-immediate.mjs +13 -0
  151. package/dist/polyfills/unenv-runtime/node/internal/timers/set-interval.d.mts +2 -0
  152. package/dist/polyfills/unenv-runtime/node/internal/timers/set-interval.mjs +8 -0
  153. package/dist/polyfills/unenv-runtime/node/internal/timers/set-timeout.d.mts +3 -0
  154. package/dist/polyfills/unenv-runtime/node/internal/timers/set-timeout.mjs +11 -0
  155. package/dist/polyfills/unenv-runtime/node/internal/timers/timeout.d.mts +11 -0
  156. package/dist/polyfills/unenv-runtime/node/internal/timers/timeout.mjs +30 -0
  157. package/dist/polyfills/unenv-runtime/node/internal/tls/constants.d.mts +7 -0
  158. package/dist/polyfills/unenv-runtime/node/internal/tls/constants.mjs +7 -0
  159. package/dist/polyfills/unenv-runtime/node/internal/tls/secure-context.d.mts +4 -0
  160. package/dist/polyfills/unenv-runtime/node/internal/tls/secure-context.mjs +3 -0
  161. package/dist/polyfills/unenv-runtime/node/internal/tls/server.d.mts +9 -0
  162. package/dist/polyfills/unenv-runtime/node/internal/tls/server.mjs +15 -0
  163. package/dist/polyfills/unenv-runtime/node/internal/tls/tls-socket.d.mts +31 -0
  164. package/dist/polyfills/unenv-runtime/node/internal/tls/tls-socket.mjs +48 -0
  165. package/dist/polyfills/unenv-runtime/node/internal/trace_events/tracing.d.mts +7 -0
  166. package/dist/polyfills/unenv-runtime/node/internal/trace_events/tracing.mjs +10 -0
  167. package/dist/polyfills/unenv-runtime/node/internal/tty/read-stream.d.mts +8 -0
  168. package/dist/polyfills/unenv-runtime/node/internal/tty/read-stream.mjs +12 -0
  169. package/dist/polyfills/unenv-runtime/node/internal/tty/write-stream.d.mts +20 -0
  170. package/dist/polyfills/unenv-runtime/node/internal/tty/write-stream.mjs +44 -0
  171. package/dist/polyfills/unenv-runtime/node/internal/url/constants.d.mts +44 -0
  172. package/dist/polyfills/unenv-runtime/node/internal/url/constants.mjs +44 -0
  173. package/dist/polyfills/unenv-runtime/node/internal/url/errors.d.mts +26 -0
  174. package/dist/polyfills/unenv-runtime/node/internal/url/errors.mjs +54 -0
  175. package/dist/polyfills/unenv-runtime/node/internal/url/url.d.mts +22 -0
  176. package/dist/polyfills/unenv-runtime/node/internal/url/url.mjs +181 -0
  177. package/dist/polyfills/unenv-runtime/node/internal/url/util.d.mts +4 -0
  178. package/dist/polyfills/unenv-runtime/node/internal/url/util.mjs +7 -0
  179. package/dist/polyfills/unenv-runtime/node/internal/util/inherits.d.mts +1 -0
  180. package/dist/polyfills/unenv-runtime/node/internal/util/inherits.mjs +12 -0
  181. package/dist/polyfills/unenv-runtime/node/internal/util/legacy-types.d.mts +19 -0
  182. package/dist/polyfills/unenv-runtime/node/internal/util/legacy-types.mjs +25 -0
  183. package/dist/polyfills/unenv-runtime/node/internal/util/log.d.mts +8 -0
  184. package/dist/polyfills/unenv-runtime/node/internal/util/log.mjs +55 -0
  185. package/dist/polyfills/unenv-runtime/node/internal/util/mime.d.mts +19 -0
  186. package/dist/polyfills/unenv-runtime/node/internal/util/mime.mjs +35 -0
  187. package/dist/polyfills/unenv-runtime/node/internal/util/promisify.d.mts +3 -0
  188. package/dist/polyfills/unenv-runtime/node/internal/util/promisify.mjs +23 -0
  189. package/dist/polyfills/unenv-runtime/node/internal/util/types.d.mts +45 -0
  190. package/dist/polyfills/unenv-runtime/node/internal/util/types.mjs +45 -0
  191. package/dist/polyfills/unenv-runtime/node/internal/v8/deserializer.d.mts +12 -0
  192. package/dist/polyfills/unenv-runtime/node/internal/v8/deserializer.mjs +23 -0
  193. package/dist/polyfills/unenv-runtime/node/internal/v8/profiler.d.mts +10 -0
  194. package/dist/polyfills/unenv-runtime/node/internal/v8/profiler.mjs +11 -0
  195. package/dist/polyfills/unenv-runtime/node/internal/v8/serializer.d.mts +12 -0
  196. package/dist/polyfills/unenv-runtime/node/internal/v8/serializer.mjs +15 -0
  197. package/dist/polyfills/unenv-runtime/node/internal/vm/constants.d.mts +2 -0
  198. package/dist/polyfills/unenv-runtime/node/internal/vm/constants.mjs +2 -0
  199. package/dist/polyfills/unenv-runtime/node/internal/vm/script.d.mts +7 -0
  200. package/dist/polyfills/unenv-runtime/node/internal/vm/script.mjs +15 -0
  201. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/broadcast-channel.d.mts +10 -0
  202. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/broadcast-channel.mjs +13 -0
  203. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-channel.d.mts +5 -0
  204. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-channel.mjs +5 -0
  205. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-port.d.mts +12 -0
  206. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-port.mjs +17 -0
  207. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/worker.d.mts +21 -0
  208. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/worker.mjs +25 -0
  209. package/dist/polyfills/unenv-runtime/node/internal/zlib/codes.d.mts +21 -0
  210. package/dist/polyfills/unenv-runtime/node/internal/zlib/codes.mjs +21 -0
  211. package/dist/polyfills/unenv-runtime/node/internal/zlib/constants.d.mts +108 -0
  212. package/dist/polyfills/unenv-runtime/node/internal/zlib/constants.mjs +108 -0
  213. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/_shared.d.mts +22 -0
  214. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/_shared.mjs +40 -0
  215. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/brotli.d.mts +16 -0
  216. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/brotli.mjs +16 -0
  217. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/deflate.d.mts +29 -0
  218. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/deflate.mjs +36 -0
  219. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/gzip.d.mts +16 -0
  220. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/gzip.mjs +16 -0
  221. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/zip.d.mts +9 -0
  222. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/zip.mjs +9 -0
  223. package/dist/polyfills/unenv-runtime/node/module.d.mts +54 -0
  224. package/dist/polyfills/unenv-runtime/node/module.mjs +191 -0
  225. package/dist/polyfills/unenv-runtime/node/net.d.mts +22 -0
  226. package/dist/polyfills/unenv-runtime/node/net.mjs +52 -0
  227. package/dist/polyfills/unenv-runtime/node/os.d.mts +26 -0
  228. package/dist/polyfills/unenv-runtime/node/os.mjs +118 -0
  229. package/dist/polyfills/unenv-runtime/node/path/posix.d.mts +2 -0
  230. package/dist/polyfills/unenv-runtime/node/path/posix.mjs +2 -0
  231. package/dist/polyfills/unenv-runtime/node/path/win32.d.mts +2 -0
  232. package/dist/polyfills/unenv-runtime/node/path/win32.mjs +2 -0
  233. package/dist/polyfills/unenv-runtime/node/path.d.mts +12 -0
  234. package/dist/polyfills/unenv-runtime/node/path.mjs +31 -0
  235. package/dist/polyfills/unenv-runtime/node/perf_hooks.d.mts +8 -0
  236. package/dist/polyfills/unenv-runtime/node/perf_hooks.mjs +51 -0
  237. package/dist/polyfills/unenv-runtime/node/process.d.mts +3 -0
  238. package/dist/polyfills/unenv-runtime/node/process.mjs +12 -0
  239. package/dist/polyfills/unenv-runtime/node/punycode.d.mts +3 -0
  240. package/dist/polyfills/unenv-runtime/node/punycode.mjs +3 -0
  241. package/dist/polyfills/unenv-runtime/node/querystring.d.mts +49 -0
  242. package/dist/polyfills/unenv-runtime/node/querystring.mjs +766 -0
  243. package/dist/polyfills/unenv-runtime/node/readline/promises.d.mts +6 -0
  244. package/dist/polyfills/unenv-runtime/node/readline/promises.mjs +10 -0
  245. package/dist/polyfills/unenv-runtime/node/readline.d.mts +13 -0
  246. package/dist/polyfills/unenv-runtime/node/readline.mjs +21 -0
  247. package/dist/polyfills/unenv-runtime/node/repl.d.mts +10 -0
  248. package/dist/polyfills/unenv-runtime/node/repl.mjs +20 -0
  249. package/dist/polyfills/unenv-runtime/node/sqlite.d.mts +6 -0
  250. package/dist/polyfills/unenv-runtime/node/sqlite.mjs +9 -0
  251. package/dist/polyfills/unenv-runtime/node/stream/consumers.d.mts +7 -0
  252. package/dist/polyfills/unenv-runtime/node/stream/consumers.mjs +13 -0
  253. package/dist/polyfills/unenv-runtime/node/stream/promises.d.mts +4 -0
  254. package/dist/polyfills/unenv-runtime/node/stream/promises.mjs +7 -0
  255. package/dist/polyfills/unenv-runtime/node/stream/web.d.mts +24 -0
  256. package/dist/polyfills/unenv-runtime/node/stream/web.mjs +41 -0
  257. package/dist/polyfills/unenv-runtime/node/stream.d.mts +42 -0
  258. package/dist/polyfills/unenv-runtime/node/stream.mjs +54 -0
  259. package/dist/polyfills/unenv-runtime/node/string_decoder.d.mts +5 -0
  260. package/dist/polyfills/unenv-runtime/node/string_decoder.mjs +3 -0
  261. package/dist/polyfills/unenv-runtime/node/sys.d.mts +2 -0
  262. package/dist/polyfills/unenv-runtime/node/sys.mjs +2 -0
  263. package/dist/polyfills/unenv-runtime/node/timers/promises.d.mts +6 -0
  264. package/dist/polyfills/unenv-runtime/node/timers/promises.mjs +14 -0
  265. package/dist/polyfills/unenv-runtime/node/timers.d.mts +15 -0
  266. package/dist/polyfills/unenv-runtime/node/timers.mjs +32 -0
  267. package/dist/polyfills/unenv-runtime/node/tls.d.mts +15 -0
  268. package/dist/polyfills/unenv-runtime/node/tls.mjs +41 -0
  269. package/dist/polyfills/unenv-runtime/node/trace_events.d.mts +5 -0
  270. package/dist/polyfills/unenv-runtime/node/trace_events.mjs +9 -0
  271. package/dist/polyfills/unenv-runtime/node/tty.d.mts +9 -0
  272. package/dist/polyfills/unenv-runtime/node/tty.mjs +12 -0
  273. package/dist/polyfills/unenv-runtime/node/url.d.mts +61 -0
  274. package/dist/polyfills/unenv-runtime/node/url.mjs +1044 -0
  275. package/dist/polyfills/unenv-runtime/node/util/types.d.mts +3 -0
  276. package/dist/polyfills/unenv-runtime/node/util/types.mjs +3 -0
  277. package/dist/polyfills/unenv-runtime/node/util.d.mts +32 -0
  278. package/dist/polyfills/unenv-runtime/node/util.mjs +84 -0
  279. package/dist/polyfills/unenv-runtime/node/v8.d.mts +29 -0
  280. package/dist/polyfills/unenv-runtime/node/v8.mjs +108 -0
  281. package/dist/polyfills/unenv-runtime/node/vm.d.mts +15 -0
  282. package/dist/polyfills/unenv-runtime/node/vm.mjs +41 -0
  283. package/dist/polyfills/unenv-runtime/node/wasi.d.mts +4 -0
  284. package/dist/polyfills/unenv-runtime/node/wasi.mjs +3 -0
  285. package/dist/polyfills/unenv-runtime/node/worker_threads.d.mts +23 -0
  286. package/dist/polyfills/unenv-runtime/node/worker_threads.mjs +55 -0
  287. package/dist/polyfills/unenv-runtime/node/zlib.d.mts +16 -0
  288. package/dist/polyfills/unenv-runtime/node/zlib.mjs +212 -0
  289. package/dist/polyfills/unenv-runtime/npm/cross-fetch.d.mts +6 -0
  290. package/dist/polyfills/unenv-runtime/npm/cross-fetch.mjs +6 -0
  291. package/dist/polyfills/unenv-runtime/npm/debug.d.mts +15 -0
  292. package/dist/polyfills/unenv-runtime/npm/debug.mjs +43 -0
  293. package/dist/polyfills/unenv-runtime/npm/fsevents.d.mts +16 -0
  294. package/dist/polyfills/unenv-runtime/npm/fsevents.mjs +20 -0
  295. package/dist/polyfills/unenv-runtime/npm/inherits.d.mts +2 -0
  296. package/dist/polyfills/unenv-runtime/npm/inherits.mjs +2 -0
  297. package/dist/polyfills/unenv-runtime/npm/node-fetch.d.mts +12 -0
  298. package/dist/polyfills/unenv-runtime/npm/node-fetch.mjs +23 -0
  299. package/dist/polyfills/unenv-runtime/npm/whatwg-url/index.d.mts +13 -0
  300. package/dist/polyfills/unenv-runtime/npm/whatwg-url/index.mjs +15 -0
  301. package/dist/polyfills/unenv-runtime/npm/whatwg-url/webidl2js-wrapper.d.mts +2 -0
  302. package/dist/polyfills/unenv-runtime/npm/whatwg-url/webidl2js-wrapper.mjs +2 -0
  303. package/dist/polyfills/unenv-runtime/polyfill/buffer.d.mts +1 -0
  304. package/dist/polyfills/unenv-runtime/polyfill/buffer.mjs +4 -0
  305. package/dist/polyfills/unenv-runtime/polyfill/globalthis-global.d.mts +1 -0
  306. package/dist/polyfills/unenv-runtime/polyfill/globalthis-global.mjs +5 -0
  307. package/dist/polyfills/unenv-runtime/polyfill/globalthis.d.mts +2 -0
  308. package/dist/polyfills/unenv-runtime/polyfill/globalthis.mjs +2 -0
  309. package/dist/polyfills/unenv-runtime/polyfill/package.json +3 -0
  310. package/dist/polyfills/unenv-runtime/polyfill/performance.d.mts +2 -0
  311. package/dist/polyfills/unenv-runtime/polyfill/performance.mjs +10 -0
  312. package/dist/polyfills/unenv-runtime/polyfill/process.d.mts +2 -0
  313. package/dist/polyfills/unenv-runtime/polyfill/process.mjs +10 -0
  314. package/dist/polyfills/unenv-runtime/polyfill/source-maps.mjs +15 -0
  315. package/dist/polyfills/unenv-runtime/polyfill/timers.d.mts +1 -0
  316. package/dist/polyfills/unenv-runtime/polyfill/timers.mjs +7 -0
  317. package/dist/polyfills/unenv-runtime/web/performance/_polyfills.d.mts +100 -0
  318. package/dist/polyfills/unenv-runtime/web/performance/_polyfills.mjs +184 -0
  319. package/dist/polyfills/unenv-runtime/web/performance/index.d.mts +12 -0
  320. package/dist/polyfills/unenv-runtime/web/performance/index.mjs +14 -0
  321. package/package.json +2 -2
@@ -0,0 +1,48 @@
1
+ import { createNotImplementedError } from "../../../_internal/utils.mjs";
2
+ import { Channel } from "./channel.mjs";
3
+ export class TracingChannel {
4
+ __unenv__ = true;
5
+ asyncEnd = new Channel("asyncEnd");
6
+ asyncStart = new Channel("asyncStart");
7
+ end = new Channel("end");
8
+ error = new Channel("error");
9
+ start = new Channel("start");
10
+ constructor(nameOrChannels) {
11
+ if (typeof nameOrChannels === "string") {
12
+ this.asyncEnd = new Channel(`trace:${nameOrChannels}:asyncEnd`);
13
+ this.asyncStart = new Channel(`trace:${nameOrChannels}:asyncStart`);
14
+ this.end = new Channel(`trace:${nameOrChannels}:end`);
15
+ this.error = new Channel(`trace:${nameOrChannels}:error`);
16
+ this.start = new Channel(`trace:${nameOrChannels}:start`);
17
+ } else {
18
+ this.asyncStart = nameOrChannels.asyncStart;
19
+ this.asyncEnd = nameOrChannels.asyncEnd;
20
+ this.end = nameOrChannels.end;
21
+ this.error = nameOrChannels.error;
22
+ this.start = nameOrChannels.start;
23
+ }
24
+ }
25
+ subscribe(handlers) {
26
+ this.asyncEnd?.subscribe(handlers.asyncEnd);
27
+ this.asyncStart?.subscribe(handlers.asyncStart);
28
+ this.end?.subscribe(handlers.end);
29
+ this.error?.subscribe(handlers.error);
30
+ this.start?.subscribe(handlers.start);
31
+ }
32
+ unsubscribe(handlers) {
33
+ this.asyncEnd?.unsubscribe(handlers.asyncEnd);
34
+ this.asyncStart?.unsubscribe(handlers.asyncStart);
35
+ this.end?.unsubscribe(handlers.end);
36
+ this.error?.unsubscribe(handlers.error);
37
+ this.start?.unsubscribe(handlers.start);
38
+ }
39
+ traceSync() {
40
+ throw createNotImplementedError("TracingChannel.traceSync");
41
+ }
42
+ tracePromise() {
43
+ throw createNotImplementedError("TracingChannel.tracePromise");
44
+ }
45
+ traceCallback() {
46
+ throw createNotImplementedError("TracingChannel.traceCallback");
47
+ }
48
+ }
@@ -0,0 +1,28 @@
1
+ // npx -y node@22.14 -e 'const dns=require("dns");console.log(Object.entries(dns).filter(e => ["string", "number"].includes(typeof e[1])).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
2
+ export declare const ADDRCONFIG = 1024;
3
+ export declare const ALL = 256;
4
+ export declare const V4MAPPED = 2048;
5
+ export declare const NODATA = "ENODATA";
6
+ export declare const FORMERR = "EFORMERR";
7
+ export declare const SERVFAIL = "ESERVFAIL";
8
+ export declare const NOTFOUND = "ENOTFOUND";
9
+ export declare const NOTIMP = "ENOTIMP";
10
+ export declare const REFUSED = "EREFUSED";
11
+ export declare const BADQUERY = "EBADQUERY";
12
+ export declare const BADNAME = "EBADNAME";
13
+ export declare const BADFAMILY = "EBADFAMILY";
14
+ export declare const BADRESP = "EBADRESP";
15
+ export declare const CONNREFUSED = "ECONNREFUSED";
16
+ export declare const TIMEOUT = "ETIMEOUT";
17
+ export declare const EOF = "EOF";
18
+ export declare const FILE = "EFILE";
19
+ export declare const NOMEM = "ENOMEM";
20
+ export declare const DESTRUCTION = "EDESTRUCTION";
21
+ export declare const BADSTR = "EBADSTR";
22
+ export declare const BADFLAGS = "EBADFLAGS";
23
+ export declare const NONAME = "ENONAME";
24
+ export declare const BADHINTS = "EBADHINTS";
25
+ export declare const NOTINITIALIZED = "ENOTINITIALIZED";
26
+ export declare const LOADIPHLPAPI = "ELOADIPHLPAPI";
27
+ export declare const ADDRGETNETWORKPARAMS = "EADDRGETNETWORKPARAMS";
28
+ export declare const CANCELLED = "ECANCELLED";
@@ -0,0 +1,28 @@
1
+ // npx -y node@22.14 -e 'const dns=require("dns");console.log(Object.entries(dns).filter(e => ["string", "number"].includes(typeof e[1])).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
2
+ export const ADDRCONFIG = 1024;
3
+ export const ALL = 256;
4
+ export const V4MAPPED = 2048;
5
+ export const NODATA = "ENODATA";
6
+ export const FORMERR = "EFORMERR";
7
+ export const SERVFAIL = "ESERVFAIL";
8
+ export const NOTFOUND = "ENOTFOUND";
9
+ export const NOTIMP = "ENOTIMP";
10
+ export const REFUSED = "EREFUSED";
11
+ export const BADQUERY = "EBADQUERY";
12
+ export const BADNAME = "EBADNAME";
13
+ export const BADFAMILY = "EBADFAMILY";
14
+ export const BADRESP = "EBADRESP";
15
+ export const CONNREFUSED = "ECONNREFUSED";
16
+ export const TIMEOUT = "ETIMEOUT";
17
+ export const EOF = "EOF";
18
+ export const FILE = "EFILE";
19
+ export const NOMEM = "ENOMEM";
20
+ export const DESTRUCTION = "EDESTRUCTION";
21
+ export const BADSTR = "EBADSTR";
22
+ export const BADFLAGS = "EBADFLAGS";
23
+ export const NONAME = "ENONAME";
24
+ export const BADHINTS = "EBADHINTS";
25
+ export const NOTINITIALIZED = "ENOTINITIALIZED";
26
+ export const LOADIPHLPAPI = "ELOADIPHLPAPI";
27
+ export const ADDRGETNETWORKPARAMS = "EADDRGETNETWORKPARAMS";
28
+ export const CANCELLED = "ECANCELLED";
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from "node:events";
2
+ import type nodeDomain from "node:domain";
3
+ export declare class Domain extends EventEmitter implements nodeDomain.Domain {
4
+ readonly __unenv__: true;
5
+ members: unknown;
6
+ add();
7
+ enter();
8
+ exit();
9
+ remove();
10
+ bind<T>(callback: T): T;
11
+ intercept<T>(callback: T): T;
12
+ run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
13
+ }
@@ -0,0 +1,19 @@
1
+ import { createNotImplementedError } from "../../../_internal/utils.mjs";
2
+ import { EventEmitter } from "node:events";
3
+ export class Domain extends EventEmitter {
4
+ __unenv__ = true;
5
+ members = [];
6
+ add() {}
7
+ enter() {}
8
+ exit() {}
9
+ remove() {}
10
+ bind(callback) {
11
+ throw createNotImplementedError("Domain.bind");
12
+ }
13
+ intercept(callback) {
14
+ throw createNotImplementedError("Domain.intercept");
15
+ }
16
+ run(fn, ...args) {
17
+ throw createNotImplementedError("Domain.run");
18
+ }
19
+ }
@@ -0,0 +1,207 @@
1
+ // Copyright Joyent, Inc. and other Node contributors.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a
4
+ // copy of this software and associated documentation files (the
5
+ // "Software"), to deal in the Software without restriction, including
6
+ // without limitation the rights to use, copy, modify, merge, publish,
7
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
8
+ // persons to whom the Software is furnished to do so, subject to the
9
+ // following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included
12
+ // in all copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+ // Based on Node.js EventEmitter implementation
22
+ // https://github.com/nodejs/node/blob/26f2cbdd59957e9a33a94ee2e0fdbeb9aadb0be6/lib/events.js
23
+ import type nodeEvents from "node:events";
24
+ import { EventEmitter as NodeEventEmitter } from "node:events";
25
+ // Types
26
+ type Listener = (...args: any[]) => void;
27
+ // ----------------------------------------------------------------------------
28
+ // EventEmitter
29
+ // ----------------------------------------------------------------------------
30
+ export declare class _EventEmitter implements NodeEventEmitter {
31
+ // Internal state
32
+ _events: any;
33
+ _eventsCount: number;
34
+ _maxListeners: number | undefined;
35
+ // Symbols
36
+ static captureRejectionSymbol;
37
+ static errorMonitor;
38
+ static kMaxEventTargetListeners;
39
+ static kMaxEventTargetListenersWarned;
40
+ // Static utils
41
+ static usingDomains: boolean;
42
+ static get on();
43
+ static get once();
44
+ static get getEventListeners();
45
+ static get getMaxListeners();
46
+ static get addAbortListener();
47
+ static get EventEmitterAsyncResource();
48
+ static get EventEmitter();
49
+ static setMaxListeners(n?, ...eventTargets: (_EventEmitter | EventTarget)[]);
50
+ static listenerCount(emitter: NodeEventEmitter, type: string);
51
+ static init();
52
+ static get captureRejections();
53
+ static set captureRejections(value);
54
+ static get defaultMaxListeners();
55
+ static set defaultMaxListeners(arg);
56
+ // Constructor
57
+ constructor(opts?: any);
58
+ /**
59
+ * Increases the max listeners of the event emitter.
60
+ * @param {number} n
61
+ * @returns {EventEmitter}
62
+ */
63
+ setMaxListeners(n: number);
64
+ /**
65
+ * Returns the current max listener value for the event emitter.
66
+ * @returns {number}
67
+ */
68
+ getMaxListeners();
69
+ /**
70
+ * Synchronously calls each of the listeners registered
71
+ * for the event.
72
+ * @param {...any} [args]
73
+ * @returns {boolean}
74
+ */
75
+ emit(type: string | symbol, ...args: any[]);
76
+ /**
77
+ * Adds a listener to the event emitter.
78
+ * @returns {EventEmitter}
79
+ */
80
+ addListener(type: string | symbol, listener: Listener);
81
+ on(type: string | symbol, listener: Listener);
82
+ /**
83
+ * Adds the `listener` function to the beginning of
84
+ * the listeners array.
85
+ */
86
+ prependListener(type: string | symbol, listener: Listener);
87
+ /**
88
+ * Adds a one-time `listener` function to the event emitter.
89
+ */
90
+ once(type: string | symbol, listener: Listener);
91
+ /**
92
+ * Adds a one-time `listener` function to the beginning of
93
+ * the listeners array.
94
+ */
95
+ prependOnceListener(type: string | symbol, listener: Listener);
96
+ /**
97
+ * Removes the specified `listener` from the listeners array.
98
+ * @param {string | symbol} type
99
+ * @param {Function} listener
100
+ * @returns {EventEmitter}
101
+ */
102
+ removeListener(type: string | symbol, listener: Listener);
103
+ off(type: string | symbol, listener: Listener);
104
+ /**
105
+ * Removes all listeners from the event emitter. (Only
106
+ * removes listeners for a specific event name if specified
107
+ * as `type`).
108
+ */
109
+ removeAllListeners(type?: string | symbol);
110
+ /**
111
+ * Returns a copy of the array of listeners for the event name
112
+ * specified as `type`.
113
+ * @param {string | symbol} type
114
+ * @returns {Function[]}
115
+ */
116
+ listeners(type: string | symbol);
117
+ /**
118
+ * Returns a copy of the array of listeners and wrappers for
119
+ * the event name specified as `type`.
120
+ * @returns {Function[]}
121
+ */
122
+ rawListeners(type: string | symbol);
123
+ /**
124
+ * Returns an array listing the events for which
125
+ * the emitter has registered listeners.
126
+ * @returns {any[]}
127
+ */
128
+ eventNames();
129
+ /**
130
+ * Returns the number of listeners listening to event name
131
+ */
132
+ listenerCount(eventName: string | symbol, listener?: Listener): number;
133
+ }
134
+ // ----------------------------------------------------------------------------
135
+ // EventEmitterAsyncResource
136
+ // ----------------------------------------------------------------------------
137
+ export declare class EventEmitterAsyncResource extends _EventEmitter {
138
+ /**
139
+ * @param {{
140
+ * name?: string,
141
+ * triggerAsyncId?: number,
142
+ * requireManualDestroy?: boolean,
143
+ * }} [options]
144
+ */
145
+ constructor(options: any);
146
+ /**
147
+ * @param {symbol,string} event
148
+ * @param {...any} args
149
+ * @returns {boolean}
150
+ */
151
+ emit(event: string | symbol, ...args: any[]): boolean;
152
+ /**
153
+ * @returns {void}
154
+ */
155
+ emitDestroy();
156
+ /**
157
+ * @type {number}
158
+ */
159
+ get asyncId();
160
+ /**
161
+ * @type {number}
162
+ */
163
+ get triggerAsyncId();
164
+ /**
165
+ * @type {EventEmitterReferencingAsyncResource}
166
+ */
167
+ get asyncResource();
168
+ }
169
+ // ----------------------------------------------------------------------------
170
+ // Exported utils
171
+ // ----------------------------------------------------------------------------
172
+ /**
173
+ * Returns an `AsyncIterator` that iterates `event` events.
174
+ * @param {EventEmitter} emitter
175
+ * @param {string | symbol} event
176
+ * @param {{
177
+ * signal: AbortSignal;
178
+ * close?: string[];
179
+ * highWaterMark?: number,
180
+ * lowWaterMark?: number
181
+ * }} [options]
182
+ * @returns {AsyncIterator}
183
+ */
184
+ export declare const on: typeof nodeEvents.on;
185
+ /**
186
+ * Creates a `Promise` that is fulfilled when the emitter
187
+ * emits the given event.
188
+ * @param {EventEmitter} emitter
189
+ * @param {string} name
190
+ * @param {{ signal: AbortSignal; }} [options]
191
+ * @returns {Promise}
192
+ */
193
+ export declare const once: typeof nodeEvents.once;
194
+ export declare const addAbortListener: typeof nodeEvents.addAbortListener;
195
+ /**
196
+ * Returns a copy of the array of listeners for the event name
197
+ * specified as `type`.
198
+ * @returns {Function[]}
199
+ */
200
+ export declare const getEventListeners: typeof nodeEvents.getEventListeners;
201
+ /**
202
+ * Returns the max listeners set.
203
+ * @param {EventEmitter | EventTarget} emitterOrTarget
204
+ * @returns {number}
205
+ */
206
+ export declare const getMaxListeners: typeof nodeEvents.getMaxListeners;
207
+ export {};