@voidzero-dev/vite-plus-test 0.0.0-0bfcc90f.20260209-0731

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 (318) hide show
  1. package/LICENSE.md +691 -0
  2. package/browser/context.d.ts +4 -0
  3. package/browser/context.js +20 -0
  4. package/config.d.ts +3 -0
  5. package/coverage.d.ts +1 -0
  6. package/dist/@vitest/browser/client/.vite/manifest.json +24 -0
  7. package/dist/@vitest/browser/client/__vitest__/assets/index-BUCFJtth.js +57 -0
  8. package/dist/@vitest/browser/client/__vitest__/assets/index-DlhE0rqZ.css +1 -0
  9. package/dist/@vitest/browser/client/__vitest__/bg.png +0 -0
  10. package/dist/@vitest/browser/client/__vitest__/favicon.ico +0 -0
  11. package/dist/@vitest/browser/client/__vitest__/favicon.svg +5 -0
  12. package/dist/@vitest/browser/client/__vitest__/index.html +32 -0
  13. package/dist/@vitest/browser/client/__vitest_browser__/orchestrator-S_3e_uzt.js +345 -0
  14. package/dist/@vitest/browser/client/__vitest_browser__/tester-k74mgIRa.js +2171 -0
  15. package/dist/@vitest/browser/client/__vitest_browser__/utils-uxqdqUz8.js +223 -0
  16. package/dist/@vitest/browser/client/error-catcher.js +82 -0
  17. package/dist/@vitest/browser/client/esm-client-injector.js +67 -0
  18. package/dist/@vitest/browser/client/favicon.svg +5 -0
  19. package/dist/@vitest/browser/client/orchestrator.html +35 -0
  20. package/dist/@vitest/browser/client/tester/tester.html +13 -0
  21. package/dist/@vitest/browser/client.js +456 -0
  22. package/dist/@vitest/browser/context.d.ts +792 -0
  23. package/dist/@vitest/browser/context.js +541 -0
  24. package/dist/@vitest/browser/expect-element.js +32 -0
  25. package/dist/@vitest/browser/index-D6m36C6U.js +11 -0
  26. package/dist/@vitest/browser/index.d.ts +73 -0
  27. package/dist/@vitest/browser/index.js +3513 -0
  28. package/dist/@vitest/browser/jest-dom.d.ts +724 -0
  29. package/dist/@vitest/browser/locators.d.ts +354 -0
  30. package/dist/@vitest/browser/locators.js +1 -0
  31. package/dist/@vitest/browser/matchers.d.ts +29 -0
  32. package/dist/@vitest/browser/shared/screenshotMatcher/types.d.ts +22 -0
  33. package/dist/@vitest/browser/state.js +280 -0
  34. package/dist/@vitest/browser/types.d.ts +69 -0
  35. package/dist/@vitest/browser-playwright/context.d.ts +1 -0
  36. package/dist/@vitest/browser-playwright/index.d.ts +106 -0
  37. package/dist/@vitest/browser-playwright/index.js +1111 -0
  38. package/dist/@vitest/browser-playwright/locators.js +114 -0
  39. package/dist/@vitest/browser-preview/context.d.ts +1 -0
  40. package/dist/@vitest/browser-preview/index.d.ts +19 -0
  41. package/dist/@vitest/browser-preview/index.js +148 -0
  42. package/dist/@vitest/browser-preview/locators.js +79 -0
  43. package/dist/@vitest/browser-webdriverio/context.d.ts +1 -0
  44. package/dist/@vitest/browser-webdriverio/index.d.ts +63 -0
  45. package/dist/@vitest/browser-webdriverio/index.js +600 -0
  46. package/dist/@vitest/browser-webdriverio/locators.js +163 -0
  47. package/dist/@vitest/expect/index.d.ts +807 -0
  48. package/dist/@vitest/expect/index.js +1875 -0
  49. package/dist/@vitest/mocker/auto-register.d.ts +2 -0
  50. package/dist/@vitest/mocker/auto-register.js +9 -0
  51. package/dist/@vitest/mocker/automock.d.ts +12 -0
  52. package/dist/@vitest/mocker/automock.js +1 -0
  53. package/dist/@vitest/mocker/browser.d.ts +53 -0
  54. package/dist/@vitest/mocker/browser.js +91 -0
  55. package/dist/@vitest/mocker/chunk-automock.js +354 -0
  56. package/dist/@vitest/mocker/chunk-interceptor-native.js +15 -0
  57. package/dist/@vitest/mocker/chunk-mocker.js +521 -0
  58. package/dist/@vitest/mocker/chunk-pathe.M-eThtNZ.js +174 -0
  59. package/dist/@vitest/mocker/chunk-registry.js +185 -0
  60. package/dist/@vitest/mocker/chunk-utils.js +16 -0
  61. package/dist/@vitest/mocker/index.d-C-sLYZi-.d.ts +25 -0
  62. package/dist/@vitest/mocker/index.d.ts +2 -0
  63. package/dist/@vitest/mocker/index.js +185 -0
  64. package/dist/@vitest/mocker/mocker.d-TnKRhz7N.d.ts +81 -0
  65. package/dist/@vitest/mocker/node.d.ts +800 -0
  66. package/dist/@vitest/mocker/node.js +966 -0
  67. package/dist/@vitest/mocker/redirect.d.ts +3 -0
  68. package/dist/@vitest/mocker/redirect.js +79 -0
  69. package/dist/@vitest/mocker/register.d.ts +9 -0
  70. package/dist/@vitest/mocker/register.js +41 -0
  71. package/dist/@vitest/mocker/types.d-B8CCKmHt.d.ts +107 -0
  72. package/dist/@vitest/pretty-format/index.d.ts +124 -0
  73. package/dist/@vitest/pretty-format/index.js +1022 -0
  74. package/dist/@vitest/runner/chunk-tasks.js +340 -0
  75. package/dist/@vitest/runner/index.d.ts +180 -0
  76. package/dist/@vitest/runner/index.js +2114 -0
  77. package/dist/@vitest/runner/tasks.d-C7UxawJ9.d.ts +834 -0
  78. package/dist/@vitest/runner/types.d.ts +183 -0
  79. package/dist/@vitest/runner/types.js +1 -0
  80. package/dist/@vitest/runner/utils.d.ts +45 -0
  81. package/dist/@vitest/runner/utils.js +5 -0
  82. package/dist/@vitest/snapshot/environment.d-DHdQ1Csl.d.ts +22 -0
  83. package/dist/@vitest/snapshot/environment.d.ts +16 -0
  84. package/dist/@vitest/snapshot/environment.js +40 -0
  85. package/dist/@vitest/snapshot/index.d.ts +130 -0
  86. package/dist/@vitest/snapshot/index.js +1437 -0
  87. package/dist/@vitest/snapshot/manager.d.ts +18 -0
  88. package/dist/@vitest/snapshot/manager.js +73 -0
  89. package/dist/@vitest/snapshot/rawSnapshot.d-lFsMJFUd.d.ts +61 -0
  90. package/dist/@vitest/spy/index.d.ts +384 -0
  91. package/dist/@vitest/spy/index.js +433 -0
  92. package/dist/@vitest/utils/chunk-_commonjsHelpers.js +5 -0
  93. package/dist/@vitest/utils/chunk-pathe.M-eThtNZ.js +156 -0
  94. package/dist/@vitest/utils/constants.d.ts +21 -0
  95. package/dist/@vitest/utils/constants.js +49 -0
  96. package/dist/@vitest/utils/diff.d.ts +93 -0
  97. package/dist/@vitest/utils/diff.js +2199 -0
  98. package/dist/@vitest/utils/display.d.ts +29 -0
  99. package/dist/@vitest/utils/display.js +742 -0
  100. package/dist/@vitest/utils/error.d.ts +7 -0
  101. package/dist/@vitest/utils/error.js +42 -0
  102. package/dist/@vitest/utils/helpers.d.ts +73 -0
  103. package/dist/@vitest/utils/helpers.js +295 -0
  104. package/dist/@vitest/utils/highlight.d.ts +9 -0
  105. package/dist/@vitest/utils/highlight.js +538 -0
  106. package/dist/@vitest/utils/index.d.ts +5 -0
  107. package/dist/@vitest/utils/index.js +1 -0
  108. package/dist/@vitest/utils/offset.d.ts +5 -0
  109. package/dist/@vitest/utils/offset.js +32 -0
  110. package/dist/@vitest/utils/resolver.d.ts +7 -0
  111. package/dist/@vitest/utils/resolver.js +71 -0
  112. package/dist/@vitest/utils/serialize.d.ts +3 -0
  113. package/dist/@vitest/utils/serialize.js +118 -0
  114. package/dist/@vitest/utils/source-map.d.ts +55 -0
  115. package/dist/@vitest/utils/source-map.js +478 -0
  116. package/dist/@vitest/utils/timers.d.ts +33 -0
  117. package/dist/@vitest/utils/timers.js +49 -0
  118. package/dist/@vitest/utils/types.d-BCElaP-c.d.ts +53 -0
  119. package/dist/@vitest/utils/types.d.ts +34 -0
  120. package/dist/@vitest/utils/types.js +1 -0
  121. package/dist/browser-compat.js +3 -0
  122. package/dist/browser.d.ts +46 -0
  123. package/dist/browser.js +20 -0
  124. package/dist/chunks/_commonjsHelpers.D26ty3Ew.js +6 -0
  125. package/dist/chunks/base.CJ0Y4ePK.js +165 -0
  126. package/dist/chunks/benchmark.B3N2zMcH.js +40 -0
  127. package/dist/chunks/benchmark.d.DAaHLpsq.d.ts +24 -0
  128. package/dist/chunks/browser.d.ChKACdzH.d.ts +59 -0
  129. package/dist/chunks/cac.DVeoLl0M.js +1409 -0
  130. package/dist/chunks/cli-api.B7PN_QUv.js +13672 -0
  131. package/dist/chunks/config.d.Cy95HiCx.d.ts +210 -0
  132. package/dist/chunks/console.Cf-YriPC.js +146 -0
  133. package/dist/chunks/constants.D_Q9UYh-.js +36 -0
  134. package/dist/chunks/coverage.AVPTjMgw.js +3292 -0
  135. package/dist/chunks/coverage.D_JHT54q.js +25 -0
  136. package/dist/chunks/coverage.d.BZtK59WP.d.ts +37 -0
  137. package/dist/chunks/creator.DAmOKTvJ.js +673 -0
  138. package/dist/chunks/date.Bq6ZW5rf.js +73 -0
  139. package/dist/chunks/defaults.BOqNVLsY.js +74 -0
  140. package/dist/chunks/env.D4Lgay0q.js +8 -0
  141. package/dist/chunks/environment.d.CrsxCzP1.d.ts +29 -0
  142. package/dist/chunks/evaluatedModules.Dg1zASAC.js +17 -0
  143. package/dist/chunks/evaluatedModules.d.BxJ5omdx.d.ts +7 -0
  144. package/dist/chunks/git.Bm2pzPAa.js +71 -0
  145. package/dist/chunks/global.d.B15mdLcR.d.ts +99 -0
  146. package/dist/chunks/globals.DOayXfHP.js +30 -0
  147. package/dist/chunks/index.6Qv1eEA6.js +109 -0
  148. package/dist/chunks/index.C5r1PdPD.js +231 -0
  149. package/dist/chunks/index.Chj8NDwU.js +206 -0
  150. package/dist/chunks/index.CyBMJtT7.js +727 -0
  151. package/dist/chunks/index.D3XRDfWc.js +213 -0
  152. package/dist/chunks/index.D4KonVSU.js +6343 -0
  153. package/dist/chunks/index.M8mOzt4Y.js +3839 -0
  154. package/dist/chunks/index.Z5E_ObnR.js +37 -0
  155. package/dist/chunks/init-forks._y3TW739.js +41 -0
  156. package/dist/chunks/init-threads.DBO2kn-p.js +18 -0
  157. package/dist/chunks/init.B6MLFIaN.js +334 -0
  158. package/dist/chunks/inspector.CvyFGlXm.js +53 -0
  159. package/dist/chunks/modules.BJuCwlRJ.js +36 -0
  160. package/dist/chunks/node.Ce0vMQM7.js +14 -0
  161. package/dist/chunks/plugin.d.CtqpEehP.d.ts +38 -0
  162. package/dist/chunks/reporters.d.CWXNI2jG.d.ts +3271 -0
  163. package/dist/chunks/rpc.BoxB0q7B.js +76 -0
  164. package/dist/chunks/rpc.d.RH3apGEf.d.ts +64 -0
  165. package/dist/chunks/setup-common.Cm-kSBVi.js +60 -0
  166. package/dist/chunks/startModuleRunner.DEj0jb3e.js +861 -0
  167. package/dist/chunks/suite.d.BJWk38HB.d.ts +10 -0
  168. package/dist/chunks/test.B8ej_ZHS.js +254 -0
  169. package/dist/chunks/traces.CCmnQaNT.js +217 -0
  170. package/dist/chunks/traces.d.402V_yFI.d.ts +18 -0
  171. package/dist/chunks/utils.DvEY5TfP.js +52 -0
  172. package/dist/chunks/vi.2VT5v0um.js +3919 -0
  173. package/dist/chunks/vm.D3epNOPZ.js +744 -0
  174. package/dist/chunks/worker.d.Dyxm8DEL.d.ts +255 -0
  175. package/dist/cli.js +28 -0
  176. package/dist/client/.vite/manifest.json +24 -0
  177. package/dist/client/__vitest__/assets/index-BUCFJtth.js +57 -0
  178. package/dist/client/__vitest__/assets/index-DlhE0rqZ.css +1 -0
  179. package/dist/client/__vitest__/bg.png +0 -0
  180. package/dist/client/__vitest__/favicon.ico +0 -0
  181. package/dist/client/__vitest__/favicon.svg +5 -0
  182. package/dist/client/__vitest__/index.html +32 -0
  183. package/dist/client/__vitest_browser__/orchestrator-S_3e_uzt.js +345 -0
  184. package/dist/client/__vitest_browser__/tester-k74mgIRa.js +2171 -0
  185. package/dist/client/__vitest_browser__/utils-uxqdqUz8.js +223 -0
  186. package/dist/client/error-catcher.js +82 -0
  187. package/dist/client/esm-client-injector.js +67 -0
  188. package/dist/client/favicon.svg +5 -0
  189. package/dist/client/orchestrator.html +35 -0
  190. package/dist/client/tester/tester.html +13 -0
  191. package/dist/client.js +456 -0
  192. package/dist/config.cjs +94 -0
  193. package/dist/config.d.ts +104 -0
  194. package/dist/config.js +15 -0
  195. package/dist/context.js +541 -0
  196. package/dist/coverage.d.ts +118 -0
  197. package/dist/coverage.js +23 -0
  198. package/dist/dummy.js +2 -0
  199. package/dist/environments.d.ts +22 -0
  200. package/dist/environments.js +3 -0
  201. package/dist/expect-element.js +27 -0
  202. package/dist/index-D6m36C6U.js +6 -0
  203. package/dist/index-node.js +7 -0
  204. package/dist/index.d.ts +510 -0
  205. package/dist/index.js +19 -0
  206. package/dist/locators.d.ts +354 -0
  207. package/dist/locators.js +1 -0
  208. package/dist/mocker.d.ts +1 -0
  209. package/dist/mocker.js +1 -0
  210. package/dist/module-evaluator.d.ts +124 -0
  211. package/dist/module-evaluator.js +343 -0
  212. package/dist/module-runner-stub.js +44 -0
  213. package/dist/module-runner.js +17 -0
  214. package/dist/node.d.ts +251 -0
  215. package/dist/node.js +98 -0
  216. package/dist/path.js +7 -0
  217. package/dist/plugins/browser-client.mjs +2 -0
  218. package/dist/plugins/browser-context.mjs +2 -0
  219. package/dist/plugins/browser-locators.mjs +2 -0
  220. package/dist/plugins/browser-playwright.mjs +2 -0
  221. package/dist/plugins/browser-preview.mjs +2 -0
  222. package/dist/plugins/browser-webdriverio.mjs +2 -0
  223. package/dist/plugins/browser.mjs +2 -0
  224. package/dist/plugins/expect.mjs +2 -0
  225. package/dist/plugins/mocker-automock.mjs +2 -0
  226. package/dist/plugins/mocker-browser.mjs +2 -0
  227. package/dist/plugins/mocker-node.mjs +2 -0
  228. package/dist/plugins/mocker-redirect.mjs +2 -0
  229. package/dist/plugins/mocker-register.mjs +2 -0
  230. package/dist/plugins/mocker.mjs +2 -0
  231. package/dist/plugins/pretty-format.mjs +2 -0
  232. package/dist/plugins/runner-types.mjs +2 -0
  233. package/dist/plugins/runner-utils.mjs +2 -0
  234. package/dist/plugins/runner.mjs +2 -0
  235. package/dist/plugins/snapshot-environment.mjs +2 -0
  236. package/dist/plugins/snapshot-manager.mjs +2 -0
  237. package/dist/plugins/snapshot.mjs +2 -0
  238. package/dist/plugins/spy.mjs +2 -0
  239. package/dist/plugins/utils-constants.mjs +2 -0
  240. package/dist/plugins/utils-diff.mjs +2 -0
  241. package/dist/plugins/utils-display.mjs +2 -0
  242. package/dist/plugins/utils-error.mjs +2 -0
  243. package/dist/plugins/utils-helpers.mjs +2 -0
  244. package/dist/plugins/utils-highlight.mjs +2 -0
  245. package/dist/plugins/utils-offset.mjs +2 -0
  246. package/dist/plugins/utils-resolver.mjs +2 -0
  247. package/dist/plugins/utils-serialize.mjs +2 -0
  248. package/dist/plugins/utils-source-map.mjs +2 -0
  249. package/dist/plugins/utils-timers.mjs +2 -0
  250. package/dist/plugins/utils.mjs +2 -0
  251. package/dist/reporters.d.ts +27 -0
  252. package/dist/reporters.js +24 -0
  253. package/dist/runners.d.ts +50 -0
  254. package/dist/runners.js +19 -0
  255. package/dist/shared/screenshotMatcher/types.d.ts +22 -0
  256. package/dist/snapshot.d.ts +9 -0
  257. package/dist/snapshot.js +4 -0
  258. package/dist/spy.js +1 -0
  259. package/dist/state.js +280 -0
  260. package/dist/suite.d.ts +5 -0
  261. package/dist/suite.js +6 -0
  262. package/dist/types.d.ts +69 -0
  263. package/dist/vendor/chai.d.mts +1 -0
  264. package/dist/vendor/chai.mjs +3577 -0
  265. package/dist/vendor/es-module-lexer.d.mts +193 -0
  266. package/dist/vendor/es-module-lexer.mjs +79 -0
  267. package/dist/vendor/estree-walker.d.mts +583 -0
  268. package/dist/vendor/estree-walker.mjs +339 -0
  269. package/dist/vendor/expect-type.d.mts +1574 -0
  270. package/dist/vendor/expect-type.mjs +214 -0
  271. package/dist/vendor/magic-string.d.mts +261 -0
  272. package/dist/vendor/magic-string.mjs +1700 -0
  273. package/dist/vendor/obug.d.mts +56 -0
  274. package/dist/vendor/obug.mjs +276 -0
  275. package/dist/vendor/pathe.d.mts +46 -0
  276. package/dist/vendor/pathe.mjs +496 -0
  277. package/dist/vendor/picomatch.d.mts +1 -0
  278. package/dist/vendor/picomatch.mjs +1855 -0
  279. package/dist/vendor/shared-3g9mwCWP.mjs +31 -0
  280. package/dist/vendor/std-env.d.mts +88 -0
  281. package/dist/vendor/std-env.mjs +159 -0
  282. package/dist/vendor/tinybench.d.mts +317 -0
  283. package/dist/vendor/tinybench.mjs +504 -0
  284. package/dist/vendor/tinyexec.d.mts +72 -0
  285. package/dist/vendor/tinyexec.mjs +637 -0
  286. package/dist/vendor/tinyglobby.d.mts +157 -0
  287. package/dist/vendor/tinyglobby.mjs +832 -0
  288. package/dist/vendor/tinyrainbow.d.mts +60 -0
  289. package/dist/vendor/tinyrainbow.mjs +93 -0
  290. package/dist/vendor/vitest_browser.mjs +2 -0
  291. package/dist/vendor/vitest_internal_browser.mjs +2 -0
  292. package/dist/vendor/vitest_runner.mjs +2 -0
  293. package/dist/vendor/vitest_runners.mjs +2 -0
  294. package/dist/worker.d.ts +32 -0
  295. package/dist/worker.js +48 -0
  296. package/dist/workers/forks.js +54 -0
  297. package/dist/workers/runVmTests.js +95 -0
  298. package/dist/workers/threads.js +55 -0
  299. package/dist/workers/vmForks.js +36 -0
  300. package/dist/workers/vmThreads.js +37 -0
  301. package/environments.d.ts +1 -0
  302. package/globals.d.ts +20 -0
  303. package/import-meta.d.ts +5 -0
  304. package/importMeta.d.ts +4 -0
  305. package/index.cjs +5 -0
  306. package/index.d.cts +1 -0
  307. package/jsdom.d.ts +6 -0
  308. package/mocker.d.ts +1 -0
  309. package/node.d.ts +1 -0
  310. package/optional-types.d.ts +7 -0
  311. package/package.json +335 -0
  312. package/reporters.d.ts +1 -0
  313. package/runners.d.ts +1 -0
  314. package/snapshot.d.ts +1 -0
  315. package/suite.d.ts +1 -0
  316. package/suppress-warnings.cjs +21 -0
  317. package/vitest.mjs +2 -0
  318. package/worker.d.ts +1 -0
