@capsule-run/sdk 0.8.4 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/dist/polyfills/fs.d.ts.map +1 -1
  2. package/dist/polyfills/fs.js +4 -3
  3. package/dist/polyfills/fs.js.map +1 -1
  4. package/dist/polyfills/process.d.ts.map +1 -1
  5. package/dist/polyfills/process.js +10 -8
  6. package/dist/polyfills/process.js.map +1 -1
  7. package/dist/polyfills/unenv-runtime/_internal/types.d.mts +5 -0
  8. package/dist/polyfills/unenv-runtime/_internal/types.mjs +1 -0
  9. package/dist/polyfills/unenv-runtime/_internal/utils.d.mts +14 -0
  10. package/dist/polyfills/unenv-runtime/_internal/utils.mjs +49 -0
  11. package/dist/polyfills/unenv-runtime/mock/empty.d.mts +2 -0
  12. package/dist/polyfills/unenv-runtime/mock/empty.mjs +1 -0
  13. package/dist/polyfills/unenv-runtime/mock/noop.d.mts +2 -0
  14. package/dist/polyfills/unenv-runtime/mock/noop.mjs +1 -0
  15. package/dist/polyfills/unenv-runtime/mock/proxy.d.mts +2 -0
  16. package/dist/polyfills/unenv-runtime/mock/proxy.mjs +43 -0
  17. package/dist/polyfills/unenv-runtime/node/assert/strict.d.mts +4 -0
  18. package/dist/polyfills/unenv-runtime/node/assert/strict.mjs +25 -0
  19. package/dist/polyfills/unenv-runtime/node/assert.d.mts +165 -0
  20. package/dist/polyfills/unenv-runtime/node/assert.mjs +737 -0
  21. package/dist/polyfills/unenv-runtime/node/async_hooks.d.mts +5 -0
  22. package/dist/polyfills/unenv-runtime/node/async_hooks.mjs +15 -0
  23. package/dist/polyfills/unenv-runtime/node/buffer.d.mts +19 -0
  24. package/dist/polyfills/unenv-runtime/node/buffer.mjs +35 -0
  25. package/dist/polyfills/unenv-runtime/node/child_process.d.mts +12 -0
  26. package/dist/polyfills/unenv-runtime/node/child_process.mjs +21 -0
  27. package/dist/polyfills/unenv-runtime/node/cluster.d.mts +33 -0
  28. package/dist/polyfills/unenv-runtime/node/cluster.mjs +71 -0
  29. package/dist/polyfills/unenv-runtime/node/console.d.mts +38 -0
  30. package/dist/polyfills/unenv-runtime/node/console.mjs +74 -0
  31. package/dist/polyfills/unenv-runtime/node/constants.d.mts +13 -0
  32. package/dist/polyfills/unenv-runtime/node/constants.mjs +254 -0
  33. package/dist/polyfills/unenv-runtime/node/crypto.d.mts +6 -0
  34. package/dist/polyfills/unenv-runtime/node/crypto.mjs +138 -0
  35. package/dist/polyfills/unenv-runtime/node/dgram.d.mts +6 -0
  36. package/dist/polyfills/unenv-runtime/node/dgram.mjs +12 -0
  37. package/dist/polyfills/unenv-runtime/node/diagnostics_channel.d.mts +11 -0
  38. package/dist/polyfills/unenv-runtime/node/diagnostics_channel.mjs +34 -0
  39. package/dist/polyfills/unenv-runtime/node/dns/promises.d.mts +27 -0
  40. package/dist/polyfills/unenv-runtime/node/dns/promises.mjs +75 -0
  41. package/dist/polyfills/unenv-runtime/node/dns.d.mts +29 -0
  42. package/dist/polyfills/unenv-runtime/node/dns.mjs +81 -0
  43. package/dist/polyfills/unenv-runtime/node/domain.d.mts +8 -0
  44. package/dist/polyfills/unenv-runtime/node/domain.mjs +16 -0
  45. package/dist/polyfills/unenv-runtime/node/events.d.mts +13 -0
  46. package/dist/polyfills/unenv-runtime/node/events.mjs +12 -0
  47. package/dist/polyfills/unenv-runtime/node/fs/promises.d.mts +7 -0
  48. package/dist/polyfills/unenv-runtime/node/fs/promises.mjs +38 -0
  49. package/dist/polyfills/unenv-runtime/node/fs.d.mts +10 -0
  50. package/dist/polyfills/unenv-runtime/node/fs.mjs +117 -0
  51. package/dist/polyfills/unenv-runtime/node/http.d.mts +23 -0
  52. package/dist/polyfills/unenv-runtime/node/http.mjs +45 -0
  53. package/dist/polyfills/unenv-runtime/node/http2.d.mts +15 -0
  54. package/dist/polyfills/unenv-runtime/node/http2.mjs +284 -0
  55. package/dist/polyfills/unenv-runtime/node/https.d.mts +10 -0
  56. package/dist/polyfills/unenv-runtime/node/https.mjs +16 -0
  57. package/dist/polyfills/unenv-runtime/node/inspector/promises.d.mts +10 -0
  58. package/dist/polyfills/unenv-runtime/node/inspector/promises.mjs +40 -0
  59. package/dist/polyfills/unenv-runtime/node/inspector.d.mts +12 -0
  60. package/dist/polyfills/unenv-runtime/node/inspector.mjs +53 -0
  61. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-hook.d.mts +7 -0
  62. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-hook.mjs +115 -0
  63. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-local-storage.d.mts +2 -0
  64. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-local-storage.mjs +36 -0
  65. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-resource.d.mts +2 -0
  66. package/dist/polyfills/unenv-runtime/node/internal/async_hooks/async-resource.mjs +37 -0
  67. package/dist/polyfills/unenv-runtime/node/internal/buffer/base64.d.mts +4 -0
  68. package/dist/polyfills/unenv-runtime/node/internal/buffer/base64.mjs +97 -0
  69. package/dist/polyfills/unenv-runtime/node/internal/buffer/buffer.d.mts +13 -0
  70. package/dist/polyfills/unenv-runtime/node/internal/buffer/buffer.mjs +1846 -0
  71. package/dist/polyfills/unenv-runtime/node/internal/buffer/file.d.mts +14 -0
  72. package/dist/polyfills/unenv-runtime/node/internal/buffer/file.mjs +26 -0
  73. package/dist/polyfills/unenv-runtime/node/internal/buffer/ieee754.d.mts +4 -0
  74. package/dist/polyfills/unenv-runtime/node/internal/buffer/ieee754.mjs +89 -0
  75. package/dist/polyfills/unenv-runtime/node/internal/crypto/constants.d.mts +58 -0
  76. package/dist/polyfills/unenv-runtime/node/internal/crypto/constants.mjs +58 -0
  77. package/dist/polyfills/unenv-runtime/node/internal/crypto/node.d.mts +78 -0
  78. package/dist/polyfills/unenv-runtime/node/internal/crypto/node.mjs +110 -0
  79. package/dist/polyfills/unenv-runtime/node/internal/crypto/web.d.mts +5 -0
  80. package/dist/polyfills/unenv-runtime/node/internal/crypto/web.mjs +9 -0
  81. package/dist/polyfills/unenv-runtime/node/internal/dgram/socket.d.mts +31 -0
  82. package/dist/polyfills/unenv-runtime/node/internal/dgram/socket.mjs +61 -0
  83. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/channel.d.mts +18 -0
  84. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/channel.mjs +40 -0
  85. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/tracing-channel.d.mts +19 -0
  86. package/dist/polyfills/unenv-runtime/node/internal/diagnostics_channel/tracing-channel.mjs +48 -0
  87. package/dist/polyfills/unenv-runtime/node/internal/dns/constants.d.mts +28 -0
  88. package/dist/polyfills/unenv-runtime/node/internal/dns/constants.mjs +28 -0
  89. package/dist/polyfills/unenv-runtime/node/internal/domain/domain.d.mts +13 -0
  90. package/dist/polyfills/unenv-runtime/node/internal/domain/domain.mjs +19 -0
  91. package/dist/polyfills/unenv-runtime/node/internal/events/events.d.mts +207 -0
  92. package/dist/polyfills/unenv-runtime/node/internal/events/events.mjs +1097 -0
  93. package/dist/polyfills/unenv-runtime/node/internal/fs/classes.d.mts +8 -0
  94. package/dist/polyfills/unenv-runtime/node/internal/fs/classes.mjs +8 -0
  95. package/dist/polyfills/unenv-runtime/node/internal/fs/constants.d.mts +59 -0
  96. package/dist/polyfills/unenv-runtime/node/internal/fs/constants.mjs +59 -0
  97. package/dist/polyfills/unenv-runtime/node/internal/fs/fs.d.mts +96 -0
  98. package/dist/polyfills/unenv-runtime/node/internal/fs/fs.mjs +106 -0
  99. package/dist/polyfills/unenv-runtime/node/internal/fs/promises.d.mts +32 -0
  100. package/dist/polyfills/unenv-runtime/node/internal/fs/promises.mjs +32 -0
  101. package/dist/polyfills/unenv-runtime/node/internal/http/agent.d.mts +14 -0
  102. package/dist/polyfills/unenv-runtime/node/internal/http/agent.mjs +16 -0
  103. package/dist/polyfills/unenv-runtime/node/internal/http/constants.d.mts +67 -0
  104. package/dist/polyfills/unenv-runtime/node/internal/http/constants.mjs +103 -0
  105. package/dist/polyfills/unenv-runtime/node/internal/http/request.d.mts +31 -0
  106. package/dist/polyfills/unenv-runtime/node/internal/http/request.mjs +53 -0
  107. package/dist/polyfills/unenv-runtime/node/internal/http/response.d.mts +42 -0
  108. package/dist/polyfills/unenv-runtime/node/internal/http/response.mjs +101 -0
  109. package/dist/polyfills/unenv-runtime/node/internal/http2/constants.d.mts +241 -0
  110. package/dist/polyfills/unenv-runtime/node/internal/http2/constants.mjs +241 -0
  111. package/dist/polyfills/unenv-runtime/node/internal/net/server.d.mts +17 -0
  112. package/dist/polyfills/unenv-runtime/node/internal/net/server.mjs +33 -0
  113. package/dist/polyfills/unenv-runtime/node/internal/net/socket.d.mts +45 -0
  114. package/dist/polyfills/unenv-runtime/node/internal/net/socket.mjs +83 -0
  115. package/dist/polyfills/unenv-runtime/node/internal/os/constants.d.mts +133 -0
  116. package/dist/polyfills/unenv-runtime/node/internal/os/constants.mjs +133 -0
  117. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/constants.d.mts +25 -0
  118. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/constants.mjs +25 -0
  119. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/histogram.d.mts +28 -0
  120. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/histogram.mjs +43 -0
  121. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/performance.d.mts +103 -0
  122. package/dist/polyfills/unenv-runtime/node/internal/perf_hooks/performance.mjs +232 -0
  123. package/dist/polyfills/unenv-runtime/node/internal/process/env.d.mts +1 -0
  124. package/dist/polyfills/unenv-runtime/node/internal/process/env.mjs +40 -0
  125. package/dist/polyfills/unenv-runtime/node/internal/process/hrtime.d.mts +2 -0
  126. package/dist/polyfills/unenv-runtime/node/internal/process/hrtime.mjs +21 -0
  127. package/dist/polyfills/unenv-runtime/node/internal/process/nexttick.d.mts +3 -0
  128. package/dist/polyfills/unenv-runtime/node/internal/process/nexttick.mjs +55 -0
  129. package/dist/polyfills/unenv-runtime/node/internal/process/node-version.d.mts +2 -0
  130. package/dist/polyfills/unenv-runtime/node/internal/process/node-version.mjs +2 -0
  131. package/dist/polyfills/unenv-runtime/node/internal/process/process.d.mts +113 -0
  132. package/dist/polyfills/unenv-runtime/node/internal/process/process.mjs +238 -0
  133. package/dist/polyfills/unenv-runtime/node/internal/punycode/punycode.d.mts +59 -0
  134. package/dist/polyfills/unenv-runtime/node/internal/punycode/punycode.mjs +410 -0
  135. package/dist/polyfills/unenv-runtime/node/internal/querystring/querystring.d.mts +11 -0
  136. package/dist/polyfills/unenv-runtime/node/internal/querystring/querystring.mjs +320 -0
  137. package/dist/polyfills/unenv-runtime/node/internal/readline/interface.d.mts +20 -0
  138. package/dist/polyfills/unenv-runtime/node/internal/readline/interface.mjs +31 -0
  139. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/interface.d.mts +7 -0
  140. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/interface.mjs +6 -0
  141. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/readline.d.mts +10 -0
  142. package/dist/polyfills/unenv-runtime/node/internal/readline/promises/readline.mjs +20 -0
  143. package/dist/polyfills/unenv-runtime/node/internal/stream/duplex.d.mts +3 -0
  144. package/dist/polyfills/unenv-runtime/node/internal/stream/duplex.mjs +19 -0
  145. package/dist/polyfills/unenv-runtime/node/internal/stream/readable.d.mts +67 -0
  146. package/dist/polyfills/unenv-runtime/node/internal/stream/readable.mjs +112 -0
  147. package/dist/polyfills/unenv-runtime/node/internal/stream/transform.d.mts +10 -0
  148. package/dist/polyfills/unenv-runtime/node/internal/stream/transform.mjs +9 -0
  149. package/dist/polyfills/unenv-runtime/node/internal/stream/writable.d.mts +2 -0
  150. package/dist/polyfills/unenv-runtime/node/internal/stream/writable.mjs +87 -0
  151. package/dist/polyfills/unenv-runtime/node/internal/timers/immediate.d.mts +9 -0
  152. package/dist/polyfills/unenv-runtime/node/internal/timers/immediate.mjs +28 -0
  153. package/dist/polyfills/unenv-runtime/node/internal/timers/scheduler.d.mts +6 -0
  154. package/dist/polyfills/unenv-runtime/node/internal/timers/scheduler.mjs +10 -0
  155. package/dist/polyfills/unenv-runtime/node/internal/timers/set-immediate.d.mts +3 -0
  156. package/dist/polyfills/unenv-runtime/node/internal/timers/set-immediate.mjs +13 -0
  157. package/dist/polyfills/unenv-runtime/node/internal/timers/set-interval.d.mts +2 -0
  158. package/dist/polyfills/unenv-runtime/node/internal/timers/set-interval.mjs +8 -0
  159. package/dist/polyfills/unenv-runtime/node/internal/timers/set-timeout.d.mts +3 -0
  160. package/dist/polyfills/unenv-runtime/node/internal/timers/set-timeout.mjs +11 -0
  161. package/dist/polyfills/unenv-runtime/node/internal/timers/timeout.d.mts +11 -0
  162. package/dist/polyfills/unenv-runtime/node/internal/timers/timeout.mjs +30 -0
  163. package/dist/polyfills/unenv-runtime/node/internal/tls/constants.d.mts +7 -0
  164. package/dist/polyfills/unenv-runtime/node/internal/tls/constants.mjs +7 -0
  165. package/dist/polyfills/unenv-runtime/node/internal/tls/secure-context.d.mts +4 -0
  166. package/dist/polyfills/unenv-runtime/node/internal/tls/secure-context.mjs +3 -0
  167. package/dist/polyfills/unenv-runtime/node/internal/tls/server.d.mts +9 -0
  168. package/dist/polyfills/unenv-runtime/node/internal/tls/server.mjs +15 -0
  169. package/dist/polyfills/unenv-runtime/node/internal/tls/tls-socket.d.mts +31 -0
  170. package/dist/polyfills/unenv-runtime/node/internal/tls/tls-socket.mjs +48 -0
  171. package/dist/polyfills/unenv-runtime/node/internal/trace_events/tracing.d.mts +7 -0
  172. package/dist/polyfills/unenv-runtime/node/internal/trace_events/tracing.mjs +10 -0
  173. package/dist/polyfills/unenv-runtime/node/internal/tty/read-stream.d.mts +8 -0
  174. package/dist/polyfills/unenv-runtime/node/internal/tty/read-stream.mjs +12 -0
  175. package/dist/polyfills/unenv-runtime/node/internal/tty/write-stream.d.mts +20 -0
  176. package/dist/polyfills/unenv-runtime/node/internal/tty/write-stream.mjs +44 -0
  177. package/dist/polyfills/unenv-runtime/node/internal/url/constants.d.mts +44 -0
  178. package/dist/polyfills/unenv-runtime/node/internal/url/constants.mjs +44 -0
  179. package/dist/polyfills/unenv-runtime/node/internal/url/errors.d.mts +26 -0
  180. package/dist/polyfills/unenv-runtime/node/internal/url/errors.mjs +54 -0
  181. package/dist/polyfills/unenv-runtime/node/internal/url/url.d.mts +22 -0
  182. package/dist/polyfills/unenv-runtime/node/internal/url/url.mjs +181 -0
  183. package/dist/polyfills/unenv-runtime/node/internal/url/util.d.mts +4 -0
  184. package/dist/polyfills/unenv-runtime/node/internal/url/util.mjs +7 -0
  185. package/dist/polyfills/unenv-runtime/node/internal/util/inherits.d.mts +1 -0
  186. package/dist/polyfills/unenv-runtime/node/internal/util/inherits.mjs +12 -0
  187. package/dist/polyfills/unenv-runtime/node/internal/util/legacy-types.d.mts +19 -0
  188. package/dist/polyfills/unenv-runtime/node/internal/util/legacy-types.mjs +25 -0
  189. package/dist/polyfills/unenv-runtime/node/internal/util/log.d.mts +8 -0
  190. package/dist/polyfills/unenv-runtime/node/internal/util/log.mjs +55 -0
  191. package/dist/polyfills/unenv-runtime/node/internal/util/mime.d.mts +19 -0
  192. package/dist/polyfills/unenv-runtime/node/internal/util/mime.mjs +35 -0
  193. package/dist/polyfills/unenv-runtime/node/internal/util/promisify.d.mts +3 -0
  194. package/dist/polyfills/unenv-runtime/node/internal/util/promisify.mjs +23 -0
  195. package/dist/polyfills/unenv-runtime/node/internal/util/types.d.mts +45 -0
  196. package/dist/polyfills/unenv-runtime/node/internal/util/types.mjs +45 -0
  197. package/dist/polyfills/unenv-runtime/node/internal/v8/deserializer.d.mts +12 -0
  198. package/dist/polyfills/unenv-runtime/node/internal/v8/deserializer.mjs +23 -0
  199. package/dist/polyfills/unenv-runtime/node/internal/v8/profiler.d.mts +10 -0
  200. package/dist/polyfills/unenv-runtime/node/internal/v8/profiler.mjs +11 -0
  201. package/dist/polyfills/unenv-runtime/node/internal/v8/serializer.d.mts +12 -0
  202. package/dist/polyfills/unenv-runtime/node/internal/v8/serializer.mjs +15 -0
  203. package/dist/polyfills/unenv-runtime/node/internal/vm/constants.d.mts +2 -0
  204. package/dist/polyfills/unenv-runtime/node/internal/vm/constants.mjs +2 -0
  205. package/dist/polyfills/unenv-runtime/node/internal/vm/script.d.mts +7 -0
  206. package/dist/polyfills/unenv-runtime/node/internal/vm/script.mjs +15 -0
  207. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/broadcast-channel.d.mts +10 -0
  208. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/broadcast-channel.mjs +13 -0
  209. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-channel.d.mts +5 -0
  210. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-channel.mjs +5 -0
  211. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-port.d.mts +12 -0
  212. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/message-port.mjs +17 -0
  213. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/worker.d.mts +21 -0
  214. package/dist/polyfills/unenv-runtime/node/internal/worker_threads/worker.mjs +25 -0
  215. package/dist/polyfills/unenv-runtime/node/internal/zlib/codes.d.mts +21 -0
  216. package/dist/polyfills/unenv-runtime/node/internal/zlib/codes.mjs +21 -0
  217. package/dist/polyfills/unenv-runtime/node/internal/zlib/constants.d.mts +108 -0
  218. package/dist/polyfills/unenv-runtime/node/internal/zlib/constants.mjs +108 -0
  219. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/_shared.d.mts +22 -0
  220. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/_shared.mjs +40 -0
  221. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/brotli.d.mts +16 -0
  222. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/brotli.mjs +16 -0
  223. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/deflate.d.mts +29 -0
  224. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/deflate.mjs +36 -0
  225. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/gzip.d.mts +16 -0
  226. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/gzip.mjs +16 -0
  227. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/zip.d.mts +9 -0
  228. package/dist/polyfills/unenv-runtime/node/internal/zlib/formats/zip.mjs +9 -0
  229. package/dist/polyfills/unenv-runtime/node/module.d.mts +54 -0
  230. package/dist/polyfills/unenv-runtime/node/module.mjs +191 -0
  231. package/dist/polyfills/unenv-runtime/node/net.d.mts +22 -0
  232. package/dist/polyfills/unenv-runtime/node/net.mjs +52 -0
  233. package/dist/polyfills/unenv-runtime/node/os.d.mts +26 -0
  234. package/dist/polyfills/unenv-runtime/node/os.mjs +118 -0
  235. package/dist/polyfills/unenv-runtime/node/path/posix.d.mts +2 -0
  236. package/dist/polyfills/unenv-runtime/node/path/posix.mjs +2 -0
  237. package/dist/polyfills/unenv-runtime/node/path/win32.d.mts +2 -0
  238. package/dist/polyfills/unenv-runtime/node/path/win32.mjs +2 -0
  239. package/dist/polyfills/unenv-runtime/node/path.d.mts +12 -0
  240. package/dist/polyfills/unenv-runtime/node/path.mjs +31 -0
  241. package/dist/polyfills/unenv-runtime/node/perf_hooks.d.mts +8 -0
  242. package/dist/polyfills/unenv-runtime/node/perf_hooks.mjs +51 -0
  243. package/dist/polyfills/unenv-runtime/node/process.d.mts +3 -0
  244. package/dist/polyfills/unenv-runtime/node/process.mjs +12 -0
  245. package/dist/polyfills/unenv-runtime/node/punycode.d.mts +3 -0
  246. package/dist/polyfills/unenv-runtime/node/punycode.mjs +3 -0
  247. package/dist/polyfills/unenv-runtime/node/querystring.d.mts +49 -0
  248. package/dist/polyfills/unenv-runtime/node/querystring.mjs +766 -0
  249. package/dist/polyfills/unenv-runtime/node/readline/promises.d.mts +6 -0
  250. package/dist/polyfills/unenv-runtime/node/readline/promises.mjs +10 -0
  251. package/dist/polyfills/unenv-runtime/node/readline.d.mts +13 -0
  252. package/dist/polyfills/unenv-runtime/node/readline.mjs +21 -0
  253. package/dist/polyfills/unenv-runtime/node/repl.d.mts +10 -0
  254. package/dist/polyfills/unenv-runtime/node/repl.mjs +20 -0
  255. package/dist/polyfills/unenv-runtime/node/sqlite.d.mts +6 -0
  256. package/dist/polyfills/unenv-runtime/node/sqlite.mjs +9 -0
  257. package/dist/polyfills/unenv-runtime/node/stream/consumers.d.mts +7 -0
  258. package/dist/polyfills/unenv-runtime/node/stream/consumers.mjs +13 -0
  259. package/dist/polyfills/unenv-runtime/node/stream/promises.d.mts +4 -0
  260. package/dist/polyfills/unenv-runtime/node/stream/promises.mjs +7 -0
  261. package/dist/polyfills/unenv-runtime/node/stream/web.d.mts +24 -0
  262. package/dist/polyfills/unenv-runtime/node/stream/web.mjs +41 -0
  263. package/dist/polyfills/unenv-runtime/node/stream.d.mts +42 -0
  264. package/dist/polyfills/unenv-runtime/node/stream.mjs +54 -0
  265. package/dist/polyfills/unenv-runtime/node/string_decoder.d.mts +5 -0
  266. package/dist/polyfills/unenv-runtime/node/string_decoder.mjs +3 -0
  267. package/dist/polyfills/unenv-runtime/node/sys.d.mts +2 -0
  268. package/dist/polyfills/unenv-runtime/node/sys.mjs +2 -0
  269. package/dist/polyfills/unenv-runtime/node/timers/promises.d.mts +6 -0
  270. package/dist/polyfills/unenv-runtime/node/timers/promises.mjs +14 -0
  271. package/dist/polyfills/unenv-runtime/node/timers.d.mts +15 -0
  272. package/dist/polyfills/unenv-runtime/node/timers.mjs +32 -0
  273. package/dist/polyfills/unenv-runtime/node/tls.d.mts +15 -0
  274. package/dist/polyfills/unenv-runtime/node/tls.mjs +41 -0
  275. package/dist/polyfills/unenv-runtime/node/trace_events.d.mts +5 -0
  276. package/dist/polyfills/unenv-runtime/node/trace_events.mjs +9 -0
  277. package/dist/polyfills/unenv-runtime/node/tty.d.mts +9 -0
  278. package/dist/polyfills/unenv-runtime/node/tty.mjs +12 -0
  279. package/dist/polyfills/unenv-runtime/node/url.d.mts +61 -0
  280. package/dist/polyfills/unenv-runtime/node/url.mjs +1044 -0
  281. package/dist/polyfills/unenv-runtime/node/util/types.d.mts +3 -0
  282. package/dist/polyfills/unenv-runtime/node/util/types.mjs +3 -0
  283. package/dist/polyfills/unenv-runtime/node/util.d.mts +32 -0
  284. package/dist/polyfills/unenv-runtime/node/util.mjs +84 -0
  285. package/dist/polyfills/unenv-runtime/node/v8.d.mts +29 -0
  286. package/dist/polyfills/unenv-runtime/node/v8.mjs +108 -0
  287. package/dist/polyfills/unenv-runtime/node/vm.d.mts +15 -0
  288. package/dist/polyfills/unenv-runtime/node/vm.mjs +41 -0
  289. package/dist/polyfills/unenv-runtime/node/wasi.d.mts +4 -0
  290. package/dist/polyfills/unenv-runtime/node/wasi.mjs +3 -0
  291. package/dist/polyfills/unenv-runtime/node/worker_threads.d.mts +23 -0
  292. package/dist/polyfills/unenv-runtime/node/worker_threads.mjs +55 -0
  293. package/dist/polyfills/unenv-runtime/node/zlib.d.mts +16 -0
  294. package/dist/polyfills/unenv-runtime/node/zlib.mjs +212 -0
  295. package/dist/polyfills/unenv-runtime/npm/cross-fetch.d.mts +6 -0
  296. package/dist/polyfills/unenv-runtime/npm/cross-fetch.mjs +6 -0
  297. package/dist/polyfills/unenv-runtime/npm/debug.d.mts +15 -0
  298. package/dist/polyfills/unenv-runtime/npm/debug.mjs +43 -0
  299. package/dist/polyfills/unenv-runtime/npm/fsevents.d.mts +16 -0
  300. package/dist/polyfills/unenv-runtime/npm/fsevents.mjs +20 -0
  301. package/dist/polyfills/unenv-runtime/npm/inherits.d.mts +2 -0
  302. package/dist/polyfills/unenv-runtime/npm/inherits.mjs +2 -0
  303. package/dist/polyfills/unenv-runtime/npm/node-fetch.d.mts +12 -0
  304. package/dist/polyfills/unenv-runtime/npm/node-fetch.mjs +23 -0
  305. package/dist/polyfills/unenv-runtime/npm/whatwg-url/index.d.mts +13 -0
  306. package/dist/polyfills/unenv-runtime/npm/whatwg-url/index.mjs +15 -0
  307. package/dist/polyfills/unenv-runtime/npm/whatwg-url/webidl2js-wrapper.d.mts +2 -0
  308. package/dist/polyfills/unenv-runtime/npm/whatwg-url/webidl2js-wrapper.mjs +2 -0
  309. package/dist/polyfills/unenv-runtime/polyfill/buffer.d.mts +1 -0
  310. package/dist/polyfills/unenv-runtime/polyfill/buffer.mjs +4 -0
  311. package/dist/polyfills/unenv-runtime/polyfill/globalthis-global.d.mts +1 -0
  312. package/dist/polyfills/unenv-runtime/polyfill/globalthis-global.mjs +5 -0
  313. package/dist/polyfills/unenv-runtime/polyfill/globalthis.d.mts +2 -0
  314. package/dist/polyfills/unenv-runtime/polyfill/globalthis.mjs +2 -0
  315. package/dist/polyfills/unenv-runtime/polyfill/package.json +3 -0
  316. package/dist/polyfills/unenv-runtime/polyfill/performance.d.mts +2 -0
  317. package/dist/polyfills/unenv-runtime/polyfill/performance.mjs +10 -0
  318. package/dist/polyfills/unenv-runtime/polyfill/process.d.mts +2 -0
  319. package/dist/polyfills/unenv-runtime/polyfill/process.mjs +10 -0
  320. package/dist/polyfills/unenv-runtime/polyfill/source-maps.mjs +15 -0
  321. package/dist/polyfills/unenv-runtime/polyfill/timers.d.mts +1 -0
  322. package/dist/polyfills/unenv-runtime/polyfill/timers.mjs +7 -0
  323. package/dist/polyfills/unenv-runtime/web/performance/_polyfills.d.mts +100 -0
  324. package/dist/polyfills/unenv-runtime/web/performance/_polyfills.mjs +184 -0
  325. package/dist/polyfills/unenv-runtime/web/performance/index.d.mts +12 -0
  326. package/dist/polyfills/unenv-runtime/web/performance/index.mjs +14 -0
  327. package/dist/run.d.ts.map +1 -1
  328. package/dist/run.js +39 -10
  329. package/dist/run.js.map +1 -1
  330. package/package.json +2 -2
  331. package/src/polyfills/fs.ts +5 -3
  332. package/src/polyfills/process.ts +10 -8
  333. package/src/run.ts +41 -11
