coupeeeez 0.0.1

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 (881) hide show
  1. package/LICENSE.MD +7 -0
  2. package/command +18 -0
  3. package/makeApp.ts +17 -0
  4. package/package.json +41 -0
  5. package/stream-api/Message.ts +6 -0
  6. package/stream-api/SSEInjected.ts +3 -0
  7. package/stream-api/SSEServer.ts +37 -0
  8. package/stream-api/SSEServers.ts +36 -0
  9. package/stream-api/StreamApi.ts +39 -0
  10. package/stream-api/app.ts +14 -0
  11. package/stream-api/index.ts +1 -0
  12. package/stream-api/node_modules/.package-lock.json +971 -0
  13. package/stream-api/node_modules/@types/body-parser/LICENSE +21 -0
  14. package/stream-api/node_modules/@types/body-parser/README.md +15 -0
  15. package/stream-api/node_modules/@types/body-parser/index.d.ts +95 -0
  16. package/stream-api/node_modules/@types/body-parser/package.json +64 -0
  17. package/stream-api/node_modules/@types/connect/LICENSE +21 -0
  18. package/stream-api/node_modules/@types/connect/README.md +15 -0
  19. package/stream-api/node_modules/@types/connect/index.d.ts +91 -0
  20. package/stream-api/node_modules/@types/connect/package.json +32 -0
  21. package/stream-api/node_modules/@types/express/LICENSE +21 -0
  22. package/stream-api/node_modules/@types/express/README.md +15 -0
  23. package/stream-api/node_modules/@types/express/index.d.ts +122 -0
  24. package/stream-api/node_modules/@types/express/package.json +45 -0
  25. package/stream-api/node_modules/@types/express-serve-static-core/LICENSE +21 -0
  26. package/stream-api/node_modules/@types/express-serve-static-core/README.md +15 -0
  27. package/stream-api/node_modules/@types/express-serve-static-core/index.d.ts +1244 -0
  28. package/stream-api/node_modules/@types/express-serve-static-core/package.json +51 -0
  29. package/stream-api/node_modules/@types/http-errors/LICENSE +21 -0
  30. package/stream-api/node_modules/@types/http-errors/README.md +15 -0
  31. package/stream-api/node_modules/@types/http-errors/index.d.ts +77 -0
  32. package/stream-api/node_modules/@types/http-errors/package.json +36 -0
  33. package/stream-api/node_modules/@types/mime/LICENSE +21 -0
  34. package/stream-api/node_modules/@types/mime/Mime.d.ts +10 -0
  35. package/stream-api/node_modules/@types/mime/README.md +15 -0
  36. package/stream-api/node_modules/@types/mime/index.d.ts +31 -0
  37. package/stream-api/node_modules/@types/mime/lite.d.ts +7 -0
  38. package/stream-api/node_modules/@types/mime/package.json +30 -0
  39. package/stream-api/node_modules/@types/node/LICENSE +21 -0
  40. package/stream-api/node_modules/@types/node/README.md +15 -0
  41. package/stream-api/node_modules/@types/node/assert/strict.d.ts +111 -0
  42. package/stream-api/node_modules/@types/node/assert.d.ts +1115 -0
  43. package/stream-api/node_modules/@types/node/async_hooks.d.ts +623 -0
  44. package/stream-api/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  45. package/stream-api/node_modules/@types/node/buffer.d.ts +1934 -0
  46. package/stream-api/node_modules/@types/node/child_process.d.ts +1476 -0
  47. package/stream-api/node_modules/@types/node/cluster.d.ts +578 -0
  48. package/stream-api/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  49. package/stream-api/node_modules/@types/node/console.d.ts +453 -0
  50. package/stream-api/node_modules/@types/node/constants.d.ts +21 -0
  51. package/stream-api/node_modules/@types/node/crypto.d.ts +5417 -0
  52. package/stream-api/node_modules/@types/node/dgram.d.ts +600 -0
  53. package/stream-api/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  54. package/stream-api/node_modules/@types/node/dns/promises.d.ts +503 -0
  55. package/stream-api/node_modules/@types/node/dns.d.ts +923 -0
  56. package/stream-api/node_modules/@types/node/domain.d.ts +170 -0
  57. package/stream-api/node_modules/@types/node/events.d.ts +976 -0
  58. package/stream-api/node_modules/@types/node/fs/promises.d.ts +1317 -0
  59. package/stream-api/node_modules/@types/node/fs.d.ts +4714 -0
  60. package/stream-api/node_modules/@types/node/globals.d.ts +170 -0
  61. package/stream-api/node_modules/@types/node/globals.typedarray.d.ts +41 -0
  62. package/stream-api/node_modules/@types/node/http.d.ts +2134 -0
  63. package/stream-api/node_modules/@types/node/http2.d.ts +2756 -0
  64. package/stream-api/node_modules/@types/node/https.d.ts +579 -0
  65. package/stream-api/node_modules/@types/node/index.d.ts +101 -0
  66. package/stream-api/node_modules/@types/node/inspector.d.ts +277 -0
  67. package/stream-api/node_modules/@types/node/inspector.generated.d.ts +4233 -0
  68. package/stream-api/node_modules/@types/node/module.d.ts +894 -0
  69. package/stream-api/node_modules/@types/node/net.d.ts +1054 -0
  70. package/stream-api/node_modules/@types/node/os.d.ts +507 -0
  71. package/stream-api/node_modules/@types/node/package.json +155 -0
  72. package/stream-api/node_modules/@types/node/path.d.ts +200 -0
  73. package/stream-api/node_modules/@types/node/perf_hooks.d.ts +982 -0
  74. package/stream-api/node_modules/@types/node/process.d.ts +2069 -0
  75. package/stream-api/node_modules/@types/node/punycode.d.ts +117 -0
  76. package/stream-api/node_modules/@types/node/querystring.d.ts +152 -0
  77. package/stream-api/node_modules/@types/node/readline/promises.d.ts +161 -0
  78. package/stream-api/node_modules/@types/node/readline.d.ts +594 -0
  79. package/stream-api/node_modules/@types/node/repl.d.ts +438 -0
  80. package/stream-api/node_modules/@types/node/sea.d.ts +162 -0
  81. package/stream-api/node_modules/@types/node/sqlite.d.ts +937 -0
  82. package/stream-api/node_modules/@types/node/stream/consumers.d.ts +38 -0
  83. package/stream-api/node_modules/@types/node/stream/promises.d.ts +90 -0
  84. package/stream-api/node_modules/@types/node/stream/web.d.ts +573 -0
  85. package/stream-api/node_modules/@types/node/stream.d.ts +1683 -0
  86. package/stream-api/node_modules/@types/node/string_decoder.d.ts +67 -0
  87. package/stream-api/node_modules/@types/node/test.d.ts +2339 -0
  88. package/stream-api/node_modules/@types/node/timers/promises.d.ts +108 -0
  89. package/stream-api/node_modules/@types/node/timers.d.ts +285 -0
  90. package/stream-api/node_modules/@types/node/tls.d.ts +1269 -0
  91. package/stream-api/node_modules/@types/node/trace_events.d.ts +197 -0
  92. package/stream-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  93. package/stream-api/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  94. package/stream-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  95. package/stream-api/node_modules/@types/node/ts5.6/index.d.ts +103 -0
  96. package/stream-api/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  97. package/stream-api/node_modules/@types/node/ts5.7/index.d.ts +103 -0
  98. package/stream-api/node_modules/@types/node/tty.d.ts +208 -0
  99. package/stream-api/node_modules/@types/node/url.d.ts +1057 -0
  100. package/stream-api/node_modules/@types/node/util.d.ts +2325 -0
  101. package/stream-api/node_modules/@types/node/v8.d.ts +952 -0
  102. package/stream-api/node_modules/@types/node/vm.d.ts +1180 -0
  103. package/stream-api/node_modules/@types/node/wasi.d.ts +202 -0
  104. package/stream-api/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  105. package/stream-api/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
  106. package/stream-api/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  107. package/stream-api/node_modules/@types/node/web-globals/events.d.ts +97 -0
  108. package/stream-api/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  109. package/stream-api/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  110. package/stream-api/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  111. package/stream-api/node_modules/@types/node/web-globals/streams.d.ts +22 -0
  112. package/stream-api/node_modules/@types/node/worker_threads.d.ts +896 -0
  113. package/stream-api/node_modules/@types/node/zlib.d.ts +681 -0
  114. package/stream-api/node_modules/@types/qs/LICENSE +21 -0
  115. package/stream-api/node_modules/@types/qs/README.md +15 -0
  116. package/stream-api/node_modules/@types/qs/index.d.ts +82 -0
  117. package/stream-api/node_modules/@types/qs/package.json +66 -0
  118. package/stream-api/node_modules/@types/range-parser/LICENSE +21 -0
  119. package/stream-api/node_modules/@types/range-parser/README.md +53 -0
  120. package/stream-api/node_modules/@types/range-parser/index.d.ts +34 -0
  121. package/stream-api/node_modules/@types/range-parser/package.json +25 -0
  122. package/stream-api/node_modules/@types/send/LICENSE +21 -0
  123. package/stream-api/node_modules/@types/send/README.md +15 -0
  124. package/stream-api/node_modules/@types/send/index.d.ts +187 -0
  125. package/stream-api/node_modules/@types/send/package.json +38 -0
  126. package/stream-api/node_modules/@types/serve-static/LICENSE +21 -0
  127. package/stream-api/node_modules/@types/serve-static/README.md +15 -0
  128. package/stream-api/node_modules/@types/serve-static/index.d.ts +107 -0
  129. package/stream-api/node_modules/@types/serve-static/node_modules/@types/send/LICENSE +21 -0
  130. package/stream-api/node_modules/@types/serve-static/node_modules/@types/send/README.md +15 -0
  131. package/stream-api/node_modules/@types/serve-static/node_modules/@types/send/index.d.ts +225 -0
  132. package/stream-api/node_modules/@types/serve-static/node_modules/@types/send/package.json +39 -0
  133. package/stream-api/node_modules/@types/serve-static/package.json +45 -0
  134. package/stream-api/node_modules/accepts/HISTORY.md +250 -0
  135. package/stream-api/node_modules/accepts/LICENSE +23 -0
  136. package/stream-api/node_modules/accepts/README.md +140 -0
  137. package/stream-api/node_modules/accepts/index.js +238 -0
  138. package/stream-api/node_modules/accepts/package.json +47 -0
  139. package/stream-api/node_modules/any-base/LICENSE +21 -0
  140. package/stream-api/node_modules/any-base/README.md +55 -0
  141. package/stream-api/node_modules/any-base/dist/any-base.js +94 -0
  142. package/stream-api/node_modules/any-base/dist/any-base.min.js +1 -0
  143. package/stream-api/node_modules/any-base/index.js +30 -0
  144. package/stream-api/node_modules/any-base/package.json +40 -0
  145. package/stream-api/node_modules/any-base/src/converter.js +80 -0
  146. package/stream-api/node_modules/body-parser/LICENSE +23 -0
  147. package/stream-api/node_modules/body-parser/README.md +494 -0
  148. package/stream-api/node_modules/body-parser/index.js +80 -0
  149. package/stream-api/node_modules/body-parser/lib/read.js +250 -0
  150. package/stream-api/node_modules/body-parser/lib/types/json.js +166 -0
  151. package/stream-api/node_modules/body-parser/lib/types/raw.js +43 -0
  152. package/stream-api/node_modules/body-parser/lib/types/text.js +37 -0
  153. package/stream-api/node_modules/body-parser/lib/types/urlencoded.js +142 -0
  154. package/stream-api/node_modules/body-parser/lib/utils.js +96 -0
  155. package/stream-api/node_modules/body-parser/package.json +52 -0
  156. package/stream-api/node_modules/bytes/History.md +97 -0
  157. package/stream-api/node_modules/bytes/LICENSE +23 -0
  158. package/stream-api/node_modules/bytes/Readme.md +152 -0
  159. package/stream-api/node_modules/bytes/index.js +170 -0
  160. package/stream-api/node_modules/bytes/package.json +42 -0
  161. package/stream-api/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  162. package/stream-api/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  163. package/stream-api/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  164. package/stream-api/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  165. package/stream-api/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  166. package/stream-api/node_modules/call-bind-apply-helpers/README.md +62 -0
  167. package/stream-api/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  168. package/stream-api/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  169. package/stream-api/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  170. package/stream-api/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  171. package/stream-api/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  172. package/stream-api/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  173. package/stream-api/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  174. package/stream-api/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  175. package/stream-api/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  176. package/stream-api/node_modules/call-bind-apply-helpers/index.js +15 -0
  177. package/stream-api/node_modules/call-bind-apply-helpers/package.json +85 -0
  178. package/stream-api/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  179. package/stream-api/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  180. package/stream-api/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  181. package/stream-api/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  182. package/stream-api/node_modules/call-bound/.eslintrc +13 -0
  183. package/stream-api/node_modules/call-bound/.github/FUNDING.yml +12 -0
  184. package/stream-api/node_modules/call-bound/.nycrc +9 -0
  185. package/stream-api/node_modules/call-bound/CHANGELOG.md +42 -0
  186. package/stream-api/node_modules/call-bound/LICENSE +21 -0
  187. package/stream-api/node_modules/call-bound/README.md +53 -0
  188. package/stream-api/node_modules/call-bound/index.d.ts +94 -0
  189. package/stream-api/node_modules/call-bound/index.js +19 -0
  190. package/stream-api/node_modules/call-bound/package.json +99 -0
  191. package/stream-api/node_modules/call-bound/test/index.js +61 -0
  192. package/stream-api/node_modules/call-bound/tsconfig.json +10 -0
  193. package/stream-api/node_modules/commander/LICENSE +22 -0
  194. package/stream-api/node_modules/commander/Readme.md +1159 -0
  195. package/stream-api/node_modules/commander/esm.mjs +16 -0
  196. package/stream-api/node_modules/commander/index.js +24 -0
  197. package/stream-api/node_modules/commander/lib/argument.js +150 -0
  198. package/stream-api/node_modules/commander/lib/command.js +2777 -0
  199. package/stream-api/node_modules/commander/lib/error.js +39 -0
  200. package/stream-api/node_modules/commander/lib/help.js +747 -0
  201. package/stream-api/node_modules/commander/lib/option.js +380 -0
  202. package/stream-api/node_modules/commander/lib/suggestSimilar.js +101 -0
  203. package/stream-api/node_modules/commander/package-support.json +16 -0
  204. package/stream-api/node_modules/commander/package.json +82 -0
  205. package/stream-api/node_modules/commander/typings/esm.d.mts +3 -0
  206. package/stream-api/node_modules/commander/typings/index.d.ts +1113 -0
  207. package/stream-api/node_modules/content-disposition/HISTORY.md +72 -0
  208. package/stream-api/node_modules/content-disposition/LICENSE +22 -0
  209. package/stream-api/node_modules/content-disposition/README.md +142 -0
  210. package/stream-api/node_modules/content-disposition/index.js +458 -0
  211. package/stream-api/node_modules/content-disposition/package.json +43 -0
  212. package/stream-api/node_modules/content-type/HISTORY.md +29 -0
  213. package/stream-api/node_modules/content-type/LICENSE +22 -0
  214. package/stream-api/node_modules/content-type/README.md +94 -0
  215. package/stream-api/node_modules/content-type/index.js +225 -0
  216. package/stream-api/node_modules/content-type/package.json +42 -0
  217. package/stream-api/node_modules/cookie/LICENSE +24 -0
  218. package/stream-api/node_modules/cookie/README.md +317 -0
  219. package/stream-api/node_modules/cookie/SECURITY.md +25 -0
  220. package/stream-api/node_modules/cookie/index.js +335 -0
  221. package/stream-api/node_modules/cookie/package.json +44 -0
  222. package/stream-api/node_modules/cookie-signature/History.md +70 -0
  223. package/stream-api/node_modules/cookie-signature/LICENSE +22 -0
  224. package/stream-api/node_modules/cookie-signature/Readme.md +23 -0
  225. package/stream-api/node_modules/cookie-signature/index.js +47 -0
  226. package/stream-api/node_modules/cookie-signature/package.json +24 -0
  227. package/stream-api/node_modules/debug/LICENSE +20 -0
  228. package/stream-api/node_modules/debug/README.md +481 -0
  229. package/stream-api/node_modules/debug/package.json +64 -0
  230. package/stream-api/node_modules/debug/src/browser.js +272 -0
  231. package/stream-api/node_modules/debug/src/common.js +292 -0
  232. package/stream-api/node_modules/debug/src/index.js +10 -0
  233. package/stream-api/node_modules/debug/src/node.js +263 -0
  234. package/stream-api/node_modules/depd/History.md +103 -0
  235. package/stream-api/node_modules/depd/LICENSE +22 -0
  236. package/stream-api/node_modules/depd/Readme.md +280 -0
  237. package/stream-api/node_modules/depd/index.js +538 -0
  238. package/stream-api/node_modules/depd/lib/browser/index.js +77 -0
  239. package/stream-api/node_modules/depd/package.json +45 -0
  240. package/stream-api/node_modules/dunder-proto/.eslintrc +5 -0
  241. package/stream-api/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  242. package/stream-api/node_modules/dunder-proto/.nycrc +13 -0
  243. package/stream-api/node_modules/dunder-proto/CHANGELOG.md +24 -0
  244. package/stream-api/node_modules/dunder-proto/LICENSE +21 -0
  245. package/stream-api/node_modules/dunder-proto/README.md +54 -0
  246. package/stream-api/node_modules/dunder-proto/get.d.ts +5 -0
  247. package/stream-api/node_modules/dunder-proto/get.js +30 -0
  248. package/stream-api/node_modules/dunder-proto/package.json +76 -0
  249. package/stream-api/node_modules/dunder-proto/set.d.ts +5 -0
  250. package/stream-api/node_modules/dunder-proto/set.js +35 -0
  251. package/stream-api/node_modules/dunder-proto/test/get.js +34 -0
  252. package/stream-api/node_modules/dunder-proto/test/index.js +4 -0
  253. package/stream-api/node_modules/dunder-proto/test/set.js +50 -0
  254. package/stream-api/node_modules/dunder-proto/tsconfig.json +9 -0
  255. package/stream-api/node_modules/ee-first/LICENSE +22 -0
  256. package/stream-api/node_modules/ee-first/README.md +80 -0
  257. package/stream-api/node_modules/ee-first/index.js +95 -0
  258. package/stream-api/node_modules/ee-first/package.json +29 -0
  259. package/stream-api/node_modules/encodeurl/LICENSE +22 -0
  260. package/stream-api/node_modules/encodeurl/README.md +109 -0
  261. package/stream-api/node_modules/encodeurl/index.js +60 -0
  262. package/stream-api/node_modules/encodeurl/package.json +40 -0
  263. package/stream-api/node_modules/es-define-property/.eslintrc +13 -0
  264. package/stream-api/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  265. package/stream-api/node_modules/es-define-property/.nycrc +9 -0
  266. package/stream-api/node_modules/es-define-property/CHANGELOG.md +29 -0
  267. package/stream-api/node_modules/es-define-property/LICENSE +21 -0
  268. package/stream-api/node_modules/es-define-property/README.md +49 -0
  269. package/stream-api/node_modules/es-define-property/index.d.ts +3 -0
  270. package/stream-api/node_modules/es-define-property/index.js +14 -0
  271. package/stream-api/node_modules/es-define-property/package.json +81 -0
  272. package/stream-api/node_modules/es-define-property/test/index.js +56 -0
  273. package/stream-api/node_modules/es-define-property/tsconfig.json +10 -0
  274. package/stream-api/node_modules/es-errors/.eslintrc +5 -0
  275. package/stream-api/node_modules/es-errors/.github/FUNDING.yml +12 -0
  276. package/stream-api/node_modules/es-errors/CHANGELOG.md +40 -0
  277. package/stream-api/node_modules/es-errors/LICENSE +21 -0
  278. package/stream-api/node_modules/es-errors/README.md +55 -0
  279. package/stream-api/node_modules/es-errors/eval.d.ts +3 -0
  280. package/stream-api/node_modules/es-errors/eval.js +4 -0
  281. package/stream-api/node_modules/es-errors/index.d.ts +3 -0
  282. package/stream-api/node_modules/es-errors/index.js +4 -0
  283. package/stream-api/node_modules/es-errors/package.json +80 -0
  284. package/stream-api/node_modules/es-errors/range.d.ts +3 -0
  285. package/stream-api/node_modules/es-errors/range.js +4 -0
  286. package/stream-api/node_modules/es-errors/ref.d.ts +3 -0
  287. package/stream-api/node_modules/es-errors/ref.js +4 -0
  288. package/stream-api/node_modules/es-errors/syntax.d.ts +3 -0
  289. package/stream-api/node_modules/es-errors/syntax.js +4 -0
  290. package/stream-api/node_modules/es-errors/test/index.js +19 -0
  291. package/stream-api/node_modules/es-errors/tsconfig.json +49 -0
  292. package/stream-api/node_modules/es-errors/type.d.ts +3 -0
  293. package/stream-api/node_modules/es-errors/type.js +4 -0
  294. package/stream-api/node_modules/es-errors/uri.d.ts +3 -0
  295. package/stream-api/node_modules/es-errors/uri.js +4 -0
  296. package/stream-api/node_modules/es-object-atoms/.eslintrc +16 -0
  297. package/stream-api/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  298. package/stream-api/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  299. package/stream-api/node_modules/es-object-atoms/LICENSE +21 -0
  300. package/stream-api/node_modules/es-object-atoms/README.md +63 -0
  301. package/stream-api/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  302. package/stream-api/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  303. package/stream-api/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  304. package/stream-api/node_modules/es-object-atoms/ToObject.js +10 -0
  305. package/stream-api/node_modules/es-object-atoms/index.d.ts +3 -0
  306. package/stream-api/node_modules/es-object-atoms/index.js +4 -0
  307. package/stream-api/node_modules/es-object-atoms/isObject.d.ts +3 -0
  308. package/stream-api/node_modules/es-object-atoms/isObject.js +6 -0
  309. package/stream-api/node_modules/es-object-atoms/package.json +80 -0
  310. package/stream-api/node_modules/es-object-atoms/test/index.js +38 -0
  311. package/stream-api/node_modules/es-object-atoms/tsconfig.json +6 -0
  312. package/stream-api/node_modules/escape-html/LICENSE +24 -0
  313. package/stream-api/node_modules/escape-html/Readme.md +43 -0
  314. package/stream-api/node_modules/escape-html/index.js +78 -0
  315. package/stream-api/node_modules/escape-html/package.json +24 -0
  316. package/stream-api/node_modules/etag/HISTORY.md +83 -0
  317. package/stream-api/node_modules/etag/LICENSE +22 -0
  318. package/stream-api/node_modules/etag/README.md +159 -0
  319. package/stream-api/node_modules/etag/index.js +131 -0
  320. package/stream-api/node_modules/etag/package.json +47 -0
  321. package/stream-api/node_modules/express/History.md +3858 -0
  322. package/stream-api/node_modules/express/LICENSE +24 -0
  323. package/stream-api/node_modules/express/Readme.md +266 -0
  324. package/stream-api/node_modules/express/index.js +11 -0
  325. package/stream-api/node_modules/express/lib/application.js +631 -0
  326. package/stream-api/node_modules/express/lib/express.js +81 -0
  327. package/stream-api/node_modules/express/lib/request.js +515 -0
  328. package/stream-api/node_modules/express/lib/response.js +1039 -0
  329. package/stream-api/node_modules/express/lib/utils.js +269 -0
  330. package/stream-api/node_modules/express/lib/view.js +205 -0
  331. package/stream-api/node_modules/express/package.json +98 -0
  332. package/stream-api/node_modules/finalhandler/HISTORY.md +233 -0
  333. package/stream-api/node_modules/finalhandler/LICENSE +22 -0
  334. package/stream-api/node_modules/finalhandler/README.md +147 -0
  335. package/stream-api/node_modules/finalhandler/index.js +293 -0
  336. package/stream-api/node_modules/finalhandler/package.json +43 -0
  337. package/stream-api/node_modules/forwarded/HISTORY.md +21 -0
  338. package/stream-api/node_modules/forwarded/LICENSE +22 -0
  339. package/stream-api/node_modules/forwarded/README.md +57 -0
  340. package/stream-api/node_modules/forwarded/index.js +90 -0
  341. package/stream-api/node_modules/forwarded/package.json +45 -0
  342. package/stream-api/node_modules/fresh/HISTORY.md +80 -0
  343. package/stream-api/node_modules/fresh/LICENSE +23 -0
  344. package/stream-api/node_modules/fresh/README.md +117 -0
  345. package/stream-api/node_modules/fresh/index.js +136 -0
  346. package/stream-api/node_modules/fresh/package.json +46 -0
  347. package/stream-api/node_modules/function-bind/.eslintrc +21 -0
  348. package/stream-api/node_modules/function-bind/.github/FUNDING.yml +12 -0
  349. package/stream-api/node_modules/function-bind/.github/SECURITY.md +3 -0
  350. package/stream-api/node_modules/function-bind/.nycrc +13 -0
  351. package/stream-api/node_modules/function-bind/CHANGELOG.md +136 -0
  352. package/stream-api/node_modules/function-bind/LICENSE +20 -0
  353. package/stream-api/node_modules/function-bind/README.md +46 -0
  354. package/stream-api/node_modules/function-bind/implementation.js +84 -0
  355. package/stream-api/node_modules/function-bind/index.js +5 -0
  356. package/stream-api/node_modules/function-bind/package.json +87 -0
  357. package/stream-api/node_modules/function-bind/test/.eslintrc +9 -0
  358. package/stream-api/node_modules/function-bind/test/index.js +252 -0
  359. package/stream-api/node_modules/get-intrinsic/.eslintrc +42 -0
  360. package/stream-api/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  361. package/stream-api/node_modules/get-intrinsic/.nycrc +9 -0
  362. package/stream-api/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  363. package/stream-api/node_modules/get-intrinsic/LICENSE +21 -0
  364. package/stream-api/node_modules/get-intrinsic/README.md +71 -0
  365. package/stream-api/node_modules/get-intrinsic/index.js +378 -0
  366. package/stream-api/node_modules/get-intrinsic/package.json +97 -0
  367. package/stream-api/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  368. package/stream-api/node_modules/get-proto/.eslintrc +10 -0
  369. package/stream-api/node_modules/get-proto/.github/FUNDING.yml +12 -0
  370. package/stream-api/node_modules/get-proto/.nycrc +9 -0
  371. package/stream-api/node_modules/get-proto/CHANGELOG.md +21 -0
  372. package/stream-api/node_modules/get-proto/LICENSE +21 -0
  373. package/stream-api/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  374. package/stream-api/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  375. package/stream-api/node_modules/get-proto/README.md +50 -0
  376. package/stream-api/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  377. package/stream-api/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  378. package/stream-api/node_modules/get-proto/index.d.ts +5 -0
  379. package/stream-api/node_modules/get-proto/index.js +27 -0
  380. package/stream-api/node_modules/get-proto/package.json +81 -0
  381. package/stream-api/node_modules/get-proto/test/index.js +68 -0
  382. package/stream-api/node_modules/get-proto/tsconfig.json +9 -0
  383. package/stream-api/node_modules/gopd/.eslintrc +16 -0
  384. package/stream-api/node_modules/gopd/.github/FUNDING.yml +12 -0
  385. package/stream-api/node_modules/gopd/CHANGELOG.md +45 -0
  386. package/stream-api/node_modules/gopd/LICENSE +21 -0
  387. package/stream-api/node_modules/gopd/README.md +40 -0
  388. package/stream-api/node_modules/gopd/gOPD.d.ts +1 -0
  389. package/stream-api/node_modules/gopd/gOPD.js +4 -0
  390. package/stream-api/node_modules/gopd/index.d.ts +5 -0
  391. package/stream-api/node_modules/gopd/index.js +15 -0
  392. package/stream-api/node_modules/gopd/package.json +77 -0
  393. package/stream-api/node_modules/gopd/test/index.js +36 -0
  394. package/stream-api/node_modules/gopd/tsconfig.json +9 -0
  395. package/stream-api/node_modules/has-symbols/.eslintrc +11 -0
  396. package/stream-api/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  397. package/stream-api/node_modules/has-symbols/.nycrc +9 -0
  398. package/stream-api/node_modules/has-symbols/CHANGELOG.md +91 -0
  399. package/stream-api/node_modules/has-symbols/LICENSE +21 -0
  400. package/stream-api/node_modules/has-symbols/README.md +46 -0
  401. package/stream-api/node_modules/has-symbols/index.d.ts +3 -0
  402. package/stream-api/node_modules/has-symbols/index.js +14 -0
  403. package/stream-api/node_modules/has-symbols/package.json +111 -0
  404. package/stream-api/node_modules/has-symbols/shams.d.ts +3 -0
  405. package/stream-api/node_modules/has-symbols/shams.js +45 -0
  406. package/stream-api/node_modules/has-symbols/test/index.js +22 -0
  407. package/stream-api/node_modules/has-symbols/test/shams/core-js.js +29 -0
  408. package/stream-api/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  409. package/stream-api/node_modules/has-symbols/test/tests.js +58 -0
  410. package/stream-api/node_modules/has-symbols/tsconfig.json +10 -0
  411. package/stream-api/node_modules/hasown/.eslintrc +5 -0
  412. package/stream-api/node_modules/hasown/.github/FUNDING.yml +12 -0
  413. package/stream-api/node_modules/hasown/.nycrc +13 -0
  414. package/stream-api/node_modules/hasown/CHANGELOG.md +40 -0
  415. package/stream-api/node_modules/hasown/LICENSE +21 -0
  416. package/stream-api/node_modules/hasown/README.md +40 -0
  417. package/stream-api/node_modules/hasown/index.d.ts +3 -0
  418. package/stream-api/node_modules/hasown/index.js +8 -0
  419. package/stream-api/node_modules/hasown/package.json +92 -0
  420. package/stream-api/node_modules/hasown/tsconfig.json +6 -0
  421. package/stream-api/node_modules/http-errors/HISTORY.md +186 -0
  422. package/stream-api/node_modules/http-errors/LICENSE +23 -0
  423. package/stream-api/node_modules/http-errors/README.md +169 -0
  424. package/stream-api/node_modules/http-errors/index.js +290 -0
  425. package/stream-api/node_modules/http-errors/package.json +54 -0
  426. package/stream-api/node_modules/iconv-lite/Changelog.md +236 -0
  427. package/stream-api/node_modules/iconv-lite/LICENSE +21 -0
  428. package/stream-api/node_modules/iconv-lite/README.md +138 -0
  429. package/stream-api/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  430. package/stream-api/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  431. package/stream-api/node_modules/iconv-lite/encodings/index.js +23 -0
  432. package/stream-api/node_modules/iconv-lite/encodings/internal.js +218 -0
  433. package/stream-api/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  434. package/stream-api/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  435. package/stream-api/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  436. package/stream-api/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  437. package/stream-api/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  438. package/stream-api/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  439. package/stream-api/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  440. package/stream-api/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  441. package/stream-api/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  442. package/stream-api/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  443. package/stream-api/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  444. package/stream-api/node_modules/iconv-lite/encodings/utf16.js +187 -0
  445. package/stream-api/node_modules/iconv-lite/encodings/utf32.js +307 -0
  446. package/stream-api/node_modules/iconv-lite/encodings/utf7.js +283 -0
  447. package/stream-api/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  448. package/stream-api/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  449. package/stream-api/node_modules/iconv-lite/lib/index.d.ts +41 -0
  450. package/stream-api/node_modules/iconv-lite/lib/index.js +183 -0
  451. package/stream-api/node_modules/iconv-lite/lib/streams.js +105 -0
  452. package/stream-api/node_modules/iconv-lite/package.json +59 -0
  453. package/stream-api/node_modules/inherits/LICENSE +16 -0
  454. package/stream-api/node_modules/inherits/README.md +42 -0
  455. package/stream-api/node_modules/inherits/inherits.js +9 -0
  456. package/stream-api/node_modules/inherits/inherits_browser.js +27 -0
  457. package/stream-api/node_modules/inherits/package.json +29 -0
  458. package/stream-api/node_modules/ipaddr.js/LICENSE +19 -0
  459. package/stream-api/node_modules/ipaddr.js/README.md +233 -0
  460. package/stream-api/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  461. package/stream-api/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
  462. package/stream-api/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
  463. package/stream-api/node_modules/ipaddr.js/package.json +35 -0
  464. package/stream-api/node_modules/is-promise/LICENSE +19 -0
  465. package/stream-api/node_modules/is-promise/index.d.ts +2 -0
  466. package/stream-api/node_modules/is-promise/index.js +6 -0
  467. package/stream-api/node_modules/is-promise/index.mjs +3 -0
  468. package/stream-api/node_modules/is-promise/package.json +30 -0
  469. package/stream-api/node_modules/is-promise/readme.md +33 -0
  470. package/stream-api/node_modules/math-intrinsics/.eslintrc +16 -0
  471. package/stream-api/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  472. package/stream-api/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  473. package/stream-api/node_modules/math-intrinsics/LICENSE +21 -0
  474. package/stream-api/node_modules/math-intrinsics/README.md +50 -0
  475. package/stream-api/node_modules/math-intrinsics/abs.d.ts +1 -0
  476. package/stream-api/node_modules/math-intrinsics/abs.js +4 -0
  477. package/stream-api/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  478. package/stream-api/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  479. package/stream-api/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  480. package/stream-api/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  481. package/stream-api/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  482. package/stream-api/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  483. package/stream-api/node_modules/math-intrinsics/floor.d.ts +1 -0
  484. package/stream-api/node_modules/math-intrinsics/floor.js +4 -0
  485. package/stream-api/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  486. package/stream-api/node_modules/math-intrinsics/isFinite.js +12 -0
  487. package/stream-api/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  488. package/stream-api/node_modules/math-intrinsics/isInteger.js +16 -0
  489. package/stream-api/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  490. package/stream-api/node_modules/math-intrinsics/isNaN.js +6 -0
  491. package/stream-api/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  492. package/stream-api/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  493. package/stream-api/node_modules/math-intrinsics/max.d.ts +1 -0
  494. package/stream-api/node_modules/math-intrinsics/max.js +4 -0
  495. package/stream-api/node_modules/math-intrinsics/min.d.ts +1 -0
  496. package/stream-api/node_modules/math-intrinsics/min.js +4 -0
  497. package/stream-api/node_modules/math-intrinsics/mod.d.ts +3 -0
  498. package/stream-api/node_modules/math-intrinsics/mod.js +9 -0
  499. package/stream-api/node_modules/math-intrinsics/package.json +86 -0
  500. package/stream-api/node_modules/math-intrinsics/pow.d.ts +1 -0
  501. package/stream-api/node_modules/math-intrinsics/pow.js +4 -0
  502. package/stream-api/node_modules/math-intrinsics/round.d.ts +1 -0
  503. package/stream-api/node_modules/math-intrinsics/round.js +4 -0
  504. package/stream-api/node_modules/math-intrinsics/sign.d.ts +3 -0
  505. package/stream-api/node_modules/math-intrinsics/sign.js +11 -0
  506. package/stream-api/node_modules/math-intrinsics/test/index.js +192 -0
  507. package/stream-api/node_modules/math-intrinsics/tsconfig.json +3 -0
  508. package/stream-api/node_modules/media-typer/HISTORY.md +50 -0
  509. package/stream-api/node_modules/media-typer/LICENSE +22 -0
  510. package/stream-api/node_modules/media-typer/README.md +93 -0
  511. package/stream-api/node_modules/media-typer/index.js +143 -0
  512. package/stream-api/node_modules/media-typer/package.json +33 -0
  513. package/stream-api/node_modules/merge-descriptors/index.d.ts +11 -0
  514. package/stream-api/node_modules/merge-descriptors/index.js +26 -0
  515. package/stream-api/node_modules/merge-descriptors/license +11 -0
  516. package/stream-api/node_modules/merge-descriptors/package.json +50 -0
  517. package/stream-api/node_modules/merge-descriptors/readme.md +55 -0
  518. package/stream-api/node_modules/mime-db/HISTORY.md +541 -0
  519. package/stream-api/node_modules/mime-db/LICENSE +23 -0
  520. package/stream-api/node_modules/mime-db/README.md +109 -0
  521. package/stream-api/node_modules/mime-db/db.json +9342 -0
  522. package/stream-api/node_modules/mime-db/index.js +12 -0
  523. package/stream-api/node_modules/mime-db/package.json +56 -0
  524. package/stream-api/node_modules/mime-types/HISTORY.md +428 -0
  525. package/stream-api/node_modules/mime-types/LICENSE +23 -0
  526. package/stream-api/node_modules/mime-types/README.md +126 -0
  527. package/stream-api/node_modules/mime-types/index.js +211 -0
  528. package/stream-api/node_modules/mime-types/mimeScore.js +57 -0
  529. package/stream-api/node_modules/mime-types/package.json +49 -0
  530. package/stream-api/node_modules/ms/index.js +162 -0
  531. package/stream-api/node_modules/ms/license.md +21 -0
  532. package/stream-api/node_modules/ms/package.json +38 -0
  533. package/stream-api/node_modules/ms/readme.md +59 -0
  534. package/stream-api/node_modules/negotiator/HISTORY.md +114 -0
  535. package/stream-api/node_modules/negotiator/LICENSE +24 -0
  536. package/stream-api/node_modules/negotiator/README.md +212 -0
  537. package/stream-api/node_modules/negotiator/index.js +83 -0
  538. package/stream-api/node_modules/negotiator/lib/charset.js +169 -0
  539. package/stream-api/node_modules/negotiator/lib/encoding.js +205 -0
  540. package/stream-api/node_modules/negotiator/lib/language.js +179 -0
  541. package/stream-api/node_modules/negotiator/lib/mediaType.js +294 -0
  542. package/stream-api/node_modules/negotiator/package.json +43 -0
  543. package/stream-api/node_modules/object-inspect/.eslintrc +53 -0
  544. package/stream-api/node_modules/object-inspect/.github/FUNDING.yml +12 -0
  545. package/stream-api/node_modules/object-inspect/.nycrc +13 -0
  546. package/stream-api/node_modules/object-inspect/CHANGELOG.md +424 -0
  547. package/stream-api/node_modules/object-inspect/LICENSE +21 -0
  548. package/stream-api/node_modules/object-inspect/example/all.js +23 -0
  549. package/stream-api/node_modules/object-inspect/example/circular.js +6 -0
  550. package/stream-api/node_modules/object-inspect/example/fn.js +5 -0
  551. package/stream-api/node_modules/object-inspect/example/inspect.js +10 -0
  552. package/stream-api/node_modules/object-inspect/index.js +544 -0
  553. package/stream-api/node_modules/object-inspect/package-support.json +20 -0
  554. package/stream-api/node_modules/object-inspect/package.json +105 -0
  555. package/stream-api/node_modules/object-inspect/readme.markdown +84 -0
  556. package/stream-api/node_modules/object-inspect/test/bigint.js +58 -0
  557. package/stream-api/node_modules/object-inspect/test/browser/dom.js +15 -0
  558. package/stream-api/node_modules/object-inspect/test/circular.js +16 -0
  559. package/stream-api/node_modules/object-inspect/test/deep.js +12 -0
  560. package/stream-api/node_modules/object-inspect/test/element.js +53 -0
  561. package/stream-api/node_modules/object-inspect/test/err.js +48 -0
  562. package/stream-api/node_modules/object-inspect/test/fakes.js +29 -0
  563. package/stream-api/node_modules/object-inspect/test/fn.js +76 -0
  564. package/stream-api/node_modules/object-inspect/test/global.js +17 -0
  565. package/stream-api/node_modules/object-inspect/test/has.js +15 -0
  566. package/stream-api/node_modules/object-inspect/test/holes.js +15 -0
  567. package/stream-api/node_modules/object-inspect/test/indent-option.js +271 -0
  568. package/stream-api/node_modules/object-inspect/test/inspect.js +139 -0
  569. package/stream-api/node_modules/object-inspect/test/lowbyte.js +12 -0
  570. package/stream-api/node_modules/object-inspect/test/number.js +58 -0
  571. package/stream-api/node_modules/object-inspect/test/quoteStyle.js +26 -0
  572. package/stream-api/node_modules/object-inspect/test/toStringTag.js +40 -0
  573. package/stream-api/node_modules/object-inspect/test/undef.js +12 -0
  574. package/stream-api/node_modules/object-inspect/test/values.js +261 -0
  575. package/stream-api/node_modules/object-inspect/test-core-js.js +26 -0
  576. package/stream-api/node_modules/object-inspect/util.inspect.js +1 -0
  577. package/stream-api/node_modules/on-finished/HISTORY.md +98 -0
  578. package/stream-api/node_modules/on-finished/LICENSE +23 -0
  579. package/stream-api/node_modules/on-finished/README.md +162 -0
  580. package/stream-api/node_modules/on-finished/index.js +234 -0
  581. package/stream-api/node_modules/on-finished/package.json +39 -0
  582. package/stream-api/node_modules/once/LICENSE +15 -0
  583. package/stream-api/node_modules/once/README.md +79 -0
  584. package/stream-api/node_modules/once/once.js +42 -0
  585. package/stream-api/node_modules/once/package.json +33 -0
  586. package/stream-api/node_modules/parseurl/HISTORY.md +58 -0
  587. package/stream-api/node_modules/parseurl/LICENSE +24 -0
  588. package/stream-api/node_modules/parseurl/README.md +133 -0
  589. package/stream-api/node_modules/parseurl/index.js +158 -0
  590. package/stream-api/node_modules/parseurl/package.json +40 -0
  591. package/stream-api/node_modules/path-to-regexp/LICENSE +21 -0
  592. package/stream-api/node_modules/path-to-regexp/Readme.md +224 -0
  593. package/stream-api/node_modules/path-to-regexp/dist/index.d.ts +144 -0
  594. package/stream-api/node_modules/path-to-regexp/dist/index.js +409 -0
  595. package/stream-api/node_modules/path-to-regexp/dist/index.js.map +1 -0
  596. package/stream-api/node_modules/path-to-regexp/package.json +64 -0
  597. package/stream-api/node_modules/proxy-addr/HISTORY.md +161 -0
  598. package/stream-api/node_modules/proxy-addr/LICENSE +22 -0
  599. package/stream-api/node_modules/proxy-addr/README.md +139 -0
  600. package/stream-api/node_modules/proxy-addr/index.js +327 -0
  601. package/stream-api/node_modules/proxy-addr/package.json +47 -0
  602. package/stream-api/node_modules/qs/.editorconfig +46 -0
  603. package/stream-api/node_modules/qs/.eslintrc +39 -0
  604. package/stream-api/node_modules/qs/.github/FUNDING.yml +12 -0
  605. package/stream-api/node_modules/qs/.nycrc +13 -0
  606. package/stream-api/node_modules/qs/CHANGELOG.md +622 -0
  607. package/stream-api/node_modules/qs/LICENSE.md +29 -0
  608. package/stream-api/node_modules/qs/README.md +733 -0
  609. package/stream-api/node_modules/qs/dist/qs.js +141 -0
  610. package/stream-api/node_modules/qs/lib/formats.js +23 -0
  611. package/stream-api/node_modules/qs/lib/index.js +11 -0
  612. package/stream-api/node_modules/qs/lib/parse.js +328 -0
  613. package/stream-api/node_modules/qs/lib/stringify.js +356 -0
  614. package/stream-api/node_modules/qs/lib/utils.js +268 -0
  615. package/stream-api/node_modules/qs/package.json +93 -0
  616. package/stream-api/node_modules/qs/test/empty-keys-cases.js +267 -0
  617. package/stream-api/node_modules/qs/test/parse.js +1276 -0
  618. package/stream-api/node_modules/qs/test/stringify.js +1306 -0
  619. package/stream-api/node_modules/qs/test/utils.js +262 -0
  620. package/stream-api/node_modules/range-parser/HISTORY.md +56 -0
  621. package/stream-api/node_modules/range-parser/LICENSE +23 -0
  622. package/stream-api/node_modules/range-parser/README.md +84 -0
  623. package/stream-api/node_modules/range-parser/index.js +162 -0
  624. package/stream-api/node_modules/range-parser/package.json +44 -0
  625. package/stream-api/node_modules/raw-body/LICENSE +22 -0
  626. package/stream-api/node_modules/raw-body/README.md +223 -0
  627. package/stream-api/node_modules/raw-body/index.d.ts +85 -0
  628. package/stream-api/node_modules/raw-body/index.js +336 -0
  629. package/stream-api/node_modules/raw-body/package.json +46 -0
  630. package/stream-api/node_modules/router/HISTORY.md +228 -0
  631. package/stream-api/node_modules/router/LICENSE +23 -0
  632. package/stream-api/node_modules/router/README.md +416 -0
  633. package/stream-api/node_modules/router/index.js +748 -0
  634. package/stream-api/node_modules/router/lib/layer.js +247 -0
  635. package/stream-api/node_modules/router/lib/route.js +242 -0
  636. package/stream-api/node_modules/router/package.json +44 -0
  637. package/stream-api/node_modules/safer-buffer/LICENSE +21 -0
  638. package/stream-api/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  639. package/stream-api/node_modules/safer-buffer/Readme.md +156 -0
  640. package/stream-api/node_modules/safer-buffer/dangerous.js +58 -0
  641. package/stream-api/node_modules/safer-buffer/package.json +34 -0
  642. package/stream-api/node_modules/safer-buffer/safer.js +77 -0
  643. package/stream-api/node_modules/safer-buffer/tests.js +406 -0
  644. package/stream-api/node_modules/send/HISTORY.md +580 -0
  645. package/stream-api/node_modules/send/LICENSE +23 -0
  646. package/stream-api/node_modules/send/README.md +317 -0
  647. package/stream-api/node_modules/send/index.js +997 -0
  648. package/stream-api/node_modules/send/package.json +60 -0
  649. package/stream-api/node_modules/serve-static/HISTORY.md +516 -0
  650. package/stream-api/node_modules/serve-static/LICENSE +25 -0
  651. package/stream-api/node_modules/serve-static/README.md +253 -0
  652. package/stream-api/node_modules/serve-static/index.js +208 -0
  653. package/stream-api/node_modules/serve-static/package.json +41 -0
  654. package/stream-api/node_modules/setprototypeof/LICENSE +13 -0
  655. package/stream-api/node_modules/setprototypeof/README.md +31 -0
  656. package/stream-api/node_modules/setprototypeof/index.d.ts +2 -0
  657. package/stream-api/node_modules/setprototypeof/index.js +17 -0
  658. package/stream-api/node_modules/setprototypeof/package.json +38 -0
  659. package/stream-api/node_modules/setprototypeof/test/index.js +24 -0
  660. package/stream-api/node_modules/short-uuid/.codeclimate.yml +21 -0
  661. package/stream-api/node_modules/short-uuid/.csslintrc +2 -0
  662. package/stream-api/node_modules/short-uuid/.editorconfig +11 -0
  663. package/stream-api/node_modules/short-uuid/.eslintrc.js +15 -0
  664. package/stream-api/node_modules/short-uuid/.github/workflows/node.js.yml +31 -0
  665. package/stream-api/node_modules/short-uuid/.nyc_output/3a60ecc2-69fc-4d0a-81dd-ad79b6071e14.json +1 -0
  666. package/stream-api/node_modules/short-uuid/.nyc_output/3f261446-c11a-4630-b995-4f5dbc1395ef.json +1 -0
  667. package/stream-api/node_modules/short-uuid/.nyc_output/processinfo/3a60ecc2-69fc-4d0a-81dd-ad79b6071e14.json +1 -0
  668. package/stream-api/node_modules/short-uuid/.nyc_output/processinfo/3f261446-c11a-4630-b995-4f5dbc1395ef.json +1 -0
  669. package/stream-api/node_modules/short-uuid/.nyc_output/processinfo/index.json +1 -0
  670. package/stream-api/node_modules/short-uuid/CHANGELOG.md +237 -0
  671. package/stream-api/node_modules/short-uuid/LICENSE +21 -0
  672. package/stream-api/node_modules/short-uuid/README.md +128 -0
  673. package/stream-api/node_modules/short-uuid/index.d.ts +51 -0
  674. package/stream-api/node_modules/short-uuid/index.js +157 -0
  675. package/stream-api/node_modules/short-uuid/package.json +41 -0
  676. package/stream-api/node_modules/short-uuid/revisions.md +193 -0
  677. package/stream-api/node_modules/short-uuid/test/index.js +339 -0
  678. package/stream-api/node_modules/short-uuid/test/uuid25examples.js +74 -0
  679. package/stream-api/node_modules/side-channel/.editorconfig +9 -0
  680. package/stream-api/node_modules/side-channel/.eslintrc +12 -0
  681. package/stream-api/node_modules/side-channel/.github/FUNDING.yml +12 -0
  682. package/stream-api/node_modules/side-channel/.nycrc +13 -0
  683. package/stream-api/node_modules/side-channel/CHANGELOG.md +110 -0
  684. package/stream-api/node_modules/side-channel/LICENSE +21 -0
  685. package/stream-api/node_modules/side-channel/README.md +61 -0
  686. package/stream-api/node_modules/side-channel/index.d.ts +14 -0
  687. package/stream-api/node_modules/side-channel/index.js +43 -0
  688. package/stream-api/node_modules/side-channel/package.json +85 -0
  689. package/stream-api/node_modules/side-channel/test/index.js +104 -0
  690. package/stream-api/node_modules/side-channel/tsconfig.json +9 -0
  691. package/stream-api/node_modules/side-channel-list/.editorconfig +9 -0
  692. package/stream-api/node_modules/side-channel-list/.eslintrc +11 -0
  693. package/stream-api/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  694. package/stream-api/node_modules/side-channel-list/.nycrc +13 -0
  695. package/stream-api/node_modules/side-channel-list/CHANGELOG.md +15 -0
  696. package/stream-api/node_modules/side-channel-list/LICENSE +21 -0
  697. package/stream-api/node_modules/side-channel-list/README.md +62 -0
  698. package/stream-api/node_modules/side-channel-list/index.d.ts +13 -0
  699. package/stream-api/node_modules/side-channel-list/index.js +113 -0
  700. package/stream-api/node_modules/side-channel-list/list.d.ts +14 -0
  701. package/stream-api/node_modules/side-channel-list/package.json +77 -0
  702. package/stream-api/node_modules/side-channel-list/test/index.js +104 -0
  703. package/stream-api/node_modules/side-channel-list/tsconfig.json +9 -0
  704. package/stream-api/node_modules/side-channel-map/.editorconfig +9 -0
  705. package/stream-api/node_modules/side-channel-map/.eslintrc +11 -0
  706. package/stream-api/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  707. package/stream-api/node_modules/side-channel-map/.nycrc +13 -0
  708. package/stream-api/node_modules/side-channel-map/CHANGELOG.md +22 -0
  709. package/stream-api/node_modules/side-channel-map/LICENSE +21 -0
  710. package/stream-api/node_modules/side-channel-map/README.md +62 -0
  711. package/stream-api/node_modules/side-channel-map/index.d.ts +15 -0
  712. package/stream-api/node_modules/side-channel-map/index.js +68 -0
  713. package/stream-api/node_modules/side-channel-map/package.json +80 -0
  714. package/stream-api/node_modules/side-channel-map/test/index.js +114 -0
  715. package/stream-api/node_modules/side-channel-map/tsconfig.json +9 -0
  716. package/stream-api/node_modules/side-channel-weakmap/.editorconfig +9 -0
  717. package/stream-api/node_modules/side-channel-weakmap/.eslintrc +12 -0
  718. package/stream-api/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  719. package/stream-api/node_modules/side-channel-weakmap/.nycrc +13 -0
  720. package/stream-api/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  721. package/stream-api/node_modules/side-channel-weakmap/LICENSE +21 -0
  722. package/stream-api/node_modules/side-channel-weakmap/README.md +62 -0
  723. package/stream-api/node_modules/side-channel-weakmap/index.d.ts +15 -0
  724. package/stream-api/node_modules/side-channel-weakmap/index.js +84 -0
  725. package/stream-api/node_modules/side-channel-weakmap/package.json +87 -0
  726. package/stream-api/node_modules/side-channel-weakmap/test/index.js +114 -0
  727. package/stream-api/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  728. package/stream-api/node_modules/statuses/HISTORY.md +87 -0
  729. package/stream-api/node_modules/statuses/LICENSE +23 -0
  730. package/stream-api/node_modules/statuses/README.md +139 -0
  731. package/stream-api/node_modules/statuses/codes.json +65 -0
  732. package/stream-api/node_modules/statuses/index.js +146 -0
  733. package/stream-api/node_modules/statuses/package.json +49 -0
  734. package/stream-api/node_modules/toidentifier/HISTORY.md +9 -0
  735. package/stream-api/node_modules/toidentifier/LICENSE +21 -0
  736. package/stream-api/node_modules/toidentifier/README.md +61 -0
  737. package/stream-api/node_modules/toidentifier/index.js +32 -0
  738. package/stream-api/node_modules/toidentifier/package.json +38 -0
  739. package/stream-api/node_modules/type-is/HISTORY.md +292 -0
  740. package/stream-api/node_modules/type-is/LICENSE +23 -0
  741. package/stream-api/node_modules/type-is/README.md +198 -0
  742. package/stream-api/node_modules/type-is/index.js +250 -0
  743. package/stream-api/node_modules/type-is/package.json +47 -0
  744. package/stream-api/node_modules/undici-types/LICENSE +21 -0
  745. package/stream-api/node_modules/undici-types/README.md +6 -0
  746. package/stream-api/node_modules/undici-types/agent.d.ts +32 -0
  747. package/stream-api/node_modules/undici-types/api.d.ts +43 -0
  748. package/stream-api/node_modules/undici-types/balanced-pool.d.ts +29 -0
  749. package/stream-api/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  750. package/stream-api/node_modules/undici-types/cache.d.ts +36 -0
  751. package/stream-api/node_modules/undici-types/client-stats.d.ts +15 -0
  752. package/stream-api/node_modules/undici-types/client.d.ts +108 -0
  753. package/stream-api/node_modules/undici-types/connector.d.ts +34 -0
  754. package/stream-api/node_modules/undici-types/content-type.d.ts +21 -0
  755. package/stream-api/node_modules/undici-types/cookies.d.ts +30 -0
  756. package/stream-api/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  757. package/stream-api/node_modules/undici-types/dispatcher.d.ts +276 -0
  758. package/stream-api/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  759. package/stream-api/node_modules/undici-types/errors.d.ts +161 -0
  760. package/stream-api/node_modules/undici-types/eventsource.d.ts +66 -0
  761. package/stream-api/node_modules/undici-types/fetch.d.ts +211 -0
  762. package/stream-api/node_modules/undici-types/formdata.d.ts +108 -0
  763. package/stream-api/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  764. package/stream-api/node_modules/undici-types/global-origin.d.ts +7 -0
  765. package/stream-api/node_modules/undici-types/h2c-client.d.ts +73 -0
  766. package/stream-api/node_modules/undici-types/handlers.d.ts +15 -0
  767. package/stream-api/node_modules/undici-types/header.d.ts +160 -0
  768. package/stream-api/node_modules/undici-types/index.d.ts +80 -0
  769. package/stream-api/node_modules/undici-types/interceptors.d.ts +39 -0
  770. package/stream-api/node_modules/undici-types/mock-agent.d.ts +68 -0
  771. package/stream-api/node_modules/undici-types/mock-call-history.d.ts +111 -0
  772. package/stream-api/node_modules/undici-types/mock-client.d.ts +27 -0
  773. package/stream-api/node_modules/undici-types/mock-errors.d.ts +12 -0
  774. package/stream-api/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  775. package/stream-api/node_modules/undici-types/mock-pool.d.ts +27 -0
  776. package/stream-api/node_modules/undici-types/package.json +55 -0
  777. package/stream-api/node_modules/undici-types/patch.d.ts +29 -0
  778. package/stream-api/node_modules/undici-types/pool-stats.d.ts +19 -0
  779. package/stream-api/node_modules/undici-types/pool.d.ts +41 -0
  780. package/stream-api/node_modules/undici-types/proxy-agent.d.ts +29 -0
  781. package/stream-api/node_modules/undici-types/readable.d.ts +68 -0
  782. package/stream-api/node_modules/undici-types/retry-agent.d.ts +8 -0
  783. package/stream-api/node_modules/undici-types/retry-handler.d.ts +125 -0
  784. package/stream-api/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  785. package/stream-api/node_modules/undici-types/util.d.ts +18 -0
  786. package/stream-api/node_modules/undici-types/utility.d.ts +7 -0
  787. package/stream-api/node_modules/undici-types/webidl.d.ts +341 -0
  788. package/stream-api/node_modules/undici-types/websocket.d.ts +186 -0
  789. package/stream-api/node_modules/unpipe/HISTORY.md +4 -0
  790. package/stream-api/node_modules/unpipe/LICENSE +22 -0
  791. package/stream-api/node_modules/unpipe/README.md +43 -0
  792. package/stream-api/node_modules/unpipe/index.js +69 -0
  793. package/stream-api/node_modules/unpipe/package.json +27 -0
  794. package/stream-api/node_modules/uuid/CHANGELOG.md +274 -0
  795. package/stream-api/node_modules/uuid/CONTRIBUTING.md +18 -0
  796. package/stream-api/node_modules/uuid/LICENSE.md +9 -0
  797. package/stream-api/node_modules/uuid/README.md +466 -0
  798. package/stream-api/node_modules/uuid/dist/bin/uuid +2 -0
  799. package/stream-api/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  800. package/stream-api/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  801. package/stream-api/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  802. package/stream-api/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  803. package/stream-api/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  804. package/stream-api/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  805. package/stream-api/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  806. package/stream-api/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  807. package/stream-api/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  808. package/stream-api/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  809. package/stream-api/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  810. package/stream-api/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  811. package/stream-api/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  812. package/stream-api/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  813. package/stream-api/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  814. package/stream-api/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  815. package/stream-api/node_modules/uuid/dist/esm-browser/index.js +9 -0
  816. package/stream-api/node_modules/uuid/dist/esm-browser/md5.js +215 -0
  817. package/stream-api/node_modules/uuid/dist/esm-browser/native.js +4 -0
  818. package/stream-api/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  819. package/stream-api/node_modules/uuid/dist/esm-browser/parse.js +35 -0
  820. package/stream-api/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  821. package/stream-api/node_modules/uuid/dist/esm-browser/rng.js +18 -0
  822. package/stream-api/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
  823. package/stream-api/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
  824. package/stream-api/node_modules/uuid/dist/esm-browser/v1.js +95 -0
  825. package/stream-api/node_modules/uuid/dist/esm-browser/v3.js +4 -0
  826. package/stream-api/node_modules/uuid/dist/esm-browser/v35.js +66 -0
  827. package/stream-api/node_modules/uuid/dist/esm-browser/v4.js +29 -0
  828. package/stream-api/node_modules/uuid/dist/esm-browser/v5.js +4 -0
  829. package/stream-api/node_modules/uuid/dist/esm-browser/validate.js +7 -0
  830. package/stream-api/node_modules/uuid/dist/esm-browser/version.js +11 -0
  831. package/stream-api/node_modules/uuid/dist/esm-node/index.js +9 -0
  832. package/stream-api/node_modules/uuid/dist/esm-node/md5.js +13 -0
  833. package/stream-api/node_modules/uuid/dist/esm-node/native.js +4 -0
  834. package/stream-api/node_modules/uuid/dist/esm-node/nil.js +1 -0
  835. package/stream-api/node_modules/uuid/dist/esm-node/parse.js +35 -0
  836. package/stream-api/node_modules/uuid/dist/esm-node/regex.js +1 -0
  837. package/stream-api/node_modules/uuid/dist/esm-node/rng.js +12 -0
  838. package/stream-api/node_modules/uuid/dist/esm-node/sha1.js +13 -0
  839. package/stream-api/node_modules/uuid/dist/esm-node/stringify.js +33 -0
  840. package/stream-api/node_modules/uuid/dist/esm-node/v1.js +95 -0
  841. package/stream-api/node_modules/uuid/dist/esm-node/v3.js +4 -0
  842. package/stream-api/node_modules/uuid/dist/esm-node/v35.js +66 -0
  843. package/stream-api/node_modules/uuid/dist/esm-node/v4.js +29 -0
  844. package/stream-api/node_modules/uuid/dist/esm-node/v5.js +4 -0
  845. package/stream-api/node_modules/uuid/dist/esm-node/validate.js +7 -0
  846. package/stream-api/node_modules/uuid/dist/esm-node/version.js +11 -0
  847. package/stream-api/node_modules/uuid/dist/index.js +79 -0
  848. package/stream-api/node_modules/uuid/dist/md5-browser.js +223 -0
  849. package/stream-api/node_modules/uuid/dist/md5.js +23 -0
  850. package/stream-api/node_modules/uuid/dist/native-browser.js +11 -0
  851. package/stream-api/node_modules/uuid/dist/native.js +15 -0
  852. package/stream-api/node_modules/uuid/dist/nil.js +8 -0
  853. package/stream-api/node_modules/uuid/dist/parse.js +45 -0
  854. package/stream-api/node_modules/uuid/dist/regex.js +8 -0
  855. package/stream-api/node_modules/uuid/dist/rng-browser.js +25 -0
  856. package/stream-api/node_modules/uuid/dist/rng.js +24 -0
  857. package/stream-api/node_modules/uuid/dist/sha1-browser.js +104 -0
  858. package/stream-api/node_modules/uuid/dist/sha1.js +23 -0
  859. package/stream-api/node_modules/uuid/dist/stringify.js +44 -0
  860. package/stream-api/node_modules/uuid/dist/uuid-bin.js +85 -0
  861. package/stream-api/node_modules/uuid/dist/v1.js +107 -0
  862. package/stream-api/node_modules/uuid/dist/v3.js +16 -0
  863. package/stream-api/node_modules/uuid/dist/v35.js +80 -0
  864. package/stream-api/node_modules/uuid/dist/v4.js +43 -0
  865. package/stream-api/node_modules/uuid/dist/v5.js +16 -0
  866. package/stream-api/node_modules/uuid/dist/validate.js +17 -0
  867. package/stream-api/node_modules/uuid/dist/version.js +21 -0
  868. package/stream-api/node_modules/uuid/package.json +135 -0
  869. package/stream-api/node_modules/uuid/wrapper.mjs +10 -0
  870. package/stream-api/node_modules/vary/HISTORY.md +39 -0
  871. package/stream-api/node_modules/vary/LICENSE +22 -0
  872. package/stream-api/node_modules/vary/README.md +101 -0
  873. package/stream-api/node_modules/vary/index.js +149 -0
  874. package/stream-api/node_modules/vary/package.json +43 -0
  875. package/stream-api/node_modules/wrappy/LICENSE +15 -0
  876. package/stream-api/node_modules/wrappy/README.md +36 -0
  877. package/stream-api/node_modules/wrappy/package.json +29 -0
  878. package/stream-api/node_modules/wrappy/wrappy.js +33 -0
  879. package/stream-api/package-lock.json +985 -0
  880. package/stream-api/package.json +25 -0
  881. package/stream-api/tsconfig.json +10 -0