@@ -0,0 +1,214 @@
1
+ import { t as __commonJSMin } from "./shared-3g9mwCWP.mjs";
2
+
3
+ //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js
4
+ var require_branding = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ }));
7
+
8
+ //#endregion
9
+ //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js
10
+ var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ /**
13
+ * @internal
14
+ */
15
+ const inverted = Symbol("inverted");
16
+ /**
17
+ * @internal
18
+ */
19
+ const expectNull = Symbol("expectNull");
20
+ /**
21
+ * @internal
22
+ */
23
+ const expectUndefined = Symbol("expectUndefined");
24
+ /**
25
+ * @internal
26
+ */
27
+ const expectNumber = Symbol("expectNumber");
28
+ /**
29
+ * @internal
30
+ */
31
+ const expectString = Symbol("expectString");
32
+ /**
33
+ * @internal
34
+ */
35
+ const expectBoolean = Symbol("expectBoolean");
36
+ /**
37
+ * @internal
38
+ */
39
+ const expectVoid = Symbol("expectVoid");
40
+ /**
41
+ * @internal
42
+ */
43
+ const expectFunction = Symbol("expectFunction");
44
+ /**
45
+ * @internal
46
+ */
47
+ const expectObject = Symbol("expectObject");
48
+ /**
49
+ * @internal
50
+ */
51
+ const expectArray = Symbol("expectArray");
52
+ /**
53
+ * @internal
54
+ */
55
+ const expectSymbol = Symbol("expectSymbol");
56
+ /**
57
+ * @internal
58
+ */
59
+ const expectAny = Symbol("expectAny");
60
+ /**
61
+ * @internal
62
+ */
63
+ const expectUnknown = Symbol("expectUnknown");
64
+ /**
65
+ * @internal
66
+ */
67
+ const expectNever = Symbol("expectNever");
68
+ /**
69
+ * @internal
70
+ */
71
+ const expectNullable = Symbol("expectNullable");
72
+ /**
73
+ * @internal
74
+ */
75
+ const expectBigInt = Symbol("expectBigInt");
76
+ }));
77
+
78
+ //#endregion
79
+ //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js
80
+ var require_overloads = /* @__PURE__ */ __commonJSMin(((exports) => {
81
+ Object.defineProperty(exports, "__esModule", { value: true });
82
+ }));
83
+
84
+ //#endregion
85
+ //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js
86
+ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
87
+ Object.defineProperty(exports, "__esModule", { value: true });
88
+ /**
89
+ * @internal
90
+ */
91
+ const secret = Symbol("secret");
92
+ /**
93
+ * @internal
94
+ */
95
+ const mismatch = Symbol("mismatch");
96
+ /**
97
+ * A type which should match anything passed as a value but *doesn't*
98
+ * match {@linkcode Mismatch}. It helps TypeScript select the right overload
99
+ * for {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()} and
100
+ * {@linkcode PositiveExpectTypeOf.toMatchTypeOf | .toMatchTypeOf()}.
101
+ *
102
+ * @internal
103
+ */
104
+ const avalue = Symbol("avalue");
105
+ }));
106
+
107
+ //#endregion
108
+ //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js
109
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
110
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
111
+ if (k2 === undefined) k2 = k;
112
+ var desc = Object.getOwnPropertyDescriptor(m, k);
113
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
114
+ desc = {
115
+ enumerable: true,
116
+ get: function() {
117
+ return m[k];
118
+ }
119
+ };
120
+ }
121
+ Object.defineProperty(o, k2, desc);
122
+ }) : (function(o, m, k, k2) {
123
+ if (k2 === undefined) k2 = k;
124
+ o[k2] = m[k];
125
+ }));
126
+ var __exportStar = exports && exports.__exportStar || function(m, exports$1) {
127
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
128
+ };
129
+ Object.defineProperty(exports, "__esModule", { value: true });
130
+ exports.expectTypeOf = void 0;
131
+ __exportStar(require_branding(), exports);
132
+ __exportStar(require_messages(), exports);
133
+ __exportStar(require_overloads(), exports);
134
+ __exportStar(require_utils(), exports);
135
+ const fn = () => true;
136
+ /**
137
+ * Similar to Jest's `expect`, but with type-awareness.
138
+ * Gives you access to a number of type-matchers that let you make assertions about the
139
+ * form of a reference or generic type parameter.
140
+ *
141
+ * @example
142
+ * ```ts
143
+ * import { foo, bar } from '../foo'
144
+ * import { expectTypeOf } from 'expect-type'
145
+ *
146
+ * test('foo types', () => {
147
+ * // make sure `foo` has type { a: number }
148
+ * expectTypeOf(foo).toMatchTypeOf({ a: 1 })
149
+ * expectTypeOf(foo).toHaveProperty('a').toBeNumber()
150
+ *
151
+ * // make sure `bar` is a function taking a string:
152
+ * expectTypeOf(bar).parameter(0).toBeString()
153
+ * expectTypeOf(bar).returns.not.toBeAny()
154
+ * })
155
+ * ```
156
+ *
157
+ * @description
158
+ * See the [full docs](https://npmjs.com/package/expect-type#documentation) for lots more examples.
159
+ */
160
+ const expectTypeOf = (_actual) => {
161
+ const nonFunctionProperties = [
162
+ "parameters",
163
+ "returns",
164
+ "resolves",
165
+ "not",
166
+ "items",
167
+ "constructorParameters",
168
+ "thisParameter",
169
+ "instance",
170
+ "guards",
171
+ "asserts",
172
+ "branded"
173
+ ];
174
+ const obj = {
175
+ toBeAny: fn,
176
+ toBeUnknown: fn,
177
+ toBeNever: fn,
178
+ toBeFunction: fn,
179
+ toBeObject: fn,
180
+ toBeArray: fn,
181
+ toBeString: fn,
182
+ toBeNumber: fn,
183
+ toBeBoolean: fn,
184
+ toBeVoid: fn,
185
+ toBeSymbol: fn,
186
+ toBeNull: fn,
187
+ toBeUndefined: fn,
188
+ toBeNullable: fn,
189
+ toBeBigInt: fn,
190
+ toMatchTypeOf: fn,
191
+ toEqualTypeOf: fn,
192
+ toBeConstructibleWith: fn,
193
+ toMatchObjectType: fn,
194
+ toExtend: fn,
195
+ map: exports.expectTypeOf,
196
+ toBeCallableWith: exports.expectTypeOf,
197
+ extract: exports.expectTypeOf,
198
+ exclude: exports.expectTypeOf,
199
+ pick: exports.expectTypeOf,
200
+ omit: exports.expectTypeOf,
201
+ toHaveProperty: exports.expectTypeOf,
202
+ parameter: exports.expectTypeOf
203
+ };
204
+ const getterProperties = nonFunctionProperties;
205
+ getterProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) }));
206
+ return obj;
207
+ };
208
+ exports.expectTypeOf = expectTypeOf;
209
+ }));
210
+
211
+ //#endregion
212
+ const __cjs_export__ = require_dist();
213
+ export const { expectTypeOf } = __cjs_export__;
214
+ export default __cjs_export__;
@@ -0,0 +1,261 @@
1
+ //#region ../../node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.d.mts
2
+ interface BundleOptions {
3
+ intro?: string;
4
+ separator?: string;
5
+ }
6
+ interface SourceMapOptions {
7
+ /**
8
+ * Whether the mapping should be high-resolution.
9
+ * Hi-res mappings map every single character, meaning (for example) your devtools will always
10
+ * be able to pinpoint the exact location of function calls and so on.
11
+ * With lo-res mappings, devtools may only be able to identify the correct
12
+ * line - but they're quicker to generate and less bulky.
13
+ * You can also set `"boundary"` to generate a semi-hi-res mappings segmented per word boundary
14
+ * instead of per character, suitable for string semantics that are separated by words.
15
+ * If sourcemap locations have been specified with s.addSourceMapLocation(), they will be used here.
16
+ */
17
+ hires?: boolean | 'boundary';
18
+ /**
19
+ * The filename where you plan to write the sourcemap.
20
+ */
21
+ file?: string;
22
+ /**
23
+ * The filename of the file containing the original source.
24
+ */
25
+ source?: string;
26
+ /**
27
+ * Whether to include the original content in the map's sourcesContent array.
28
+ */
29
+ includeContent?: boolean;
30
+ }
31
+ type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number];
32
+ interface DecodedSourceMap {
33
+ file: string;
34
+ sources: string[];
35
+ sourcesContent?: string[];
36
+ names: string[];
37
+ mappings: SourceMapSegment[][];
38
+ x_google_ignoreList?: number[];
39
+ }
40
+ declare class SourceMap {
41
+ constructor(properties: DecodedSourceMap);
42
+ version: number;
43
+ file: string;
44
+ sources: string[];
45
+ sourcesContent?: string[];
46
+ names: string[];
47
+ mappings: string;
48
+ x_google_ignoreList?: number[];
49
+ debugId?: string;
50
+ /**
51
+ * Returns the equivalent of `JSON.stringify(map)`
52
+ */
53
+ toString(): string;
54
+ /**
55
+ * Returns a DataURI containing the sourcemap. Useful for doing this sort of thing:
56
+ * `generateMap(options?: SourceMapOptions): SourceMap;`
57
+ */
58
+ toUrl(): string;
59
+ }
60
+ declare class Bundle {
61
+ constructor(options?: BundleOptions);
62
+ /**
63
+ * Adds the specified source to the bundle, which can either be a `MagicString` object directly,
64
+ * or an options object that holds a magic string `content` property and optionally provides
65
+ * a `filename` for the source within the bundle, as well as an optional `ignoreList` hint
66
+ * (which defaults to `false`). The `filename` is used when constructing the source map for the
67
+ * bundle, to identify this `source` in the source map's `sources` field. The `ignoreList` hint
68
+ * is used to populate the `x_google_ignoreList` extension field in the source map, which is a
69
+ * mechanism for tools to signal to debuggers that certain sources should be ignored by default
70
+ * (depending on user preferences).
71
+ */
72
+ addSource(source: MagicString | {
73
+ filename?: string;
74
+ content: MagicString;
75
+ ignoreList?: boolean;
76
+ }): this;
77
+ append(str: string, options?: BundleOptions): this;
78
+ clone(): this;
79
+ generateMap(options?: SourceMapOptions): Omit<SourceMap, 'sourcesContent'> & {
80
+ sourcesContent: Array<string | null>;
81
+ };
82
+ generateDecodedMap(options?: SourceMapOptions): Omit<DecodedSourceMap, 'sourcesContent'> & {
83
+ sourcesContent: Array<string | null>;
84
+ };
85
+ getIndentString(): string;
86
+ indent(indentStr?: string): this;
87
+ indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
88
+ prepend(str: string): this;
89
+ toString(): string;
90
+ trimLines(): this;
91
+ trim(charType?: string): this;
92
+ trimStart(charType?: string): this;
93
+ trimEnd(charType?: string): this;
94
+ isEmpty(): boolean;
95
+ length(): number;
96
+ }
97
+ type ExclusionRange = [number, number];
98
+ interface MagicStringOptions {
99
+ filename?: string;
100
+ indentExclusionRanges?: ExclusionRange | Array<ExclusionRange>;
101
+ offset?: number;
102
+ }
103
+ interface IndentOptions {
104
+ exclude?: ExclusionRange | Array<ExclusionRange>;
105
+ indentStart?: boolean;
106
+ }
107
+ interface OverwriteOptions {
108
+ storeName?: boolean;
109
+ contentOnly?: boolean;
110
+ }
111
+ interface UpdateOptions {
112
+ storeName?: boolean;
113
+ overwrite?: boolean;
114
+ }
115
+ declare class MagicString {
116
+ constructor(str: string, options?: MagicStringOptions);
117
+ /**
118
+ * Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
119
+ */
120
+ addSourcemapLocation(char: number): void;
121
+ /**
122
+ * Appends the specified content to the end of the string.
123
+ */
124
+ append(content: string): this;
125
+ /**
126
+ * Appends the specified content at the index in the original string.
127
+ * If a range *ending* with index is subsequently moved, the insert will be moved with it.
128
+ * See also `s.prependLeft(...)`.
129
+ */
130
+ appendLeft(index: number, content: string): this;
131
+ /**
132
+ * Appends the specified content at the index in the original string.
133
+ * If a range *starting* with index is subsequently moved, the insert will be moved with it.
134
+ * See also `s.prependRight(...)`.
135
+ */
136
+ appendRight(index: number, content: string): this;
137
+ /**
138
+ * Does what you'd expect.
139
+ */
140
+ clone(): this;
141
+ /**
142
+ * Generates a version 3 sourcemap.
143
+ */
144
+ generateMap(options?: SourceMapOptions): SourceMap;
145
+ /**
146
+ * Generates a sourcemap object with raw mappings in array form, rather than encoded as a string.
147
+ * Useful if you need to manipulate the sourcemap further, but most of the time you will use `generateMap` instead.
148
+ */
149
+ generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap;
150
+ getIndentString(): string;
151
+ /**
152
+ * Prefixes each line of the string with prefix.
153
+ * If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
154
+ */
155
+ indent(options?: IndentOptions): this;
156
+ /**
157
+ * Prefixes each line of the string with prefix.
158
+ * If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
159
+ *
160
+ * The options argument can have an exclude property, which is an array of [start, end] character ranges.
161
+ * These ranges will be excluded from the indentation - useful for (e.g.) multiline strings.
162
+ */
163
+ indent(indentStr?: string, options?: IndentOptions): this;
164
+ indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
165
+ /**
166
+ * Moves the characters from `start` and `end` to `index`.
167
+ */
168
+ move(start: number, end: number, index: number): this;
169
+ /**
170
+ * Replaces the characters from `start` to `end` with `content`, along with the appended/prepended content in
171
+ * that range. The same restrictions as `s.remove()` apply.
172
+ *
173
+ * The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
174
+ * for later inclusion in a sourcemap's names array — and a contentOnly property which determines whether only
175
+ * the content is overwritten, or anything that was appended/prepended to the range as well.
176
+ *
177
+ * It may be preferred to use `s.update(...)` instead if you wish to avoid overwriting the appended/prepended content.
178
+ */
179
+ overwrite(start: number, end: number, content: string, options?: boolean | OverwriteOptions): this;
180
+ /**
181
+ * Replaces the characters from `start` to `end` with `content`. The same restrictions as `s.remove()` apply.
182
+ *
183
+ * The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
184
+ * for later inclusion in a sourcemap's names array — and an overwrite property which determines whether only
185
+ * the content is overwritten, or anything that was appended/prepended to the range as well.
186
+ */
187
+ update(start: number, end: number, content: string, options?: boolean | UpdateOptions): this;
188
+ /**
189
+ * Prepends the string with the specified content.
190
+ */
191
+ prepend(content: string): this;
192
+ /**
193
+ * Same as `s.appendLeft(...)`, except that the inserted content will go *before* any previous appends or prepends at index
194
+ */
195
+ prependLeft(index: number, content: string): this;
196
+ /**
197
+ * Same as `s.appendRight(...)`, except that the inserted content will go *before* any previous appends or prepends at `index`
198
+ */
199
+ prependRight(index: number, content: string): this;
200
+ /**
201
+ * Removes the characters from `start` to `end` (of the original string, **not** the generated string).
202
+ * Removing the same content twice, or making removals that partially overlap, will cause an error.
203
+ */
204
+ remove(start: number, end: number): this;
205
+ /**
206
+ * Reset the modified characters from `start` to `end` (of the original string, **not** the generated string).
207
+ */
208
+ reset(start: number, end: number): this;
209
+ /**
210
+ * Returns the content of the generated string that corresponds to the slice between `start` and `end` of the original string.
211
+ * Throws error if the indices are for characters that were already removed.
212
+ */
213
+ slice(start: number, end: number): string;
214
+ /**
215
+ * Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed.
216
+ */
217
+ snip(start: number, end: number): this;
218
+ /**
219
+ * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start and end.
220
+ */
221
+ trim(charType?: string): this;
222
+ /**
223
+ * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start.
224
+ */
225
+ trimStart(charType?: string): this;
226
+ /**
227
+ * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the end.
228
+ */
229
+ trimEnd(charType?: string): this;
230
+ /**
231
+ * Removes empty lines from the start and end.
232
+ */
233
+ trimLines(): this;
234
+ /**
235
+ * String replacement with RegExp or string.
236
+ */
237
+ replace(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): this;
238
+ /**
239
+ * Same as `s.replace`, but replace all matched strings instead of just one.
240
+ */
241
+ replaceAll(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): this;
242
+ lastChar(): string;
243
+ lastLine(): string;
244
+ /**
245
+ * Returns true if the resulting source is empty (disregarding white space).
246
+ */
247
+ isEmpty(): boolean;
248
+ length(): number;
249
+ /**
250
+ * Indicates if the string has been changed.
251
+ */
252
+ hasChanged(): boolean;
253
+ original: string;
254
+ /**
255
+ * Returns the generated string.
256
+ */
257
+ toString(): string;
258
+ offset: number;
259
+ }
260
+ //#endregion
261
+ export { Bundle, BundleOptions, DecodedSourceMap, ExclusionRange, IndentOptions, MagicStringOptions, OverwriteOptions, SourceMap, SourceMapOptions, SourceMapSegment, UpdateOptions };