@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.
- package/LICENSE.md +691 -0
- package/browser/context.d.ts +4 -0
- package/browser/context.js +20 -0
- package/config.d.ts +3 -0
- package/coverage.d.ts +1 -0
- package/dist/@vitest/browser/client/.vite/manifest.json +24 -0
- package/dist/@vitest/browser/client/__vitest__/assets/index-BUCFJtth.js +57 -0
- package/dist/@vitest/browser/client/__vitest__/assets/index-DlhE0rqZ.css +1 -0
- package/dist/@vitest/browser/client/__vitest__/bg.png +0 -0
- package/dist/@vitest/browser/client/__vitest__/favicon.ico +0 -0
- package/dist/@vitest/browser/client/__vitest__/favicon.svg +5 -0
- package/dist/@vitest/browser/client/__vitest__/index.html +32 -0
- package/dist/@vitest/browser/client/__vitest_browser__/orchestrator-S_3e_uzt.js +345 -0
- package/dist/@vitest/browser/client/__vitest_browser__/tester-k74mgIRa.js +2171 -0
- package/dist/@vitest/browser/client/__vitest_browser__/utils-uxqdqUz8.js +223 -0
- package/dist/@vitest/browser/client/error-catcher.js +82 -0
- package/dist/@vitest/browser/client/esm-client-injector.js +67 -0
- package/dist/@vitest/browser/client/favicon.svg +5 -0
- package/dist/@vitest/browser/client/orchestrator.html +35 -0
- package/dist/@vitest/browser/client/tester/tester.html +13 -0
- package/dist/@vitest/browser/client.js +456 -0
- package/dist/@vitest/browser/context.d.ts +792 -0
- package/dist/@vitest/browser/context.js +541 -0
- package/dist/@vitest/browser/expect-element.js +32 -0
- package/dist/@vitest/browser/index-D6m36C6U.js +11 -0
- package/dist/@vitest/browser/index.d.ts +73 -0
- package/dist/@vitest/browser/index.js +3513 -0
- package/dist/@vitest/browser/jest-dom.d.ts +724 -0
- package/dist/@vitest/browser/locators.d.ts +354 -0
- package/dist/@vitest/browser/locators.js +1 -0
- package/dist/@vitest/browser/matchers.d.ts +29 -0
- package/dist/@vitest/browser/shared/screenshotMatcher/types.d.ts +22 -0
- package/dist/@vitest/browser/state.js +280 -0
- package/dist/@vitest/browser/types.d.ts +69 -0
- package/dist/@vitest/browser-playwright/context.d.ts +1 -0
- package/dist/@vitest/browser-playwright/index.d.ts +106 -0
- package/dist/@vitest/browser-playwright/index.js +1111 -0
- package/dist/@vitest/browser-playwright/locators.js +114 -0
- package/dist/@vitest/browser-preview/context.d.ts +1 -0
- package/dist/@vitest/browser-preview/index.d.ts +19 -0
- package/dist/@vitest/browser-preview/index.js +148 -0
- package/dist/@vitest/browser-preview/locators.js +79 -0
- package/dist/@vitest/browser-webdriverio/context.d.ts +1 -0
- package/dist/@vitest/browser-webdriverio/index.d.ts +63 -0
- package/dist/@vitest/browser-webdriverio/index.js +600 -0
- package/dist/@vitest/browser-webdriverio/locators.js +163 -0
- package/dist/@vitest/expect/index.d.ts +807 -0
- package/dist/@vitest/expect/index.js +1875 -0
- package/dist/@vitest/mocker/auto-register.d.ts +2 -0
- package/dist/@vitest/mocker/auto-register.js +9 -0
- package/dist/@vitest/mocker/automock.d.ts +12 -0
- package/dist/@vitest/mocker/automock.js +1 -0
- package/dist/@vitest/mocker/browser.d.ts +53 -0
- package/dist/@vitest/mocker/browser.js +91 -0
- package/dist/@vitest/mocker/chunk-automock.js +354 -0
- package/dist/@vitest/mocker/chunk-interceptor-native.js +15 -0
- package/dist/@vitest/mocker/chunk-mocker.js +521 -0
- package/dist/@vitest/mocker/chunk-pathe.M-eThtNZ.js +174 -0
- package/dist/@vitest/mocker/chunk-registry.js +185 -0
- package/dist/@vitest/mocker/chunk-utils.js +16 -0
- package/dist/@vitest/mocker/index.d-C-sLYZi-.d.ts +25 -0
- package/dist/@vitest/mocker/index.d.ts +2 -0
- package/dist/@vitest/mocker/index.js +185 -0
- package/dist/@vitest/mocker/mocker.d-TnKRhz7N.d.ts +81 -0
- package/dist/@vitest/mocker/node.d.ts +800 -0
- package/dist/@vitest/mocker/node.js +966 -0
- package/dist/@vitest/mocker/redirect.d.ts +3 -0
- package/dist/@vitest/mocker/redirect.js +79 -0
- package/dist/@vitest/mocker/register.d.ts +9 -0
- package/dist/@vitest/mocker/register.js +41 -0
- package/dist/@vitest/mocker/types.d-B8CCKmHt.d.ts +107 -0
- package/dist/@vitest/pretty-format/index.d.ts +124 -0
- package/dist/@vitest/pretty-format/index.js +1022 -0
- package/dist/@vitest/runner/chunk-tasks.js +340 -0
- package/dist/@vitest/runner/index.d.ts +180 -0
- package/dist/@vitest/runner/index.js +2114 -0
- package/dist/@vitest/runner/tasks.d-C7UxawJ9.d.ts +834 -0
- package/dist/@vitest/runner/types.d.ts +183 -0
- package/dist/@vitest/runner/types.js +1 -0
- package/dist/@vitest/runner/utils.d.ts +45 -0
- package/dist/@vitest/runner/utils.js +5 -0
- package/dist/@vitest/snapshot/environment.d-DHdQ1Csl.d.ts +22 -0
- package/dist/@vitest/snapshot/environment.d.ts +16 -0
- package/dist/@vitest/snapshot/environment.js +40 -0
- package/dist/@vitest/snapshot/index.d.ts +130 -0
- package/dist/@vitest/snapshot/index.js +1437 -0
- package/dist/@vitest/snapshot/manager.d.ts +18 -0
- package/dist/@vitest/snapshot/manager.js +73 -0
- package/dist/@vitest/snapshot/rawSnapshot.d-lFsMJFUd.d.ts +61 -0
- package/dist/@vitest/spy/index.d.ts +384 -0
- package/dist/@vitest/spy/index.js +433 -0
- package/dist/@vitest/utils/chunk-_commonjsHelpers.js +5 -0
- package/dist/@vitest/utils/chunk-pathe.M-eThtNZ.js +156 -0
- package/dist/@vitest/utils/constants.d.ts +21 -0
- package/dist/@vitest/utils/constants.js +49 -0
- package/dist/@vitest/utils/diff.d.ts +93 -0
- package/dist/@vitest/utils/diff.js +2199 -0
- package/dist/@vitest/utils/display.d.ts +29 -0
- package/dist/@vitest/utils/display.js +742 -0
- package/dist/@vitest/utils/error.d.ts +7 -0
- package/dist/@vitest/utils/error.js +42 -0
- package/dist/@vitest/utils/helpers.d.ts +73 -0
- package/dist/@vitest/utils/helpers.js +295 -0
- package/dist/@vitest/utils/highlight.d.ts +9 -0
- package/dist/@vitest/utils/highlight.js +538 -0
- package/dist/@vitest/utils/index.d.ts +5 -0
- package/dist/@vitest/utils/index.js +1 -0
- package/dist/@vitest/utils/offset.d.ts +5 -0
- package/dist/@vitest/utils/offset.js +32 -0
- package/dist/@vitest/utils/resolver.d.ts +7 -0
- package/dist/@vitest/utils/resolver.js +71 -0
- package/dist/@vitest/utils/serialize.d.ts +3 -0
- package/dist/@vitest/utils/serialize.js +118 -0
- package/dist/@vitest/utils/source-map.d.ts +55 -0
- package/dist/@vitest/utils/source-map.js +478 -0
- package/dist/@vitest/utils/timers.d.ts +33 -0
- package/dist/@vitest/utils/timers.js +49 -0
- package/dist/@vitest/utils/types.d-BCElaP-c.d.ts +53 -0
- package/dist/@vitest/utils/types.d.ts +34 -0
- package/dist/@vitest/utils/types.js +1 -0
- package/dist/browser-compat.js +3 -0
- package/dist/browser.d.ts +46 -0
- package/dist/browser.js +20 -0
- package/dist/chunks/_commonjsHelpers.D26ty3Ew.js +6 -0
- package/dist/chunks/base.CJ0Y4ePK.js +165 -0
- package/dist/chunks/benchmark.B3N2zMcH.js +40 -0
- package/dist/chunks/benchmark.d.DAaHLpsq.d.ts +24 -0
- package/dist/chunks/browser.d.ChKACdzH.d.ts +59 -0
- package/dist/chunks/cac.DVeoLl0M.js +1409 -0
- package/dist/chunks/cli-api.B7PN_QUv.js +13672 -0
- package/dist/chunks/config.d.Cy95HiCx.d.ts +210 -0
- package/dist/chunks/console.Cf-YriPC.js +146 -0
- package/dist/chunks/constants.D_Q9UYh-.js +36 -0
- package/dist/chunks/coverage.AVPTjMgw.js +3292 -0
- package/dist/chunks/coverage.D_JHT54q.js +25 -0
- package/dist/chunks/coverage.d.BZtK59WP.d.ts +37 -0
- package/dist/chunks/creator.DAmOKTvJ.js +673 -0
- package/dist/chunks/date.Bq6ZW5rf.js +73 -0
- package/dist/chunks/defaults.BOqNVLsY.js +74 -0
- package/dist/chunks/env.D4Lgay0q.js +8 -0
- package/dist/chunks/environment.d.CrsxCzP1.d.ts +29 -0
- package/dist/chunks/evaluatedModules.Dg1zASAC.js +17 -0
- package/dist/chunks/evaluatedModules.d.BxJ5omdx.d.ts +7 -0
- package/dist/chunks/git.Bm2pzPAa.js +71 -0
- package/dist/chunks/global.d.B15mdLcR.d.ts +99 -0
- package/dist/chunks/globals.DOayXfHP.js +30 -0
- package/dist/chunks/index.6Qv1eEA6.js +109 -0
- package/dist/chunks/index.C5r1PdPD.js +231 -0
- package/dist/chunks/index.Chj8NDwU.js +206 -0
- package/dist/chunks/index.CyBMJtT7.js +727 -0
- package/dist/chunks/index.D3XRDfWc.js +213 -0
- package/dist/chunks/index.D4KonVSU.js +6343 -0
- package/dist/chunks/index.M8mOzt4Y.js +3839 -0
- package/dist/chunks/index.Z5E_ObnR.js +37 -0
- package/dist/chunks/init-forks._y3TW739.js +41 -0
- package/dist/chunks/init-threads.DBO2kn-p.js +18 -0
- package/dist/chunks/init.B6MLFIaN.js +334 -0
- package/dist/chunks/inspector.CvyFGlXm.js +53 -0
- package/dist/chunks/modules.BJuCwlRJ.js +36 -0
- package/dist/chunks/node.Ce0vMQM7.js +14 -0
- package/dist/chunks/plugin.d.CtqpEehP.d.ts +38 -0
- package/dist/chunks/reporters.d.CWXNI2jG.d.ts +3271 -0
- package/dist/chunks/rpc.BoxB0q7B.js +76 -0
- package/dist/chunks/rpc.d.RH3apGEf.d.ts +64 -0
- package/dist/chunks/setup-common.Cm-kSBVi.js +60 -0
- package/dist/chunks/startModuleRunner.DEj0jb3e.js +861 -0
- package/dist/chunks/suite.d.BJWk38HB.d.ts +10 -0
- package/dist/chunks/test.B8ej_ZHS.js +254 -0
- package/dist/chunks/traces.CCmnQaNT.js +217 -0
- package/dist/chunks/traces.d.402V_yFI.d.ts +18 -0
- package/dist/chunks/utils.DvEY5TfP.js +52 -0
- package/dist/chunks/vi.2VT5v0um.js +3919 -0
- package/dist/chunks/vm.D3epNOPZ.js +744 -0
- package/dist/chunks/worker.d.Dyxm8DEL.d.ts +255 -0
- package/dist/cli.js +28 -0
- package/dist/client/.vite/manifest.json +24 -0
- package/dist/client/__vitest__/assets/index-BUCFJtth.js +57 -0
- package/dist/client/__vitest__/assets/index-DlhE0rqZ.css +1 -0
- package/dist/client/__vitest__/bg.png +0 -0
- package/dist/client/__vitest__/favicon.ico +0 -0
- package/dist/client/__vitest__/favicon.svg +5 -0
- package/dist/client/__vitest__/index.html +32 -0
- package/dist/client/__vitest_browser__/orchestrator-S_3e_uzt.js +345 -0
- package/dist/client/__vitest_browser__/tester-k74mgIRa.js +2171 -0
- package/dist/client/__vitest_browser__/utils-uxqdqUz8.js +223 -0
- package/dist/client/error-catcher.js +82 -0
- package/dist/client/esm-client-injector.js +67 -0
- package/dist/client/favicon.svg +5 -0
- package/dist/client/orchestrator.html +35 -0
- package/dist/client/tester/tester.html +13 -0
- package/dist/client.js +456 -0
- package/dist/config.cjs +94 -0
- package/dist/config.d.ts +104 -0
- package/dist/config.js +15 -0
- package/dist/context.js +541 -0
- package/dist/coverage.d.ts +118 -0
- package/dist/coverage.js +23 -0
- package/dist/dummy.js +2 -0
- package/dist/environments.d.ts +22 -0
- package/dist/environments.js +3 -0
- package/dist/expect-element.js +27 -0
- package/dist/index-D6m36C6U.js +6 -0
- package/dist/index-node.js +7 -0
- package/dist/index.d.ts +510 -0
- package/dist/index.js +19 -0
- package/dist/locators.d.ts +354 -0
- package/dist/locators.js +1 -0
- package/dist/mocker.d.ts +1 -0
- package/dist/mocker.js +1 -0
- package/dist/module-evaluator.d.ts +124 -0
- package/dist/module-evaluator.js +343 -0
- package/dist/module-runner-stub.js +44 -0
- package/dist/module-runner.js +17 -0
- package/dist/node.d.ts +251 -0
- package/dist/node.js +98 -0
- package/dist/path.js +7 -0
- package/dist/plugins/browser-client.mjs +2 -0
- package/dist/plugins/browser-context.mjs +2 -0
- package/dist/plugins/browser-locators.mjs +2 -0
- package/dist/plugins/browser-playwright.mjs +2 -0
- package/dist/plugins/browser-preview.mjs +2 -0
- package/dist/plugins/browser-webdriverio.mjs +2 -0
- package/dist/plugins/browser.mjs +2 -0
- package/dist/plugins/expect.mjs +2 -0
- package/dist/plugins/mocker-automock.mjs +2 -0
- package/dist/plugins/mocker-browser.mjs +2 -0
- package/dist/plugins/mocker-node.mjs +2 -0
- package/dist/plugins/mocker-redirect.mjs +2 -0
- package/dist/plugins/mocker-register.mjs +2 -0
- package/dist/plugins/mocker.mjs +2 -0
- package/dist/plugins/pretty-format.mjs +2 -0
- package/dist/plugins/runner-types.mjs +2 -0
- package/dist/plugins/runner-utils.mjs +2 -0
- package/dist/plugins/runner.mjs +2 -0
- package/dist/plugins/snapshot-environment.mjs +2 -0
- package/dist/plugins/snapshot-manager.mjs +2 -0
- package/dist/plugins/snapshot.mjs +2 -0
- package/dist/plugins/spy.mjs +2 -0
- package/dist/plugins/utils-constants.mjs +2 -0
- package/dist/plugins/utils-diff.mjs +2 -0
- package/dist/plugins/utils-display.mjs +2 -0
- package/dist/plugins/utils-error.mjs +2 -0
- package/dist/plugins/utils-helpers.mjs +2 -0
- package/dist/plugins/utils-highlight.mjs +2 -0
- package/dist/plugins/utils-offset.mjs +2 -0
- package/dist/plugins/utils-resolver.mjs +2 -0
- package/dist/plugins/utils-serialize.mjs +2 -0
- package/dist/plugins/utils-source-map.mjs +2 -0
- package/dist/plugins/utils-timers.mjs +2 -0
- package/dist/plugins/utils.mjs +2 -0
- package/dist/reporters.d.ts +27 -0
- package/dist/reporters.js +24 -0
- package/dist/runners.d.ts +50 -0
- package/dist/runners.js +19 -0
- package/dist/shared/screenshotMatcher/types.d.ts +22 -0
- package/dist/snapshot.d.ts +9 -0
- package/dist/snapshot.js +4 -0
- package/dist/spy.js +1 -0
- package/dist/state.js +280 -0
- package/dist/suite.d.ts +5 -0
- package/dist/suite.js +6 -0
- package/dist/types.d.ts +69 -0
- package/dist/vendor/chai.d.mts +1 -0
- package/dist/vendor/chai.mjs +3577 -0
- package/dist/vendor/es-module-lexer.d.mts +193 -0
- package/dist/vendor/es-module-lexer.mjs +79 -0
- package/dist/vendor/estree-walker.d.mts +583 -0
- package/dist/vendor/estree-walker.mjs +339 -0
- package/dist/vendor/expect-type.d.mts +1574 -0
- package/dist/vendor/expect-type.mjs +214 -0
- package/dist/vendor/magic-string.d.mts +261 -0
- package/dist/vendor/magic-string.mjs +1700 -0
- package/dist/vendor/obug.d.mts +56 -0
- package/dist/vendor/obug.mjs +276 -0
- package/dist/vendor/pathe.d.mts +46 -0
- package/dist/vendor/pathe.mjs +496 -0
- package/dist/vendor/picomatch.d.mts +1 -0
- package/dist/vendor/picomatch.mjs +1855 -0
- package/dist/vendor/shared-3g9mwCWP.mjs +31 -0
- package/dist/vendor/std-env.d.mts +88 -0
- package/dist/vendor/std-env.mjs +159 -0
- package/dist/vendor/tinybench.d.mts +317 -0
- package/dist/vendor/tinybench.mjs +504 -0
- package/dist/vendor/tinyexec.d.mts +72 -0
- package/dist/vendor/tinyexec.mjs +637 -0
- package/dist/vendor/tinyglobby.d.mts +157 -0
- package/dist/vendor/tinyglobby.mjs +832 -0
- package/dist/vendor/tinyrainbow.d.mts +60 -0
- package/dist/vendor/tinyrainbow.mjs +93 -0
- package/dist/vendor/vitest_browser.mjs +2 -0
- package/dist/vendor/vitest_internal_browser.mjs +2 -0
- package/dist/vendor/vitest_runner.mjs +2 -0
- package/dist/vendor/vitest_runners.mjs +2 -0
- package/dist/worker.d.ts +32 -0
- package/dist/worker.js +48 -0
- package/dist/workers/forks.js +54 -0
- package/dist/workers/runVmTests.js +95 -0
- package/dist/workers/threads.js +55 -0
- package/dist/workers/vmForks.js +36 -0
- package/dist/workers/vmThreads.js +37 -0
- package/environments.d.ts +1 -0
- package/globals.d.ts +20 -0
- package/import-meta.d.ts +5 -0
- package/importMeta.d.ts +4 -0
- package/index.cjs +5 -0
- package/index.d.cts +1 -0
- package/jsdom.d.ts +6 -0
- package/mocker.d.ts +1 -0
- package/node.d.ts +1 -0
- package/optional-types.d.ts +7 -0
- package/package.json +335 -0
- package/reporters.d.ts +1 -0
- package/runners.d.ts +1 -0
- package/snapshot.d.ts +1 -0
- package/suite.d.ts +1 -0
- package/suppress-warnings.cjs +21 -0
- package/vitest.mjs +2 -0
- package/worker.d.ts +1 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { InspectOptions } from "node:util";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/core.d.ts
|
|
4
|
+
//#region src/types.d.ts
|
|
5
|
+
interface InspectOptions$1 extends InspectOptions {
|
|
6
|
+
hideDate?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
10
|
+
*
|
|
11
|
+
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
12
|
+
*/
|
|
13
|
+
interface Formatters {
|
|
14
|
+
[formatter: string]: (this: Debugger, v: any) => string;
|
|
15
|
+
}
|
|
16
|
+
interface Debugger extends Required<DebugOptions> {
|
|
17
|
+
(formatter: any, ...args: any[]): void;
|
|
18
|
+
namespace: string;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
extend: (namespace: string, delimiter?: string) => Debugger;
|
|
21
|
+
}
|
|
22
|
+
interface DebugOptions {
|
|
23
|
+
useColors?: boolean;
|
|
24
|
+
color?: string | number;
|
|
25
|
+
formatArgs?: (this: Debugger, diff: number, args: [string, ...any[]]) => void;
|
|
26
|
+
formatters?: Formatters;
|
|
27
|
+
/** Node.js only */
|
|
28
|
+
inspectOpts?: InspectOptions$1;
|
|
29
|
+
/** Humanize a duration in milliseconds */
|
|
30
|
+
humanize?: (value: number) => string;
|
|
31
|
+
log?: (this: Debugger, ...args: any[]) => void;
|
|
32
|
+
} //#endregion
|
|
33
|
+
//#region src/core.d.ts
|
|
34
|
+
/**
|
|
35
|
+
* Returns a string of the currently enabled debug namespaces.
|
|
36
|
+
*/
|
|
37
|
+
declare function namespaces(): string;
|
|
38
|
+
/**
|
|
39
|
+
* Disable debug output.
|
|
40
|
+
*/
|
|
41
|
+
declare function disable(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given mode name is enabled, false otherwise.
|
|
44
|
+
*/
|
|
45
|
+
declare function enabled(name: string): boolean; //#endregion
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/node.d.ts
|
|
48
|
+
//#region src/node.d.ts
|
|
49
|
+
declare function createDebug(namespace: string, options?: DebugOptions): Debugger;
|
|
50
|
+
/**
|
|
51
|
+
* Enables a debug mode by namespaces. This can include modes
|
|
52
|
+
* separated by a colon and wildcards.
|
|
53
|
+
*/
|
|
54
|
+
declare function enable(namespaces: string): void; //#endregion
|
|
55
|
+
//#endregion
|
|
56
|
+
export { DebugOptions, Debugger, Formatters, InspectOptions$1 as InspectOptions, createDebug, disable, enable, enabled, namespaces };
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { isatty } from "node:tty";
|
|
2
|
+
import { formatWithOptions, inspect } from "node:util";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/core.js
|
|
5
|
+
function coerce(value) {
|
|
6
|
+
if (value instanceof Error) return value.stack || value.message;
|
|
7
|
+
return value;
|
|
8
|
+
}
|
|
9
|
+
function selectColor(colors, namespace) {
|
|
10
|
+
let hash = 0;
|
|
11
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
12
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
13
|
+
hash |= 0;
|
|
14
|
+
}
|
|
15
|
+
return colors[Math.abs(hash) % colors.length];
|
|
16
|
+
}
|
|
17
|
+
function matchesTemplate(search, template) {
|
|
18
|
+
let searchIndex = 0;
|
|
19
|
+
let templateIndex = 0;
|
|
20
|
+
let starIndex = -1;
|
|
21
|
+
let matchIndex = 0;
|
|
22
|
+
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
23
|
+
starIndex = templateIndex;
|
|
24
|
+
matchIndex = searchIndex;
|
|
25
|
+
templateIndex++;
|
|
26
|
+
} else {
|
|
27
|
+
searchIndex++;
|
|
28
|
+
templateIndex++;
|
|
29
|
+
}
|
|
30
|
+
else if (starIndex !== -1) {
|
|
31
|
+
templateIndex = starIndex + 1;
|
|
32
|
+
matchIndex++;
|
|
33
|
+
searchIndex = matchIndex;
|
|
34
|
+
} else return false;
|
|
35
|
+
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
36
|
+
return templateIndex === template.length;
|
|
37
|
+
}
|
|
38
|
+
function humanize(value) {
|
|
39
|
+
if (value >= 1e3) return `${(value / 1e3).toFixed(1)}s`;
|
|
40
|
+
return `${value}ms`;
|
|
41
|
+
}
|
|
42
|
+
let globalNamespaces = "";
|
|
43
|
+
function namespaces() {
|
|
44
|
+
return globalNamespaces;
|
|
45
|
+
}
|
|
46
|
+
function createDebug$1(namespace, options) {
|
|
47
|
+
let prevTime;
|
|
48
|
+
let enableOverride;
|
|
49
|
+
let namespacesCache;
|
|
50
|
+
let enabledCache;
|
|
51
|
+
const debug = (...args) => {
|
|
52
|
+
if (!debug.enabled) return;
|
|
53
|
+
const curr = Date.now();
|
|
54
|
+
const diff = curr - (prevTime || curr);
|
|
55
|
+
prevTime = curr;
|
|
56
|
+
args[0] = coerce(args[0]);
|
|
57
|
+
if (typeof args[0] !== "string") args.unshift("%O");
|
|
58
|
+
let index = 0;
|
|
59
|
+
args[0] = args[0].replace(/%([a-z%])/gi, (match, format) => {
|
|
60
|
+
if (match === "%%") return "%";
|
|
61
|
+
index++;
|
|
62
|
+
const formatter = options.formatters[format];
|
|
63
|
+
if (typeof formatter === "function") {
|
|
64
|
+
const value = args[index];
|
|
65
|
+
match = formatter.call(debug, value);
|
|
66
|
+
args.splice(index, 1);
|
|
67
|
+
index--;
|
|
68
|
+
}
|
|
69
|
+
return match;
|
|
70
|
+
});
|
|
71
|
+
options.formatArgs.call(debug, diff, args);
|
|
72
|
+
debug.log(...args);
|
|
73
|
+
};
|
|
74
|
+
debug.extend = function(namespace$1, delimiter = ":") {
|
|
75
|
+
return createDebug$1(this.namespace + delimiter + namespace$1, {
|
|
76
|
+
useColors: this.useColors,
|
|
77
|
+
color: this.color,
|
|
78
|
+
formatArgs: this.formatArgs,
|
|
79
|
+
formatters: this.formatters,
|
|
80
|
+
inspectOpts: this.inspectOpts,
|
|
81
|
+
log: this.log,
|
|
82
|
+
humanize: this.humanize
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
Object.assign(debug, options);
|
|
86
|
+
debug.namespace = namespace;
|
|
87
|
+
Object.defineProperty(debug, "enabled", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
configurable: false,
|
|
90
|
+
get: () => {
|
|
91
|
+
if (enableOverride != null) return enableOverride;
|
|
92
|
+
if (namespacesCache !== globalNamespaces) {
|
|
93
|
+
namespacesCache = globalNamespaces;
|
|
94
|
+
enabledCache = enabled(namespace);
|
|
95
|
+
}
|
|
96
|
+
return enabledCache;
|
|
97
|
+
},
|
|
98
|
+
set: (v) => {
|
|
99
|
+
enableOverride = v;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
return debug;
|
|
103
|
+
}
|
|
104
|
+
let names = [];
|
|
105
|
+
let skips = [];
|
|
106
|
+
function enable$1(namespaces$1) {
|
|
107
|
+
globalNamespaces = namespaces$1;
|
|
108
|
+
names = [];
|
|
109
|
+
skips = [];
|
|
110
|
+
const split = globalNamespaces.trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
111
|
+
for (const ns of split) if (ns[0] === "-") skips.push(ns.slice(1));
|
|
112
|
+
else names.push(ns);
|
|
113
|
+
}
|
|
114
|
+
function disable() {
|
|
115
|
+
const namespaces$1 = [...names, ...skips.map((namespace) => `-${namespace}`)].join(",");
|
|
116
|
+
enable$1("");
|
|
117
|
+
return namespaces$1;
|
|
118
|
+
}
|
|
119
|
+
function enabled(name) {
|
|
120
|
+
for (const skip of skips) if (matchesTemplate(name, skip)) return false;
|
|
121
|
+
for (const ns of names) if (matchesTemplate(name, ns)) return true;
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/node.js
|
|
127
|
+
const colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
|
|
128
|
+
20,
|
|
129
|
+
21,
|
|
130
|
+
26,
|
|
131
|
+
27,
|
|
132
|
+
32,
|
|
133
|
+
33,
|
|
134
|
+
38,
|
|
135
|
+
39,
|
|
136
|
+
40,
|
|
137
|
+
41,
|
|
138
|
+
42,
|
|
139
|
+
43,
|
|
140
|
+
44,
|
|
141
|
+
45,
|
|
142
|
+
56,
|
|
143
|
+
57,
|
|
144
|
+
62,
|
|
145
|
+
63,
|
|
146
|
+
68,
|
|
147
|
+
69,
|
|
148
|
+
74,
|
|
149
|
+
75,
|
|
150
|
+
76,
|
|
151
|
+
77,
|
|
152
|
+
78,
|
|
153
|
+
79,
|
|
154
|
+
80,
|
|
155
|
+
81,
|
|
156
|
+
92,
|
|
157
|
+
93,
|
|
158
|
+
98,
|
|
159
|
+
99,
|
|
160
|
+
112,
|
|
161
|
+
113,
|
|
162
|
+
128,
|
|
163
|
+
129,
|
|
164
|
+
134,
|
|
165
|
+
135,
|
|
166
|
+
148,
|
|
167
|
+
149,
|
|
168
|
+
160,
|
|
169
|
+
161,
|
|
170
|
+
162,
|
|
171
|
+
163,
|
|
172
|
+
164,
|
|
173
|
+
165,
|
|
174
|
+
166,
|
|
175
|
+
167,
|
|
176
|
+
168,
|
|
177
|
+
169,
|
|
178
|
+
170,
|
|
179
|
+
171,
|
|
180
|
+
172,
|
|
181
|
+
173,
|
|
182
|
+
178,
|
|
183
|
+
179,
|
|
184
|
+
184,
|
|
185
|
+
185,
|
|
186
|
+
196,
|
|
187
|
+
197,
|
|
188
|
+
198,
|
|
189
|
+
199,
|
|
190
|
+
200,
|
|
191
|
+
201,
|
|
192
|
+
202,
|
|
193
|
+
203,
|
|
194
|
+
204,
|
|
195
|
+
205,
|
|
196
|
+
206,
|
|
197
|
+
207,
|
|
198
|
+
208,
|
|
199
|
+
209,
|
|
200
|
+
214,
|
|
201
|
+
215,
|
|
202
|
+
220,
|
|
203
|
+
221
|
|
204
|
+
] : [
|
|
205
|
+
6,
|
|
206
|
+
2,
|
|
207
|
+
3,
|
|
208
|
+
4,
|
|
209
|
+
5,
|
|
210
|
+
1
|
|
211
|
+
];
|
|
212
|
+
const inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
|
|
213
|
+
const prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
|
|
214
|
+
let value = process.env[key];
|
|
215
|
+
const lowerCase = typeof value === "string" && value.toLowerCase();
|
|
216
|
+
if (value === "null") value = null;
|
|
217
|
+
else if (lowerCase === "yes" || lowerCase === "on" || lowerCase === "true" || lowerCase === "enabled") value = true;
|
|
218
|
+
else if (lowerCase === "no" || lowerCase === "off" || lowerCase === "false" || lowerCase === "disabled") value = false;
|
|
219
|
+
else value = Number(value);
|
|
220
|
+
obj[prop] = value;
|
|
221
|
+
return obj;
|
|
222
|
+
}, {});
|
|
223
|
+
function useColors() {
|
|
224
|
+
return "colors" in inspectOpts ? Boolean(inspectOpts.colors) : isatty(process.stderr.fd);
|
|
225
|
+
}
|
|
226
|
+
function getDate() {
|
|
227
|
+
if (inspectOpts.hideDate) return "";
|
|
228
|
+
return `${(/* @__PURE__ */ new Date()).toISOString()} `;
|
|
229
|
+
}
|
|
230
|
+
function formatArgs(diff, args) {
|
|
231
|
+
const { namespace: name, useColors: useColors$1 } = this;
|
|
232
|
+
if (useColors$1) {
|
|
233
|
+
const c = this.color;
|
|
234
|
+
const colorCode = `\u001B[3${c < 8 ? c : `8;5;${c}`}`;
|
|
235
|
+
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
|
|
236
|
+
args[0] = prefix + args[0].split("\n").join(`\n${prefix}`);
|
|
237
|
+
args.push(`${colorCode}m+${this.humanize(diff)}\u001B[0m`);
|
|
238
|
+
} else args[0] = `${getDate()}${name} ${args[0]}`;
|
|
239
|
+
}
|
|
240
|
+
function log(...args) {
|
|
241
|
+
process.stderr.write(`${formatWithOptions(this.inspectOpts, ...args)}\n`);
|
|
242
|
+
}
|
|
243
|
+
const defaultOptions = {
|
|
244
|
+
useColors: useColors(),
|
|
245
|
+
formatArgs,
|
|
246
|
+
formatters: {
|
|
247
|
+
o(v) {
|
|
248
|
+
this.inspectOpts.colors = this.useColors;
|
|
249
|
+
return inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
250
|
+
},
|
|
251
|
+
O(v) {
|
|
252
|
+
this.inspectOpts.colors = this.useColors;
|
|
253
|
+
return inspect(v, this.inspectOpts);
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
inspectOpts,
|
|
257
|
+
log,
|
|
258
|
+
humanize
|
|
259
|
+
};
|
|
260
|
+
function createDebug(namespace, options) {
|
|
261
|
+
var _ref;
|
|
262
|
+
const color = (_ref = options && options.color) !== null && _ref !== void 0 ? _ref : selectColor(colors, namespace);
|
|
263
|
+
return createDebug$1(namespace, Object.assign(defaultOptions, { color }, options));
|
|
264
|
+
}
|
|
265
|
+
function save(namespaces$1) {
|
|
266
|
+
if (namespaces$1) process.env.DEBUG = namespaces$1;
|
|
267
|
+
else delete process.env.DEBUG;
|
|
268
|
+
}
|
|
269
|
+
function enable(namespaces$1) {
|
|
270
|
+
save(namespaces$1);
|
|
271
|
+
enable$1(namespaces$1);
|
|
272
|
+
}
|
|
273
|
+
enable$1(process.env.DEBUG || "");
|
|
274
|
+
|
|
275
|
+
//#endregion
|
|
276
|
+
export { createDebug, disable, enable, enabled, namespaces };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as path from "node:path";
|
|
2
|
+
import path__default from "node:path";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.d.mts
|
|
5
|
+
/**
|
|
6
|
+
* Constant for path separator.
|
|
7
|
+
*
|
|
8
|
+
* Always equals to `"/"`.
|
|
9
|
+
*/
|
|
10
|
+
declare const sep = "/";
|
|
11
|
+
declare const normalize: typeof path__default.normalize;
|
|
12
|
+
declare const join: typeof path__default.join;
|
|
13
|
+
declare const resolve: typeof path__default.resolve;
|
|
14
|
+
/**
|
|
15
|
+
* Resolves a string path, resolving '.' and '.' segments and allowing paths above the root.
|
|
16
|
+
*
|
|
17
|
+
* @param path - The path to normalise.
|
|
18
|
+
* @param allowAboveRoot - Whether to allow the resulting path to be above the root directory.
|
|
19
|
+
* @returns the normalised path string.
|
|
20
|
+
*/
|
|
21
|
+
declare function normalizeString(path: string, allowAboveRoot: boolean): string;
|
|
22
|
+
declare const isAbsolute: typeof path__default.isAbsolute;
|
|
23
|
+
declare const toNamespacedPath: typeof path__default.toNamespacedPath;
|
|
24
|
+
declare const extname: typeof path__default.extname;
|
|
25
|
+
declare const relative: typeof path__default.relative;
|
|
26
|
+
declare const dirname: typeof path__default.dirname;
|
|
27
|
+
declare const format: typeof path__default.format;
|
|
28
|
+
declare const basename: typeof path__default.basename;
|
|
29
|
+
declare const parse: typeof path__default.parse;
|
|
30
|
+
/**
|
|
31
|
+
* The `path.matchesGlob()` method determines if `path` matches the `pattern`.
|
|
32
|
+
* @param path The path to glob-match against.
|
|
33
|
+
* @param pattern The glob to check the path against.
|
|
34
|
+
*/
|
|
35
|
+
declare const matchesGlob: (path: string, pattern: string | string[]) => boolean;
|
|
36
|
+
type NodePath = typeof path;
|
|
37
|
+
/**
|
|
38
|
+
* The platform-specific file delimiter.
|
|
39
|
+
*
|
|
40
|
+
* Equals to `";"` in windows and `":"` in all other platforms.
|
|
41
|
+
*/
|
|
42
|
+
declare const delimiter: ";" | ":";
|
|
43
|
+
declare const posix: NodePath["posix"];
|
|
44
|
+
declare const win32: NodePath["win32"];
|
|
45
|
+
//#endregion
|
|
46
|
+
export { basename, delimiter, dirname, extname, format, isAbsolute, join, matchesGlob, normalize, normalizeString, parse, posix, relative, resolve, sep, toNamespacedPath, win32 };
|