@eggjs/mock 6.0.6 → 6.1.0-beta.10

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 (309) hide show
  1. package/README.md +35 -56
  2. package/README.zh_CN.md +30 -50
  3. package/dist/_virtual/rolldown_runtime.js +30 -0
  4. package/dist/app/extend/agent.d.ts +39 -0
  5. package/dist/app/extend/agent.js +48 -0
  6. package/dist/app/extend/application.d.ts +175 -0
  7. package/dist/app/extend/application.js +385 -0
  8. package/dist/app/middleware/cluster_app_mock.d.ts +6 -0
  9. package/dist/app/middleware/cluster_app_mock.js +97 -0
  10. package/dist/app.d.ts +10 -0
  11. package/dist/app.js +17 -0
  12. package/dist/bootstrap.d.ts +9 -0
  13. package/dist/bootstrap.js +14 -0
  14. package/dist/index.d.ts +81 -0
  15. package/dist/index.js +47 -0
  16. package/dist/inject_mocha.d.ts +1 -0
  17. package/dist/inject_mocha.js +35 -0
  18. package/dist/lib/agent_handler.d.ts +7 -0
  19. package/dist/lib/agent_handler.js +26 -0
  20. package/dist/lib/app.d.ts +7 -0
  21. package/dist/lib/app.js +251 -0
  22. package/dist/lib/app_handler.d.ts +9 -0
  23. package/dist/lib/app_handler.js +56 -0
  24. package/dist/lib/cluster.d.ts +126 -0
  25. package/dist/lib/cluster.js +283 -0
  26. package/dist/lib/context.d.ts +4 -0
  27. package/dist/lib/context.js +12 -0
  28. package/dist/lib/format_options.d.ts +10 -0
  29. package/dist/lib/format_options.js +65 -0
  30. package/dist/lib/inject_context.d.ts +9 -0
  31. package/dist/lib/inject_context.js +106 -0
  32. package/dist/lib/mock_agent.d.ts +9 -0
  33. package/dist/lib/mock_agent.js +45 -0
  34. package/dist/lib/mock_custom_loader.d.ts +4 -0
  35. package/dist/lib/mock_custom_loader.js +35 -0
  36. package/dist/lib/mock_http_server.d.ts +6 -0
  37. package/dist/lib/mock_http_server.js +17 -0
  38. package/dist/lib/mock_httpclient.d.ts +40 -0
  39. package/dist/lib/mock_httpclient.js +110 -0
  40. package/dist/lib/parallel/agent.d.ts +24 -0
  41. package/dist/lib/parallel/agent.js +111 -0
  42. package/dist/lib/parallel/app.d.ts +24 -0
  43. package/dist/lib/parallel/app.js +99 -0
  44. package/dist/lib/parallel/util.d.ts +6 -0
  45. package/dist/lib/parallel/util.js +59 -0
  46. package/dist/lib/prerequire.d.ts +1 -0
  47. package/dist/lib/prerequire.js +1 -0
  48. package/dist/lib/request_call_function.d.ts +1 -0
  49. package/dist/lib/request_call_function.js +37 -0
  50. package/dist/lib/restore.d.ts +4 -0
  51. package/dist/lib/restore.js +16 -0
  52. package/dist/lib/start-cluster.d.ts +1 -0
  53. package/dist/lib/start-cluster.js +19 -0
  54. package/dist/lib/supertest.d.ts +16 -0
  55. package/dist/lib/supertest.js +39 -0
  56. package/dist/lib/tmp/empty.d.ts +1 -0
  57. package/dist/lib/tmp/empty.js +1 -0
  58. package/{src/lib/types.ts → dist/lib/types.d.ts} +12 -29
  59. package/dist/lib/types.js +1 -0
  60. package/dist/lib/utils.d.ts +12 -0
  61. package/dist/lib/utils.js +40 -0
  62. package/dist/node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js +142 -0
  63. package/dist/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js +157 -0
  64. package/dist/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js +97 -0
  65. package/dist/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js +40 -0
  66. package/dist/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js +814 -0
  67. package/dist/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js +50 -0
  68. package/dist/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js +68 -0
  69. package/dist/node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js +752 -0
  70. package/dist/node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/browser.js +203 -0
  71. package/dist/node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/common.js +209 -0
  72. package/dist/node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/index.js +18 -0
  73. package/dist/node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js +215 -0
  74. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/convert/dmp.js +24 -0
  75. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/convert/xml.js +33 -0
  76. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/diff/array.js +29 -0
  77. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/diff/base.js +185 -0
  78. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/diff/character.js +23 -0
  79. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/diff/css.js +26 -0
  80. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/diff/json.js +83 -0
  81. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/diff/line.js +51 -0
  82. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/diff/sentence.js +26 -0
  83. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/diff/word.js +151 -0
  84. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/index.js +178 -0
  85. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/patch/apply.js +168 -0
  86. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/patch/create.js +301 -0
  87. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/patch/line-endings.js +137 -0
  88. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/patch/merge.js +367 -0
  89. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/patch/parse.js +91 -0
  90. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/patch/reverse.js +99 -0
  91. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/util/array.js +23 -0
  92. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/util/distance-iterator.js +30 -0
  93. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/util/params.js +22 -0
  94. package/dist/node_modules/.pnpm/diff@7.0.0/node_modules/diff/lib/util/string.js +97 -0
  95. package/dist/node_modules/.pnpm/escape-string-regexp@4.0.0/node_modules/escape-string-regexp/index.js +14 -0
  96. package/dist/node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js +16 -0
  97. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.js +4093 -0
  98. package/dist/node_modules/.pnpm/is-unicode-supported@0.1.0/node_modules/is-unicode-supported/index.js +14 -0
  99. package/dist/node_modules/.pnpm/log-symbols@4.1.0/node_modules/log-symbols/index.js +27 -0
  100. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/index.js +12 -0
  101. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/context.js +83 -0
  102. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/error-constants.js +35 -0
  103. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/errors.js +392 -0
  104. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/hook.js +86 -0
  105. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/interfaces/bdd.js +104 -0
  106. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/interfaces/common.js +99 -0
  107. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/interfaces/exports.js +65 -0
  108. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/interfaces/index.js +18 -0
  109. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/interfaces/qunit.js +95 -0
  110. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/interfaces/tdd.js +105 -0
  111. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/mocha.js +1037 -0
  112. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/mocharc.js +24 -0
  113. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/nodejs/buffered-worker-pool.js +152 -0
  114. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/nodejs/esm-utils.js +74 -0
  115. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/nodejs/file-unloader.js +22 -0
  116. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js +329 -0
  117. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/nodejs/serializer.js +314 -0
  118. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/pending.js +22 -0
  119. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/base.js +417 -0
  120. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/doc.js +79 -0
  121. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/dot.js +75 -0
  122. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/html.js +283 -0
  123. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/index.js +40 -0
  124. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/json-stream.js +90 -0
  125. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/json.js +145 -0
  126. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/landing.js +107 -0
  127. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/list.js +77 -0
  128. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/markdown.js +106 -0
  129. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/min.js +57 -0
  130. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/nyan.js +233 -0
  131. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/progress.js +92 -0
  132. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/spec.js +91 -0
  133. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/tap.js +261 -0
  134. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/xunit.js +166 -0
  135. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/runnable.js +346 -0
  136. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/runner.js +922 -0
  137. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/stats-collector.js +72 -0
  138. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/suite.js +517 -0
  139. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/test.js +105 -0
  140. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/utils.js +505 -0
  141. package/dist/node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/package.js +225 -0
  142. package/dist/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js +124 -0
  143. package/dist/node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/index.js +11 -0
  144. package/dist/node_modules/.pnpm/serialize-javascript@6.0.2/node_modules/serialize-javascript/index.js +114 -0
  145. package/dist/node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js +76 -0
  146. package/dist/node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js +89 -0
  147. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/Pool.js +366 -0
  148. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/Promise.js +248 -0
  149. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/WorkerHandler.js +419 -0
  150. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/debug-port-allocator.js +27 -0
  151. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/environment.js +18 -0
  152. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/generated/embeddedWorker.js +16 -0
  153. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/index.js +63 -0
  154. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/transfer.js +21 -0
  155. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/validateOptions.js +9 -0
  156. package/dist/node_modules/.pnpm/workerpool@9.3.4/node_modules/workerpool/src/worker.js +277 -0
  157. package/dist/register.d.ts +10 -0
  158. package/dist/register.js +40 -0
  159. package/dist/typings/index.d.ts +1 -0
  160. package/package.json +71 -98
  161. package/dist/commonjs/app/extend/agent.d.ts +0 -34
  162. package/dist/commonjs/app/extend/agent.js +0 -49
  163. package/dist/commonjs/app/extend/application.d.ts +0 -171
  164. package/dist/commonjs/app/extend/application.js +0 -450
  165. package/dist/commonjs/app/middleware/cluster_app_mock.d.ts +0 -3
  166. package/dist/commonjs/app/middleware/cluster_app_mock.js +0 -101
  167. package/dist/commonjs/app.d.ts +0 -6
  168. package/dist/commonjs/app.js +0 -20
  169. package/dist/commonjs/bootstrap.d.ts +0 -5
  170. package/dist/commonjs/bootstrap.js +0 -59
  171. package/dist/commonjs/index.d.ts +0 -77
  172. package/dist/commonjs/index.js +0 -114
  173. package/dist/commonjs/lib/agent_handler.d.ts +0 -3
  174. package/dist/commonjs/lib/agent_handler.js +0 -28
  175. package/dist/commonjs/lib/app.d.ts +0 -3
  176. package/dist/commonjs/lib/app.js +0 -301
  177. package/dist/commonjs/lib/app_handler.d.ts +0 -5
  178. package/dist/commonjs/lib/app_handler.js +0 -71
  179. package/dist/commonjs/lib/cluster.d.ts +0 -114
  180. package/dist/commonjs/lib/cluster.js +0 -337
  181. package/dist/commonjs/lib/context.d.ts +0 -1
  182. package/dist/commonjs/lib/context.js +0 -16
  183. package/dist/commonjs/lib/format_options.d.ts +0 -5
  184. package/dist/commonjs/lib/format_options.js +0 -100
  185. package/dist/commonjs/lib/inject_context.d.ts +0 -6
  186. package/dist/commonjs/lib/inject_context.js +0 -132
  187. package/dist/commonjs/lib/mock_agent.d.ts +0 -5
  188. package/dist/commonjs/lib/mock_agent.js +0 -49
  189. package/dist/commonjs/lib/mock_custom_loader.d.ts +0 -1
  190. package/dist/commonjs/lib/mock_custom_loader.js +0 -37
  191. package/dist/commonjs/lib/mock_http_server.d.ts +0 -2
  192. package/dist/commonjs/lib/mock_http_server.js +0 -24
  193. package/dist/commonjs/lib/mock_httpclient.d.ts +0 -36
  194. package/dist/commonjs/lib/mock_httpclient.js +0 -147
  195. package/dist/commonjs/lib/parallel/agent.d.ts +0 -20
  196. package/dist/commonjs/lib/parallel/agent.js +0 -125
  197. package/dist/commonjs/lib/parallel/app.d.ts +0 -20
  198. package/dist/commonjs/lib/parallel/app.js +0 -115
  199. package/dist/commonjs/lib/parallel/util.d.ts +0 -3
  200. package/dist/commonjs/lib/parallel/util.js +0 -77
  201. package/dist/commonjs/lib/prerequire.d.ts +0 -1
  202. package/dist/commonjs/lib/prerequire.js +0 -26
  203. package/dist/commonjs/lib/request_call_function.d.ts +0 -1
  204. package/dist/commonjs/lib/request_call_function.js +0 -52
  205. package/dist/commonjs/lib/restore.d.ts +0 -1
  206. package/dist/commonjs/lib/restore.js +0 -16
  207. package/dist/commonjs/lib/start-cluster.d.ts +0 -2
  208. package/dist/commonjs/lib/start-cluster.js +0 -23
  209. package/dist/commonjs/lib/supertest.d.ts +0 -11
  210. package/dist/commonjs/lib/supertest.js +0 -48
  211. package/dist/commonjs/lib/tmp/empty.d.ts +0 -1
  212. package/dist/commonjs/lib/tmp/empty.js +0 -3
  213. package/dist/commonjs/lib/types.d.ts +0 -68
  214. package/dist/commonjs/lib/types.js +0 -3
  215. package/dist/commonjs/lib/utils.d.ts +0 -9
  216. package/dist/commonjs/lib/utils.js +0 -80
  217. package/dist/commonjs/package.json +0 -3
  218. package/dist/commonjs/register.d.ts +0 -8
  219. package/dist/commonjs/register.js +0 -80
  220. package/dist/esm/app/extend/agent.d.ts +0 -34
  221. package/dist/esm/app/extend/agent.js +0 -46
  222. package/dist/esm/app/extend/application.d.ts +0 -171
  223. package/dist/esm/app/extend/application.js +0 -444
  224. package/dist/esm/app/middleware/cluster_app_mock.d.ts +0 -3
  225. package/dist/esm/app/middleware/cluster_app_mock.js +0 -99
  226. package/dist/esm/app.d.ts +0 -6
  227. package/dist/esm/app.js +0 -17
  228. package/dist/esm/bootstrap.d.ts +0 -5
  229. package/dist/esm/bootstrap.js +0 -15
  230. package/dist/esm/index.d.ts +0 -77
  231. package/dist/esm/index.js +0 -91
  232. package/dist/esm/lib/agent_handler.d.ts +0 -3
  233. package/dist/esm/lib/agent_handler.js +0 -24
  234. package/dist/esm/lib/app.d.ts +0 -3
  235. package/dist/esm/lib/app.js +0 -295
  236. package/dist/esm/lib/app_handler.d.ts +0 -5
  237. package/dist/esm/lib/app_handler.js +0 -65
  238. package/dist/esm/lib/cluster.d.ts +0 -114
  239. package/dist/esm/lib/cluster.js +0 -328
  240. package/dist/esm/lib/context.d.ts +0 -1
  241. package/dist/esm/lib/context.js +0 -13
  242. package/dist/esm/lib/format_options.d.ts +0 -5
  243. package/dist/esm/lib/format_options.js +0 -94
  244. package/dist/esm/lib/inject_context.d.ts +0 -6
  245. package/dist/esm/lib/inject_context.js +0 -126
  246. package/dist/esm/lib/mock_agent.d.ts +0 -5
  247. package/dist/esm/lib/mock_agent.js +0 -45
  248. package/dist/esm/lib/mock_custom_loader.d.ts +0 -1
  249. package/dist/esm/lib/mock_custom_loader.js +0 -34
  250. package/dist/esm/lib/mock_http_server.d.ts +0 -2
  251. package/dist/esm/lib/mock_http_server.js +0 -18
  252. package/dist/esm/lib/mock_httpclient.d.ts +0 -36
  253. package/dist/esm/lib/mock_httpclient.js +0 -144
  254. package/dist/esm/lib/parallel/agent.d.ts +0 -20
  255. package/dist/esm/lib/parallel/agent.js +0 -117
  256. package/dist/esm/lib/parallel/app.d.ts +0 -20
  257. package/dist/esm/lib/parallel/app.js +0 -110
  258. package/dist/esm/lib/parallel/util.d.ts +0 -3
  259. package/dist/esm/lib/parallel/util.js +0 -73
  260. package/dist/esm/lib/prerequire.d.ts +0 -1
  261. package/dist/esm/lib/prerequire.js +0 -25
  262. package/dist/esm/lib/request_call_function.d.ts +0 -1
  263. package/dist/esm/lib/request_call_function.js +0 -47
  264. package/dist/esm/lib/restore.d.ts +0 -1
  265. package/dist/esm/lib/restore.js +0 -13
  266. package/dist/esm/lib/start-cluster.d.ts +0 -2
  267. package/dist/esm/lib/start-cluster.js +0 -18
  268. package/dist/esm/lib/supertest.d.ts +0 -11
  269. package/dist/esm/lib/supertest.js +0 -40
  270. package/dist/esm/lib/tmp/empty.d.ts +0 -1
  271. package/dist/esm/lib/tmp/empty.js +0 -2
  272. package/dist/esm/lib/types.d.ts +0 -68
  273. package/dist/esm/lib/types.js +0 -2
  274. package/dist/esm/lib/utils.d.ts +0 -9
  275. package/dist/esm/lib/utils.js +0 -69
  276. package/dist/esm/package.json +0 -3
  277. package/dist/esm/register.d.ts +0 -8
  278. package/dist/esm/register.js +0 -75
  279. package/dist/package.json +0 -4
  280. package/src/app/extend/agent.ts +0 -57
  281. package/src/app/extend/application.ts +0 -510
  282. package/src/app/middleware/cluster_app_mock.ts +0 -102
  283. package/src/app.ts +0 -18
  284. package/src/bootstrap.ts +0 -25
  285. package/src/index.ts +0 -112
  286. package/src/lib/agent_handler.ts +0 -28
  287. package/src/lib/app.ts +0 -314
  288. package/src/lib/app_handler.ts +0 -77
  289. package/src/lib/cluster.ts +0 -363
  290. package/src/lib/context.ts +0 -14
  291. package/src/lib/format_options.ts +0 -103
  292. package/src/lib/inject_context.ts +0 -134
  293. package/src/lib/mock_agent.ts +0 -57
  294. package/src/lib/mock_custom_loader.ts +0 -36
  295. package/src/lib/mock_http_server.ts +0 -19
  296. package/src/lib/mock_httpclient.ts +0 -183
  297. package/src/lib/parallel/agent.ts +0 -128
  298. package/src/lib/parallel/app.ts +0 -123
  299. package/src/lib/parallel/util.ts +0 -66
  300. package/src/lib/prerequire.ts +0 -25
  301. package/src/lib/request_call_function.ts +0 -49
  302. package/src/lib/restore.ts +0 -14
  303. package/src/lib/start-cluster.ts +0 -23
  304. package/src/lib/supertest.ts +0 -45
  305. package/src/lib/tmp/.gitkeep +0 -0
  306. package/src/lib/tmp/empty.ts +0 -0
  307. package/src/lib/utils.ts +0 -82
  308. package/src/register.ts +0 -80
  309. package/src/typings/index.d.ts +0 -4
