@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,113 @@
1
+ import { EventEmitter } from "node:events";
2
+ export declare class Process extends EventEmitter implements NodeJS.Process {
3
+ #private;
4
+ env: NodeJS.ProcessEnv;
5
+ hrtime: NodeJS.Process["hrtime"];
6
+ nextTick: NodeJS.Process["nextTick"];
7
+ constructor(impl: {
8
+ env: NodeJS.ProcessEnv;
9
+ hrtime: NodeJS.Process["hrtime"];
10
+ nextTick: NodeJS.Process["nextTick"];
11
+ });
12
+ // --- event emitter ---
13
+ emitWarning(warning: unknown, type?: unknown, code?: unknown): void;
14
+ emit(...args: any[]): any;
15
+ listeners(eventName: string | symbol): any;
16
+ get stdin();
17
+ get stdout();
18
+ get stderr();
19
+ chdir(cwd: string): void;
20
+ cwd(): string;
21
+ // --- dummy props and getters ---
22
+ arch: NodeJS.Architecture;
23
+ platform: NodeJS.Platform;
24
+ argv: string[];
25
+ argv0: string;
26
+ execArgv: string[];
27
+ execPath: string;
28
+ title: string;
29
+ pid: number;
30
+ ppid: number;
31
+ get version(): string;
32
+ get versions(): NodeJS.Process["versions"];
33
+ get allowedNodeEnvironmentFlags();
34
+ get sourceMapsEnabled(): boolean;
35
+ get debugPort(): number;
36
+ get throwDeprecation(): boolean;
37
+ get traceDeprecation(): boolean;
38
+ get features(): NodeJS.Process["features"];
39
+ get release(): NodeJS.Process["release"];
40
+ get connected(): boolean;
41
+ get config(): NodeJS.Process["config"];
42
+ get moduleLoadList(): unknown;
43
+ constrainedMemory(): number;
44
+ availableMemory(): number;
45
+ uptime(): number;
46
+ resourceUsage(): NodeJS.ResourceUsage;
47
+ // --- noop methods ---
48
+ ref();
49
+ unref();
50
+ // --- unimplemented methods ---
51
+ umask(): number;
52
+ getBuiltinModule(): any;
53
+ getActiveResourcesInfo(): string[];
54
+ exit(): never;
55
+ reallyExit(): never;
56
+ kill(): true;
57
+ abort(): never;
58
+ dlopen(): void;
59
+ setSourceMapsEnabled(): void;
60
+ loadEnvFile(): void;
61
+ disconnect(): void;
62
+ cpuUsage(): NodeJS.CpuUsage;
63
+ setUncaughtExceptionCaptureCallback(): void;
64
+ hasUncaughtExceptionCaptureCallback(): boolean;
65
+ initgroups(): void;
66
+ openStdin(): NodeJS.Socket;
67
+ assert();
68
+ binding();
69
+ // --- attached interfaces ---
70
+ permission: NodeJS.ProcessPermission;
71
+ report: NodeJS.ProcessReport;
72
+ finalization: NodeJS.Process["finalization"];
73
+ memoryUsage;
74
+ // --- undefined props ---
75
+ mainModule?: NodeJS.Module | undefined;
76
+ domain: undefined;
77
+ // optional
78
+ send: undefined;
79
+ exitCode: undefined;
80
+ channel: undefined;
81
+ getegid: undefined;
82
+ geteuid: undefined;
83
+ getgid: undefined;
84
+ getgroups: undefined;
85
+ getuid: undefined;
86
+ setegid: undefined;
87
+ seteuid: undefined;
88
+ setgid: undefined;
89
+ setgroups: undefined;
90
+ setuid: undefined;
91
+ // internals
92
+ _events: undefined;
93
+ _eventsCount: undefined;
94
+ _exiting: undefined;
95
+ _maxListeners: undefined;
96
+ _debugEnd: undefined;
97
+ _debugProcess: undefined;
98
+ _fatalException: undefined;
99
+ _getActiveHandles: undefined;
100
+ _getActiveRequests: undefined;
101
+ _kill: undefined;
102
+ _preload_modules: undefined;
103
+ _rawDebug: undefined;
104
+ _startProfilerIdleNotifier: undefined;
105
+ _stopProfilerIdleNotifier: undefined;
106
+ _tickCallback: undefined;
107
+ _disconnect: undefined;
108
+ _handleQueue: undefined;
109
+ _pendingMessage: undefined;
110
+ _channel: undefined;
111
+ _send: undefined;
112
+ _linkedBinding: undefined;
113
+ }
@@ -0,0 +1,238 @@
1
+ import { EventEmitter } from "node:events";
2
+ import { ReadStream, WriteStream } from "node:tty";
3
+ import { notImplemented, createNotImplementedError } from "../../../_internal/utils.mjs";
4
+ // node-version.ts is generated at build time
5
+ import { NODE_VERSION } from "./node-version.mjs";
6
+ export class Process extends EventEmitter {
7
+ env;
8
+ hrtime;
9
+ nextTick;
10
+ constructor(impl) {
11
+ super();
12
+ this.env = impl.env;
13
+ this.hrtime = impl.hrtime;
14
+ this.nextTick = impl.nextTick;
15
+ for (const prop of [...Object.getOwnPropertyNames(Process.prototype), ...Object.getOwnPropertyNames(EventEmitter.prototype)]) {
16
+ const value = this[prop];
17
+ if (typeof value === "function") {
18
+ this[prop] = value.bind(this);
19
+ }
20
+ }
21
+ }
22
+ // --- event emitter ---
23
+ emitWarning(warning, type, code) {
24
+ console.warn(`${code ? `[${code}] ` : ""}${type ? `${type}: ` : ""}${warning}`);
25
+ }
26
+ emit(...args) {
27
+ // @ts-ignore
28
+ return super.emit(...args);
29
+ }
30
+ listeners(eventName) {
31
+ return super.listeners(eventName);
32
+ }
33
+ // --- stdio (lazy initializers) ---
34
+ #stdin;
35
+ #stdout;
36
+ #stderr;
37
+ get stdin() {
38
+ return this.#stdin ??= new ReadStream(0);
39
+ }
40
+ get stdout() {
41
+ return this.#stdout ??= new WriteStream(1);
42
+ }
43
+ get stderr() {
44
+ return this.#stderr ??= new WriteStream(2);
45
+ }
46
+ // --- cwd ---
47
+ #cwd = "/";
48
+ chdir(cwd) {
49
+ this.#cwd = cwd;
50
+ }
51
+ cwd() {
52
+ return this.#cwd;
53
+ }
54
+ // --- dummy props and getters ---
55
+ arch = "";
56
+ platform = "";
57
+ argv = [];
58
+ argv0 = "";
59
+ execArgv = [];
60
+ execPath = "";
61
+ title = "";
62
+ pid = 200;
63
+ ppid = 100;
64
+ get version() {
65
+ return `v${NODE_VERSION}`;
66
+ }
67
+ get versions() {
68
+ return { node: NODE_VERSION };
69
+ }
70
+ get allowedNodeEnvironmentFlags() {
71
+ return new Set();
72
+ }
73
+ get sourceMapsEnabled() {
74
+ return false;
75
+ }
76
+ get debugPort() {
77
+ return 0;
78
+ }
79
+ get throwDeprecation() {
80
+ return false;
81
+ }
82
+ get traceDeprecation() {
83
+ return false;
84
+ }
85
+ get features() {
86
+ return {};
87
+ }
88
+ get release() {
89
+ return {};
90
+ }
91
+ get connected() {
92
+ return false;
93
+ }
94
+ get config() {
95
+ return {};
96
+ }
97
+ get moduleLoadList() {
98
+ return [];
99
+ }
100
+ constrainedMemory() {
101
+ return 0;
102
+ }
103
+ availableMemory() {
104
+ return 0;
105
+ }
106
+ uptime() {
107
+ return 0;
108
+ }
109
+ resourceUsage() {
110
+ return {};
111
+ }
112
+ // --- noop methods ---
113
+ ref() {
114
+ // noop
115
+ }
116
+ unref() {
117
+ // noop
118
+ }
119
+ // --- unimplemented methods ---
120
+ umask() {
121
+ throw createNotImplementedError("process.umask");
122
+ }
123
+ getBuiltinModule() {
124
+ return undefined;
125
+ }
126
+ getActiveResourcesInfo() {
127
+ throw createNotImplementedError("process.getActiveResourcesInfo");
128
+ }
129
+ exit() {
130
+ throw createNotImplementedError("process.exit");
131
+ }
132
+ reallyExit() {
133
+ throw createNotImplementedError("process.reallyExit");
134
+ }
135
+ kill() {
136
+ throw createNotImplementedError("process.kill");
137
+ }
138
+ abort() {
139
+ throw createNotImplementedError("process.abort");
140
+ }
141
+ dlopen() {
142
+ throw createNotImplementedError("process.dlopen");
143
+ }
144
+ setSourceMapsEnabled() {
145
+ throw createNotImplementedError("process.setSourceMapsEnabled");
146
+ }
147
+ loadEnvFile() {
148
+ throw createNotImplementedError("process.loadEnvFile");
149
+ }
150
+ disconnect() {
151
+ throw createNotImplementedError("process.disconnect");
152
+ }
153
+ cpuUsage() {
154
+ throw createNotImplementedError("process.cpuUsage");
155
+ }
156
+ setUncaughtExceptionCaptureCallback() {
157
+ throw createNotImplementedError("process.setUncaughtExceptionCaptureCallback");
158
+ }
159
+ hasUncaughtExceptionCaptureCallback() {
160
+ throw createNotImplementedError("process.hasUncaughtExceptionCaptureCallback");
161
+ }
162
+ initgroups() {
163
+ throw createNotImplementedError("process.initgroups");
164
+ }
165
+ openStdin() {
166
+ throw createNotImplementedError("process.openStdin");
167
+ }
168
+ assert() {
169
+ throw createNotImplementedError("process.assert");
170
+ }
171
+ binding() {
172
+ throw createNotImplementedError("process.binding");
173
+ }
174
+ // --- attached interfaces ---
175
+ permission = { has: /* @__PURE__ */ notImplemented("process.permission.has") };
176
+ report = {
177
+ directory: "",
178
+ filename: "",
179
+ signal: "SIGUSR2",
180
+ compact: false,
181
+ reportOnFatalError: false,
182
+ reportOnSignal: false,
183
+ reportOnUncaughtException: false,
184
+ getReport: /* @__PURE__ */ notImplemented("process.report.getReport"),
185
+ writeReport: /* @__PURE__ */ notImplemented("process.report.writeReport")
186
+ };
187
+ finalization = {
188
+ register: /* @__PURE__ */ notImplemented("process.finalization.register"),
189
+ unregister: /* @__PURE__ */ notImplemented("process.finalization.unregister"),
190
+ registerBeforeExit: /* @__PURE__ */ notImplemented("process.finalization.registerBeforeExit")
191
+ };
192
+ memoryUsage = Object.assign(() => ({
193
+ arrayBuffers: 0,
194
+ rss: 0,
195
+ external: 0,
196
+ heapTotal: 0,
197
+ heapUsed: 0
198
+ }), { rss: () => 0 });
199
+ // --- undefined props ---
200
+ mainModule = undefined;
201
+ domain = undefined;
202
+ // optional
203
+ send = undefined;
204
+ exitCode = undefined;
205
+ channel = undefined;
206
+ getegid = undefined;
207
+ geteuid = undefined;
208
+ getgid = undefined;
209
+ getgroups = undefined;
210
+ getuid = undefined;
211
+ setegid = undefined;
212
+ seteuid = undefined;
213
+ setgid = undefined;
214
+ setgroups = undefined;
215
+ setuid = undefined;
216
+ // internals
217
+ _events = undefined;
218
+ _eventsCount = undefined;
219
+ _exiting = undefined;
220
+ _maxListeners = undefined;
221
+ _debugEnd = undefined;
222
+ _debugProcess = undefined;
223
+ _fatalException = undefined;
224
+ _getActiveHandles = undefined;
225
+ _getActiveRequests = undefined;
226
+ _kill = undefined;
227
+ _preload_modules = undefined;
228
+ _rawDebug = undefined;
229
+ _startProfilerIdleNotifier = undefined;
230
+ _stopProfilerIdleNotifier = undefined;
231
+ _tickCallback = undefined;
232
+ _disconnect = undefined;
233
+ _handleQueue = undefined;
234
+ _pendingMessage = undefined;
235
+ _channel = undefined;
236
+ _send = undefined;
237
+ _linkedBinding = undefined;
238
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Converts a Punycode string of ASCII-only symbols to a string of Unicode
3
+ * symbols.
4
+ * @memberOf punycode
5
+ * @param {String} input The Punycode string of ASCII-only symbols.
6
+ * @returns {String} The resulting string of Unicode symbols.
7
+ */
8
+ declare const decode: unknown;
9
+ /**
10
+ * Converts a string of Unicode symbols (e.g. a domain name label) to a
11
+ * Punycode string of ASCII-only symbols.
12
+ * @memberOf punycode
13
+ * @param {String} input The string of Unicode symbols.
14
+ * @returns {String} The resulting Punycode string of ASCII-only symbols.
15
+ */
16
+ declare const encode: unknown;
17
+ /**
18
+ * Converts a Punycode string representing a domain name or an email address
19
+ * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
20
+ * it doesn't matter if you call it on a string that has already been
21
+ * converted to Unicode.
22
+ * @memberOf punycode
23
+ * @param {String} input The Punycoded domain name or email address to
24
+ * convert to Unicode.
25
+ * @returns {String} The Unicode representation of the given Punycode
26
+ * string.
27
+ */
28
+ declare const toUnicode: unknown;
29
+ /**
30
+ * Converts a Unicode string representing a domain name or an email address to
31
+ * Punycode. Only the non-ASCII parts of the domain name will be converted,
32
+ * i.e. it doesn't matter if you call it with a domain that's already in
33
+ * ASCII.
34
+ * @memberOf punycode
35
+ * @param {String} input The domain name or email address to convert, as a
36
+ * Unicode string.
37
+ * @returns {String} The Punycode representation of the given domain name or
38
+ * email address.
39
+ */
40
+ declare const toASCII: unknown;
41
+ /*--------------------------------------------------------------------------*/
42
+ /**
43
+ * A string representing the current Punycode.js version number.
44
+ * @memberOf punycode
45
+ * @type String
46
+ */
47
+ declare const version = "2.3.1";
48
+ /**
49
+ * An object of methods to convert from JavaScript's internal character
50
+ * representation (UCS-2) to Unicode code points, and back.
51
+ * @see <https://mathiasbynens.be/notes/javascript-encoding>
52
+ * @memberOf punycode
53
+ * @type Object
54
+ */
55
+ declare const ucs2: {};
56
+ /** Define the public API */
57
+ declare const punycode: {};
58
+ export { version, ucs2, decode, encode, toASCII, toUnicode };
59
+ export default punycode;