@voidzero-dev/vite-plus-test 0.1.9 → 0.1.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 (205) hide show
  1. package/LICENSE.md +181 -1
  2. package/dist/@vitest/browser/client/.vite/manifest.json +6 -6
  3. package/dist/@vitest/browser/client/__vitest__/assets/index-Da0hb3oU.css +1 -0
  4. package/dist/@vitest/browser/client/__vitest__/assets/index-Di71CKDo.js +63 -0
  5. package/dist/@vitest/browser/client/__vitest__/favicon.ico +0 -0
  6. package/dist/@vitest/browser/client/__vitest__/favicon.svg +49 -4
  7. package/dist/@vitest/browser/client/__vitest__/index.html +2 -2
  8. package/dist/@vitest/browser/client/__vitest_browser__/{orchestrator-S_3e_uzt.js → orchestrator-CXs6qrFe.js} +70 -28
  9. package/dist/@vitest/browser/client/__vitest_browser__/{tester-k74mgIRa.js → tester-K5NNxh1O.js} +167 -58
  10. package/dist/@vitest/browser/client/__vitest_browser__/{utils-uxqdqUz8.js → utils-C2ISqq1C.js} +2 -2
  11. package/dist/@vitest/browser/client/favicon.svg +49 -4
  12. package/dist/@vitest/browser/client/orchestrator.html +2 -2
  13. package/dist/@vitest/browser/client/tester/tester.html +2 -2
  14. package/dist/@vitest/browser/client.js +20 -13
  15. package/dist/@vitest/browser/context.d.ts +160 -10
  16. package/dist/@vitest/browser/context.js +108 -22
  17. package/dist/@vitest/browser/expect-element.js +23 -28
  18. package/dist/@vitest/browser/index-5Pe7X7sp.js +7 -0
  19. package/dist/@vitest/browser/index.d.ts +20 -2
  20. package/dist/@vitest/browser/index.js +5706 -159
  21. package/dist/@vitest/browser/locators.d.ts +14 -3
  22. package/dist/@vitest/browser/locators.js +1 -1
  23. package/dist/@vitest/browser-playwright/index.d.ts +22 -5
  24. package/dist/@vitest/browser-playwright/index.js +169 -61
  25. package/dist/@vitest/browser-preview/index.d.ts +14 -1
  26. package/dist/@vitest/browser-preview/locators.js +31 -18
  27. package/dist/@vitest/browser-webdriverio/index.d.ts +17 -3
  28. package/dist/@vitest/browser-webdriverio/index.js +22 -2
  29. package/dist/@vitest/browser-webdriverio/locators.js +84 -7
  30. package/dist/@vitest/expect/index.d.ts +172 -54
  31. package/dist/@vitest/expect/index.js +124 -67
  32. package/dist/@vitest/mocker/auto-register.js +1 -0
  33. package/dist/@vitest/mocker/automock.d.ts +1 -0
  34. package/dist/@vitest/mocker/automock.js +5 -0
  35. package/dist/@vitest/mocker/browser.d.ts +4 -4
  36. package/dist/@vitest/mocker/browser.js +1 -0
  37. package/dist/@vitest/mocker/chunk-automock.js +182 -14
  38. package/dist/@vitest/mocker/chunk-helpers.js +44 -0
  39. package/dist/@vitest/mocker/chunk-hoistMocks.js +659 -0
  40. package/dist/@vitest/mocker/chunk-mocker.js +41 -30
  41. package/dist/@vitest/mocker/chunk-registry.js +21 -7
  42. package/dist/@vitest/mocker/chunk-utils.js +18 -7
  43. package/dist/@vitest/mocker/hoistMocks.d-w2ILr1dG.d.ts +739 -0
  44. package/dist/@vitest/mocker/{index.d-C-sLYZi-.d.ts → index.d-B41z0AuW.d.ts} +1 -1
  45. package/dist/@vitest/mocker/index.d.ts +2 -2
  46. package/dist/@vitest/mocker/index.js +18 -3
  47. package/dist/@vitest/mocker/{mocker.d-TnKRhz7N.d.ts → mocker.d-QEntlm6J.d.ts} +10 -5
  48. package/dist/@vitest/mocker/node.d.ts +5 -734
  49. package/dist/@vitest/mocker/node.js +29 -587
  50. package/dist/@vitest/mocker/redirect.js +4 -4
  51. package/dist/@vitest/mocker/register.d.ts +3 -3
  52. package/dist/@vitest/mocker/register.js +1 -0
  53. package/dist/@vitest/mocker/transforms.d.ts +6 -0
  54. package/dist/@vitest/mocker/transforms.js +8 -0
  55. package/dist/@vitest/mocker/{types.d-B8CCKmHt.d.ts → types.d-BjI5eAwu.d.ts} +23 -7
  56. package/dist/@vitest/pretty-format/index.d.ts +11 -1
  57. package/dist/@vitest/pretty-format/index.js +33 -4
  58. package/dist/@vitest/runner/chunk-tasks.js +305 -37
  59. package/dist/@vitest/runner/index.d.ts +5 -6
  60. package/dist/@vitest/runner/index.js +1146 -455
  61. package/dist/@vitest/runner/{tasks.d-C7UxawJ9.d.ts → tasks.d-D2GKpdwQ.d.ts} +726 -55
  62. package/dist/@vitest/runner/types.d.ts +2 -182
  63. package/dist/@vitest/runner/utils.d.ts +16 -8
  64. package/dist/@vitest/runner/utils.js +1 -1
  65. package/dist/@vitest/snapshot/{environment.d-DHdQ1Csl.d.ts → environment.d-DOJxxZV9.d.ts} +2 -7
  66. package/dist/@vitest/snapshot/environment.d.ts +2 -1
  67. package/dist/@vitest/snapshot/environment.js +1 -1
  68. package/dist/@vitest/snapshot/index.d.ts +4 -3
  69. package/dist/@vitest/snapshot/index.js +21 -550
  70. package/dist/@vitest/snapshot/manager.d.ts +3 -2
  71. package/dist/@vitest/snapshot/manager.js +1 -1
  72. package/dist/@vitest/snapshot/{rawSnapshot.d-lFsMJFUd.d.ts → rawSnapshot.d-U2kJUxDr.d.ts} +1 -1
  73. package/dist/@vitest/spy/index.d.ts +34 -4
  74. package/dist/@vitest/spy/index.js +69 -19
  75. package/dist/@vitest/utils/diff.js +11 -9
  76. package/dist/@vitest/utils/display.d.ts +2 -1
  77. package/dist/@vitest/utils/display.js +38 -5
  78. package/dist/@vitest/utils/error.d.ts +2 -1
  79. package/dist/@vitest/utils/error.js +1 -2
  80. package/dist/@vitest/utils/helpers.d.ts +4 -1
  81. package/dist/@vitest/utils/helpers.js +43 -1
  82. package/dist/@vitest/utils/resolver.js +1 -2
  83. package/dist/@vitest/utils/serialize.js +6 -6
  84. package/dist/@vitest/utils/source-map/node.d.ts +6 -0
  85. package/dist/@vitest/utils/source-map/node.js +23 -0
  86. package/dist/@vitest/utils/source-map.js +15 -5
  87. package/dist/browser.d.ts +3 -2
  88. package/dist/browser.js +2 -2
  89. package/dist/chunks/acorn.B2iPLyUM.js +5958 -0
  90. package/dist/chunks/{base.CJ0Y4ePK.js → base.DM0-RqVb.js} +54 -16
  91. package/dist/chunks/{benchmark.B3N2zMcH.js → benchmark.D0SlKNbZ.js} +1 -1
  92. package/dist/chunks/{browser.d.ChKACdzH.d.ts → browser.d.X3SXoOCV.d.ts} +4 -1
  93. package/dist/chunks/{cac.DVeoLl0M.js → cac.CWGDZnXT.js} +979 -20
  94. package/dist/chunks/{cli-api.B7PN_QUv.js → cli-api.DuT9iuvY.js} +8764 -7898
  95. package/dist/chunks/{config.d.Cy95HiCx.d.ts → config.d.EJLVE3es.d.ts} +30 -15
  96. package/dist/chunks/{console.Cf-YriPC.js → console.3WNpx0tS.js} +3 -2
  97. package/dist/chunks/{constants.D_Q9UYh-.js → constants.CPYnjOGj.js} +4 -2
  98. package/dist/chunks/coverage.Bri33R1t.js +1050 -0
  99. package/dist/chunks/{creator.DAmOKTvJ.js → creator.DgVhQm5q.js} +35 -4
  100. package/dist/chunks/{defaults.BOqNVLsY.js → defaults.CdU2lD-q.js} +4 -3
  101. package/dist/chunks/{global.d.B15mdLcR.d.ts → global.d.x-ILCfAE.d.ts} +1 -2
  102. package/dist/chunks/{globals.DOayXfHP.js → globals.BXNGLnTL.js} +11 -10
  103. package/dist/chunks/{coverage.AVPTjMgw.js → index.BCY_7LL2.js} +5 -959
  104. package/dist/chunks/{index.C5r1PdPD.js → index.CEzQDJGb.js} +1 -1
  105. package/dist/chunks/{index.D3XRDfWc.js → index.CMESou6r.js} +26 -1
  106. package/dist/chunks/{index.6Qv1eEA6.js → index.DGNSnENe.js} +95 -9
  107. package/dist/chunks/{index.M8mOzt4Y.js → index.DXMFO5MJ.js} +3279 -2914
  108. package/dist/chunks/{index.Z5E_ObnR.js → index.DlDSLQD3.js} +7 -3
  109. package/dist/chunks/{index.CyBMJtT7.js → index.EY6TCHpo.js} +10 -8
  110. package/dist/chunks/{index.D4KonVSU.js → index.og1WyBLx.js} +18 -3
  111. package/dist/chunks/{init-forks._y3TW739.js → init-forks.DeArv0jT.js} +1 -1
  112. package/dist/chunks/{init-threads.DBO2kn-p.js → init-threads.-2OUl4Nn.js} +1 -1
  113. package/dist/chunks/{init.B6MLFIaN.js → init.DICorXCo.js} +52 -13
  114. package/dist/chunks/native.DPzPHdi5.js +148 -0
  115. package/dist/chunks/nativeModuleMocker.DndvSdL6.js +206 -0
  116. package/dist/chunks/nativeModuleRunner.BIakptoF.js +36 -0
  117. package/dist/chunks/{node.Ce0vMQM7.js → node.COQbm6gK.js} +1 -1
  118. package/dist/chunks/{plugin.d.CtqpEehP.d.ts → plugin.d.BuW-flqo.d.ts} +1 -1
  119. package/dist/chunks/{reporters.d.CWXNI2jG.d.ts → reporters.d.DVUYHHhe.d.ts} +328 -79
  120. package/dist/chunks/rpc.MzXet3jl.js +144 -0
  121. package/dist/chunks/{rpc.d.RH3apGEf.d.ts → rpc.d.BFMWpdph.d.ts} +10 -2
  122. package/dist/chunks/{setup-common.Cm-kSBVi.js → setup-common.B41N_kPE.js} +3 -3
  123. package/dist/chunks/{startModuleRunner.DEj0jb3e.js → startVitestModuleRunner.C3ZR-4J3.js} +265 -405
  124. package/dist/chunks/{suite.d.BJWk38HB.d.ts → suite.d.udJtyAgw.d.ts} +1 -1
  125. package/dist/chunks/{vi.2VT5v0um.js → test.CTcmp4Su.js} +538 -181
  126. package/dist/chunks/{utils.DvEY5TfP.js → utils.BX5Fg8C4.js} +8 -1
  127. package/dist/chunks/{vm.D3epNOPZ.js → vm.Dh2rTtmP.js} +48 -8
  128. package/dist/chunks/{worker.d.Dyxm8DEL.d.ts → worker.d.B84sVRy0.d.ts} +2 -2
  129. package/dist/cli.js +6 -5
  130. package/dist/client/.vite/manifest.json +6 -6
  131. package/dist/client/__vitest__/assets/index-Da0hb3oU.css +1 -0
  132. package/dist/client/__vitest__/assets/index-Di71CKDo.js +63 -0
  133. package/dist/client/__vitest__/favicon.ico +0 -0
  134. package/dist/client/__vitest__/favicon.svg +49 -4
  135. package/dist/client/__vitest__/index.html +2 -2
  136. package/dist/client/__vitest_browser__/{orchestrator-S_3e_uzt.js → orchestrator-CXs6qrFe.js} +70 -28
  137. package/dist/client/__vitest_browser__/{tester-k74mgIRa.js → tester-K5NNxh1O.js} +167 -58
  138. package/dist/client/__vitest_browser__/{utils-uxqdqUz8.js → utils-C2ISqq1C.js} +2 -2
  139. package/dist/client/favicon.svg +49 -4
  140. package/dist/client/orchestrator.html +2 -2
  141. package/dist/client/tester/tester.html +2 -2
  142. package/dist/client.js +20 -13
  143. package/dist/config.cjs +3 -2
  144. package/dist/config.d.ts +13 -12
  145. package/dist/config.js +2 -2
  146. package/dist/context.js +108 -22
  147. package/dist/coverage.d.ts +12 -8
  148. package/dist/coverage.js +8 -5
  149. package/dist/environments.js +3 -1
  150. package/dist/expect-element.js +23 -23
  151. package/dist/index-5Pe7X7sp.js +7 -0
  152. package/dist/index.d.ts +66 -27
  153. package/dist/index.js +10 -9
  154. package/dist/locators.d.ts +14 -3
  155. package/dist/locators.js +1 -1
  156. package/dist/module-evaluator.d.ts +11 -1
  157. package/dist/module-evaluator.js +43 -26
  158. package/dist/node.d.ts +28 -14
  159. package/dist/node.js +42 -40
  160. package/dist/nodejs-worker-loader.js +41 -0
  161. package/dist/plugins/mocker-transforms.mjs +2 -0
  162. package/dist/plugins/utils-source-map-node.mjs +2 -0
  163. package/dist/reporters.d.ts +8 -8
  164. package/dist/reporters.js +7 -5
  165. package/dist/runners.d.ts +24 -5
  166. package/dist/runners.js +6 -6
  167. package/dist/runtime.d.ts +6 -0
  168. package/dist/runtime.js +35 -0
  169. package/dist/snapshot.js +4 -2
  170. package/dist/suite.d.ts +1 -1
  171. package/dist/suite.js +4 -2
  172. package/dist/vendor/blazediff_core.d.mts +1 -0
  173. package/dist/vendor/blazediff_core.mjs +117 -0
  174. package/dist/vendor/chai.mjs +4 -249
  175. package/dist/vendor/convert-source-map.d.mts +1 -0
  176. package/dist/vendor/convert-source-map.mjs +150 -0
  177. package/dist/vendor/expect-type.d.mts +14 -7
  178. package/dist/vendor/expect-type.mjs +5 -5
  179. package/dist/vendor/std-env.d.mts +131 -40
  180. package/dist/vendor/std-env.mjs +114 -117
  181. package/dist/worker.d.ts +6 -6
  182. package/dist/worker.js +27 -21
  183. package/dist/workers/forks.js +23 -17
  184. package/dist/workers/runVmTests.js +18 -16
  185. package/dist/workers/threads.js +23 -17
  186. package/dist/workers/vmForks.js +15 -12
  187. package/dist/workers/vmThreads.js +15 -12
  188. package/globals.d.ts +2 -0
  189. package/package.json +35 -26
  190. package/suppress-warnings.cjs +1 -0
  191. package/dist/@vitest/browser/client/__vitest__/assets/index-BUCFJtth.js +0 -57
  192. package/dist/@vitest/browser/client/__vitest__/assets/index-DlhE0rqZ.css +0 -1
  193. package/dist/@vitest/browser/index-D6m36C6U.js +0 -11
  194. package/dist/@vitest/utils/chunk-_commonjsHelpers.js +0 -5
  195. package/dist/@vitest/utils/highlight.d.ts +0 -9
  196. package/dist/@vitest/utils/highlight.js +0 -538
  197. package/dist/chunks/date.Bq6ZW5rf.js +0 -73
  198. package/dist/chunks/rpc.BoxB0q7B.js +0 -76
  199. package/dist/chunks/test.B8ej_ZHS.js +0 -254
  200. package/dist/client/__vitest__/assets/index-BUCFJtth.js +0 -57
  201. package/dist/client/__vitest__/assets/index-DlhE0rqZ.css +0 -1
  202. package/dist/index-D6m36C6U.js +0 -6
  203. package/dist/mocker.d.ts +0 -1
  204. package/dist/mocker.js +0 -1
  205. package/dist/module-runner.js +0 -17
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/chai@6.2.1/node_modules/chai/index.js
1
+ //#region ../../node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.js
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
4
4
  enumerable: true,