@@ -0,0 +1,1180 @@
1
+ /**
2
+ * The `node:vm` module enables compiling and running code within V8 Virtual
3
+ * Machine contexts.
4
+ *
5
+ * **The `node:vm` module is not a security**
6
+ * **mechanism. Do not use it to run untrusted code.**
7
+ *
8
+ * JavaScript code can be compiled and run immediately or
9
+ * compiled, saved, and run later.
10
+ *
11
+ * A common use case is to run the code in a different V8 Context. This means
12
+ * invoked code has a different global object than the invoking code.
13
+ *
14
+ * One can provide the context by `contextifying` an
15
+ * object. The invoked code treats any property in the context like a
16
+ * global variable. Any changes to global variables caused by the invoked
17
+ * code are reflected in the context object.
18
+ *
19
+ * ```js
20
+ * import vm from 'node:vm';
21
+ *
22
+ * const x = 1;
23
+ *
24
+ * const context = { x: 2 };
25
+ * vm.createContext(context); // Contextify the object.
26
+ *
27
+ * const code = 'x += 40; var y = 17;';
28
+ * // `x` and `y` are global variables in the context.
29
+ * // Initially, x has the value 2 because that is the value of context.x.
30
+ * vm.runInContext(code, context);
31
+ *
32
+ * console.log(context.x); // 42
33
+ * console.log(context.y); // 17
34
+ *
35
+ * console.log(x); // 1; y is not defined.
36
+ * ```
37
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/vm.js)
38
+ */
39
+ declare module "vm" {
40
+ import { NonSharedBuffer } from "node:buffer";
41
+ import { ImportAttributes, ImportPhase } from "node:module";
42
+ interface Context extends NodeJS.Dict<any> {}
43
+ interface BaseOptions {
44
+ /**
45
+ * Specifies the filename used in stack traces produced by this script.
46
+ * @default ''
47
+ */
48
+ filename?: string | undefined;
49
+ /**
50
+ * Specifies the line number offset that is displayed in stack traces produced by this script.
51
+ * @default 0
52
+ */
53
+ lineOffset?: number | undefined;
54
+ /**
55
+ * Specifies the column number offset that is displayed in stack traces produced by this script.
56
+ * @default 0
57
+ */
58
+ columnOffset?: number | undefined;
59
+ }
60
+ type DynamicModuleLoader<T> = (
61
+ specifier: string,
62
+ referrer: T,
63
+ importAttributes: ImportAttributes,
64
+ phase: ImportPhase,
65
+ ) => Module | Promise<Module>;
66
+ interface ScriptOptions extends BaseOptions {
67
+ /**
68
+ * Provides an optional data with V8's code cache data for the supplied source.
69
+ */
70
+ cachedData?: NodeJS.ArrayBufferView | undefined;
71
+ /** @deprecated in favor of `script.createCachedData()` */
72
+ produceCachedData?: boolean | undefined;
73
+ /**
74
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
75
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
76
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v24.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
77
+ * @experimental
78
+ */
79
+ importModuleDynamically?:
80
+ | DynamicModuleLoader<Script>
81
+ | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
82
+ | undefined;
83
+ }
84
+ interface RunningScriptOptions extends BaseOptions {
85
+ /**
86
+ * When `true`, if an `Error` occurs while compiling the `code`, the line of code causing the error is attached to the stack trace.
87
+ * @default true
88
+ */
89
+ displayErrors?: boolean | undefined;
90
+ /**
91
+ * Specifies the number of milliseconds to execute code before terminating execution.
92
+ * If execution is terminated, an `Error` will be thrown. This value must be a strictly positive integer.
93
+ */
94
+ timeout?: number | undefined;
95
+ /**
96
+ * If `true`, the execution will be terminated when `SIGINT` (Ctrl+C) is received.
97
+ * Existing handlers for the event that have been attached via `process.on('SIGINT')` will be disabled during script execution, but will continue to work after that.
98
+ * If execution is terminated, an `Error` will be thrown.
99
+ * @default false
100
+ */
101
+ breakOnSigint?: boolean | undefined;
102
+ }
103
+ interface RunningScriptInNewContextOptions
104
+ extends RunningScriptOptions, Pick<CreateContextOptions, "microtaskMode">
105
+ {
106
+ /**
107
+ * Human-readable name of the newly created context.
108
+ */
109
+ contextName?: CreateContextOptions["name"] | undefined;
110
+ /**
111
+ * Origin corresponding to the newly created context for display purposes. The origin should be formatted like a URL,
112
+ * but with only the scheme, host, and port (if necessary), like the value of the `url.origin` property of a `URL` object.
113
+ * Most notably, this string should omit the trailing slash, as that denotes a path.
114
+ */
115
+ contextOrigin?: CreateContextOptions["origin"] | undefined;
116
+ contextCodeGeneration?: CreateContextOptions["codeGeneration"] | undefined;
117
+ }
118
+ interface RunningCodeOptions extends RunningScriptOptions, Pick<ScriptOptions, "cachedData"> {
119
+ /**
120
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
121
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
122
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v24.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
123
+ * @experimental
124
+ */
125
+ importModuleDynamically?:
126
+ | DynamicModuleLoader<Script>
127
+ | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
128
+ | undefined;
129
+ }
130
+ interface RunningCodeInNewContextOptions
131
+ extends RunningScriptInNewContextOptions, Pick<ScriptOptions, "cachedData">
132
+ {
133
+ /**
134
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
135
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
136
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v24.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
137
+ * @experimental
138
+ */
139
+ importModuleDynamically?:
140
+ | DynamicModuleLoader<Script>
141
+ | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
142
+ | undefined;
143
+ }
144
+ interface CompileFunctionOptions extends BaseOptions, Pick<ScriptOptions, "cachedData" | "produceCachedData"> {
145
+ /**
146
+ * The sandbox/context in which the said function should be compiled in.
147
+ */
148
+ parsingContext?: Context | undefined;
149
+ /**
150
+ * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling
151
+ */
152
+ contextExtensions?: Object[] | undefined;
153
+ /**
154
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
155
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
156
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v24.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
157
+ * @experimental
158
+ */
159
+ importModuleDynamically?:
160
+ | DynamicModuleLoader<ReturnType<typeof compileFunction>>
161
+ | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
162
+ | undefined;
163
+ }
164
+ interface CreateContextOptions {
165
+ /**
166
+ * Human-readable name of the newly created context.
167
+ * @default 'VM Context i' Where i is an ascending numerical index of the created context.
168
+ */
169
+ name?: string | undefined;
170
+ /**
171
+ * Corresponds to the newly created context for display purposes.
172
+ * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary),
173
+ * like the value of the `url.origin` property of a URL object.
174
+ * Most notably, this string should omit the trailing slash, as that denotes a path.
175
+ * @default ''
176
+ */
177
+ origin?: string | undefined;
178
+ codeGeneration?:
179
+ | {
180
+ /**
181
+ * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc)
182
+ * will throw an EvalError.
183
+ * @default true
184
+ */
185
+ strings?: boolean | undefined;
186
+ /**
187
+ * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError.
188
+ * @default true
189
+ */
190
+ wasm?: boolean | undefined;
191
+ }
192
+ | undefined;
193
+ /**
194
+ * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
195
+ */
196
+ microtaskMode?: "afterEvaluate" | undefined;
197
+ /**
198
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
199
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
200
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v24.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
201
+ * @experimental
202
+ */
203
+ importModuleDynamically?:
204
+ | DynamicModuleLoader<Context>
205
+ | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
206
+ | undefined;
207
+ }
208
+ type MeasureMemoryMode = "summary" | "detailed";
209
+ interface MeasureMemoryOptions {
210
+ /**
211
+ * @default 'summary'
212
+ */
213
+ mode?: MeasureMemoryMode | undefined;
214
+ /**
215
+ * @default 'default'
216
+ */
217
+ execution?: "default" | "eager" | undefined;
218
+ }
219
+ interface MemoryMeasurement {
220
+ total: {
221
+ jsMemoryEstimate: number;
222
+ jsMemoryRange: [number, number];
223
+ };
224
+ }
225
+ /**
226
+ * Instances of the `vm.Script` class contain precompiled scripts that can be
227
+ * executed in specific contexts.
228
+ * @since v0.3.1
229
+ */
230
+ class Script {
231
+ constructor(code: string, options?: ScriptOptions | string);
232
+ /**
233
+ * Runs the compiled code contained by the `vm.Script` object within the given `contextifiedObject` and returns the result. Running code does not have access
234
+ * to local scope.
235
+ *
236
+ * The following example compiles code that increments a global variable, sets
237
+ * the value of another global variable, then execute the code multiple times.
238
+ * The globals are contained in the `context` object.
239
+ *
240
+ * ```js
241
+ * import vm from 'node:vm';
242
+ *
243
+ * const context = {
244
+ * animal: 'cat',
245
+ * count: 2,
246
+ * };
247
+ *
248
+ * const script = new vm.Script('count += 1; name = "kitty";');
249
+ *
250
+ * vm.createContext(context);
251
+ * for (let i = 0; i < 10; ++i) {
252
+ * script.runInContext(context);
253
+ * }
254
+ *
255
+ * console.log(context);
256
+ * // Prints: { animal: 'cat', count: 12, name: 'kitty' }
257
+ * ```
258
+ *
259
+ * Using the `timeout` or `breakOnSigint` options will result in new event loops
260
+ * and corresponding threads being started, which have a non-zero performance
261
+ * overhead.
262
+ * @since v0.3.1
263
+ * @param contextifiedObject A `contextified` object as returned by the `vm.createContext()` method.
264
+ * @return the result of the very last statement executed in the script.
265
+ */
266
+ runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any;
267
+ /**
268
+ * This method is a shortcut to `script.runInContext(vm.createContext(options), options)`.
269
+ * It does several things at once:
270
+ *
271
+ * 1. Creates a new context.
272
+ * 2. If `contextObject` is an object, contextifies it with the new context.
273
+ * If `contextObject` is undefined, creates a new object and contextifies it.
274
+ * If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
275
+ * 3. Runs the compiled code contained by the `vm.Script` object within the created context. The code
276
+ * does not have access to the scope in which this method is called.
277
+ * 4. Returns the result.
278
+ *
279
+ * The following example compiles code that sets a global variable, then executes
280
+ * the code multiple times in different contexts. The globals are set on and
281
+ * contained within each individual `context`.
282
+ *
283
+ * ```js
284
+ * const vm = require('node:vm');
285
+ *
286
+ * const script = new vm.Script('globalVar = "set"');
287
+ *
288
+ * const contexts = [{}, {}, {}];
289
+ * contexts.forEach((context) => {
290
+ * script.runInNewContext(context);
291
+ * });
292
+ *
293
+ * console.log(contexts);
294
+ * // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }]
295
+ *
296
+ * // This would throw if the context is created from a contextified object.
297
+ * // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary
298
+ * // global objects that can be frozen.
299
+ * const freezeScript = new vm.Script('Object.freeze(globalThis); globalThis;');
300
+ * const frozenContext = freezeScript.runInNewContext(vm.constants.DONT_CONTEXTIFY);
301
+ * ```
302
+ * @since v0.3.1
303
+ * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
304
+ * If `undefined`, an empty contextified object will be created for backwards compatibility.
305
+ * @return the result of the very last statement executed in the script.
306
+ */
307
+ runInNewContext(
308
+ contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
309
+ options?: RunningScriptInNewContextOptions,
310
+ ): any;
311
+ /**
312
+ * Runs the compiled code contained by the `vm.Script` within the context of the
313
+ * current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
314
+ *
315
+ * The following example compiles code that increments a `global` variable then
316
+ * executes that code multiple times:
317
+ *
318
+ * ```js
319
+ * import vm from 'node:vm';
320
+ *
321
+ * global.globalVar = 0;
322
+ *
323
+ * const script = new vm.Script('globalVar += 1', { filename: 'myfile.vm' });
324
+ *
325
+ * for (let i = 0; i < 1000; ++i) {
326
+ * script.runInThisContext();
327
+ * }
328
+ *
329
+ * console.log(globalVar);
330
+ *
331
+ * // 1000
332
+ * ```
333
+ * @since v0.3.1
334
+ * @return the result of the very last statement executed in the script.
335
+ */
336
+ runInThisContext(options?: RunningScriptOptions): any;
337
+ /**
338
+ * Creates a code cache that can be used with the `Script` constructor's `cachedData` option. Returns a `Buffer`. This method may be called at any
339
+ * time and any number of times.
340
+ *
341
+ * The code cache of the `Script` doesn't contain any JavaScript observable
342
+ * states. The code cache is safe to be saved along side the script source and
343
+ * used to construct new `Script` instances multiple times.
344
+ *
345
+ * Functions in the `Script` source can be marked as lazily compiled and they are
346
+ * not compiled at construction of the `Script`. These functions are going to be
347
+ * compiled when they are invoked the first time. The code cache serializes the
348
+ * metadata that V8 currently knows about the `Script` that it can use to speed up
349
+ * future compilations.
350
+ *
351
+ * ```js
352
+ * const script = new vm.Script(`
353
+ * function add(a, b) {
354
+ * return a + b;
355
+ * }
356
+ *
357
+ * const x = add(1, 2);
358
+ * `);
359
+ *
360
+ * const cacheWithoutAdd = script.createCachedData();
361
+ * // In `cacheWithoutAdd` the function `add()` is marked for full compilation
362
+ * // upon invocation.
363
+ *
364
+ * script.runInThisContext();
365
+ *
366
+ * const cacheWithAdd = script.createCachedData();
367
+ * // `cacheWithAdd` contains fully compiled function `add()`.
368
+ * ```
369
+ * @since v10.6.0
370
+ */
371
+ createCachedData(): NonSharedBuffer;
372
+ /** @deprecated in favor of `script.createCachedData()` */
373
+ cachedDataProduced?: boolean;
374
+ /**
375
+ * When `cachedData` is supplied to create the `vm.Script`, this value will be set
376
+ * to either `true` or `false` depending on acceptance of the data by V8.
377
+ * Otherwise the value is `undefined`.
378
+ * @since v5.7.0
379
+ */
380
+ cachedDataRejected?: boolean;
381
+ cachedData?: NonSharedBuffer;
382
+ /**
383
+ * When the script is compiled from a source that contains a source map magic
384
+ * comment, this property will be set to the URL of the source map.
385
+ *
386
+ * ```js
387
+ * import vm from 'node:vm';
388
+ *
389
+ * const script = new vm.Script(`
390
+ * function myFunc() {}
391
+ * //# sourceMappingURL=sourcemap.json
392
+ * `);
393
+ *
394
+ * console.log(script.sourceMapURL);
395
+ * // Prints: sourcemap.json
396
+ * ```
397
+ * @since v19.1.0, v18.13.0
398
+ */
399
+ sourceMapURL: string | undefined;
400
+ }
401
+ /**
402
+ * If the given `contextObject` is an object, the `vm.createContext()` method will
403
+ * [prepare that object](https://nodejs.org/docs/latest-v24.x/api/vm.html#what-does-it-mean-to-contextify-an-object)
404
+ * and return a reference to it so that it can be used in calls to {@link runInContext} or
405
+ * [`script.runInContext()`](https://nodejs.org/docs/latest-v24.x/api/vm.html#scriptrunincontextcontextifiedobject-options).
406
+ * Inside such scripts, the global object will be wrapped by the `contextObject`, retaining all of its
407
+ * existing properties but also having the built-in objects and functions any standard
408
+ * [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global
409
+ * variables will remain unchanged.
410
+ *
411
+ * ```js
412
+ * const vm = require('node:vm');
413
+ *
414
+ * global.globalVar = 3;
415
+ *
416
+ * const context = { globalVar: 1 };
417
+ * vm.createContext(context);
418
+ *
419
+ * vm.runInContext('globalVar *= 2;', context);
420
+ *
421
+ * console.log(context);
422
+ * // Prints: { globalVar: 2 }
423
+ *
424
+ * console.log(global.globalVar);
425
+ * // Prints: 3
426
+ * ```
427
+ *
428
+ * If `contextObject` is omitted (or passed explicitly as `undefined`), a new,
429
+ * empty contextified object will be returned.
430
+ *
431
+ * When the global object in the newly created context is contextified, it has some quirks
432
+ * compared to ordinary global objects. For example, it cannot be frozen. To create a context
433
+ * without the contextifying quirks, pass `vm.constants.DONT_CONTEXTIFY` as the `contextObject`
434
+ * argument. See the documentation of `vm.constants.DONT_CONTEXTIFY` for details.
435
+ *
436
+ * The `vm.createContext()` method is primarily useful for creating a single
437
+ * context that can be used to run multiple scripts. For instance, if emulating a
438
+ * web browser, the method can be used to create a single context representing a
439
+ * window's global object, then run all `<script>` tags together within that
440
+ * context.
441
+ *
442
+ * The provided `name` and `origin` of the context are made visible through the
443
+ * Inspector API.
444
+ * @since v0.3.1
445
+ * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
446
+ * If `undefined`, an empty contextified object will be created for backwards compatibility.
447
+ * @return contextified object.
448
+ */
449
+ function createContext(
450
+ contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
451
+ options?: CreateContextOptions,
452
+ ): Context;
453
+ /**
454
+ * Returns `true` if the given `object` object has been contextified using {@link createContext},
455
+ * or if it's the global object of a context created using `vm.constants.DONT_CONTEXTIFY`.
456
+ * @since v0.11.7
457
+ */
458
+ function isContext(sandbox: Context): boolean;
459
+ /**
460
+ * The `vm.runInContext()` method compiles `code`, runs it within the context of
461
+ * the `contextifiedObject`, then returns the result. Running code does not have
462
+ * access to the local scope. The `contextifiedObject` object _must_ have been
463
+ * previously `contextified` using the {@link createContext} method.
464
+ *
465
+ * If `options` is a string, then it specifies the filename.
466
+ *
467
+ * The following example compiles and executes different scripts using a single `contextified` object:
468
+ *
469
+ * ```js
470
+ * import vm from 'node:vm';
471
+ *
472
+ * const contextObject = { globalVar: 1 };
473
+ * vm.createContext(contextObject);
474
+ *
475
+ * for (let i = 0; i < 10; ++i) {
476
+ * vm.runInContext('globalVar *= 2;', contextObject);
477
+ * }
478
+ * console.log(contextObject);
479
+ * // Prints: { globalVar: 1024 }
480
+ * ```
481
+ * @since v0.3.1
482
+ * @param code The JavaScript code to compile and run.
483
+ * @param contextifiedObject The `contextified` object that will be used as the `global` when the `code` is compiled and run.
484
+ * @return the result of the very last statement executed in the script.
485
+ */
486
+ function runInContext(code: string, contextifiedObject: Context, options?: RunningCodeOptions | string): any;
487
+ /**
488
+ * This method is a shortcut to
489
+ * `(new vm.Script(code, options)).runInContext(vm.createContext(options), options)`.
490
+ * If `options` is a string, then it specifies the filename.
491
+ *
492
+ * It does several things at once:
493
+ *
494
+ * 1. Creates a new context.
495
+ * 2. If `contextObject` is an object, contextifies it with the new context.
496
+ * If `contextObject` is undefined, creates a new object and contextifies it.
497
+ * If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
498
+ * 3. Compiles the code as a`vm.Script`
499
+ * 4. Runs the compield code within the created context. The code does not have access to the scope in
500
+ * which this method is called.
501
+ * 5. Returns the result.
502
+ *
503
+ * The following example compiles and executes code that increments a global
504
+ * variable and sets a new one. These globals are contained in the `contextObject`.
505
+ *
506
+ * ```js
507
+ * const vm = require('node:vm');
508
+ *
509
+ * const contextObject = {
510
+ * animal: 'cat',
511
+ * count: 2,
512
+ * };
513
+ *
514
+ * vm.runInNewContext('count += 1; name = "kitty"', contextObject);
515
+ * console.log(contextObject);
516
+ * // Prints: { animal: 'cat', count: 3, name: 'kitty' }
517
+ *
518
+ * // This would throw if the context is created from a contextified object.
519
+ * // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary global objects that
520
+ * // can be frozen.
521
+ * const frozenContext = vm.runInNewContext('Object.freeze(globalThis); globalThis;', vm.constants.DONT_CONTEXTIFY);
522
+ * ```
523
+ * @since v0.3.1
524
+ * @param code The JavaScript code to compile and run.
525
+ * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
526
+ * If `undefined`, an empty contextified object will be created for backwards compatibility.
527
+ * @return the result of the very last statement executed in the script.
528
+ */
529
+ function runInNewContext(
530
+ code: string,
531
+ contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
532
+ options?: RunningCodeInNewContextOptions | string,
533
+ ): any;
534
+ /**
535
+ * `vm.runInThisContext()` compiles `code`, runs it within the context of the
536
+ * current `global` and returns the result. Running code does not have access to
537
+ * local scope, but does have access to the current `global` object.
538
+ *
539
+ * If `options` is a string, then it specifies the filename.
540
+ *
541
+ * The following example illustrates using both `vm.runInThisContext()` and
542
+ * the JavaScript [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) function to run the same code:
543
+ *
544
+ * ```js
545
+ * import vm from 'node:vm';
546
+ * let localVar = 'initial value';
547
+ *
548
+ * const vmResult = vm.runInThisContext('localVar = "vm";');
549
+ * console.log(`vmResult: '${vmResult}', localVar: '${localVar}'`);
550
+ * // Prints: vmResult: 'vm', localVar: 'initial value'
551
+ *
552
+ * const evalResult = eval('localVar = "eval";');
553
+ * console.log(`evalResult: '${evalResult}', localVar: '${localVar}'`);
554
+ * // Prints: evalResult: 'eval', localVar: 'eval'
555
+ * ```
556
+ *
557
+ * Because `vm.runInThisContext()` does not have access to the local scope, `localVar` is unchanged. In contrast,
558
+ * [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) _does_ have access to the
559
+ * local scope, so the value `localVar` is changed. In this way `vm.runInThisContext()` is much like an [indirect `eval()` call](https://es5.github.io/#x10.4.2), e.g.`(0,eval)('code')`.
560
+ *
561
+ * ## Example: Running an HTTP server within a VM
562
+ *
563
+ * When using either `script.runInThisContext()` or {@link runInThisContext}, the code is executed within the current V8 global
564
+ * context. The code passed to this VM context will have its own isolated scope.
565
+ *
566
+ * In order to run a simple web server using the `node:http` module the code passed
567
+ * to the context must either import `node:http` on its own, or have a
568
+ * reference to the `node:http` module passed to it. For instance:
569
+ *
570
+ * ```js
571
+ * 'use strict';
572
+ * import vm from 'node:vm';
573
+ *
574
+ * const code = `
575
+ * ((require) => {
576
+ * const http = require('node:http');
577
+ *
578
+ * http.createServer((request, response) => {
579
+ * response.writeHead(200, { 'Content-Type': 'text/plain' });
580
+ * response.end('Hello World\\n');
581
+ * }).listen(8124);
582
+ *
583
+ * console.log('Server running at http://127.0.0.1:8124/');
584
+ * })`;
585
+ *
586
+ * vm.runInThisContext(code)(require);
587
+ * ```
588
+ *
589
+ * The `require()` in the above case shares the state with the context it is
590
+ * passed from. This may introduce risks when untrusted code is executed, e.g.
591
+ * altering objects in the context in unwanted ways.
592
+ * @since v0.3.1
593
+ * @param code The JavaScript code to compile and run.
594
+ * @return the result of the very last statement executed in the script.
595
+ */
596
+ function runInThisContext(code: string, options?: RunningCodeOptions | string): any;
597
+ /**
598
+ * Compiles the given code into the provided context (if no context is
599
+ * supplied, the current context is used), and returns it wrapped inside a
600
+ * function with the given `params`.
601
+ * @since v10.10.0
602
+ * @param code The body of the function to compile.
603
+ * @param params An array of strings containing all parameters for the function.
604
+ */
605
+ function compileFunction(
606
+ code: string,
607
+ params?: readonly string[],
608
+ options?: CompileFunctionOptions,
609
+ ): Function & Pick<Script, "cachedData" | "cachedDataProduced" | "cachedDataRejected">;
610
+ /**
611
+ * Measure the memory known to V8 and used by all contexts known to the
612
+ * current V8 isolate, or the main context.
613
+ *
614
+ * The format of the object that the returned Promise may resolve with is
615
+ * specific to the V8 engine and may change from one version of V8 to the next.
616
+ *
617
+ * The returned result is different from the statistics returned by `v8.getHeapSpaceStatistics()` in that `vm.measureMemory()` measure the
618
+ * memory reachable by each V8 specific contexts in the current instance of
619
+ * the V8 engine, while the result of `v8.getHeapSpaceStatistics()` measure
620
+ * the memory occupied by each heap space in the current V8 instance.
621
+ *
622
+ * ```js
623
+ * import vm from 'node:vm';
624
+ * // Measure the memory used by the main context.
625
+ * vm.measureMemory({ mode: 'summary' })
626
+ * // This is the same as vm.measureMemory()
627
+ * .then((result) => {
628
+ * // The current format is:
629
+ * // {
630
+ * // total: {
631
+ * // jsMemoryEstimate: 2418479, jsMemoryRange: [ 2418479, 2745799 ]
632
+ * // }
633
+ * // }
634
+ * console.log(result);
635
+ * });
636
+ *
637
+ * const context = vm.createContext({ a: 1 });
638
+ * vm.measureMemory({ mode: 'detailed', execution: 'eager' })
639
+ * .then((result) => {
640
+ * // Reference the context here so that it won't be GC'ed
641
+ * // until the measurement is complete.
642
+ * console.log(context.a);
643
+ * // {
644
+ * // total: {
645
+ * // jsMemoryEstimate: 2574732,
646
+ * // jsMemoryRange: [ 2574732, 2904372 ]
647
+ * // },
648
+ * // current: {
649
+ * // jsMemoryEstimate: 2438996,
650
+ * // jsMemoryRange: [ 2438996, 2768636 ]
651
+ * // },
652
+ * // other: [
653
+ * // {
654
+ * // jsMemoryEstimate: 135736,
655
+ * // jsMemoryRange: [ 135736, 465376 ]
656
+ * // }
657
+ * // ]
658
+ * // }
659
+ * console.log(result);
660
+ * });
661
+ * ```
662
+ * @since v13.10.0
663
+ * @experimental
664
+ */
665
+ function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
666
+ interface ModuleEvaluateOptions extends Pick<RunningScriptOptions, "breakOnSigint" | "timeout"> {}
667
+ type ModuleLinker = (
668
+ specifier: string,
669
+ referencingModule: Module,
670
+ extra: {
671
+ attributes: ImportAttributes;
672
+ },
673
+ ) => Module | Promise<Module>;
674
+ type ModuleStatus = "unlinked" | "linking" | "linked" | "evaluating" | "evaluated" | "errored";
675
+ /**
676
+ * This feature is only available with the `--experimental-vm-modules` command
677
+ * flag enabled.
678
+ *
679
+ * The `vm.Module` class provides a low-level interface for using
680
+ * ECMAScript modules in VM contexts. It is the counterpart of the `vm.Script`
681
+ * class that closely mirrors [Module Record](https://tc39.es/ecma262/#sec-abstract-module-records)s as defined in the ECMAScript
682
+ * specification.
683
+ *
684
+ * Unlike `vm.Script` however, every `vm.Module` object is bound to a context from
685
+ * its creation.
686
+ *
687
+ * Using a `vm.Module` object requires three distinct steps: creation/parsing,
688
+ * linking, and evaluation. These three steps are illustrated in the following
689
+ * example.
690
+ *
691
+ * This implementation lies at a lower level than the `ECMAScript Module
692
+ * loader`. There is also no way to interact with the Loader yet, though
693
+ * support is planned.
694
+ *
695
+ * ```js
696
+ * import vm from 'node:vm';
697
+ *
698
+ * const contextifiedObject = vm.createContext({
699
+ * secret: 42,
700
+ * print: console.log,
701
+ * });
702
+ *
703
+ * // Step 1
704
+ * //
705
+ * // Create a Module by constructing a new `vm.SourceTextModule` object. This
706
+ * // parses the provided source text, throwing a `SyntaxError` if anything goes
707
+ * // wrong. By default, a Module is created in the top context. But here, we
708
+ * // specify `contextifiedObject` as the context this Module belongs to.
709
+ * //
710
+ * // Here, we attempt to obtain the default export from the module "foo", and
711
+ * // put it into local binding "secret".
712
+ *
713
+ * const rootModule = new vm.SourceTextModule(`
714
+ * import s from 'foo';
715
+ * s;
716
+ * print(s);
717
+ * `, { context: contextifiedObject });
718
+ *
719
+ * // Step 2
720
+ * //
721
+ * // "Link" the imported dependencies of this Module to it.
722
+ * //
723
+ * // Obtain the requested dependencies of a SourceTextModule by
724
+ * // `sourceTextModule.moduleRequests` and resolve them.
725
+ * //
726
+ * // Even top-level Modules without dependencies must be explicitly linked. The
727
+ * // array passed to `sourceTextModule.linkRequests(modules)` can be
728
+ * // empty, however.
729
+ * //
730
+ * // Note: This is a contrived example in that the resolveAndLinkDependencies
731
+ * // creates a new "foo" module every time it is called. In a full-fledged
732
+ * // module system, a cache would probably be used to avoid duplicated modules.
733
+ *
734
+ * const moduleMap = new Map([
735
+ * ['root', rootModule],
736
+ * ]);
737
+ *
738
+ * function resolveAndLinkDependencies(module) {
739
+ * const requestedModules = module.moduleRequests.map((request) => {
740
+ * // In a full-fledged module system, the resolveAndLinkDependencies would
741
+ * // resolve the module with the module cache key `[specifier, attributes]`.
742
+ * // In this example, we just use the specifier as the key.
743
+ * const specifier = request.specifier;
744
+ *
745
+ * let requestedModule = moduleMap.get(specifier);
746
+ * if (requestedModule === undefined) {
747
+ * requestedModule = new vm.SourceTextModule(`
748
+ * // The "secret" variable refers to the global variable we added to
749
+ * // "contextifiedObject" when creating the context.
750
+ * export default secret;
751
+ * `, { context: referencingModule.context });
752
+ * moduleMap.set(specifier, linkedModule);
753
+ * // Resolve the dependencies of the new module as well.
754
+ * resolveAndLinkDependencies(requestedModule);
755
+ * }
756
+ *
757
+ * return requestedModule;
758
+ * });
759
+ *
760
+ * module.linkRequests(requestedModules);
761
+ * }
762
+ *
763
+ * resolveAndLinkDependencies(rootModule);
764
+ * rootModule.instantiate();
765
+ *
766
+ * // Step 3
767
+ * //
768
+ * // Evaluate the Module. The evaluate() method returns a promise which will
769
+ * // resolve after the module has finished evaluating.
770
+ *
771
+ * // Prints 42.
772
+ * await rootModule.evaluate();
773
+ * ```
774
+ * @since v13.0.0, v12.16.0
775
+ * @experimental
776
+ */
777
+ class Module {
778
+ /**
779
+ * If the `module.status` is `'errored'`, this property contains the exception
780
+ * thrown by the module during evaluation. If the status is anything else,
781
+ * accessing this property will result in a thrown exception.
782
+ *
783
+ * The value `undefined` cannot be used for cases where there is not a thrown
784
+ * exception due to possible ambiguity with `throw undefined;`.
785
+ *
786
+ * Corresponds to the `[[EvaluationError]]` field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s
787
+ * in the ECMAScript specification.
788
+ */
789
+ error: any;
790
+ /**
791
+ * The identifier of the current module, as set in the constructor.
792
+ */
793
+ identifier: string;
794
+ context: Context;
795
+ /**
796
+ * The namespace object of the module. This is only available after linking
797
+ * (`module.link()`) has completed.
798
+ *
799
+ * Corresponds to the [GetModuleNamespace](https://tc39.es/ecma262/#sec-getmodulenamespace) abstract operation in the ECMAScript
800
+ * specification.
801
+ */
802
+ namespace: Object;
803
+ /**
804
+ * The current status of the module. Will be one of:
805
+ *
806
+ * * `'unlinked'`: `module.link()` has not yet been called.
807
+ * * `'linking'`: `module.link()` has been called, but not all Promises returned
808
+ * by the linker function have been resolved yet.
809
+ * * `'linked'`: The module has been linked successfully, and all of its
810
+ * dependencies are linked, but `module.evaluate()` has not yet been called.
811
+ * * `'evaluating'`: The module is being evaluated through a `module.evaluate()` on
812
+ * itself or a parent module.
813
+ * * `'evaluated'`: The module has been successfully evaluated.
814
+ * * `'errored'`: The module has been evaluated, but an exception was thrown.
815
+ *
816
+ * Other than `'errored'`, this status string corresponds to the specification's [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records)'s `[[Status]]` field. `'errored'`
817
+ * corresponds to `'evaluated'` in the specification, but with `[[EvaluationError]]` set to a
818
+ * value that is not `undefined`.
819
+ */
820
+ status: ModuleStatus;
821
+ /**
822
+ * Evaluate the module.
823
+ *
824
+ * This must be called after the module has been linked; otherwise it will reject.
825
+ * It could be called also when the module has already been evaluated, in which
826
+ * case it will either do nothing if the initial evaluation ended in success
827
+ * (`module.status` is `'evaluated'`) or it will re-throw the exception that the
828
+ * initial evaluation resulted in (`module.status` is `'errored'`).
829
+ *
830
+ * This method cannot be called while the module is being evaluated
831
+ * (`module.status` is `'evaluating'`).
832
+ *
833
+ * Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in the
834
+ * ECMAScript specification.
835
+ * @return Fulfills with `undefined` upon success.
836
+ */
837
+ evaluate(options?: ModuleEvaluateOptions): Promise<void>;
838
+ /**
839
+ * Link module dependencies. This method must be called before evaluation, and
840
+ * can only be called once per module.
841
+ *
842
+ * Use `sourceTextModule.linkRequests(modules)` and
843
+ * `sourceTextModule.instantiate()` to link modules either synchronously or
844
+ * asynchronously.
845
+ *
846
+ * The function is expected to return a `Module` object or a `Promise` that
847
+ * eventually resolves to a `Module` object. The returned `Module` must satisfy the
848
+ * following two invariants:
849
+ *
850
+ * * It must belong to the same context as the parent `Module`.
851
+ * * Its `status` must not be `'errored'`.
852
+ *
853
+ * If the returned `Module`'s `status` is `'unlinked'`, this method will be
854
+ * recursively called on the returned `Module` with the same provided `linker` function.
855
+ *
856
+ * `link()` returns a `Promise` that will either get resolved when all linking
857
+ * instances resolve to a valid `Module`, or rejected if the linker function either
858
+ * throws an exception or returns an invalid `Module`.
859
+ *
860
+ * The linker function roughly corresponds to the implementation-defined [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) abstract operation in the
861
+ * ECMAScript
862
+ * specification, with a few key differences:
863
+ *
864
+ * * The linker function is allowed to be asynchronous while [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) is synchronous.
865
+ *
866
+ * The actual [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation used during module
867
+ * linking is one that returns the modules linked during linking. Since at
868
+ * that point all modules would have been fully linked already, the [HostResolveImportedModule](https://tc39.es/ecma262/#sec-hostresolveimportedmodule) implementation is fully synchronous per
869
+ * specification.
870
+ *
871
+ * Corresponds to the [Link() concrete method](https://tc39.es/ecma262/#sec-moduledeclarationlinking) field of [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) s in
872
+ * the ECMAScript specification.
873
+ */
874
+ link(linker: ModuleLinker): Promise<void>;
875
+ }
876
+ interface SourceTextModuleOptions extends Pick<ScriptOptions, "cachedData" | "columnOffset" | "lineOffset"> {
877
+ /**
878
+ * String used in stack traces.
879
+ * @default 'vm:module(i)' where i is a context-specific ascending index.
880
+ */
881
+ identifier?: string | undefined;
882
+ context?: Context | undefined;
883
+ /**
884
+ * Called during evaluation of this module to initialize the `import.meta`.
885
+ */
886
+ initializeImportMeta?: ((meta: ImportMeta, module: SourceTextModule) => void) | undefined;
887
+ /**
888
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
889
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
890
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v24.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
891
+ * @experimental
892
+ */
893
+ importModuleDynamically?: DynamicModuleLoader<SourceTextModule> | undefined;
894
+ }
895
+ /**
896
+ * A `ModuleRequest` represents the request to import a module with given import attributes and phase.
897
+ * @since 24.4.0
898
+ */
899
+ interface ModuleRequest {
900
+ /**
901
+ * The specifier of the requested module.
902
+ */
903
+ specifier: string;
904
+ /**
905
+ * The `"with"` value passed to the `WithClause` in a `ImportDeclaration`, or an empty object if no value was
906
+ * provided.
907
+ */
908
+ attributes: ImportAttributes;
909
+ /**
910
+ * The phase of the requested module (`"source"` or `"evaluation"`).
911
+ */
912
+ phase: ImportPhase;
913
+ }
914
+ /**
915
+ * This feature is only available with the `--experimental-vm-modules` command
916
+ * flag enabled.
917
+ *
918
+ * The `vm.SourceTextModule` class provides the [Source Text Module Record](https://tc39.es/ecma262/#sec-source-text-module-records) as
919
+ * defined in the ECMAScript specification.
920
+ * @since v9.6.0
921
+ * @experimental
922
+ */
923
+ class SourceTextModule extends Module {
924
+ /**
925
+ * Creates a new `SourceTextModule` instance.
926
+ *
927
+ * Properties assigned to the `import.meta` object that are objects may
928
+ * allow the module to access information outside the specified `context`. Use
929
+ * `vm.runInContext()` to create objects in a specific context.
930
+ *
931
+ * ```js
932
+ * import vm from 'node:vm';
933
+ *
934
+ * const contextifiedObject = vm.createContext({ secret: 42 });
935
+ *
936
+ * const module = new vm.SourceTextModule(
937
+ * 'Object.getPrototypeOf(import.meta.prop).secret = secret;',
938
+ * {
939
+ * initializeImportMeta(meta) {
940
+ * // Note: this object is created in the top context. As such,
941
+ * // Object.getPrototypeOf(import.meta.prop) points to the
942
+ * // Object.prototype in the top context rather than that in
943
+ * // the contextified object.
944
+ * meta.prop = {};
945
+ * },
946
+ * });
947
+ * // The module has an empty `moduleRequests` array.
948
+ * module.linkRequests([]);
949
+ * module.instantiate();
950
+ * await module.evaluate();
951
+ *
952
+ * // Now, Object.prototype.secret will be equal to 42.
953
+ * //
954
+ * // To fix this problem, replace
955
+ * // meta.prop = {};
956
+ * // above with
957
+ * // meta.prop = vm.runInContext('{}', contextifiedObject);
958
+ * ```
959
+ * @param code JavaScript Module code to parse
960
+ */
961
+ constructor(code: string, options?: SourceTextModuleOptions);
962
+ /**
963
+ * @deprecated Use `sourceTextModule.moduleRequests` instead.
964
+ */
965
+ readonly dependencySpecifiers: readonly string[];
966
+ /**
967
+ * Iterates over the dependency graph and returns `true` if any module in its
968
+ * dependencies or this module itself contains top-level `await` expressions,
969
+ * otherwise returns `false`.
970
+ *
971
+ * The search may be slow if the graph is big enough.
972
+ *
973
+ * This requires the module to be instantiated first. If the module is not
974
+ * instantiated yet, an error will be thrown.
975
+ * @since v24.9.0
976
+ */
977
+ hasAsyncGraph(): boolean;
978
+ /**
979
+ * Returns whether the module itself contains any top-level `await` expressions.
980
+ *
981
+ * This corresponds to the field `[[HasTLA]]` in [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) in the
982
+ * ECMAScript specification.
983
+ * @since v24.9.0
984
+ */
985
+ hasTopLevelAwait(): boolean;
986
+ /**
987
+ * Instantiate the module with the linked requested modules.
988
+ *
989
+ * This resolves the imported bindings of the module, including re-exported
990
+ * binding names. When there are any bindings that cannot be resolved,
991
+ * an error would be thrown synchronously.
992
+ *
993
+ * If the requested modules include cyclic dependencies, the
994
+ * `sourceTextModule.linkRequests(modules)` method must be called on all
995
+ * modules in the cycle before calling this method.
996
+ * @since v24.8.0
997
+ */
998
+ instantiate(): void;
999
+ /**
1000
+ * Link module dependencies. This method must be called before evaluation, and
1001
+ * can only be called once per module.
1002
+ *
1003
+ * The order of the module instances in the `modules` array should correspond to the order of
1004
+ * `sourceTextModule.moduleRequests` being resolved. If two module requests have the same
1005
+ * specifier and import attributes, they must be resolved with the same module instance or an
1006
+ * `ERR_MODULE_LINK_MISMATCH` would be thrown. For example, when linking requests for this
1007
+ * module:
1008
+ *
1009
+ * ```js
1010
+ * import foo from 'foo';
1011
+ * import source Foo from 'foo';
1012
+ * ```
1013
+ *
1014
+ * The `modules` array must contain two references to the same instance, because the two
1015
+ * module requests are identical but in two phases.
1016
+ *
1017
+ * If the module has no dependencies, the `modules` array can be empty.
1018
+ *
1019
+ * Users can use `sourceTextModule.moduleRequests` to implement the host-defined
1020
+ * [HostLoadImportedModule](https://tc39.es/ecma262/#sec-HostLoadImportedModule) abstract operation in the ECMAScript specification,
1021
+ * and using `sourceTextModule.linkRequests()` to invoke specification defined
1022
+ * [FinishLoadingImportedModule](https://tc39.es/ecma262/#sec-FinishLoadingImportedModule), on the module with all dependencies in a batch.
1023
+ *
1024
+ * It's up to the creator of the `SourceTextModule` to determine if the resolution
1025
+ * of the dependencies is synchronous or asynchronous.
1026
+ *
1027
+ * After each module in the `modules` array is linked, call
1028
+ * `sourceTextModule.instantiate()`.
1029
+ * @since v24.8.0
1030
+ * @param modules Array of `vm.Module` objects that this module depends on.
1031
+ * The order of the modules in the array is the order of
1032
+ * `sourceTextModule.moduleRequests`.
1033
+ */
1034
+ linkRequests(modules: readonly Module[]): void;
1035
+ /**
1036
+ * The requested import dependencies of this module. The returned array is frozen
1037
+ * to disallow any changes to it.
1038
+ *
1039
+ * For example, given a source text:
1040
+ *
1041
+ * ```js
1042
+ * import foo from 'foo';
1043
+ * import fooAlias from 'foo';
1044
+ * import bar from './bar.js';
1045
+ * import withAttrs from '../with-attrs.ts' with { arbitraryAttr: 'attr-val' };
1046
+ * import source Module from 'wasm-mod.wasm';
1047
+ * ```
1048
+ *
1049
+ * The value of the `sourceTextModule.moduleRequests` will be:
1050
+ *
1051
+ * ```js
1052
+ * [
1053
+ * {
1054
+ * specifier: 'foo',
1055
+ * attributes: {},
1056
+ * phase: 'evaluation',
1057
+ * },
1058
+ * {
1059
+ * specifier: 'foo',
1060
+ * attributes: {},
1061
+ * phase: 'evaluation',
1062
+ * },
1063
+ * {
1064
+ * specifier: './bar.js',
1065
+ * attributes: {},
1066
+ * phase: 'evaluation',
1067
+ * },
1068
+ * {
1069
+ * specifier: '../with-attrs.ts',
1070
+ * attributes: { arbitraryAttr: 'attr-val' },
1071
+ * phase: 'evaluation',
1072
+ * },
1073
+ * {
1074
+ * specifier: 'wasm-mod.wasm',
1075
+ * attributes: {},
1076
+ * phase: 'source',
1077
+ * },
1078
+ * ];
1079
+ * ```
1080
+ * @since v24.4.0
1081
+ */
1082
+ readonly moduleRequests: readonly ModuleRequest[];
1083
+ }
1084
+ interface SyntheticModuleOptions {
1085
+ /**
1086
+ * String used in stack traces.
1087
+ * @default 'vm:module(i)' where i is a context-specific ascending index.
1088
+ */
1089
+ identifier?: string | undefined;
1090
+ /**
1091
+ * The contextified object as returned by the `vm.createContext()` method, to compile and evaluate this module in.
1092
+ */
1093
+ context?: Context | undefined;
1094
+ }
1095
+ /**
1096
+ * This feature is only available with the `--experimental-vm-modules` command
1097
+ * flag enabled.
1098
+ *
1099
+ * The `vm.SyntheticModule` class provides the [Synthetic Module Record](https://heycam.github.io/webidl/#synthetic-module-records) as
1100
+ * defined in the WebIDL specification. The purpose of synthetic modules is to
1101
+ * provide a generic interface for exposing non-JavaScript sources to ECMAScript
1102
+ * module graphs.
1103
+ *
1104
+ * ```js
1105
+ * import vm from 'node:vm';
1106
+ *
1107
+ * const source = '{ "a": 1 }';
1108
+ * const module = new vm.SyntheticModule(['default'], function() {
1109
+ * const obj = JSON.parse(source);
1110
+ * this.setExport('default', obj);
1111
+ * });
1112
+ *
1113
+ * // Use `module` in linking...
1114
+ * ```
1115
+ * @since v13.0.0, v12.16.0
1116
+ * @experimental
1117
+ */
1118
+ class SyntheticModule extends Module {
1119
+ /**
1120
+ * Creates a new `SyntheticModule` instance.
1121
+ * @param exportNames Array of names that will be exported from the module.
1122
+ * @param evaluateCallback Called when the module is evaluated.
1123
+ */
1124
+ constructor(
1125
+ exportNames: string[],
1126
+ evaluateCallback: (this: SyntheticModule) => void,
1127
+ options?: SyntheticModuleOptions,
1128
+ );
1129
+ /**
1130
+ * This method sets the module export binding slots with the given value.
1131
+ *
1132
+ * ```js
1133
+ * import vm from 'node:vm';
1134
+ *
1135
+ * const m = new vm.SyntheticModule(['x'], () => {
1136
+ * m.setExport('x', 1);
1137
+ * });
1138
+ *
1139
+ * await m.evaluate();
1140
+ *
1141
+ * assert.strictEqual(m.namespace.x, 1);
1142
+ * ```
1143
+ * @since v13.0.0, v12.16.0
1144
+ * @param name Name of the export to set.
1145
+ * @param value The value to set the export to.
1146
+ */
1147
+ setExport(name: string, value: any): void;
1148
+ }
1149
+ /**
1150
+ * Returns an object containing commonly used constants for VM operations.
1151
+ * @since v21.7.0, v20.12.0
1152
+ */
1153
+ namespace constants {
1154
+ /**
1155
+ * A constant that can be used as the `importModuleDynamically` option to `vm.Script`
1156
+ * and `vm.compileFunction()` so that Node.js uses the default ESM loader from the main
1157
+ * context to load the requested module.
1158
+ *
1159
+ * For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v24.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
1160
+ * @since v21.7.0, v20.12.0
1161
+ */
1162
+ const USE_MAIN_CONTEXT_DEFAULT_LOADER: number;
1163
+ /**
1164
+ * This constant, when used as the `contextObject` argument in vm APIs, instructs Node.js to create
1165
+ * a context without wrapping its global object with another object in a Node.js-specific manner.
1166
+ * As a result, the `globalThis` value inside the new context would behave more closely to an ordinary
1167
+ * one.
1168
+ *
1169
+ * When `vm.constants.DONT_CONTEXTIFY` is used as the `contextObject` argument to {@link createContext},
1170
+ * the returned object is a proxy-like object to the global object in the newly created context with
1171
+ * fewer Node.js-specific quirks. It is reference equal to the `globalThis` value in the new context,
1172
+ * can be modified from outside the context, and can be used to access built-ins in the new context directly.
1173
+ * @since v22.8.0
1174
+ */
1175
+ const DONT_CONTEXTIFY: number;
1176
+ }
1177
+ }
1178
+ declare module "node:vm" {
1179
+ export * from "vm";
1180
+ }