@@ -0,0 +1,417 @@
1
+ import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
2
+ import { require_lib } from "../../../../../diff@7.0.0/node_modules/diff/lib/index.js";
3
+ import { require_ms } from "../../../../../ms@2.1.3/node_modules/ms/index.js";
4
+ import { require_utils } from "../utils.js";
5
+ import { require_supports_color } from "../../../../../supports-color@8.1.1/node_modules/supports-color/index.js";
6
+ import { require_log_symbols } from "../../../../../log-symbols@4.1.0/node_modules/log-symbols/index.js";
7
+ import { require_runner } from "../runner.js";
8
+
9
+ //#region ../../node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/base.js
10
+ var require_base = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/base.js": ((exports, module) => {
11
+ /**
12
+ * @typedef {import('../runner.js')} Runner
13
+ * @typedef {import('../test.js')} Test
14
+ * @typedef {import('../types.d.ts').FullErrorStack} FullErrorStack
15
+ */
16
+ /**
17
+ * @module Base
18
+ */
19
+ /**
20
+ * Module dependencies.
21
+ */
22
+ var diff = require_lib();
23
+ var milliseconds = require_ms();
24
+ var utils = require_utils();
25
+ var supportsColor = require_supports_color();
26
+ var symbols = require_log_symbols();
27
+ var constants = require_runner().constants;
28
+ var EVENT_TEST_PASS = constants.EVENT_TEST_PASS;
29
+ var EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;
30
+ const isBrowser = utils.isBrowser();
31
+ function getBrowserWindowSize() {
32
+ if ("innerHeight" in global) return [global.innerHeight, global.innerWidth];
33
+ return [640, 480];
34
+ }
35
+ /**
36
+ * Expose `Base`.
37
+ */
38
+ exports = module.exports = Base;
39
+ /**
40
+ * Check if both stdio streams are associated with a tty.
41
+ */
42
+ var isatty = isBrowser || process.stdout.isTTY && process.stderr.isTTY;
43
+ /**
44
+ * Save log references to avoid tests interfering (see GH-3604).
45
+ */
46
+ var consoleLog = console.log;
47
+ /**
48
+ * Enable coloring by default, except in the browser interface.
49
+ */
50
+ exports.useColors = !isBrowser && (supportsColor.stdout || process.env.MOCHA_COLORS !== void 0);
51
+ /**
52
+ * Inline diffs instead of +/-
53
+ */
54
+ exports.inlineDiffs = false;
55
+ /**
56
+ * Truncate diffs longer than this value to avoid slow performance
57
+ */
58
+ exports.maxDiffSize = 8192;
59
+ /**
60
+ * Default color map.
61
+ */
62
+ exports.colors = {
63
+ pass: 90,
64
+ fail: 31,
65
+ "bright pass": 92,
66
+ "bright fail": 91,
67
+ "bright yellow": 93,
68
+ pending: 36,
69
+ suite: 0,
70
+ "error title": 0,
71
+ "error message": 31,
72
+ "error stack": 90,
73
+ checkmark: 32,
74
+ fast: 90,
75
+ medium: 33,
76
+ slow: 31,
77
+ green: 32,
78
+ light: 90,
79
+ "diff gutter": 90,
80
+ "diff added": 32,
81
+ "diff removed": 31,
82
+ "diff added inline": "30;42",
83
+ "diff removed inline": "30;41"
84
+ };
85
+ /**
86
+ * Default symbol map.
87
+ */
88
+ exports.symbols = {
89
+ ok: symbols.success,
90
+ err: symbols.error,
91
+ dot: ".",
92
+ comma: ",",
93
+ bang: "!"
94
+ };
95
+ /**
96
+ * Color `str` with the given `type`,
97
+ * allowing colors to be disabled,
98
+ * as well as user-defined color
99
+ * schemes.
100
+ *
101
+ * @private
102
+ * @param {string} type
103
+ * @param {string} str
104
+ * @return {string}
105
+ */
106
+ var color = exports.color = function(type, str) {
107
+ if (!exports.useColors) return String(str);
108
+ return "\x1B[" + exports.colors[type] + "m" + str + "\x1B[0m";
109
+ };
110
+ /**
111
+ * Expose term window size, with some defaults for when stderr is not a tty.
112
+ */
113
+ exports.window = { width: 75 };
114
+ if (isatty) if (isBrowser) exports.window.width = getBrowserWindowSize()[1];
115
+ else exports.window.width = process.stdout.getWindowSize(1)[0];
116
+ /**
117
+ * Expose some basic cursor interactions that are common among reporters.
118
+ */
119
+ exports.cursor = {
120
+ hide: function() {
121
+ isatty && process.stdout.write("\x1B[?25l");
122
+ },
123
+ show: function() {
124
+ isatty && process.stdout.write("\x1B[?25h");
125
+ },
126
+ deleteLine: function() {
127
+ isatty && process.stdout.write("\x1B[2K");
128
+ },
129
+ beginningOfLine: function() {
130
+ isatty && process.stdout.write("\x1B[0G");
131
+ },
132
+ CR: function() {
133
+ if (isatty) {
134
+ exports.cursor.deleteLine();
135
+ exports.cursor.beginningOfLine();
136
+ } else process.stdout.write("\r");
137
+ }
138
+ };
139
+ var showDiff = exports.showDiff = function(err) {
140
+ return err && err.showDiff !== false && sameType(err.actual, err.expected) && err.expected !== void 0;
141
+ };
142
+ function stringifyDiffObjs(err) {
143
+ if (!utils.isString(err.actual) || !utils.isString(err.expected)) {
144
+ err.actual = utils.stringify(err.actual);
145
+ err.expected = utils.stringify(err.expected);
146
+ }
147
+ }
148
+ /**
149
+ * Returns a diff between 2 strings with coloured ANSI output.
150
+ *
151
+ * @description
152
+ * The diff will be either inline or unified dependent on the value
153
+ * of `Base.inlineDiff`.
154
+ *
155
+ * @param {string} actual
156
+ * @param {string} expected
157
+ * @return {string} Diff
158
+ */
159
+ var generateDiff = exports.generateDiff = function(actual, expected) {
160
+ try {
161
+ var maxLen = exports.maxDiffSize;
162
+ var skipped = 0;
163
+ if (maxLen > 0) {
164
+ skipped = Math.max(actual.length - maxLen, expected.length - maxLen);
165
+ actual = actual.slice(0, maxLen);
166
+ expected = expected.slice(0, maxLen);
167
+ }
168
+ let result = exports.inlineDiffs ? inlineDiff(actual, expected) : unifiedDiff(actual, expected);
169
+ if (skipped > 0) result = `${result}\n [mocha] output truncated to ${maxLen} characters, see "maxDiffSize" reporter-option\n`;
170
+ return result;
171
+ } catch (err) {
172
+ return "\n " + color("diff added", "+ expected") + " " + color("diff removed", "- actual: failed to generate Mocha diff") + "\n";
173
+ }
174
+ };
175
+ /**
176
+ * Traverses err.cause and returns all stack traces
177
+ *
178
+ * @private
179
+ * @param {Error} err
180
+ * @param {Set<Error>} [seen]
181
+ * @return {FullErrorStack}
182
+ */
183
+ var getFullErrorStack = function(err, seen) {
184
+ if (seen && seen.has(err)) return {
185
+ message: "",
186
+ msg: "<circular>",
187
+ stack: ""
188
+ };
189
+ var message;
190
+ if (typeof err.inspect === "function") message = err.inspect() + "";
191
+ else if (err.message && typeof err.message.toString === "function") message = err.message + "";
192
+ else message = "";
193
+ var msg;
194
+ var stack = err.stack || message;
195
+ var index = message ? stack.indexOf(message) : -1;
196
+ if (index === -1) msg = message;
197
+ else {
198
+ index += message.length;
199
+ msg = stack.slice(0, index);
200
+ stack = stack.slice(index + 1);
201
+ if (err.cause) {
202
+ seen = seen || /* @__PURE__ */ new Set();
203
+ seen.add(err);
204
+ const causeStack = getFullErrorStack(err.cause, seen);
205
+ stack += "\n Caused by: " + causeStack.msg + (causeStack.stack ? "\n" + causeStack.stack : "");
206
+ }
207
+ }
208
+ return {
209
+ message,
210
+ msg,
211
+ stack
212
+ };
213
+ };
214
+ /**
215
+ * Outputs the given `failures` as a list.
216
+ *
217
+ * @public
218
+ * @memberof Mocha.reporters.Base
219
+ * @variation 1
220
+ * @param {Object[]} failures - Each is Test instance with corresponding
221
+ * Error property
222
+ */
223
+ exports.list = function(failures) {
224
+ var multipleErr, multipleTest;
225
+ Base.consoleLog();
226
+ failures.forEach(function(test, i) {
227
+ var fmt = color("error title", " %s) %s:\n") + color("error message", " %s") + color("error stack", "\n%s\n");
228
+ var err;
229
+ if (test.err && test.err.multiple) {
230
+ if (multipleTest !== test) {
231
+ multipleTest = test;
232
+ multipleErr = [test.err].concat(test.err.multiple);
233
+ }
234
+ err = multipleErr.shift();
235
+ } else err = test.err;
236
+ var { message, msg, stack } = getFullErrorStack(err);
237
+ if (err.uncaught) msg = "Uncaught " + msg;
238
+ if (!exports.hideDiff && showDiff(err)) {
239
+ stringifyDiffObjs(err);
240
+ fmt = color("error title", " %s) %s:\n%s") + color("error stack", "\n%s\n");
241
+ var match = message.match(/^([^:]+): expected/);
242
+ msg = "\n " + color("error message", match ? match[1] : msg);
243
+ msg += generateDiff(err.actual, err.expected);
244
+ }
245
+ stack = stack.replace(/^/gm, " ");
246
+ var testTitle = "";
247
+ test.titlePath().forEach(function(str, index) {
248
+ if (index !== 0) testTitle += "\n ";
249
+ for (var i$1 = 0; i$1 < index; i$1++) testTitle += " ";
250
+ testTitle += str;
251
+ });
252
+ Base.consoleLog(fmt, i + 1, testTitle, msg, stack);
253
+ });
254
+ };
255
+ /**
256
+ * Constructs a new `Base` reporter instance.
257
+ *
258
+ * @description
259
+ * All other reporters generally inherit from this reporter.
260
+ *
261
+ * @public
262
+ * @class
263
+ * @memberof Mocha.reporters
264
+ * @param {Runner} runner - Instance triggers reporter actions.
265
+ * @param {Object} [options] - runner options
266
+ */
267
+ function Base(runner, options) {
268
+ var failures = this.failures = [];
269
+ if (!runner) throw new TypeError("Missing runner argument");
270
+ this.options = options || {};
271
+ this.runner = runner;
272
+ this.stats = runner.stats;
273
+ var maxDiffSizeOpt = this.options.reporterOption && this.options.reporterOption.maxDiffSize;
274
+ if (maxDiffSizeOpt !== void 0 && !isNaN(Number(maxDiffSizeOpt))) exports.maxDiffSize = Number(maxDiffSizeOpt);
275
+ runner.on(EVENT_TEST_PASS, function(test) {
276
+ if (test.duration > test.slow()) test.speed = "slow";
277
+ else if (test.duration > test.slow() / 2) test.speed = "medium";
278
+ else test.speed = "fast";
279
+ });
280
+ runner.on(EVENT_TEST_FAIL, function(test, err) {
281
+ if (showDiff(err)) stringifyDiffObjs(err);
282
+ if (test.err && err instanceof Error) test.err.multiple = (test.err.multiple || []).concat(err);
283
+ else test.err = err;
284
+ failures.push(test);
285
+ });
286
+ }
287
+ /**
288
+ * Outputs common epilogue used by many of the bundled reporters.
289
+ *
290
+ * @public
291
+ * @memberof Mocha.reporters
292
+ */
293
+ Base.prototype.epilogue = function() {
294
+ var stats = this.stats;
295
+ var fmt;
296
+ Base.consoleLog();
297
+ fmt = color("bright pass", " ") + color("green", " %d passing") + color("light", " (%s)");
298
+ Base.consoleLog(fmt, stats.passes || 0, milliseconds(stats.duration));
299
+ if (stats.pending) {
300
+ fmt = color("pending", " ") + color("pending", " %d pending");
301
+ Base.consoleLog(fmt, stats.pending);
302
+ }
303
+ if (stats.failures) {
304
+ fmt = color("fail", " %d failing");
305
+ Base.consoleLog(fmt, stats.failures);
306
+ Base.list(this.failures);
307
+ Base.consoleLog();
308
+ }
309
+ Base.consoleLog();
310
+ };
311
+ /**
312
+ * Pads the given `str` to `len`.
313
+ *
314
+ * @private
315
+ * @param {string} str
316
+ * @param {string} len
317
+ * @return {string}
318
+ */
319
+ function pad(str, len) {
320
+ str = String(str);
321
+ return Array(len - str.length + 1).join(" ") + str;
322
+ }
323
+ /**
324
+ * Returns inline diff between 2 strings with coloured ANSI output.
325
+ *
326
+ * @private
327
+ * @param {String} actual
328
+ * @param {String} expected
329
+ * @return {string} Diff
330
+ */
331
+ function inlineDiff(actual, expected) {
332
+ var msg = errorDiff(actual, expected);
333
+ var lines = msg.split("\n");
334
+ if (lines.length > 4) {
335
+ var width = String(lines.length).length;
336
+ msg = lines.map(function(str, i) {
337
+ return pad(++i, width) + " | " + str;
338
+ }).join("\n");
339
+ }
340
+ msg = "\n" + color("diff removed inline", "actual") + " " + color("diff added inline", "expected") + "\n\n" + msg + "\n";
341
+ msg = msg.replace(/^/gm, " ");
342
+ return msg;
343
+ }
344
+ /**
345
+ * Returns unified diff between two strings with coloured ANSI output.
346
+ *
347
+ * @private
348
+ * @param {String} actual
349
+ * @param {String} expected
350
+ * @return {string} The diff.
351
+ */
352
+ function unifiedDiff(actual, expected) {
353
+ var indent = " ";
354
+ function cleanUp(line) {
355
+ if (line[0] === "+") return indent + colorLines("diff added", line);
356
+ if (line[0] === "-") return indent + colorLines("diff removed", line);
357
+ if (line.match(/@@/)) return "--";
358
+ if (line.match(/\\ No newline/)) return null;
359
+ return indent + line;
360
+ }
361
+ function notBlank(line) {
362
+ return typeof line !== "undefined" && line !== null;
363
+ }
364
+ var lines = diff.createPatch("string", actual, expected).split("\n").splice(5);
365
+ return "\n " + colorLines("diff added", "+ expected") + " " + colorLines("diff removed", "- actual") + "\n\n" + lines.map(cleanUp).filter(notBlank).join("\n");
366
+ }
367
+ /**
368
+ * Returns character diff for `err`.
369
+ *
370
+ * @private
371
+ * @param {String} actual
372
+ * @param {String} expected
373
+ * @return {string} the diff
374
+ */
375
+ function errorDiff(actual, expected) {
376
+ return diff.diffWordsWithSpace(actual, expected).map(function(str) {
377
+ if (str.added) return colorLines("diff added inline", str.value);
378
+ if (str.removed) return colorLines("diff removed inline", str.value);
379
+ return str.value;
380
+ }).join("");
381
+ }
382
+ /**
383
+ * Colors lines for `str`, using the color `name`.
384
+ *
385
+ * @private
386
+ * @param {string} name
387
+ * @param {string} str
388
+ * @return {string}
389
+ */
390
+ function colorLines(name, str) {
391
+ return str.split("\n").map(function(str$1) {
392
+ return color(name, str$1);
393
+ }).join("\n");
394
+ }
395
+ /**
396
+ * Object#toString reference.
397
+ */
398
+ var objToString = Object.prototype.toString;
399
+ /**
400
+ * Checks that a / b have the same type.
401
+ *
402
+ * @private
403
+ * @param {Object} a
404
+ * @param {Object} b
405
+ * @return {boolean}
406
+ */
407
+ function sameType(a, b) {
408
+ return objToString.call(a) === objToString.call(b);
409
+ }
410
+ Base.consoleLog = consoleLog;
411
+ Base.abstract = true;
412
+ }) });
413
+
414
+ //#endregion
415
+ export default require_base();
416
+
417
+ export { require_base };
@@ -0,0 +1,79 @@
1
+ import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
2
+ import { require_utils } from "../utils.js";
3
+ import { require_runner } from "../runner.js";
4
+ import { require_base } from "./base.js";
5
+
6
+ //#region ../../node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/doc.js
7
+ var require_doc = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/doc.js": ((exports, module) => {
8
+ /**
9
+ * @typedef {import('../runner.js')} Runner
10
+ */
11
+ /**
12
+ * @module Doc
13
+ */
14
+ /**
15
+ * Module dependencies.
16
+ */
17
+ var Base = require_base();
18
+ var utils = require_utils();
19
+ var constants = require_runner().constants;
20
+ var EVENT_TEST_PASS = constants.EVENT_TEST_PASS;
21
+ var EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;
22
+ var EVENT_SUITE_BEGIN = constants.EVENT_SUITE_BEGIN;
23
+ var EVENT_SUITE_END = constants.EVENT_SUITE_END;
24
+ /**
25
+ * Expose `Doc`.
26
+ */
27
+ exports = module.exports = Doc;
28
+ /**
29
+ * Constructs a new `Doc` reporter instance.
30
+ *
31
+ * @public
32
+ * @class
33
+ * @memberof Mocha.reporters
34
+ * @extends Mocha.reporters.Base
35
+ * @param {Runner} runner - Instance triggers reporter actions.
36
+ * @param {Object} [options] - runner options
37
+ */
38
+ function Doc(runner, options) {
39
+ Base.call(this, runner, options);
40
+ var indents = 2;
41
+ function indent() {
42
+ return Array(indents).join(" ");
43
+ }
44
+ runner.on(EVENT_SUITE_BEGIN, function(suite) {
45
+ if (suite.root) return;
46
+ ++indents;
47
+ Base.consoleLog("%s<section class=\"suite\">", indent());
48
+ ++indents;
49
+ Base.consoleLog("%s<h1>%s</h1>", indent(), utils.escape(suite.title));
50
+ Base.consoleLog("%s<dl>", indent());
51
+ });
52
+ runner.on(EVENT_SUITE_END, function(suite) {
53
+ if (suite.root) return;
54
+ Base.consoleLog("%s</dl>", indent());
55
+ --indents;
56
+ Base.consoleLog("%s</section>", indent());
57
+ --indents;
58
+ });
59
+ runner.on(EVENT_TEST_PASS, function(test) {
60
+ Base.consoleLog("%s <dt>%s</dt>", indent(), utils.escape(test.title));
61
+ Base.consoleLog("%s <dt>%s</dt>", indent(), utils.escape(test.file));
62
+ var code = utils.escape(utils.clean(test.body));
63
+ Base.consoleLog("%s <dd><pre><code>%s</code></pre></dd>", indent(), code);
64
+ });
65
+ runner.on(EVENT_TEST_FAIL, function(test, err) {
66
+ Base.consoleLog("%s <dt class=\"error\">%s</dt>", indent(), utils.escape(test.title));
67
+ Base.consoleLog("%s <dt class=\"error\">%s</dt>", indent(), utils.escape(test.file));
68
+ var code = utils.escape(utils.clean(test.body));
69
+ Base.consoleLog("%s <dd class=\"error\"><pre><code>%s</code></pre></dd>", indent(), code);
70
+ Base.consoleLog("%s <dd class=\"error\">%s</dd>", indent(), utils.escape(err));
71
+ });
72
+ }
73
+ Doc.description = "HTML documentation";
74
+ }) });
75
+
76
+ //#endregion
77
+ export default require_doc();
78
+
79
+ export { require_doc };
@@ -0,0 +1,75 @@
1
+ import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.js";
2
+ import { require_utils } from "../utils.js";
3
+ import { require_runner } from "../runner.js";
4
+ import { require_base } from "./base.js";
5
+
6
+ //#region ../../node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/dot.js
7
+ var require_dot = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/mocha@11.7.2/node_modules/mocha/lib/reporters/dot.js": ((exports, module) => {
8
+ /**
9
+ * @typedef {import('../runner.js')} Runner
10
+ */
11
+ /**
12
+ * @module Dot
13
+ */
14
+ /**
15
+ * Module dependencies.
16
+ */
17
+ var Base = require_base();
18
+ var inherits = require_utils().inherits;
19
+ var constants = require_runner().constants;
20
+ var EVENT_TEST_PASS = constants.EVENT_TEST_PASS;
21
+ var EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;
22
+ var EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;
23
+ var EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;
24
+ var EVENT_RUN_END = constants.EVENT_RUN_END;
25
+ /**
26
+ * Expose `Dot`.
27
+ */
28
+ exports = module.exports = Dot;
29
+ /**
30
+ * Constructs a new `Dot` reporter instance.
31
+ *
32
+ * @public
33
+ * @class
34
+ * @memberof Mocha.reporters
35
+ * @extends Mocha.reporters.Base
36
+ * @param {Runner} runner - Instance triggers reporter actions.
37
+ * @param {Object} [options] - runner options
38
+ */
39
+ function Dot(runner, options) {
40
+ Base.call(this, runner, options);
41
+ var self = this;
42
+ var width = Base.window.width * .75 | 0;
43
+ var n = -1;
44
+ runner.on(EVENT_RUN_BEGIN, function() {
45
+ process.stdout.write("\n");
46
+ });
47
+ runner.on(EVENT_TEST_PENDING, function() {
48
+ if (++n % width === 0) process.stdout.write("\n ");
49
+ process.stdout.write(Base.color("pending", Base.symbols.comma));
50
+ });
51
+ runner.on(EVENT_TEST_PASS, function(test) {
52
+ if (++n % width === 0) process.stdout.write("\n ");
53
+ if (test.speed === "slow") process.stdout.write(Base.color("bright yellow", Base.symbols.dot));
54
+ else process.stdout.write(Base.color(test.speed, Base.symbols.dot));
55
+ });
56
+ runner.on(EVENT_TEST_FAIL, function() {
57
+ if (++n % width === 0) process.stdout.write("\n ");
58
+ process.stdout.write(Base.color("fail", Base.symbols.bang));
59
+ });
60
+ runner.once(EVENT_RUN_END, function() {
61
+ process.stdout.write("\n");
62
+ self.epilogue();
63
+ });
64
+ }
65
+ /**
66
+ * Inherit from `Base.prototype`.
67
+ */
68
+ inherits(Dot, Base);
69
+ Dot.description = "dot matrix representation";
70
+ }) });
71
+
72
+ //#endregion
73
+ export default require_dot();
74
+
75
+ export { require_dot };