@@ -535,8 +535,8 @@ function inspectHTML(element, options) {
535
535
  return `${head}${propertyContents}${headClose}${children}${tail}`;
536
536
  }
537
537
  __name(inspectHTML, "inspectHTML");
538
- var chaiInspect = typeof Symbol === "function" && typeof Symbol.for === "function" ? Symbol.for("chai/inspect") : "@@chai/inspect";
539
- var nodeInspect = Symbol.for("nodejs.util.inspect.custom");
538
+ var chaiInspect = typeof Symbol === "function" && typeof Symbol.for === "function" ? /* @__PURE__ */ Symbol.for("chai/inspect") : "@@chai/inspect";
539
+ var nodeInspect = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
540
540
  var constructorMap = /* @__PURE__ */ new WeakMap();
541
541
  var stringTagMap = {};
542
542
  var baseTypesMap = {
@@ -2006,7 +2006,7 @@ function closeTo(expected, delta, msg) {
2006
2006
  message = "A `expected` value is required for `closeTo`";
2007
2007
  if (expected == void 0) throw new AssertionError(flagMsg ? `${flagMsg}: ${message}` : message, void 0, ssfi);
2008
2008
  new Assertion(expected, flagMsg, ssfi, true).is.numeric;
2009
- const abs = /* @__PURE__ */ __name((x) => x < 0n ? -x : x, "abs");
2009
+ const abs = /* @__PURE__ */ __name((x) => x < 0 ? -x : x, "abs");
2010
2010
  const strip = /* @__PURE__ */ __name((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip");
2011
2011
  this.assert(strip(abs(obj - expected)) <= delta, "expected #{this} to be close to " + expected + " +/- " + delta, "expected #{this} not to be close to " + expected + " +/- " + delta);
2012
2012
  }
@@ -2869,250 +2869,5 @@ function use(fn) {
2869
2869
  return exports;
2870
2870
  }
2871
2871
  __name(use, "use");
2872
- /*!
2873
- * Chai - flag utility
2874
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2875
- * MIT Licensed
2876
- */
2877
- /*!
2878
- * Chai - test utility
2879
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2880
- * MIT Licensed
2881
- */
2882
- /*!
2883
- * Chai - expectTypes utility
2884
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2885
- * MIT Licensed
2886
- */
2887
- /*!
2888
- * Chai - getActual utility
2889
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2890
- * MIT Licensed
2891
- */
2892
- /*!
2893
- * Chai - message composition utility
2894
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2895
- * MIT Licensed
2896
- */
2897
- /*!
2898
- * Chai - transferFlags utility
2899
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2900
- * MIT Licensed
2901
- */
2902
- /*!
2903
- * chai
2904
- * http://chaijs.com
2905
- * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
2906
- * MIT Licensed
2907
- */
2908
- /*!
2909
- * Chai - events utility
2910
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
2911
- * MIT Licensed
2912
- */
2913
- /*!
2914
- * Chai - isProxyEnabled helper
2915
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2916
- * MIT Licensed
2917
- */
2918
- /*!
2919
- * Chai - addProperty utility
2920
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2921
- * MIT Licensed
2922
- */
2923
- /*!
2924
- * Chai - addLengthGuard utility
2925
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2926
- * MIT Licensed
2927
- */
2928
- /*!
2929
- * Chai - getProperties utility
2930
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2931
- * MIT Licensed
2932
- */
2933
- /*!
2934
- * Chai - proxify utility
2935
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2936
- * MIT Licensed
2937
- */
2938
- /*!
2939
- * Chai - addMethod utility
2940
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2941
- * MIT Licensed
2942
- */
2943
- /*!
2944
- * Chai - overwriteProperty utility
2945
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2946
- * MIT Licensed
2947
- */
2948
- /*!
2949
- * Chai - overwriteMethod utility
2950
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2951
- * MIT Licensed
2952
- */
2953
- /*!
2954
- * Chai - addChainingMethod utility
2955
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2956
- * MIT Licensed
2957
- */
2958
- /*!
2959
- * Chai - overwriteChainableMethod utility
2960
- * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
2961
- * MIT Licensed
2962
- */
2963
- /*!
2964
- * Chai - compareByInspect utility
2965
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
2966
- * MIT Licensed
2967
- */
2968
- /*!
2969
- * Chai - getOwnEnumerablePropertySymbols utility
2970
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
2971
- * MIT Licensed
2972
- */
2973
- /*!
2974
- * Chai - getOwnEnumerableProperties utility
2975
- * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
2976
- * MIT Licensed
2977
- */
2978
- /*!
2979
- * Chai - isNaN utility
2980
- * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
2981
- * MIT Licensed
2982
- */
2983
- /*!
2984
- * chai
2985
- * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
2986
- * MIT Licensed
2987
- */
2988
- /*!
2989
- * chai
2990
- * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
2991
- * MIT Licensed
2992
- */
2993
- /*! Bundled license information:
2994
-
2995
- deep-eql/index.js:
2996
- (*!
2997
- * deep-eql
2998
- * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
2999
- * MIT Licensed
3000
- *)
3001
- (*!
3002
- * Check to see if the MemoizeMap has recorded a result of the two operands
3003
- *
3004
- * @param {Mixed} leftHandOperand
3005
- * @param {Mixed} rightHandOperand
3006
- * @param {MemoizeMap} memoizeMap
3007
- * @returns {Boolean|null} result
3008
- *)
3009
- (*!
3010
- * Set the result of the equality into the MemoizeMap
3011
- *
3012
- * @param {Mixed} leftHandOperand
3013
- * @param {Mixed} rightHandOperand
3014
- * @param {MemoizeMap} memoizeMap
3015
- * @param {Boolean} result
3016
- *)
3017
- (*!
3018
- * Primary Export
3019
- *)
3020
- (*!
3021
- * The main logic of the `deepEqual` function.
3022
- *
3023
- * @param {Mixed} leftHandOperand
3024
- * @param {Mixed} rightHandOperand
3025
- * @param {Object} [options] (optional) Additional options
3026
- * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
3027
- * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
3028
- complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
3029
- references to blow the stack.
3030
- * @return {Boolean} equal match
3031
- *)
3032
- (*!
3033
- * Compare two Regular Expressions for equality.
3034
- *
3035
- * @param {RegExp} leftHandOperand
3036
- * @param {RegExp} rightHandOperand
3037
- * @return {Boolean} result
3038
- *)
3039
- (*!
3040
- * Compare two Sets/Maps for equality. Faster than other equality functions.
3041
- *
3042
- * @param {Set} leftHandOperand
3043
- * @param {Set} rightHandOperand
3044
- * @param {Object} [options] (Optional)
3045
- * @return {Boolean} result
3046
- *)
3047
- (*!
3048
- * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
3049
- *
3050
- * @param {Iterable} leftHandOperand
3051
- * @param {Iterable} rightHandOperand
3052
- * @param {Object} [options] (Optional)
3053
- * @return {Boolean} result
3054
- *)
3055
- (*!
3056
- * Simple equality for generator objects such as those returned by generator functions.
3057
- *
3058
- * @param {Iterable} leftHandOperand
3059
- * @param {Iterable} rightHandOperand
3060
- * @param {Object} [options] (Optional)
3061
- * @return {Boolean} result
3062
- *)
3063
- (*!
3064
- * Determine if the given object has an @@iterator function.
3065
- *
3066
- * @param {Object} target
3067
- * @return {Boolean} `true` if the object has an @@iterator function.
3068
- *)
3069
- (*!
3070
- * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
3071
- * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
3072
- *
3073
- * @param {Object} target
3074
- * @returns {Array} an array of entries from the @@iterator function
3075
- *)
3076
- (*!
3077
- * Gets all entries from a Generator. This will consume the generator - which could have side effects.
3078
- *
3079
- * @param {Generator} target
3080
- * @returns {Array} an array of entries from the Generator.
3081
- *)
3082
- (*!
3083
- * Gets all own and inherited enumerable keys from a target.
3084
- *
3085
- * @param {Object} target
3086
- * @returns {Array} an array of own and inherited enumerable keys from the target.
3087
- *)
3088
- (*!
3089
- * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
3090
- * each key. If any value of the given key is not equal, the function will return false (early).
3091
- *
3092
- * @param {Mixed} leftHandOperand
3093
- * @param {Mixed} rightHandOperand
3094
- * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
3095
- * @param {Object} [options] (Optional)
3096
- * @return {Boolean} result
3097
- *)
3098
- (*!
3099
- * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
3100
- * for each enumerable key in the object.
3101
- *
3102
- * @param {Mixed} leftHandOperand
3103
- * @param {Mixed} rightHandOperand
3104
- * @param {Object} [options] (Optional)
3105
- * @return {Boolean} result
3106
- *)
3107
- (*!
3108
- * Returns true if the argument is a primitive.
3109
- *
3110
- * This intentionally returns true for all objects that can be compared by reference,
3111
- * including functions and symbols.
3112
- *
3113
- * @param {Mixed} value
3114
- * @return {Boolean} result
3115
- *)
3116
- */
3117
2872
  //#endregion
3118
2873
  export { Assertion, AssertionError, Should, assert, config, expect, should, use, utils_exports as util };
@@ -0,0 +1 @@
1
+ export * from "convert-source-map";
@@ -0,0 +1,150 @@
1
+ import { t as __commonJSMin } from "./shared-BelWnsAF.mjs";
2
+ //#region ../../node_modules/.pnpm/convert-source-map@2.0.0/node_modules/convert-source-map/index.js
3
+ var require_convert_source_map = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ Object.defineProperty(exports, "commentRegex", { get: function getCommentRegex() {
5
+ return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm;
6
+ } });
7
+ Object.defineProperty(exports, "mapFileCommentRegex", { get: function getMapFileCommentRegex() {
8
+ return /(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/gm;
9
+ } });
10
+ var decodeBase64;
11
+ if (typeof Buffer !== "undefined") if (typeof Buffer.from === "function") decodeBase64 = decodeBase64WithBufferFrom;
12
+ else decodeBase64 = decodeBase64WithNewBuffer;
13
+ else decodeBase64 = decodeBase64WithAtob;
14
+ function decodeBase64WithBufferFrom(base64) {
15
+ return Buffer.from(base64, "base64").toString();
16
+ }
17
+ function decodeBase64WithNewBuffer(base64) {
18
+ if (typeof value === "number") throw new TypeError("The value to decode must not be of type number.");
19
+ return new Buffer(base64, "base64").toString();
20
+ }
21
+ function decodeBase64WithAtob(base64) {
22
+ return decodeURIComponent(escape(atob(base64)));
23
+ }
24
+ function stripComment(sm) {
25
+ return sm.split(",").pop();
26
+ }
27
+ function readFromFileMap(sm, read) {
28
+ var r = exports.mapFileCommentRegex.exec(sm);
29
+ var filename = r[1] || r[2];
30
+ try {
31
+ var sm = read(filename);
32
+ if (sm != null && typeof sm.catch === "function") return sm.catch(throwError);
33
+ else return sm;
34
+ } catch (e) {
35
+ throwError(e);
36
+ }
37
+ function throwError(e) {
38
+ throw new Error("An error occurred while trying to read the map file at " + filename + "\n" + e.stack);
39
+ }
40
+ }
41
+ function Converter(sm, opts) {
42
+ opts = opts || {};
43
+ if (opts.hasComment) sm = stripComment(sm);
44
+ if (opts.encoding === "base64") sm = decodeBase64(sm);
45
+ else if (opts.encoding === "uri") sm = decodeURIComponent(sm);
46
+ if (opts.isJSON || opts.encoding) sm = JSON.parse(sm);
47
+ this.sourcemap = sm;
48
+ }
49
+ Converter.prototype.toJSON = function(space) {
50
+ return JSON.stringify(this.sourcemap, null, space);
51
+ };
52
+ if (typeof Buffer !== "undefined") if (typeof Buffer.from === "function") Converter.prototype.toBase64 = encodeBase64WithBufferFrom;
53
+ else Converter.prototype.toBase64 = encodeBase64WithNewBuffer;
54
+ else Converter.prototype.toBase64 = encodeBase64WithBtoa;
55
+ function encodeBase64WithBufferFrom() {
56
+ var json = this.toJSON();
57
+ return Buffer.from(json, "utf8").toString("base64");
58
+ }
59
+ function encodeBase64WithNewBuffer() {
60
+ var json = this.toJSON();
61
+ if (typeof json === "number") throw new TypeError("The json to encode must not be of type number.");
62
+ return new Buffer(json, "utf8").toString("base64");
63
+ }
64
+ function encodeBase64WithBtoa() {
65
+ var json = this.toJSON();
66
+ return btoa(unescape(encodeURIComponent(json)));
67
+ }
68
+ Converter.prototype.toURI = function() {
69
+ var json = this.toJSON();
70
+ return encodeURIComponent(json);
71
+ };
72
+ Converter.prototype.toComment = function(options) {
73
+ var encoding, content, data;
74
+ if (options != null && options.encoding === "uri") {
75
+ encoding = "";
76
+ content = this.toURI();
77
+ } else {
78
+ encoding = ";base64";
79
+ content = this.toBase64();
80
+ }
81
+ data = "sourceMappingURL=data:application/json;charset=utf-8" + encoding + "," + content;
82
+ return options != null && options.multiline ? "/*# " + data + " */" : "//# " + data;
83
+ };
84
+ Converter.prototype.toObject = function() {
85
+ return JSON.parse(this.toJSON());
86
+ };
87
+ Converter.prototype.addProperty = function(key, value) {
88
+ if (this.sourcemap.hasOwnProperty(key)) throw new Error("property \"" + key + "\" already exists on the sourcemap, use set property instead");
89
+ return this.setProperty(key, value);
90
+ };
91
+ Converter.prototype.setProperty = function(key, value) {
92
+ this.sourcemap[key] = value;
93
+ return this;
94
+ };
95
+ Converter.prototype.getProperty = function(key) {
96
+ return this.sourcemap[key];
97
+ };
98
+ exports.fromObject = function(obj) {
99
+ return new Converter(obj);
100
+ };
101
+ exports.fromJSON = function(json) {
102
+ return new Converter(json, { isJSON: true });
103
+ };
104
+ exports.fromURI = function(uri) {
105
+ return new Converter(uri, { encoding: "uri" });
106
+ };
107
+ exports.fromBase64 = function(base64) {
108
+ return new Converter(base64, { encoding: "base64" });
109
+ };
110
+ exports.fromComment = function(comment) {
111
+ var m, encoding;
112
+ comment = comment.replace(/^\/\*/g, "//").replace(/\*\/$/g, "");
113
+ m = exports.commentRegex.exec(comment);
114
+ encoding = m && m[4] || "uri";
115
+ return new Converter(comment, {
116
+ encoding,
117
+ hasComment: true
118
+ });
119
+ };
120
+ function makeConverter(sm) {
121
+ return new Converter(sm, { isJSON: true });
122
+ }
123
+ exports.fromMapFileComment = function(comment, read) {
124
+ if (typeof read === "string") throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");
125
+ var sm = readFromFileMap(comment, read);
126
+ if (sm != null && typeof sm.then === "function") return sm.then(makeConverter);
127
+ else return makeConverter(sm);
128
+ };
129
+ exports.fromSource = function(content) {
130
+ var m = content.match(exports.commentRegex);
131
+ return m ? exports.fromComment(m.pop()) : null;
132
+ };
133
+ exports.fromMapFileSource = function(content, read) {
134
+ if (typeof read === "string") throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");
135
+ var m = content.match(exports.mapFileCommentRegex);
136
+ return m ? exports.fromMapFileComment(m.pop(), read) : null;
137
+ };
138
+ exports.removeComments = function(src) {
139
+ return src.replace(exports.commentRegex, "");
140
+ };
141
+ exports.removeMapFileComments = function(src) {
142
+ return src.replace(exports.mapFileCommentRegex, "");
143
+ };
144
+ exports.generateMapFileComment = function(file, options) {
145
+ var data = "sourceMappingURL=" + file;
146
+ return options && options.multiline ? "/*# " + data + " */" : "//# " + data;
147
+ };
148
+ }));
149
+ //#endregion
150
+ export default require_convert_source_map();
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.d.ts
1
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/utils.d.ts
2
2
  /**
3
3
  * Negates a boolean type.
4
4
  */
@@ -184,7 +184,7 @@ type IsUnion<T> = Not<Extends<UnionToTuple<T>['length'], 1>>;
184
184
  */
185
185
  type DeepPickMatchingProps<Left, Right> = Left extends Record<string, unknown> ? Pick<{ [K in keyof Left]: K extends keyof Right ? DeepPickMatchingProps<Left[K], Right[K]> : never }, Extract<keyof Left, keyof Right>> : Left;
186
186
  //#endregion
187
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.d.ts
187
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/overloads.d.ts
188
188
  /**
189
189
  * The simple(ish) way to get overload info from a function
190
190
  * {@linkcode FunctionType}. Recent versions of TypeScript will match any
@@ -473,7 +473,7 @@ type ConstructorOverloadParameters<ConstructorType> = ConstructorOverloadsUnion<
473
473
  */
474
474
  type NumOverloads<FunctionType> = UnionToTuple<OverloadsInfoUnion<FunctionType>>['length'];
475
475
  //#endregion
476
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.d.ts
476
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/branding.d.ts
477
477
  /**
478
478
  * Represents a deeply branded type.
479
479
  *
@@ -528,7 +528,7 @@ type DeepBrand<T> = IsNever<T> extends true ? {
528
528
  */
529
529
  type StrictEqualUsingBranding<Left, Right> = MutuallyExtends<DeepBrand<Left>, DeepBrand<Right>>;
530
530
  //#endregion
531
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.d.ts
531
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/messages.d.ts
532
532
  /**
533
533
  * Determines the printable type representation for a given type.
534
534
  */
@@ -539,7 +539,14 @@ type PrintType<T> = IsUnknown<T> extends true ? 'unknown' : IsNever<T> extends t
539
539
  * expected types are. Needs to check for `Not<IsAny<Actual>>` because
540
540
  * otherwise `LeafTypeOf<Actual>` returns `never`, which extends everything 🤔
541
541
  */
542
- type MismatchInfo<Actual, Expected> = And<[Extends<PrintType<Actual>, '...'>, Not<IsAny<Actual>>]> extends true ? And<[Extends<any[], Actual>, Extends<any[], Expected>]> extends true ? Array<MismatchInfo<Extract<Actual, any[]>[number], Extract<Expected, any[]>[number]>> : { [K in UsefulKeys<Actual> | UsefulKeys<Expected>]: MismatchInfo<K extends keyof Actual ? Actual[K] : never, K extends keyof Expected ? Expected[K] : never> } : StrictEqualUsingBranding<Actual, Expected> extends true ? Actual : `Expected: ${PrintType<Expected>}, Actual: ${PrintType<Exclude<Actual, Expected>>}`;
542
+ type MismatchInfo<Actual, Expected> = And<[Extends<PrintType<Actual>, '...'>, Not<IsAny<Actual>>]> extends true ? And<[Extends<any[], Actual>, Extends<any[], Expected>]> extends true ? Array<MismatchInfo<Extract<Actual, any[]>[number], Extract<Expected, any[]>[number]>> : Optionalify<{ [K in UsefulKeys<Actual> | UsefulKeys<Expected>]: MismatchInfo<K extends keyof Actual ? Actual[K] : never, K extends keyof Expected ? Expected[K] : never> }, OptionalKeys<Expected>> : StrictEqualUsingBranding<Actual, Expected> extends true ? Actual : `Expected: ${PrintType<Expected>}, Actual: ${PrintType<Exclude<Actual, Expected>>}`;
543
+ /**
544
+ * Helper for making some keys of a type optional. Only useful so far for `MismatchInfo` - it makes sure we
545
+ * don't get bogus errors about optional properties mismatching, when actually it's something else that's wrong.
546
+ *
547
+ * - Note: this helper is a no-op if there are no optional keys in the type.
548
+ */
549
+ type Optionalify<T, TOptionalKeys> = [TOptionalKeys] extends [never] ? T : ({ [K in Exclude<keyof T, TOptionalKeys>]: T[K] } & { [K in Extract<keyof T, TOptionalKeys>]?: T[K] }) extends infer X ? { [K in keyof X]: X[K] } : never;
543
550
  /**
544
551
  * @internal
545
552
  */
@@ -680,7 +687,7 @@ type Scolder<Expecter extends {
680
687
  positive: boolean;
681
688
  }> = Expecter['result'] extends Options['positive'] ? () => true : Options['positive'] extends true ? Expecter : Inverted<Expecter>;
682
689
  //#endregion
683
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.d.ts
690
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/index.d.ts
684
691
  /**
685
692
  * Represents the positive assertion methods available for type checking in the
686
693
  * {@linkcode expectTypeOf()} utility.
@@ -1571,4 +1578,4 @@ type _ExpectTypeOf = {
1571
1578
  */
1572
1579
  declare const expectTypeOf: _ExpectTypeOf;
1573
1580
  //#endregion
1574
- export { AValue, And, BaseExpectTypeOf, ConstructorOverloadParameters, ConstructorOverloadsUnion, DecreasingConstructorOverloadsInfoUnion, DecreasingOverloadsInfoUnion, DeepBrand, DeepPickMatchingProps, Eq, ExpectAny, ExpectArray, ExpectBigInt, ExpectBoolean, ExpectFunction, ExpectNever, ExpectNull, ExpectNullable, ExpectNumber, ExpectObject, ExpectString, ExpectSymbol, ExpectTypeOf, ExpectTypeOfOptions, ExpectUndefined, ExpectUnknown, ExpectVoid, Extends, ExtendsExcludingAnyOrNever, InferConstructor, InferFunctionType, IsAny, IsNever, IsNeverOrAny, IsTuple, IsUnion, IsUnknown, IsUselessConstructorOverloadInfo, IsUselessOverloadInfo, LastOf, MismatchArgs, MismatchInfo, MutuallyExtends, NegativeExpectTypeOf, Not, NumOverloads, OptionalKeys, Or, OverloadParameters, OverloadReturnTypes, OverloadsInfoUnion, OverloadsNarrowedByParameters, PositiveExpectTypeOf, PrintType, ReadonlyKeys, RequiredKeys, Scolder, SelectOverloadsInfo, StrictEqualUsingBranding, StrictEqualUsingTSInternalIdenticalToOperator, TSPost53ConstructorOverloadsInfoUnion, TSPost53OverloadsInfoUnion, TSPre53ConstructorOverloadsInfoUnion, TSPre53OverloadsInfoUnion, Tuplify, TuplifyUnion, UnionToIntersection, UnionToTuple, UnknownConstructor, UnknownFunction, UsefulKeys, Xor, _ExpectTypeOf, expectTypeOf };
1581
+ export { AValue, And, BaseExpectTypeOf, ConstructorOverloadParameters, ConstructorOverloadsUnion, DecreasingConstructorOverloadsInfoUnion, DecreasingOverloadsInfoUnion, DeepBrand, DeepPickMatchingProps, Eq, ExpectAny, ExpectArray, ExpectBigInt, ExpectBoolean, ExpectFunction, ExpectNever, ExpectNull, ExpectNullable, ExpectNumber, ExpectObject, ExpectString, ExpectSymbol, ExpectTypeOf, ExpectTypeOfOptions, ExpectUndefined, ExpectUnknown, ExpectVoid, Extends, ExtendsExcludingAnyOrNever, InferConstructor, InferFunctionType, IsAny, IsNever, IsNeverOrAny, IsTuple, IsUnion, IsUnknown, IsUselessConstructorOverloadInfo, IsUselessOverloadInfo, LastOf, MismatchArgs, MismatchInfo, MutuallyExtends, NegativeExpectTypeOf, Not, NumOverloads, OptionalKeys, Optionalify, Or, OverloadParameters, OverloadReturnTypes, OverloadsInfoUnion, OverloadsNarrowedByParameters, PositiveExpectTypeOf, PrintType, ReadonlyKeys, RequiredKeys, Scolder, SelectOverloadsInfo, StrictEqualUsingBranding, StrictEqualUsingTSInternalIdenticalToOperator, TSPost53ConstructorOverloadsInfoUnion, TSPost53OverloadsInfoUnion, TSPre53ConstructorOverloadsInfoUnion, TSPre53OverloadsInfoUnion, Tuplify, TuplifyUnion, UnionToIntersection, UnionToTuple, UnknownConstructor, UnknownFunction, UsefulKeys, Xor, _ExpectTypeOf, expectTypeOf };
@@ -1,25 +1,25 @@
1
1
  import { t as __commonJSMin } from "./shared-BelWnsAF.mjs";
2
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js
2
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/branding.js
3
3
  var require_branding = /* @__PURE__ */ __commonJSMin(((exports) => {
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  }));
6
6
  //#endregion
7
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js
7
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/messages.js
8
8
  var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  }));
11
11
  //#endregion
12
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js
12
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/overloads.js
13
13
  var require_overloads = /* @__PURE__ */ __commonJSMin(((exports) => {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  }));
16
16
  //#endregion
17
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js
17
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/utils.js
18
18
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
20
  }));
21
21
  //#endregion
22
- //#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js
22
+ //#region ../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/index.js
23
23
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
24
24
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
25
25
  if (k2 === void 0) k2 = k;