@capsule-run/sdk 0.8.3 → 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,8 @@
1
+ import type nodeFs from "node:fs";
2
+ export declare const Dir: typeof nodeFs.Dir;
3
+ export declare const Dirent: typeof nodeFs.Dirent;
4
+ export declare const Stats: typeof nodeFs.Stats;
5
+ export declare const ReadStream: typeof nodeFs.ReadStream;
6
+ export declare const WriteStream: typeof nodeFs.WriteStream;
7
+ export declare const FileReadStream: unknown;
8
+ export declare const FileWriteStream: unknown;
@@ -0,0 +1,8 @@
1
+ import { notImplementedClass } from "../../../_internal/utils.mjs";
2
+ export const Dir = /* @__PURE__ */ notImplementedClass("fs.Dir");
3
+ export const Dirent = /* @__PURE__ */ notImplementedClass("fs.Dirent");
4
+ export const Stats = /* @__PURE__ */ notImplementedClass("fs.Stats");
5
+ export const ReadStream = /* @__PURE__ */ notImplementedClass("fs.ReadStream");
6
+ export const WriteStream = /* @__PURE__ */ notImplementedClass("fs.WriteStream");
7
+ export const FileReadStream = ReadStream;
8
+ export const FileWriteStream = WriteStream;
@@ -0,0 +1,59 @@
1
+ // npx -y node@22.14 -e 'const{constants}=require("fs");console.log(Object.entries(constants).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
2
+ export declare const UV_FS_SYMLINK_DIR = 1;
3
+ export declare const UV_FS_SYMLINK_JUNCTION = 2;
4
+ export declare const O_RDONLY = 0;
5
+ export declare const O_WRONLY = 1;
6
+ export declare const O_RDWR = 2;
7
+ export declare const UV_DIRENT_UNKNOWN = 0;
8
+ export declare const UV_DIRENT_FILE = 1;
9
+ export declare const UV_DIRENT_DIR = 2;
10
+ export declare const UV_DIRENT_LINK = 3;
11
+ export declare const UV_DIRENT_FIFO = 4;
12
+ export declare const UV_DIRENT_SOCKET = 5;
13
+ export declare const UV_DIRENT_CHAR = 6;
14
+ export declare const UV_DIRENT_BLOCK = 7;
15
+ export declare const EXTENSIONLESS_FORMAT_JAVASCRIPT = 0;
16
+ export declare const EXTENSIONLESS_FORMAT_WASM = 1;
17
+ export declare const S_IFMT = 61440;
18
+ export declare const S_IFREG = 32768;
19
+ export declare const S_IFDIR = 16384;
20
+ export declare const S_IFCHR = 8192;
21
+ export declare const S_IFBLK = 24576;
22
+ export declare const S_IFIFO = 4096;
23
+ export declare const S_IFLNK = 40960;
24
+ export declare const S_IFSOCK = 49152;
25
+ export declare const O_CREAT = 64;
26
+ export declare const O_EXCL = 128;
27
+ export declare const UV_FS_O_FILEMAP = 0;
28
+ export declare const O_NOCTTY = 256;
29
+ export declare const O_TRUNC = 512;
30
+ export declare const O_APPEND = 1024;
31
+ export declare const O_DIRECTORY = 65536;
32
+ export declare const O_NOATIME = 262144;
33
+ export declare const O_NOFOLLOW = 131072;
34
+ export declare const O_SYNC = 1052672;
35
+ export declare const O_DSYNC = 4096;
36
+ export declare const O_DIRECT = 16384;
37
+ export declare const O_NONBLOCK = 2048;
38
+ export declare const S_IRWXU = 448;
39
+ export declare const S_IRUSR = 256;
40
+ export declare const S_IWUSR = 128;
41
+ export declare const S_IXUSR = 64;
42
+ export declare const S_IRWXG = 56;
43
+ export declare const S_IRGRP = 32;
44
+ export declare const S_IWGRP = 16;
45
+ export declare const S_IXGRP = 8;
46
+ export declare const S_IRWXO = 7;
47
+ export declare const S_IROTH = 4;
48
+ export declare const S_IWOTH = 2;
49
+ export declare const S_IXOTH = 1;
50
+ export declare const F_OK = 0;
51
+ export declare const R_OK = 4;
52
+ export declare const W_OK = 2;
53
+ export declare const X_OK = 1;
54
+ export declare const UV_FS_COPYFILE_EXCL = 1;
55
+ export declare const COPYFILE_EXCL = 1;
56
+ export declare const UV_FS_COPYFILE_FICLONE = 2;
57
+ export declare const COPYFILE_FICLONE = 2;
58
+ export declare const UV_FS_COPYFILE_FICLONE_FORCE = 4;
59
+ export declare const COPYFILE_FICLONE_FORCE = 4;
@@ -0,0 +1,59 @@
1
+ // npx -y node@22.14 -e 'const{constants}=require("fs");console.log(Object.entries(constants).map(([k,v]) => `export const ${k} = ${JSON.stringify(v)}`).join("\n"))'
2
+ export const UV_FS_SYMLINK_DIR = 1;
3
+ export const UV_FS_SYMLINK_JUNCTION = 2;
4
+ export const O_RDONLY = 0;
5
+ export const O_WRONLY = 1;
6
+ export const O_RDWR = 2;
7
+ export const UV_DIRENT_UNKNOWN = 0;
8
+ export const UV_DIRENT_FILE = 1;
9
+ export const UV_DIRENT_DIR = 2;
10
+ export const UV_DIRENT_LINK = 3;
11
+ export const UV_DIRENT_FIFO = 4;
12
+ export const UV_DIRENT_SOCKET = 5;
13
+ export const UV_DIRENT_CHAR = 6;
14
+ export const UV_DIRENT_BLOCK = 7;
15
+ export const EXTENSIONLESS_FORMAT_JAVASCRIPT = 0;
16
+ export const EXTENSIONLESS_FORMAT_WASM = 1;
17
+ export const S_IFMT = 61440;
18
+ export const S_IFREG = 32768;
19
+ export const S_IFDIR = 16384;
20
+ export const S_IFCHR = 8192;
21
+ export const S_IFBLK = 24576;
22
+ export const S_IFIFO = 4096;
23
+ export const S_IFLNK = 40960;
24
+ export const S_IFSOCK = 49152;
25
+ export const O_CREAT = 64;
26
+ export const O_EXCL = 128;
27
+ export const UV_FS_O_FILEMAP = 0;
28
+ export const O_NOCTTY = 256;
29
+ export const O_TRUNC = 512;
30
+ export const O_APPEND = 1024;
31
+ export const O_DIRECTORY = 65536;
32
+ export const O_NOATIME = 262144;
33
+ export const O_NOFOLLOW = 131072;
34
+ export const O_SYNC = 1052672;
35
+ export const O_DSYNC = 4096;
36
+ export const O_DIRECT = 16384;
37
+ export const O_NONBLOCK = 2048;
38
+ export const S_IRWXU = 448;
39
+ export const S_IRUSR = 256;
40
+ export const S_IWUSR = 128;
41
+ export const S_IXUSR = 64;
42
+ export const S_IRWXG = 56;
43
+ export const S_IRGRP = 32;
44
+ export const S_IWGRP = 16;
45
+ export const S_IXGRP = 8;
46
+ export const S_IRWXO = 7;
47
+ export const S_IROTH = 4;
48
+ export const S_IWOTH = 2;
49
+ export const S_IXOTH = 1;
50
+ export const F_OK = 0;
51
+ export const R_OK = 4;
52
+ export const W_OK = 2;
53
+ export const X_OK = 1;
54
+ export const UV_FS_COPYFILE_EXCL = 1;
55
+ export const COPYFILE_EXCL = 1;
56
+ export const UV_FS_COPYFILE_FICLONE = 2;
57
+ export const COPYFILE_FICLONE = 2;
58
+ export const UV_FS_COPYFILE_FICLONE_FORCE = 4;
59
+ export const COPYFILE_FICLONE_FORCE = 4;
@@ -0,0 +1,96 @@
1
+ import type nodeFs from "node:fs";
2
+ // Async
3
+ export declare const access: typeof nodeFs.access;
4
+ export declare const appendFile: typeof nodeFs.appendFile;
5
+ export declare const chown: typeof nodeFs.chown;
6
+ export declare const chmod: typeof nodeFs.chmod;
7
+ export declare const copyFile: typeof nodeFs.copyFile;
8
+ export declare const cp: typeof nodeFs.cp;
9
+ export declare const lchown: typeof nodeFs.lchown;
10
+ export declare const lchmod: typeof nodeFs.lchmod;
11
+ export declare const link: typeof nodeFs.link;
12
+ export declare const lstat: typeof nodeFs.lstat;
13
+ export declare const lutimes: typeof nodeFs.lutimes;
14
+ export declare const mkdir: typeof nodeFs.mkdir;
15
+ export declare const mkdtemp: typeof nodeFs.mkdtemp;
16
+ export declare const realpath: typeof nodeFs.realpath;
17
+ export declare const open: typeof nodeFs.open;
18
+ export declare const opendir: typeof nodeFs.opendir;
19
+ export declare const readdir: typeof nodeFs.readdir;
20
+ export declare const readFile: typeof nodeFs.readFile;
21
+ export declare const readlink: typeof nodeFs.readlink;
22
+ export declare const rename: typeof nodeFs.rename;
23
+ export declare const rm: typeof nodeFs.rm;
24
+ export declare const rmdir: typeof nodeFs.rmdir;
25
+ export declare const stat: typeof nodeFs.stat;
26
+ export declare const symlink: typeof nodeFs.symlink;
27
+ export declare const truncate: typeof nodeFs.truncate;
28
+ export declare const unlink: typeof nodeFs.unlink;
29
+ export declare const utimes: typeof nodeFs.utimes;
30
+ export declare const writeFile: typeof nodeFs.writeFile;
31
+ export declare const statfs: typeof nodeFs.statfs;
32
+ export declare const close: typeof nodeFs.close;
33
+ export declare const createReadStream: typeof nodeFs.createReadStream;
34
+ export declare const createWriteStream: typeof nodeFs.createWriteStream;
35
+ export declare const exists: typeof nodeFs.exists;
36
+ export declare const fchown: typeof nodeFs.fchown;
37
+ export declare const fchmod: typeof nodeFs.fchmod;
38
+ export declare const fdatasync: typeof nodeFs.fdatasync;
39
+ export declare const fstat: typeof nodeFs.fstat;
40
+ export declare const fsync: typeof nodeFs.fsync;
41
+ export declare const ftruncate: typeof nodeFs.ftruncate;
42
+ export declare const futimes: typeof nodeFs.futimes;
43
+ export declare const lstatSync: typeof nodeFs.lstatSync;
44
+ export declare const read: typeof nodeFs.read;
45
+ export declare const readv: typeof nodeFs.readv;
46
+ export declare const realpathSync: typeof nodeFs.realpathSync;
47
+ export declare const statSync: typeof nodeFs.statSync;
48
+ export declare const unwatchFile: typeof nodeFs.unwatchFile;
49
+ export declare const watch: typeof nodeFs.watch;
50
+ export declare const watchFile: typeof nodeFs.watchFile;
51
+ export declare const write: typeof nodeFs.write;
52
+ export declare const writev: typeof nodeFs.writev;
53
+ export declare const _toUnixTimestamp: unknown;
54
+ export declare const openAsBlob: typeof nodeFs.openAsBlob;
55
+ export declare const glob: typeof nodeFs.glob;
56
+ // Sync
57
+ export declare const appendFileSync: unknown;
58
+ export declare const accessSync: unknown;
59
+ export declare const chownSync: unknown;
60
+ export declare const chmodSync: unknown;
61
+ export declare const closeSync: unknown;
62
+ export declare const copyFileSync: unknown;
63
+ export declare const cpSync: unknown;
64
+ export declare const existsSync: typeof nodeFs.existsSync;
65
+ export declare const fchownSync: unknown;
66
+ export declare const fchmodSync: unknown;
67
+ export declare const fdatasyncSync: unknown;
68
+ export declare const fstatSync: typeof nodeFs.fstatSync;
69
+ export declare const fsyncSync: unknown;
70
+ export declare const ftruncateSync: unknown;
71
+ export declare const futimesSync: unknown;
72
+ export declare const lchownSync: unknown;
73
+ export declare const lchmodSync: unknown;
74
+ export declare const linkSync: unknown;
75
+ export declare const lutimesSync: unknown;
76
+ export declare const mkdirSync: unknown;
77
+ export declare const mkdtempSync: typeof nodeFs.mkdtempSync;
78
+ export declare const openSync: unknown;
79
+ export declare const opendirSync: unknown;
80
+ export declare const readdirSync: typeof nodeFs.readdirSync;
81
+ export declare const readSync: unknown;
82
+ export declare const readvSync: unknown;
83
+ export declare const readFileSync: typeof nodeFs.readFileSync;
84
+ export declare const readlinkSync: typeof nodeFs.readlinkSync;
85
+ export declare const renameSync: unknown;
86
+ export declare const rmSync: unknown;
87
+ export declare const rmdirSync: unknown;
88
+ export declare const symlinkSync: unknown;
89
+ export declare const truncateSync: unknown;
90
+ export declare const unlinkSync: unknown;
91
+ export declare const utimesSync: unknown;
92
+ export declare const writeFileSync: unknown;
93
+ export declare const writeSync: unknown;
94
+ export declare const writevSync: unknown;
95
+ export declare const statfsSync: typeof nodeFs.statfsSync;
96
+ export declare const globSync: unknown;
@@ -0,0 +1,106 @@
1
+ import { notImplemented, notImplementedAsync } from "../../../_internal/utils.mjs";
2
+ import * as fsp from "./promises.mjs";
3
+ function callbackify(fn) {
4
+ const fnc = function(...args) {
5
+ const cb = args.pop();
6
+ fn().catch((error) => cb(error)).then((val) => cb(undefined, val));
7
+ };
8
+ fnc.__promisify__ = fn;
9
+ fnc.native = fnc;
10
+ return fnc;
11
+ }
12
+ // Async
13
+ export const access = callbackify(fsp.access);
14
+ export const appendFile = callbackify(fsp.appendFile);
15
+ export const chown = callbackify(fsp.chown);
16
+ export const chmod = callbackify(fsp.chmod);
17
+ export const copyFile = callbackify(fsp.copyFile);
18
+ export const cp = callbackify(fsp.cp);
19
+ export const lchown = callbackify(fsp.lchown);
20
+ export const lchmod = callbackify(fsp.lchmod);
21
+ export const link = callbackify(fsp.link);
22
+ export const lstat = callbackify(fsp.lstat);
23
+ export const lutimes = callbackify(fsp.lutimes);
24
+ export const mkdir = callbackify(fsp.mkdir);
25
+ export const mkdtemp = callbackify(fsp.mkdtemp);
26
+ export const realpath = callbackify(fsp.realpath);
27
+ export const open = callbackify(fsp.open);
28
+ export const opendir = callbackify(fsp.opendir);
29
+ export const readdir = callbackify(fsp.readdir);
30
+ export const readFile = callbackify(fsp.readFile);
31
+ export const readlink = callbackify(fsp.readlink);
32
+ export const rename = callbackify(fsp.rename);
33
+ export const rm = callbackify(fsp.rm);
34
+ export const rmdir = callbackify(fsp.rmdir);
35
+ export const stat = callbackify(fsp.stat);
36
+ export const symlink = callbackify(fsp.symlink);
37
+ export const truncate = callbackify(fsp.truncate);
38
+ export const unlink = callbackify(fsp.unlink);
39
+ export const utimes = callbackify(fsp.utimes);
40
+ export const writeFile = callbackify(fsp.writeFile);
41
+ export const statfs = callbackify(fsp.statfs);
42
+ export const close = /* @__PURE__ */ notImplementedAsync("fs.close");
43
+ export const createReadStream = /* @__PURE__ */ notImplementedAsync("fs.createReadStream");
44
+ export const createWriteStream = /* @__PURE__ */ notImplementedAsync("fs.createWriteStream");
45
+ export const exists = /* @__PURE__ */ notImplementedAsync("fs.exists");
46
+ export const fchown = /* @__PURE__ */ notImplementedAsync("fs.fchown");
47
+ export const fchmod = /* @__PURE__ */ notImplementedAsync("fs.fchmod");
48
+ export const fdatasync = /* @__PURE__ */ notImplementedAsync("fs.fdatasync");
49
+ export const fstat = /* @__PURE__ */ notImplementedAsync("fs.fstat");
50
+ export const fsync = /* @__PURE__ */ notImplementedAsync("fs.fsync");
51
+ export const ftruncate = /* @__PURE__ */ notImplementedAsync("fs.ftruncate");
52
+ export const futimes = /* @__PURE__ */ notImplementedAsync("fs.futimes");
53
+ export const lstatSync = /* @__PURE__ */ notImplementedAsync("fs.lstatSync");
54
+ export const read = /* @__PURE__ */ notImplementedAsync("fs.read");
55
+ export const readv = /* @__PURE__ */ notImplementedAsync("fs.readv");
56
+ export const realpathSync = /* @__PURE__ */ notImplementedAsync("fs.realpathSync");
57
+ export const statSync = /* @__PURE__ */ notImplementedAsync("fs.statSync");
58
+ export const unwatchFile = /* @__PURE__ */ notImplementedAsync("fs.unwatchFile");
59
+ export const watch = /* @__PURE__ */ notImplementedAsync("fs.watch");
60
+ export const watchFile = /* @__PURE__ */ notImplementedAsync("fs.watchFile");
61
+ export const write = /* @__PURE__ */ notImplementedAsync("fs.write");
62
+ export const writev = /* @__PURE__ */ notImplementedAsync("fs.writev");
63
+ export const _toUnixTimestamp = /* @__PURE__ */ notImplementedAsync("fs._toUnixTimestamp");
64
+ export const openAsBlob = /* @__PURE__ */ notImplementedAsync("fs.openAsBlob");
65
+ export const glob = /* @__PURE__ */ notImplementedAsync("fs.glob");
66
+ // Sync
67
+ export const appendFileSync = /* @__PURE__ */ notImplemented("fs.appendFileSync");
68
+ export const accessSync = /* @__PURE__ */ notImplemented("fs.accessSync");
69
+ export const chownSync = /* @__PURE__ */ notImplemented("fs.chownSync");
70
+ export const chmodSync = /* @__PURE__ */ notImplemented("fs.chmodSync");
71
+ export const closeSync = /* @__PURE__ */ notImplemented("fs.closeSync");
72
+ export const copyFileSync = /* @__PURE__ */ notImplemented("fs.copyFileSync");
73
+ export const cpSync = /* @__PURE__ */ notImplemented("fs.cpSync");
74
+ export const existsSync = () => false;
75
+ export const fchownSync = /* @__PURE__ */ notImplemented("fs.fchownSync");
76
+ export const fchmodSync = /* @__PURE__ */ notImplemented("fs.fchmodSync");
77
+ export const fdatasyncSync = /* @__PURE__ */ notImplemented("fs.fdatasyncSync");
78
+ export const fstatSync = /* @__PURE__ */ notImplemented("fs.fstatSync");
79
+ export const fsyncSync = /* @__PURE__ */ notImplemented("fs.fsyncSync");
80
+ export const ftruncateSync = /* @__PURE__ */ notImplemented("fs.ftruncateSync");
81
+ export const futimesSync = /* @__PURE__ */ notImplemented("fs.futimesSync");
82
+ export const lchownSync = /* @__PURE__ */ notImplemented("fs.lchownSync");
83
+ export const lchmodSync = /* @__PURE__ */ notImplemented("fs.lchmodSync");
84
+ export const linkSync = /* @__PURE__ */ notImplemented("fs.linkSync");
85
+ export const lutimesSync = /* @__PURE__ */ notImplemented("fs.lutimesSync");
86
+ export const mkdirSync = /* @__PURE__ */ notImplemented("fs.mkdirSync");
87
+ export const mkdtempSync = /* @__PURE__ */ notImplemented("fs.mkdtempSync");
88
+ export const openSync = /* @__PURE__ */ notImplemented("fs.openSync");
89
+ export const opendirSync = /* @__PURE__ */ notImplemented("fs.opendirSync");
90
+ export const readdirSync = /* @__PURE__ */ notImplemented("fs.readdirSync");
91
+ export const readSync = /* @__PURE__ */ notImplemented("fs.readSync");
92
+ export const readvSync = /* @__PURE__ */ notImplemented("fs.readvSync");
93
+ export const readFileSync = /* @__PURE__ */ notImplemented("fs.readFileSync");
94
+ export const readlinkSync = /* @__PURE__ */ notImplemented("fs.readlinkSync");
95
+ export const renameSync = /* @__PURE__ */ notImplemented("fs.renameSync");
96
+ export const rmSync = /* @__PURE__ */ notImplemented("fs.rmSync");
97
+ export const rmdirSync = /* @__PURE__ */ notImplemented("fs.rmdirSync");
98
+ export const symlinkSync = /* @__PURE__ */ notImplemented("fs.symlinkSync");
99
+ export const truncateSync = /* @__PURE__ */ notImplemented("fs.truncateSync");
100
+ export const unlinkSync = /* @__PURE__ */ notImplemented("fs.unlinkSync");
101
+ export const utimesSync = /* @__PURE__ */ notImplemented("fs.utimesSync");
102
+ export const writeFileSync = /* @__PURE__ */ notImplemented("fs.writeFileSync");
103
+ export const writeSync = /* @__PURE__ */ notImplemented("fs.writeSync");
104
+ export const writevSync = /* @__PURE__ */ notImplemented("fs.writevSync");
105
+ export const statfsSync = /* @__PURE__ */ notImplemented("fs.statfsSync");
106
+ export const globSync = /* @__PURE__ */ notImplemented("fs.globSync");
@@ -0,0 +1,32 @@
1
+ import type nodeFsPromises from "node:fs/promises";
2
+ export declare const access: unknown;
3
+ export declare const copyFile: unknown;
4
+ export declare const cp: unknown;
5
+ export declare const open: unknown;
6
+ export declare const opendir: unknown;
7
+ export declare const rename: unknown;
8
+ export declare const truncate: unknown;
9
+ export declare const rm: unknown;
10
+ export declare const rmdir: unknown;
11
+ export declare const mkdir: typeof nodeFsPromises.mkdir;
12
+ export declare const readdir: typeof nodeFsPromises.readdir;
13
+ export declare const readlink: typeof nodeFsPromises.readlink;
14
+ export declare const symlink: unknown;
15
+ export declare const lstat: typeof nodeFsPromises.lstat;
16
+ export declare const stat: typeof nodeFsPromises.stat;
17
+ export declare const link: unknown;
18
+ export declare const unlink: unknown;
19
+ export declare const chmod: unknown;
20
+ export declare const lchmod: unknown;
21
+ export declare const lchown: unknown;
22
+ export declare const chown: unknown;
23
+ export declare const utimes: unknown;
24
+ export declare const lutimes: unknown;
25
+ export declare const realpath: typeof nodeFsPromises.realpath;
26
+ export declare const mkdtemp: typeof nodeFsPromises.mkdtemp;
27
+ export declare const writeFile: unknown;
28
+ export declare const appendFile: unknown;
29
+ export declare const readFile: typeof nodeFsPromises.readFile;
30
+ export declare const watch: typeof nodeFsPromises.watch;
31
+ export declare const statfs: typeof nodeFsPromises.statfs;
32
+ export declare const glob: unknown;
@@ -0,0 +1,32 @@
1
+ import { notImplemented } from "../../../_internal/utils.mjs";
2
+ export const access = /* @__PURE__ */ notImplemented("fs.access");
3
+ export const copyFile = /* @__PURE__ */ notImplemented("fs.copyFile");
4
+ export const cp = /* @__PURE__ */ notImplemented("fs.cp");
5
+ export const open = /* @__PURE__ */ notImplemented("fs.open");
6
+ export const opendir = /* @__PURE__ */ notImplemented("fs.opendir");
7
+ export const rename = /* @__PURE__ */ notImplemented("fs.rename");
8
+ export const truncate = /* @__PURE__ */ notImplemented("fs.truncate");
9
+ export const rm = /* @__PURE__ */ notImplemented("fs.rm");
10
+ export const rmdir = /* @__PURE__ */ notImplemented("fs.rmdir");
11
+ export const mkdir = /* @__PURE__ */ notImplemented("fs.mkdir");
12
+ export const readdir = /* @__PURE__ */ notImplemented("fs.readdir");
13
+ export const readlink = /* @__PURE__ */ notImplemented("fs.readlink");
14
+ export const symlink = /* @__PURE__ */ notImplemented("fs.symlink");
15
+ export const lstat = /* @__PURE__ */ notImplemented("fs.lstat");
16
+ export const stat = /* @__PURE__ */ notImplemented("fs.stat");
17
+ export const link = /* @__PURE__ */ notImplemented("fs.link");
18
+ export const unlink = /* @__PURE__ */ notImplemented("fs.unlink");
19
+ export const chmod = /* @__PURE__ */ notImplemented("fs.chmod");
20
+ export const lchmod = /* @__PURE__ */ notImplemented("fs.lchmod");
21
+ export const lchown = /* @__PURE__ */ notImplemented("fs.lchown");
22
+ export const chown = /* @__PURE__ */ notImplemented("fs.chown");
23
+ export const utimes = /* @__PURE__ */ notImplemented("fs.utimes");
24
+ export const lutimes = /* @__PURE__ */ notImplemented("fs.lutimes");
25
+ export const realpath = /* @__PURE__ */ notImplemented("fs.realpath");
26
+ export const mkdtemp = /* @__PURE__ */ notImplemented("fs.mkdtemp");
27
+ export const writeFile = /* @__PURE__ */ notImplemented("fs.writeFile");
28
+ export const appendFile = /* @__PURE__ */ notImplemented("fs.appendFile");
29
+ export const readFile = /* @__PURE__ */ notImplemented("fs.readFile");
30
+ export const watch = /* @__PURE__ */ notImplemented("fs.watch");
31
+ export const statfs = /* @__PURE__ */ notImplemented("fs.statfs");
32
+ export const glob = /* @__PURE__ */ notImplemented("fs.glob");
@@ -0,0 +1,14 @@
1
+ import type nodeHttp from "node:http";
2
+ import { EventEmitter } from "node:events";
3
+ export declare class Agent extends EventEmitter implements nodeHttp.Agent {
4
+ __unenv__: {};
5
+ maxFreeSockets: number;
6
+ maxSockets: number;
7
+ maxTotalSockets: number;
8
+ readonly freeSockets: {};
9
+ readonly sockets: {};
10
+ readonly requests: {};
11
+ readonly options: nodeHttp.AgentOptions;
12
+ constructor(opts?: nodeHttp.AgentOptions);
13
+ destroy(): void;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from "node:events";
2
+ export class Agent extends EventEmitter {
3
+ __unenv__ = {};
4
+ maxFreeSockets = 256;
5
+ maxSockets = Infinity;
6
+ maxTotalSockets = Infinity;
7
+ freeSockets = {};
8
+ sockets = {};
9
+ requests = {};
10
+ options;
11
+ constructor(opts = {}) {
12
+ super();
13
+ this.options = opts;
14
+ }
15
+ destroy() {}
16
+ }
@@ -0,0 +1,67 @@
1
+ export declare const METHODS: unknown;
2
+ export declare const STATUS_CODES: {
3
+ 100: string;
4
+ 101: string;
5
+ 102: string;
6
+ 103: string;
7
+ 200: string;
8
+ 201: string;
9
+ 202: string;
10
+ 203: string;
11
+ 204: string;
12
+ 205: string;
13
+ 206: string;
14
+ 207: string;
15
+ 208: string;
16
+ 226: string;
17
+ 300: string;
18
+ 301: string;
19
+ 302: string;
20
+ 303: string;
21
+ 304: string;
22
+ 305: string;
23
+ 307: string;
24
+ 308: string;
25
+ 400: string;
26
+ 401: string;
27
+ 402: string;
28
+ 403: string;
29
+ 404: string;
30
+ 405: string;
31
+ 406: string;
32
+ 407: string;
33
+ 408: string;
34
+ 409: string;
35
+ 410: string;
36
+ 411: string;
37
+ 412: string;
38
+ 413: string;
39
+ 414: string;
40
+ 415: string;
41
+ 416: string;
42
+ 417: string;
43
+ 418: string;
44
+ 421: string;
45
+ 422: string;
46
+ 423: string;
47
+ 424: string;
48
+ 425: string;
49
+ 426: string;
50
+ 428: string;
51
+ 429: string;
52
+ 431: string;
53
+ 451: string;
54
+ 500: string;
55
+ 501: string;
56
+ 502: string;
57
+ 503: string;
58
+ 504: string;
59
+ 505: string;
60
+ 506: string;
61
+ 507: string;
62
+ 508: string;
63
+ 509: string;
64
+ 510: string;
65
+ 511: string;
66
+ };
67
+ export declare const maxHeaderSize = 16384;
@@ -0,0 +1,103 @@
1
+ export const METHODS = [
2
+ "ACL",
3
+ "BIND",
4
+ "CHECKOUT",
5
+ "CONNECT",
6
+ "COPY",
7
+ "DELETE",
8
+ "GET",
9
+ "HEAD",
10
+ "LINK",
11
+ "LOCK",
12
+ "M-SEARCH",
13
+ "MERGE",
14
+ "MKACTIVITY",
15
+ "MKCALENDAR",
16
+ "MKCOL",
17
+ "MOVE",
18
+ "NOTIFY",
19
+ "OPTIONS",
20
+ "PATCH",
21
+ "POST",
22
+ "PRI",
23
+ "PROPFIND",
24
+ "PROPPATCH",
25
+ "PURGE",
26
+ "PUT",
27
+ "REBIND",
28
+ "REPORT",
29
+ "SEARCH",
30
+ "SOURCE",
31
+ "SUBSCRIBE",
32
+ "TRACE",
33
+ "UNBIND",
34
+ "UNLINK",
35
+ "UNLOCK",
36
+ "UNSUBSCRIBE"
37
+ ];
38
+ export const STATUS_CODES = {
39
+ 100: "Continue",
40
+ 101: "Switching Protocols",
41
+ 102: "Processing",
42
+ 103: "Early Hints",
43
+ 200: "OK",
44
+ 201: "Created",
45
+ 202: "Accepted",
46
+ 203: "Non-Authoritative Information",
47
+ 204: "No Content",
48
+ 205: "Reset Content",
49
+ 206: "Partial Content",
50
+ 207: "Multi-Status",
51
+ 208: "Already Reported",
52
+ 226: "IM Used",
53
+ 300: "Multiple Choices",
54
+ 301: "Moved Permanently",
55
+ 302: "Found",
56
+ 303: "See Other",
57
+ 304: "Not Modified",
58
+ 305: "Use Proxy",
59
+ 307: "Temporary Redirect",
60
+ 308: "Permanent Redirect",
61
+ 400: "Bad Request",
62
+ 401: "Unauthorized",
63
+ 402: "Payment Required",
64
+ 403: "Forbidden",
65
+ 404: "Not Found",
66
+ 405: "Method Not Allowed",
67
+ 406: "Not Acceptable",
68
+ 407: "Proxy Authentication Required",
69
+ 408: "Request Timeout",
70
+ 409: "Conflict",
71
+ 410: "Gone",
72
+ 411: "Length Required",
73
+ 412: "Precondition Failed",
74
+ 413: "Payload Too Large",
75
+ 414: "URI Too Long",
76
+ 415: "Unsupported Media Type",
77
+ 416: "Range Not Satisfiable",
78
+ 417: "Expectation Failed",
79
+ 418: "I'm a Teapot",
80
+ 421: "Misdirected Request",
81
+ 422: "Unprocessable Entity",
82
+ 423: "Locked",
83
+ 424: "Failed Dependency",
84
+ 425: "Too Early",
85
+ 426: "Upgrade Required",
86
+ 428: "Precondition Required",
87
+ 429: "Too Many Requests",
88
+ 431: "Request Header Fields Too Large",
89
+ 451: "Unavailable For Legal Reasons",
90
+ 500: "Internal Server Error",
91
+ 501: "Not Implemented",
92
+ 502: "Bad Gateway",
93
+ 503: "Service Unavailable",
94
+ 504: "Gateway Timeout",
95
+ 505: "HTTP Version Not Supported",
96
+ 506: "Variant Also Negotiates",
97
+ 507: "Insufficient Storage",
98
+ 508: "Loop Detected",
99
+ 509: "Bandwidth Limit Exceeded",
100
+ 510: "Not Extended",
101
+ 511: "Network Authentication Required"
102
+ };
103
+ export const maxHeaderSize = 16384;
@@ -0,0 +1,31 @@
1
+ import type NodeHttp from "node:http";
2
+ import { Socket } from "node:net";
3
+ import { Readable } from "node:stream";
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 declare class IncomingMessage extends Readable implements NodeHttp.IncomingMessage {
7
+ __unenv__: {};
8
+ aborted: boolean;
9
+ httpVersion: string;
10
+ httpVersionMajor: number;
11
+ httpVersionMinor: number;
12
+ complete: boolean;
13
+ connection: Socket;
14
+ socket: Socket;
15
+ headers: NodeHttp.IncomingHttpHeaders;
16
+ trailers: {};
17
+ method: string;
18
+ url: string;
19
+ statusCode: number;
20
+ statusMessage: string;
21
+ closed: boolean;
22
+ errored: Error | null;
23
+ readable: boolean;
24
+ constructor(socket?: Socket);
25
+ get rawHeaders();
26
+ get rawTrailers(): unknown;
27
+ setTimeout(_msecs: number, _callback?: () => void);
28
+ get headersDistinct();
29
+ get trailersDistinct();
30
+ _read();
31
+ }