@@ -0,0 +1,191 @@
1
+ import { notImplemented, notImplementedClass } from "../_internal/utils.mjs";
2
+ export const _cache = Object.create(null);
3
+ export const _extensions = {
4
+ ".js": /* @__PURE__ */ notImplemented("module.require.extensions['.js']"),
5
+ ".json": /* @__PURE__ */ notImplemented("module.require.extensions['.json']"),
6
+ ".node": /* @__PURE__ */ notImplemented("module.require.extensions['.node']")
7
+ };
8
+ export const createRequire = function(_filename) {
9
+ return Object.assign(/* @__PURE__ */ notImplemented("module.require"), {
10
+ resolve: Object.assign(/* @__PURE__ */ notImplemented("module.require.resolve"), { paths: /* @__PURE__ */ notImplemented("module.require.resolve.paths") }),
11
+ cache: Object.create(null),
12
+ extensions: _extensions,
13
+ main: undefined
14
+ });
15
+ };
16
+ export const getCompileCacheDir = function() {
17
+ return undefined;
18
+ };
19
+ export const enableCompileCache = function(_cacheDir) {
20
+ return {
21
+ status: 0,
22
+ message: "not implemented"
23
+ };
24
+ };
25
+ export const constants = Object.freeze({ compileCacheStatus: Object.freeze({
26
+ FAILED: 0,
27
+ ENABLED: 1,
28
+ ALREADY_ENABLED: 2,
29
+ DISABLED: 3
30
+ }) });
31
+ // prettier-ignore
32
+ export const builtinModules = [
33
+ "_http_agent",
34
+ "_http_client",
35
+ "_http_common",
36
+ "_http_incoming",
37
+ "_http_outgoing",
38
+ "_http_server",
39
+ "_stream_duplex",
40
+ "_stream_passthrough",
41
+ "_stream_readable",
42
+ "_stream_transform",
43
+ "_stream_wrap",
44
+ "_stream_writable",
45
+ "_tls_common",
46
+ "_tls_wrap",
47
+ "assert",
48
+ "assert/strict",
49
+ "async_hooks",
50
+ "buffer",
51
+ "child_process",
52
+ "cluster",
53
+ "console",
54
+ "constants",
55
+ "crypto",
56
+ "dgram",
57
+ "diagnostics_channel",
58
+ "dns",
59
+ "dns/promises",
60
+ "domain",
61
+ "events",
62
+ "fs",
63
+ "fs/promises",
64
+ "http",
65
+ "http2",
66
+ "https",
67
+ "inspector",
68
+ "inspector/promises",
69
+ "module",
70
+ "net",
71
+ "os",
72
+ "path",
73
+ "path/posix",
74
+ "path/win32",
75
+ "perf_hooks",
76
+ "process",
77
+ "punycode",
78
+ "querystring",
79
+ "readline",
80
+ "readline/promises",
81
+ "repl",
82
+ "stream",
83
+ "stream/consumers",
84
+ "stream/promises",
85
+ "stream/web",
86
+ "string_decoder",
87
+ "sys",
88
+ "timers",
89
+ "timers/promises",
90
+ "tls",
91
+ "trace_events",
92
+ "tty",
93
+ "url",
94
+ "util",
95
+ "util/types",
96
+ "v8",
97
+ "vm",
98
+ "wasi",
99
+ "worker_threads",
100
+ "zlib"
101
+ ];
102
+ export const isBuiltin = function(id) {
103
+ return id.startsWith("node:") || builtinModules.includes(id);
104
+ };
105
+ export const runMain = /* @__PURE__ */ notImplemented("module.runMain");
106
+ export const register = /* @__PURE__ */ notImplemented("module.register");
107
+ export const syncBuiltinESMExports = function() {
108
+ return [];
109
+ };
110
+ export const findSourceMap = function(path, error) {
111
+ return undefined;
112
+ };
113
+ export const flushCompileCache = function flushCompileCache() {
114
+ /* silent noop */
115
+ };
116
+ export const wrap = function(source) {
117
+ return `(function (exports, require, module, __filename, __dirname) { ${source}\n});`;
118
+ };
119
+ export const wrapper = ["(function (exports, require, module, __filename, __dirname) { ", "\n});"];
120
+ export const stripTypeScriptTypes = /* @__PURE__ */ notImplemented("module.stripTypeScriptTypes");
121
+ export const SourceMap = /* @__PURE__ */ notImplementedClass("module.SourceMap");
122
+ export const _debug = console.debug;
123
+ export const _findPath = /* @__PURE__ */ notImplemented("module._findPath");
124
+ export const _initPaths = /* @__PURE__ */ notImplemented("module._initPaths");
125
+ export const _load = /* @__PURE__ */ notImplemented("module._load");
126
+ export const _nodeModulePaths = /* @__PURE__ */ notImplemented("module._nodeModulePaths");
127
+ export const _preloadModules = /* @__PURE__ */ notImplemented("module._preloadModules");
128
+ export const _resolveFilename = /* @__PURE__ */ notImplemented("module._resolveFilename");
129
+ export const _resolveLookupPaths = /* @__PURE__ */ notImplemented("module._resolveLookupPaths");
130
+ export const _stat = /* @__PURE__ */ notImplemented("module._stat");
131
+ export const _readPackage = /* @__PURE__ */ notImplemented("module._readPackage");
132
+ export const findPackageJSON = /* @__PURE__ */ notImplemented("module.findPackageJSON");
133
+ export const getSourceMapsSupport = /* @__PURE__ */ notImplemented("module.getSourceMapsSupport");
134
+ export const setSourceMapsSupport = /* @__PURE__ */ notImplemented("module.setSourceMapsSupport");
135
+ export const _pathCache = Object.create(null);
136
+ export const globalPaths = ["node_modules"];
137
+ // export class _Module implements NodeJS.Module {
138
+ // require: NodeJS.Require;
139
+ // id: string;
140
+ // filename: string;
141
+ // exports = Object.create(null);
142
+ // parent = undefined;
143
+ // loaded = true;
144
+ // children = [];
145
+ // isPreloading: boolean = false;
146
+ // path: string = "/";
147
+ // paths: string[] = [];
148
+ // constructor(id = "index.js") {
149
+ // this.id = id;
150
+ // this.filename = id;
151
+ // this.require = createRequire(id);
152
+ // }
153
+ // }
154
+ export const Module = {
155
+ get Module() {
156
+ return Module;
157
+ },
158
+ SourceMap,
159
+ _cache,
160
+ _extensions,
161
+ _debug,
162
+ _pathCache,
163
+ _findPath,
164
+ _initPaths,
165
+ _load,
166
+ _nodeModulePaths,
167
+ _preloadModules,
168
+ _resolveFilename,
169
+ _resolveLookupPaths,
170
+ _stat,
171
+ _readPackage,
172
+ builtinModules,
173
+ constants,
174
+ createRequire,
175
+ enableCompileCache,
176
+ findSourceMap,
177
+ getCompileCacheDir,
178
+ globalPaths,
179
+ isBuiltin,
180
+ register,
181
+ runMain,
182
+ syncBuiltinESMExports,
183
+ wrap,
184
+ wrapper,
185
+ flushCompileCache,
186
+ stripTypeScriptTypes,
187
+ findPackageJSON,
188
+ getSourceMapsSupport,
189
+ setSourceMapsSupport
190
+ };
191
+ export default Module;
@@ -0,0 +1,22 @@
1
+ // https://nodejs.org/api/net.html
2
+ import type nodeNet from "node:net";
3
+ export { Server } from "./internal/net/server.mjs";
4
+ // require('node:net').Socket === require('node:net').Stream
5
+ export { Socket, SocketAddress, Socket as Stream } from "./internal/net/socket.mjs";
6
+ export declare const createServer: typeof nodeNet.createServer;
7
+ export declare const BlockList: typeof nodeNet.BlockList;
8
+ export declare const connect: typeof nodeNet.connect;
9
+ export declare const createConnection: typeof nodeNet.createConnection;
10
+ export declare const getDefaultAutoSelectFamily: typeof nodeNet.getDefaultAutoSelectFamily;
11
+ export declare const setDefaultAutoSelectFamily: typeof nodeNet.setDefaultAutoSelectFamily;
12
+ export declare const getDefaultAutoSelectFamilyAttemptTimeout: typeof nodeNet.getDefaultAutoSelectFamilyAttemptTimeout;
13
+ export declare const setDefaultAutoSelectFamilyAttemptTimeout: typeof nodeNet.setDefaultAutoSelectFamilyAttemptTimeout;
14
+ export declare const isIPv4: typeof nodeNet.isIPv4;
15
+ export declare const isIPv6: typeof nodeNet.isIPv6;
16
+ export declare const isIP: typeof nodeNet.isIP;
17
+ // --- internal ---
18
+ export declare const _createServerHandle: unknown;
19
+ export declare const _normalizeArgs: unknown;
20
+ export declare const _setSimultaneousAccepts: unknown;
21
+ declare const exports: typeof nodeNet;
22
+ export default exports;
@@ -0,0 +1,52 @@
1
+ import { notImplemented, notImplementedClass } from "../_internal/utils.mjs";
2
+ import { Socket, SocketAddress } from "./internal/net/socket.mjs";
3
+ import { Server } from "./internal/net/server.mjs";
4
+ export { Server } from "./internal/net/server.mjs";
5
+ // require('node:net').Socket === require('node:net').Stream
6
+ export { Socket, SocketAddress, Socket as Stream } from "./internal/net/socket.mjs";
7
+ export const createServer = /* @__PURE__ */ notImplemented("net.createServer");
8
+ export const BlockList = /* @__PURE__ */ notImplementedClass("net.BlockList");
9
+ export const connect = /* @__PURE__ */ notImplemented("net.connect");
10
+ export const createConnection = /* @__PURE__ */ notImplemented("net.createConnection");
11
+ export const getDefaultAutoSelectFamily = /* @__PURE__ */ notImplemented("net.getDefaultAutoSelectFamily");
12
+ export const setDefaultAutoSelectFamily = /* @__PURE__ */ notImplemented("net.setDefaultAutoSelectFamily");
13
+ export const getDefaultAutoSelectFamilyAttemptTimeout = /* @__PURE__ */ notImplemented("net.getDefaultAutoSelectFamilyAttemptTimeout");
14
+ export const setDefaultAutoSelectFamilyAttemptTimeout = /* @__PURE__ */ notImplemented("net.setDefaultAutoSelectFamilyAttemptTimeout");
15
+ const IPV4Regex = /^(?:\d{1,3}\.){3}\d{1,3}$/;
16
+ export const isIPv4 = (host) => IPV4Regex.test(host);
17
+ const IPV6Regex = /^([\dA-Fa-f]{1,4}:){7}[\dA-Fa-f]{1,4}$/;
18
+ export const isIPv6 = (host) => IPV6Regex.test(host);
19
+ export const isIP = (host) => {
20
+ if (isIPv4(host)) {
21
+ return 4;
22
+ }
23
+ if (isIPv6(host)) {
24
+ return 6;
25
+ }
26
+ return 0;
27
+ };
28
+ // --- internal ---
29
+ export const _createServerHandle = /* @__PURE__ */ notImplemented("net._createServerHandle");
30
+ export const _normalizeArgs = /* @__PURE__ */ notImplemented("net._normalizeArgs");
31
+ export const _setSimultaneousAccepts = /* @__PURE__ */ notImplemented("net._setSimultaneousAccepts");
32
+ const exports = {
33
+ Socket,
34
+ Stream: Socket,
35
+ Server,
36
+ BlockList,
37
+ SocketAddress,
38
+ createServer,
39
+ connect,
40
+ createConnection,
41
+ isIPv4,
42
+ isIPv6,
43
+ isIP,
44
+ getDefaultAutoSelectFamily,
45
+ getDefaultAutoSelectFamilyAttemptTimeout,
46
+ setDefaultAutoSelectFamily,
47
+ setDefaultAutoSelectFamilyAttemptTimeout,
48
+ _createServerHandle,
49
+ _normalizeArgs,
50
+ _setSimultaneousAccepts
51
+ };
52
+ export default exports;
@@ -0,0 +1,26 @@
1
+ import type nodeOs from "node:os";
2
+ export declare const constants: typeof nodeOs.constants;
3
+ export declare const availableParallelism: typeof nodeOs.availableParallelism;
4
+ export declare const arch: typeof nodeOs.arch;
5
+ export declare const machine: typeof nodeOs.machine;
6
+ export declare const endianness: typeof nodeOs.endianness;
7
+ export declare const cpus: typeof nodeOs.cpus;
8
+ export declare const getPriority: typeof nodeOs.getPriority;
9
+ export declare const setPriority: typeof nodeOs.setPriority;
10
+ export declare const homedir: typeof nodeOs.homedir;
11
+ export declare const tmpdir: typeof nodeOs.tmpdir;
12
+ export declare const devNull: typeof nodeOs.devNull;
13
+ export declare const freemem: typeof nodeOs.freemem;
14
+ export declare const totalmem: typeof nodeOs.totalmem;
15
+ export declare const loadavg: typeof nodeOs.loadavg;
16
+ export declare const uptime: typeof nodeOs.uptime;
17
+ export declare const hostname: typeof nodeOs.hostname;
18
+ export declare const networkInterfaces: typeof nodeOs.networkInterfaces;
19
+ export declare const platform: typeof nodeOs.platform;
20
+ export declare const type: typeof nodeOs.type;
21
+ export declare const release: typeof nodeOs.release;
22
+ export declare const version: typeof nodeOs.version;
23
+ export declare const userInfo: typeof nodeOs.userInfo;
24
+ export declare const EOL: typeof nodeOs.EOL;
25
+ declare const _default: {};
26
+ export default _default;
@@ -0,0 +1,118 @@
1
+ import { notImplemented } from "../_internal/utils.mjs";
2
+ import { UV_UDP_REUSEADDR, dlopen, errno, signals, priority } from "./internal/os/constants.mjs";
3
+ export const constants = {
4
+ UV_UDP_REUSEADDR,
5
+ dlopen,
6
+ errno,
7
+ signals,
8
+ priority
9
+ };
10
+ const NUM_CPUS = 8;
11
+ export const availableParallelism = () => NUM_CPUS;
12
+ export const arch = () => "";
13
+ export const machine = () => "";
14
+ export const endianness = () => "LE";
15
+ export const cpus = () => {
16
+ const info = {
17
+ model: "",
18
+ speed: 0,
19
+ times: {
20
+ user: 0,
21
+ nice: 0,
22
+ sys: 0,
23
+ idle: 0,
24
+ irq: 0
25
+ }
26
+ };
27
+ return Array.from({ length: NUM_CPUS }, () => info);
28
+ };
29
+ export const getPriority = () => 0;
30
+ export const setPriority = /* @__PURE__ */ notImplemented("os.setPriority");
31
+ export const homedir = () => "/";
32
+ export const tmpdir = () => "/tmp";
33
+ export const devNull = "/dev/null";
34
+ export const freemem = () => 0;
35
+ export const totalmem = () => 0;
36
+ export const loadavg = () => [
37
+ 0,
38
+ 0,
39
+ 0
40
+ ];
41
+ export const uptime = () => 0;
42
+ export const hostname = () => "";
43
+ export const networkInterfaces = () => {
44
+ return { lo0: [
45
+ {
46
+ address: "127.0.0.1",
47
+ netmask: "255.0.0.0",
48
+ family: "IPv4",
49
+ mac: "00:00:00:00:00:00",
50
+ internal: true,
51
+ cidr: "127.0.0.1/8"
52
+ },
53
+ {
54
+ address: "::1",
55
+ netmask: "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
56
+ family: "IPv6",
57
+ mac: "00:00:00:00:00:00",
58
+ internal: true,
59
+ cidr: "::1/128",
60
+ scopeid: 0
61
+ },
62
+ {
63
+ address: "fe80::1",
64
+ netmask: "ffff:ffff:ffff:ffff::",
65
+ family: "IPv6",
66
+ mac: "00:00:00:00:00:00",
67
+ internal: true,
68
+ cidr: "fe80::1/64",
69
+ scopeid: 1
70
+ }
71
+ ] };
72
+ };
73
+ export const platform = () => "linux";
74
+ export const type = () => "Linux";
75
+ export const release = () => "";
76
+ export const version = () => "";
77
+ export const userInfo = (opts) => {
78
+ const encode = (str) => {
79
+ if (opts?.encoding) {
80
+ const buff = Buffer.from(str);
81
+ return opts.encoding === "buffer" ? buff : buff.toString(opts.encoding);
82
+ }
83
+ return str;
84
+ };
85
+ return {
86
+ gid: 1e3,
87
+ uid: 1e3,
88
+ homedir: encode("/"),
89
+ shell: encode("/bin/sh"),
90
+ username: encode("root")
91
+ };
92
+ };
93
+ export const EOL = "\n";
94
+ export default {
95
+ arch,
96
+ availableParallelism,
97
+ constants,
98
+ cpus,
99
+ EOL,
100
+ endianness,
101
+ devNull,
102
+ freemem,
103
+ getPriority,
104
+ homedir,
105
+ hostname,
106
+ loadavg,
107
+ machine,
108
+ networkInterfaces,
109
+ platform,
110
+ release,
111
+ setPriority,
112
+ tmpdir,
113
+ totalmem,
114
+ type,
115
+ uptime,
116
+ userInfo,
117
+ version
118
+ };
@@ -0,0 +1,2 @@
1
+ export * from "../path.mjs";
2
+ export { default } from "../path.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "../path.mjs";
2
+ export { default } from "../path.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "../path.mjs";
2
+ export { default } from "../path.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "../path.mjs";
2
+ export { default } from "../path.mjs";
@@ -0,0 +1,12 @@
1
+ // https://nodejs.org/api/path.html
2
+ // https://github.com/unjs/pathe
3
+ import type nodePath from "node:path";
4
+ export { basename, dirname, extname, format, isAbsolute, join, normalize, parse, relative, resolve, toNamespacedPath } from "pathe";
5
+ export declare const sep: "/";
6
+ export declare const delimiter: ":";
7
+ export declare const posix: typeof nodePath.posix;
8
+ export declare const win32: typeof nodePath.posix;
9
+ export declare const _makeLong: unknown;
10
+ export declare const matchesGlob: unknown;
11
+ declare const _default;
12
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { notImplemented } from "../_internal/utils.mjs";
2
+ import { basename, dirname, extname, format, isAbsolute, join, normalize, parse, relative, resolve, toNamespacedPath } from "pathe";
3
+ export { basename, dirname, extname, format, isAbsolute, join, normalize, parse, relative, resolve, toNamespacedPath } from "pathe";
4
+ export const sep = "/";
5
+ export const delimiter = ":";
6
+ const _pathModule = {
7
+ sep,
8
+ delimiter,
9
+ basename,
10
+ dirname,
11
+ extname,
12
+ format,
13
+ isAbsolute,
14
+ join,
15
+ normalize,
16
+ parse,
17
+ relative,
18
+ resolve,
19
+ toNamespacedPath,
20
+ posix: undefined,
21
+ win32: undefined,
22
+ _makeLong: (path) => path,
23
+ matchesGlob: /* @__PURE__ */ notImplemented(`path.matchesGlob`)
24
+ };
25
+ _pathModule.posix = _pathModule;
26
+ _pathModule.win32 = _pathModule;
27
+ export const posix = _pathModule;
28
+ export const win32 = _pathModule;
29
+ export const _makeLong = _pathModule._makeLong;
30
+ export const matchesGlob = _pathModule.matchesGlob;
31
+ export default _pathModule;
@@ -0,0 +1,8 @@
1
+ import type nodePerfHooks from "node:perf_hooks";
2
+ export * from "./internal/perf_hooks/performance.mjs";
3
+ // prettier-ignore
4
+ export declare const constants: typeof nodePerfHooks.constants;
5
+ export declare const monitorEventLoopDelay: typeof nodePerfHooks.monitorEventLoopDelay;
6
+ export declare const createHistogram: typeof nodePerfHooks.createHistogram;
7
+ declare const _default: {};
8
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import { IntervalHistogram, RecordableHistogram } from "./internal/perf_hooks/histogram.mjs";
2
+ import { performance, Performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, PerformanceObserverEntryList, PerformanceObserver, PerformanceResourceTiming } from "./internal/perf_hooks/performance.mjs";
3
+ export * from "./internal/perf_hooks/performance.mjs";
4
+ // prettier-ignore
5
+ import { NODE_PERFORMANCE_GC_MAJOR, NODE_PERFORMANCE_GC_MINOR, NODE_PERFORMANCE_GC_INCREMENTAL, NODE_PERFORMANCE_GC_WEAKCB, NODE_PERFORMANCE_GC_FLAGS_NO, NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED, NODE_PERFORMANCE_GC_FLAGS_FORCED, NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING, NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY, NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE, NODE_PERFORMANCE_ENTRY_TYPE_GC, NODE_PERFORMANCE_ENTRY_TYPE_HTTP, NODE_PERFORMANCE_ENTRY_TYPE_HTTP2, NODE_PERFORMANCE_ENTRY_TYPE_NET, NODE_PERFORMANCE_ENTRY_TYPE_DNS, NODE_PERFORMANCE_MILESTONE_TIME_ORIGIN_TIMESTAMP, NODE_PERFORMANCE_MILESTONE_TIME_ORIGIN, NODE_PERFORMANCE_MILESTONE_ENVIRONMENT, NODE_PERFORMANCE_MILESTONE_NODE_START, NODE_PERFORMANCE_MILESTONE_V8_START, NODE_PERFORMANCE_MILESTONE_LOOP_START, NODE_PERFORMANCE_MILESTONE_LOOP_EXIT, NODE_PERFORMANCE_MILESTONE_BOOTSTRAP_COMPLETE } from "./internal/perf_hooks/constants.mjs";
6
+ // prettier-ignore
7
+ export const constants = {
8
+ NODE_PERFORMANCE_GC_MAJOR,
9
+ NODE_PERFORMANCE_GC_MINOR,
10
+ NODE_PERFORMANCE_GC_INCREMENTAL,
11
+ NODE_PERFORMANCE_GC_WEAKCB,
12
+ NODE_PERFORMANCE_GC_FLAGS_NO,
13
+ NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED,
14
+ NODE_PERFORMANCE_GC_FLAGS_FORCED,
15
+ NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING,
16
+ NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE,
17
+ NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY,
18
+ NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE,
19
+ NODE_PERFORMANCE_ENTRY_TYPE_GC,
20
+ NODE_PERFORMANCE_ENTRY_TYPE_HTTP,
21
+ NODE_PERFORMANCE_ENTRY_TYPE_HTTP2,
22
+ NODE_PERFORMANCE_ENTRY_TYPE_NET,
23
+ NODE_PERFORMANCE_ENTRY_TYPE_DNS,
24
+ NODE_PERFORMANCE_MILESTONE_TIME_ORIGIN_TIMESTAMP,
25
+ NODE_PERFORMANCE_MILESTONE_TIME_ORIGIN,
26
+ NODE_PERFORMANCE_MILESTONE_ENVIRONMENT,
27
+ NODE_PERFORMANCE_MILESTONE_NODE_START,
28
+ NODE_PERFORMANCE_MILESTONE_V8_START,
29
+ NODE_PERFORMANCE_MILESTONE_LOOP_START,
30
+ NODE_PERFORMANCE_MILESTONE_LOOP_EXIT,
31
+ NODE_PERFORMANCE_MILESTONE_BOOTSTRAP_COMPLETE
32
+ };
33
+ export const monitorEventLoopDelay = function(_options) {
34
+ return new IntervalHistogram();
35
+ };
36
+ export const createHistogram = function(_options) {
37
+ return new RecordableHistogram();
38
+ };
39
+ export default {
40
+ Performance,
41
+ PerformanceMark,
42
+ PerformanceEntry,
43
+ PerformanceMeasure,
44
+ PerformanceObserverEntryList,
45
+ PerformanceObserver,
46
+ PerformanceResourceTiming,
47
+ performance,
48
+ constants,
49
+ createHistogram,
50
+ monitorEventLoopDelay
51
+ };
@@ -0,0 +1,3 @@
1
+ declare const _default;
2
+ export default _default;
3
+ export declare const;
@@ -0,0 +1,12 @@
1
+ // https://nodejs.org/api/process.html
2
+ import { Process } from "./internal/process/process.mjs";
3
+ import { env as UnenvEnv } from "./internal/process/env.mjs";
4
+ import { hrtime as UnenvHrTime } from "./internal/process/hrtime.mjs";
5
+ import { nextTick as UnenvNextTick } from "./internal/process/nexttick.mjs";
6
+ const unenvProcess = new Process({
7
+ env: UnenvEnv,
8
+ hrtime: UnenvHrTime,
9
+ nextTick: UnenvNextTick
10
+ });
11
+ export default unenvProcess;
12
+ export const { abort, addListener, allowedNodeEnvironmentFlags, hasUncaughtExceptionCaptureCallback, setUncaughtExceptionCaptureCallback, loadEnvFile, sourceMapsEnabled, arch, argv, argv0, chdir, config, connected, constrainedMemory, availableMemory, cpuUsage, cwd, debugPort, dlopen, disconnect, emit, emitWarning, env, eventNames, execArgv, execPath, exit, finalization, features, getBuiltinModule, getActiveResourcesInfo, getMaxListeners, hrtime, kill, listeners, listenerCount, memoryUsage, nextTick, on, off, once, pid, platform, ppid, prependListener, prependOnceListener, rawListeners, release, removeAllListeners, removeListener, report, resourceUsage, setMaxListeners, setSourceMapsEnabled, stderr, stdin, stdout, title, umask, uptime, version, versions, domain, initgroups, moduleLoadList, reallyExit, openStdin, assert, binding, send, exitCode, channel, getegid, geteuid, getgid, getgroups, getuid, setegid, seteuid, setgid, setgroups, setuid, permission, mainModule, ref, unref, _events, _eventsCount, _exiting, _maxListeners, _debugEnd, _debugProcess, _fatalException, _getActiveHandles, _getActiveRequests, _kill, _preload_modules, _rawDebug, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, _tickCallback, _disconnect, _handleQueue, _pendingMessage, _channel, _send, _linkedBinding } = unenvProcess;
@@ -0,0 +1,3 @@
1
+ export * from "./internal/punycode/punycode.mjs";
2
+ declare const _default;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import _punycode from "./internal/punycode/punycode.mjs";
2
+ export * from "./internal/punycode/punycode.mjs";
3
+ export default _punycode;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * A safe fast alternative to decodeURIComponent
3
+ * @param {string} s
4
+ * @param {boolean} decodeSpaces
5
+ * @returns {string}
6
+ */
7
+ declare function unescapeBuffer(s: string, decodeSpaces?: boolean): string | Buffer;
8
+ /**
9
+ * @param {string} s
10
+ * @param {boolean} decodeSpaces
11
+ * @returns {string}
12
+ */
13
+ declare function qsUnescape(s: string, decodeSpaces?: boolean): string;
14
+ /**
15
+ * QueryString.escape() replaces encodeURIComponent()
16
+ * @see https://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3.4
17
+ * @param {any} str
18
+ * @returns {string}
19
+ */
20
+ declare function qsEscape(str: string): string;
21
+ /**
22
+ * @param {Record<string, string | number | boolean
23
+ * | ReadonlyArray<string | number | boolean> | null>} obj
24
+ * @param {string} [sep]
25
+ * @param {string} [eq]
26
+ * @param {{ encodeURIComponent?: (v: string) => string }} [options]
27
+ * @returns {string}
28
+ */
29
+ declare function stringify(obj: Record<string, string | number | boolean | ReadonlyArray<string | number | boolean> | null>, sep: string, eq: string, options: {
30
+ encodeURIComponent?: (v: string) => string;
31
+ });
32
+ /**
33
+ * Parse a key/val string.
34
+ * @param {string} qs
35
+ * @param {string} sep
36
+ * @param {string} eq
37
+ * @param {{
38
+ * maxKeys?: number;
39
+ * decodeURIComponent?(v: string): string;
40
+ * }} [options]
41
+ * @returns {Record<string, string | string[]>}
42
+ */
43
+ declare function parse(qs: string, sep: string, eq: string, options: {
44
+ maxKeys?: number;
45
+ decodeURIComponent?(v: string): string;
46
+ });
47
+ export { unescapeBuffer, qsUnescape as unescape, qsEscape as escape, stringify, stringify as encode, parse, parse as decode };
48
+ declare const _default: {};
49
+ export default _default;