@voidzero-dev/vite-plus-test 0.1.12-alpha.2 → 0.1.13-alpha.0

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.
@@ -991,42 +991,42 @@ var BrowserPlugin = (parentServer, base = "/") => {
991
991
  }
992
992
  // Handle @vitest/* packages (resolve to our copied files)
993
993
  const vendorMap = {
994
- '@vitest/runner': resolve(distRoot, '@vitest/runner/index.js'),
995
- '@vitest/runner/utils': resolve(distRoot, '@vitest/runner/utils.js'),
996
- '@vitest/runner/types': resolve(distRoot, '@vitest/runner/types.js'),
997
- '@vitest/utils': resolve(distRoot, '@vitest/utils/index.js'),
998
- '@vitest/utils/source-map': resolve(distRoot, '@vitest/utils/source-map.js'),
999
- '@vitest/utils/source-map/node': resolve(distRoot, '@vitest/utils/source-map/node.js'),
1000
- '@vitest/utils/error': resolve(distRoot, '@vitest/utils/error.js'),
1001
- '@vitest/utils/helpers': resolve(distRoot, '@vitest/utils/helpers.js'),
1002
- '@vitest/utils/display': resolve(distRoot, '@vitest/utils/display.js'),
1003
- '@vitest/utils/timers': resolve(distRoot, '@vitest/utils/timers.js'),
1004
- '@vitest/utils/highlight': resolve(distRoot, '@vitest/utils/highlight.js'),
1005
- '@vitest/utils/offset': resolve(distRoot, '@vitest/utils/offset.js'),
1006
- '@vitest/utils/resolver': resolve(distRoot, '@vitest/utils/resolver.js'),
1007
- '@vitest/utils/serialize': resolve(distRoot, '@vitest/utils/serialize.js'),
1008
- '@vitest/utils/constants': resolve(distRoot, '@vitest/utils/constants.js'),
1009
- '@vitest/utils/diff': resolve(distRoot, '@vitest/utils/diff.js'),
1010
- '@vitest/spy': resolve(distRoot, '@vitest/spy/index.js'),
1011
- '@vitest/expect': resolve(distRoot, '@vitest/expect/index.js'),
1012
- '@vitest/snapshot': resolve(distRoot, '@vitest/snapshot/index.js'),
1013
- '@vitest/snapshot/environment': resolve(distRoot, '@vitest/snapshot/environment.js'),
1014
- '@vitest/snapshot/manager': resolve(distRoot, '@vitest/snapshot/manager.js'),
1015
- '@vitest/mocker': resolve(distRoot, '@vitest/mocker/index.js'),
1016
- '@vitest/mocker/node': resolve(distRoot, '@vitest/mocker/node.js'),
1017
- '@vitest/mocker/browser': resolve(distRoot, '@vitest/mocker/browser.js'),
1018
- '@vitest/mocker/redirect': resolve(distRoot, '@vitest/mocker/redirect.js'),
1019
- '@vitest/mocker/transforms': resolve(distRoot, '@vitest/mocker/transforms.js'),
1020
- '@vitest/mocker/automock': resolve(distRoot, '@vitest/mocker/automock.js'),
1021
- '@vitest/mocker/register': resolve(distRoot, '@vitest/mocker/register.js'),
1022
- '@vitest/pretty-format': resolve(distRoot, '@vitest/pretty-format/index.js'),
1023
- '@vitest/browser': resolve(distRoot, '@vitest/browser/index.js'),
1024
- '@vitest/browser/context': resolve(distRoot, '@vitest/browser/context.js'),
1025
- '@vitest/browser/client': resolve(distRoot, '@vitest/browser/client.js'),
1026
- '@vitest/browser/locators': resolve(distRoot, '@vitest/browser/locators.js'),
1027
- '@vitest/browser-playwright': resolve(distRoot, '@vitest/browser-playwright/index.js'),
1028
- '@vitest/browser-webdriverio': resolve(distRoot, '@vitest/browser-webdriverio/index.js'),
1029
- '@vitest/browser-preview': resolve(distRoot, '@vitest/browser-preview/index.js')
994
+ '@vitest/runner': resolve(packageRoot, '@vitest/runner/index.js'),
995
+ '@vitest/runner/utils': resolve(packageRoot, '@vitest/runner/utils.js'),
996
+ '@vitest/runner/types': resolve(packageRoot, '@vitest/runner/types.js'),
997
+ '@vitest/utils': resolve(packageRoot, '@vitest/utils/index.js'),
998
+ '@vitest/utils/source-map': resolve(packageRoot, '@vitest/utils/source-map.js'),
999
+ '@vitest/utils/source-map/node': resolve(packageRoot, '@vitest/utils/source-map/node.js'),
1000
+ '@vitest/utils/error': resolve(packageRoot, '@vitest/utils/error.js'),
1001
+ '@vitest/utils/helpers': resolve(packageRoot, '@vitest/utils/helpers.js'),
1002
+ '@vitest/utils/display': resolve(packageRoot, '@vitest/utils/display.js'),
1003
+ '@vitest/utils/timers': resolve(packageRoot, '@vitest/utils/timers.js'),
1004
+ '@vitest/utils/highlight': resolve(packageRoot, '@vitest/utils/highlight.js'),
1005
+ '@vitest/utils/offset': resolve(packageRoot, '@vitest/utils/offset.js'),
1006
+ '@vitest/utils/resolver': resolve(packageRoot, '@vitest/utils/resolver.js'),
1007
+ '@vitest/utils/serialize': resolve(packageRoot, '@vitest/utils/serialize.js'),
1008
+ '@vitest/utils/constants': resolve(packageRoot, '@vitest/utils/constants.js'),
1009
+ '@vitest/utils/diff': resolve(packageRoot, '@vitest/utils/diff.js'),
1010
+ '@vitest/spy': resolve(packageRoot, '@vitest/spy/index.js'),
1011
+ '@vitest/expect': resolve(packageRoot, '@vitest/expect/index.js'),
1012
+ '@vitest/snapshot': resolve(packageRoot, '@vitest/snapshot/index.js'),
1013
+ '@vitest/snapshot/environment': resolve(packageRoot, '@vitest/snapshot/environment.js'),
1014
+ '@vitest/snapshot/manager': resolve(packageRoot, '@vitest/snapshot/manager.js'),
1015
+ '@vitest/mocker': resolve(packageRoot, '@vitest/mocker/index.js'),
1016
+ '@vitest/mocker/node': resolve(packageRoot, '@vitest/mocker/node.js'),
1017
+ '@vitest/mocker/browser': resolve(packageRoot, '@vitest/mocker/browser.js'),
1018
+ '@vitest/mocker/redirect': resolve(packageRoot, '@vitest/mocker/redirect.js'),
1019
+ '@vitest/mocker/transforms': resolve(packageRoot, '@vitest/mocker/transforms.js'),
1020
+ '@vitest/mocker/automock': resolve(packageRoot, '@vitest/mocker/automock.js'),
1021
+ '@vitest/mocker/register': resolve(packageRoot, '@vitest/mocker/register.js'),
1022
+ '@vitest/pretty-format': resolve(packageRoot, '@vitest/pretty-format/index.js'),
1023
+ '@vitest/browser': resolve(packageRoot, '@vitest/browser/index.js'),
1024
+ '@vitest/browser/context': resolve(packageRoot, '@vitest/browser/context.js'),
1025
+ '@vitest/browser/client': resolve(packageRoot, '@vitest/browser/client.js'),
1026
+ '@vitest/browser/locators': resolve(packageRoot, '@vitest/browser/locators.js'),
1027
+ '@vitest/browser-playwright': resolve(packageRoot, '@vitest/browser-playwright/index.js'),
1028
+ '@vitest/browser-webdriverio': resolve(packageRoot, '@vitest/browser-webdriverio/index.js'),
1029
+ '@vitest/browser-preview': resolve(packageRoot, '@vitest/browser-preview/index.js')
1030
1030
  };
1031
1031
  if (vendorMap[id]) {
1032
1032
  return vendorMap[id];
@@ -0,0 +1,21 @@
1
+ import { LocatorSelectors, Locator } from './context'
2
+ import { StringifyOptions } from '../../browser.js'
3
+
4
+ export type PrettyDOMOptions = Omit<StringifyOptions, 'maxLength'>
5
+
6
+ /** @deprecated use `import('vitest/browser').utils.getElementLocatorSelectors` instead */
7
+ export declare function getElementLocatorSelectors(element: Element): LocatorSelectors
8
+ /** @deprecated use `import('vitest/browser').utils.debug` instead */
9
+ export declare function debug(
10
+ el?: Element | Locator | null | (Element | Locator)[],
11
+ maxLength?: number,
12
+ options?: PrettyDOMOptions,
13
+ ): void
14
+ /** @deprecated use `import('vitest/browser').utils.prettyDOM` instead */
15
+ export declare function prettyDOM(
16
+ dom?: Element | Locator | undefined | null,
17
+ maxLength?: number,
18
+ prettyFormatOptions?: PrettyDOMOptions,
19
+ ): string
20
+ /** @deprecated use `import('vitest/browser').utils.getElementError` instead */
21
+ export declare function getElementError(selector: string, container?: Element): Error
@@ -1,8 +1,7 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  import { ChildProcess, SpawnOptions } from "node:child_process";
3
2
  import { Readable } from "node:stream";
4
3
 
5
- //#region ../../node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.d.ts
4
+ //#region ../../node_modules/.pnpm/tinyexec@1.0.4/node_modules/tinyexec/dist/main.d.mts
6
5
  //#region src/non-zero-exit-error.d.ts
7
6
  declare class NonZeroExitError extends Error {
8
7
  readonly result: Result;
@@ -1,73 +1,55 @@
1
- import { createRequire } from "module";
1
+ import { createRequire } from "node:module";
2
2
  import { spawn } from "node:child_process";
3
3
  import { delimiter, dirname, normalize, resolve } from "node:path";
4
4
  import { cwd } from "node:process";
5
5
  import { PassThrough } from "node:stream";
6
6
  import c from "node:readline";
7
- //#region ../../node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.js
8
- var l = Object.create;
9
- var u = Object.defineProperty;
10
- var d = Object.getOwnPropertyDescriptor;
11
- var f = Object.getOwnPropertyNames;
12
- var p = Object.getPrototypeOf;
13
- var m = Object.prototype.hasOwnProperty;
14
- var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
15
- var g = (e, t, n, r) => {
16
- if (t && typeof t === "object" || typeof t === "function") for (var i = f(t), a = 0, o = i.length, s; a < o; a++) {
17
- s = i[a];
18
- if (!m.call(e, s) && s !== n) u(e, s, {
19
- get: ((e) => t[e]).bind(null, s),
20
- enumerable: !(r = d(t, s)) || r.enumerable
21
- });
22
- }
23
- return e;
24
- };
25
- var _ = (e, t, n) => (n = e != null ? l(p(e)) : {}, g(t || !e || !e.__esModule ? u(n, "default", {
26
- value: e,
27
- enumerable: true
28
- }) : n, e));
29
- var v = /* @__PURE__ */ createRequire(import.meta.url);
30
- const y = /^path$/i;
31
- const b = {
7
+ //#region ../../node_modules/.pnpm/tinyexec@1.0.4/node_modules/tinyexec/dist/main.mjs
8
+ var l = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
9
+ var u = /* @__PURE__ */ createRequire(import.meta.url);
10
+ const d = /^path$/i;
11
+ const f = {
32
12
  key: "PATH",
33
13
  value: ""
34
14
  };
35
- function x(e) {
15
+ function p(e) {
36
16
  for (const t in e) {
37
- if (!Object.prototype.hasOwnProperty.call(e, t) || !y.test(t)) continue;
17
+ if (!Object.prototype.hasOwnProperty.call(e, t) || !d.test(t)) continue;
38
18
  const n = e[t];
39
- if (!n) return b;
19
+ if (!n) return f;
40
20
  return {
41
21
  key: t,
42
22
  value: n
43
23
  };
44
24
  }
45
- return b;
25
+ return f;
46
26
  }
47
- function S(e, t) {
27
+ function m(e, t) {
48
28
  const i = t.value.split(delimiter);
49
- let o = e;
50
- let s;
29
+ const o = [];
30
+ let s = e;
31
+ let c;
51
32
  do {
52
- i.push(resolve(o, "node_modules", ".bin"));
53
- s = o;
54
- o = dirname(o);
55
- } while (o !== s);
33
+ o.push(resolve(s, "node_modules", ".bin"));
34
+ c = s;
35
+ s = dirname(s);
36
+ } while (s !== c);
37
+ const l = o.concat(i).join(delimiter);
56
38
  return {
57
39
  key: t.key,
58
- value: i.join(delimiter)
40
+ value: l
59
41
  };
60
42
  }
61
- function C(e, t) {
43
+ function h(e, t) {
62
44
  const n = {
63
45
  ...process.env,
64
46
  ...t
65
47
  };
66
- const r = S(e, x(n));
48
+ const r = m(e, p(n));
67
49
  n[r.key] = r.value;
68
50
  return n;
69
51
  }
70
- const w = (e) => {
52
+ const g = (e) => {
71
53
  let t = e.length;
72
54
  const n = new PassThrough();
73
55
  const r = () => {
@@ -79,10 +61,10 @@ const w = (e) => {
79
61
  }
80
62
  return n;
81
63
  };
82
- var T = h((exports, t) => {
64
+ var _ = /* @__PURE__ */ l(((e, t) => {
83
65
  t.exports = a;
84
66
  a.sync = o;
85
- var n = v("fs");
67
+ var n = u("fs");
86
68
  function r(e, t) {
87
69
  var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
88
70
  if (!n) return true;
@@ -106,11 +88,11 @@ var T = h((exports, t) => {
106
88
  function o(e, t) {
107
89
  return i(n.statSync(e), e, t);
108
90
  }
109
- });
110
- var E = h((exports, t) => {
91
+ }));
92
+ var v = /* @__PURE__ */ l(((e, t) => {
111
93
  t.exports = r;
112
94
  r.sync = i;
113
- var n = v("fs");
95
+ var n = u("fs");
114
96
  function r(e, t, r) {
115
97
  n.stat(e, function(e, n) {
116
98
  r(e, e ? false : a(n, t));
@@ -134,52 +116,52 @@ var E = h((exports, t) => {
134
116
  var u = s | c;
135
117
  return n & l || n & c && i === o || n & s && r === a || n & u && a === 0;
136
118
  }
137
- });
138
- var D = h((exports, t) => {
139
- v("fs");
140
- var r;
141
- if (process.platform === "win32" || global.TESTING_WINDOWS) r = T();
142
- else r = E();
143
- t.exports = i;
144
- i.sync = a;
145
- function i(e, t, n) {
119
+ }));
120
+ var y = /* @__PURE__ */ l(((e, t) => {
121
+ u("fs");
122
+ var n;
123
+ if (process.platform === "win32" || global.TESTING_WINDOWS) n = _();
124
+ else n = v();
125
+ t.exports = r;
126
+ r.sync = i;
127
+ function r(e, t, i) {
146
128
  if (typeof t === "function") {
147
- n = t;
129
+ i = t;
148
130
  t = {};
149
131
  }
150
- if (!n) {
132
+ if (!i) {
151
133
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
152
- return new Promise(function(n, r) {
153
- i(e, t || {}, function(e, t) {
154
- if (e) r(e);
134
+ return new Promise(function(n, i) {
135
+ r(e, t || {}, function(e, t) {
136
+ if (e) i(e);
155
137
  else n(t);
156
138
  });
157
139
  });
158
140
  }
159
- r(e, t || {}, function(e, r) {
141
+ n(e, t || {}, function(e, n) {
160
142
  if (e) {
161
143
  if (e.code === "EACCES" || t && t.ignoreErrors) {
162
144
  e = null;
163
- r = false;
145
+ n = false;
164
146
  }
165
147
  }
166
- n(e, r);
148
+ i(e, n);
167
149
  });
168
150
  }
169
- function a(e, t) {
151
+ function i(e, t) {
170
152
  try {
171
- return r.sync(e, t || {});
153
+ return n.sync(e, t || {});
172
154
  } catch (e) {
173
155
  if (t && t.ignoreErrors || e.code === "EACCES") return false;
174
156
  else throw e;
175
157
  }
176
158
  }
177
- });
178
- var O = h((exports, t) => {
159
+ }));
160
+ var b = /* @__PURE__ */ l(((e, t) => {
179
161
  const n = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
180
- const r = v("path");
162
+ const r = u("path");
181
163
  const i = n ? ";" : ":";
182
- const a = D();
164
+ const a = y();
183
165
  const o = (e) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), { code: "ENOENT" });
184
166
  const s = (e, t) => {
185
167
  const r = t.colon || i;
@@ -244,8 +226,8 @@ var O = h((exports, t) => {
244
226
  };
245
227
  t.exports = c;
246
228
  c.sync = l;
247
- });
248
- var k = h((exports, t) => {
229
+ }));
230
+ var x = /* @__PURE__ */ l(((e, t) => {
249
231
  const n = (e = {}) => {
250
232
  const t = e.env || process.env;
251
233
  if ((e.platform || process.platform) !== "win32") return "PATH";
@@ -253,11 +235,11 @@ var k = h((exports, t) => {
253
235
  };
254
236
  t.exports = n;
255
237
  t.exports.default = n;
256
- });
257
- var A = h((exports, t) => {
258
- const n = v("path");
259
- const r = O();
260
- const i = k();
238
+ }));
239
+ var S = /* @__PURE__ */ l(((e, t) => {
240
+ const n = u("path");
241
+ const r = b();
242
+ const i = x();
261
243
  function a(e, t) {
262
244
  const a = e.options.env || process.env;
263
245
  const o = process.cwd();
@@ -282,8 +264,8 @@ var A = h((exports, t) => {
282
264
  return a(e) || a(e, true);
283
265
  }
284
266
  t.exports = o;
285
- });
286
- var j = h((exports, t) => {
267
+ }));
268
+ var C = /* @__PURE__ */ l(((e, t) => {
287
269
  const n = /([()\][%!^"`<>&|;, *?])/g;
288
270
  function r(e) {
289
271
  e = e.replace(n, "^$1");
@@ -291,8 +273,8 @@ var j = h((exports, t) => {
291
273
  }
292
274
  function i(e, t) {
293
275
  e = `${e}`;
294
- e = e.replace(/(\\*)"/g, "$1$1\\\"");
295
- e = e.replace(/(\\*)$/, "$1$1");
276
+ e = e.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
277
+ e = e.replace(/(?=(\\+?)?)\1$/, "$1$1");
296
278
  e = `"${e}"`;
297
279
  e = e.replace(n, "^$1");
298
280
  if (t) e = e.replace(n, "^$1");
@@ -300,12 +282,12 @@ var j = h((exports, t) => {
300
282
  }
301
283
  t.exports.command = r;
302
284
  t.exports.argument = i;
303
- });
304
- var M = h((exports, t) => {
285
+ }));
286
+ var w = /* @__PURE__ */ l(((e, t) => {
305
287
  t.exports = /^#!(.*)/;
306
- });
307
- var N = h((exports, t) => {
308
- const n = M();
288
+ }));
289
+ var T = /* @__PURE__ */ l(((e, t) => {
290
+ const n = w();
309
291
  t.exports = (e = "") => {
310
292
  const t = e.match(n);
311
293
  if (!t) return null;
@@ -314,10 +296,10 @@ var N = h((exports, t) => {
314
296
  if (a === "env") return i;
315
297
  return i ? `${a} ${i}` : a;
316
298
  };
317
- });
318
- var P = h((exports, t) => {
319
- const n = v("fs");
320
- const r = N();
299
+ }));
300
+ var E = /* @__PURE__ */ l(((e, t) => {
301
+ const n = u("fs");
302
+ const r = T();
321
303
  function i(e) {
322
304
  const t = 150;
323
305
  const i = Buffer.alloc(t);
@@ -330,12 +312,12 @@ var P = h((exports, t) => {
330
312
  return r(i.toString());
331
313
  }
332
314
  t.exports = i;
333
- });
334
- var F = h((exports, t) => {
335
- const n = v("path");
336
- const r = A();
337
- const i = j();
338
- const a = P();
315
+ }));
316
+ var D = /* @__PURE__ */ l(((e, t) => {
317
+ const n = u("path");
318
+ const r = S();
319
+ const i = C();
320
+ const a = E();
339
321
  const o = process.platform === "win32";
340
322
  const s = /\.(?:com|exe)$/i;
341
323
  const c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
@@ -349,7 +331,7 @@ var F = h((exports, t) => {
349
331
  }
350
332
  return e.file;
351
333
  }
352
- function u(e) {
334
+ function d(e) {
353
335
  if (!o) return e;
354
336
  const t = l(e);
355
337
  const r = !s.test(t);
@@ -369,7 +351,7 @@ var F = h((exports, t) => {
369
351
  }
370
352
  return e;
371
353
  }
372
- function d(e, t, n) {
354
+ function f(e, t, n) {
373
355
  if (t && !Array.isArray(t)) {
374
356
  n = t;
375
357
  t = null;
@@ -386,11 +368,11 @@ var F = h((exports, t) => {
386
368
  args: t
387
369
  }
388
370
  };
389
- return n.shell ? r : u(r);
371
+ return n.shell ? r : d(r);
390
372
  }
391
- t.exports = d;
392
- });
393
- var I = h((exports, t) => {
373
+ t.exports = f;
374
+ }));
375
+ var O = /* @__PURE__ */ l(((e, t) => {
394
376
  const n = process.platform === "win32";
395
377
  function r(e, t) {
396
378
  return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
@@ -406,7 +388,7 @@ var I = h((exports, t) => {
406
388
  const r = e.emit;
407
389
  e.emit = function(n, i) {
408
390
  if (n === "exit") {
409
- const n = a(i, t, "spawn");
391
+ const n = a(i, t);
410
392
  if (n) return r.call(e, "error", n);
411
393
  }
412
394
  return r.apply(e, arguments);
@@ -426,11 +408,11 @@ var I = h((exports, t) => {
426
408
  verifyENOENTSync: o,
427
409
  notFoundError: r
428
410
  };
429
- });
430
- var R = _(h((exports, t) => {
431
- const n = v("child_process");
432
- const r = F();
433
- const i = I();
411
+ }));
412
+ var A = (/* @__PURE__ */ l(((e, t) => {
413
+ const n = u("child_process");
414
+ const r = D();
415
+ const i = O();
434
416
  function a(e, t, a) {
435
417
  const o = r(e, t, a);
436
418
  const s = n.spawn(o.command, o.args, o.options);
@@ -448,8 +430,8 @@ var R = _(h((exports, t) => {
448
430
  t.exports.sync = o;
449
431
  t.exports._parse = r;
450
432
  t.exports._enoent = i;
451
- })(), 1);
452
- var z = class extends Error {
433
+ })))();
434
+ var j = class extends Error {
453
435
  result;
454
436
  output;
455
437
  get exitCode() {
@@ -461,18 +443,18 @@ var z = class extends Error {
461
443
  this.output = t;
462
444
  }
463
445
  };
464
- const B = {
446
+ const M = {
465
447
  timeout: void 0,
466
448
  persist: false
467
449
  };
468
- const V = { windowsHide: true };
469
- function H(e, t) {
450
+ const N = { windowsHide: true };
451
+ function P(e, t) {
470
452
  return {
471
453
  command: normalize(e),
472
454
  args: t ?? []
473
455
  };
474
456
  }
475
- function U(e) {
457
+ function F(e) {
476
458
  const t = new AbortController();
477
459
  for (const n of e) {
478
460
  if (n.aborted) {
@@ -486,12 +468,12 @@ function U(e) {
486
468
  }
487
469
  return t.signal;
488
470
  }
489
- async function W(e) {
471
+ async function I(e) {
490
472
  let t = "";
491
473
  for await (const n of e) t += n.toString();
492
474
  return t;
493
475
  }
494
- var G = class {
476
+ var L = class {
495
477
  _process;
496
478
  _aborted = false;
497
479
  _options;
@@ -511,7 +493,7 @@ var G = class {
511
493
  }
512
494
  constructor(e, t, n) {
513
495
  this._options = {
514
- ...B,
496
+ ...M,
515
497
  ...n
516
498
  };
517
499
  this._command = e;
@@ -530,7 +512,7 @@ var G = class {
530
512
  return this._process?.killed === true;
531
513
  }
532
514
  pipe(e, t, n) {
533
- return q(e, t, {
515
+ return z(e, t, {
534
516
  ...n,
535
517
  stdin: this
536
518
  });
@@ -541,18 +523,18 @@ var G = class {
541
523
  const t = [];
542
524
  if (this._streamErr) t.push(this._streamErr);
543
525
  if (this._streamOut) t.push(this._streamOut);
544
- const n = w(t);
526
+ const n = g(t);
545
527
  const r = c.createInterface({ input: n });
546
528
  for await (const e of r) yield e.toString();
547
529
  await this._processClosed;
548
530
  e.removeAllListeners();
549
531
  if (this._thrownError) throw this._thrownError;
550
- if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this);
532
+ if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new j(this);
551
533
  }
552
534
  async _waitForOutput() {
553
535
  const e = this._process;
554
536
  if (!e) throw new Error("No process was started");
555
- const [t, n] = await Promise.all([this._streamOut ? W(this._streamOut) : "", this._streamErr ? W(this._streamErr) : ""]);
537
+ const [t, n] = await Promise.all([this._streamOut ? I(this._streamOut) : "", this._streamErr ? I(this._streamErr) : ""]);
556
538
  await this._processClosed;
557
539
  if (this._options?.stdin) await this._options.stdin;
558
540
  e.removeAllListeners();
@@ -562,7 +544,7 @@ var G = class {
562
544
  stdout: t,
563
545
  exitCode: this.exitCode
564
546
  };
565
- if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this, r);
547
+ if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new j(this, r);
566
548
  return r;
567
549
  }
568
550
  then(e, t) {
@@ -574,7 +556,7 @@ var G = class {
574
556
  const e = cwd();
575
557
  const n = this._options;
576
558
  const r = {
577
- ...V,
559
+ ...N,
578
560
  ...n.nodeOptions
579
561
  };
580
562
  const i = [];
@@ -582,10 +564,10 @@ var G = class {
582
564
  if (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));
583
565
  if (n.signal !== void 0) i.push(n.signal);
584
566
  if (n.persist === true) r.detached = true;
585
- if (i.length > 0) r.signal = U(i);
586
- r.env = C(e, r.env);
587
- const { command: a, args: s } = H(this._command, this._args);
588
- const c = (0, R._parse)(a, s, r);
567
+ if (i.length > 0) r.signal = F(i);
568
+ r.env = h(e, r.env);
569
+ const { command: a, args: s } = P(this._command, this._args);
570
+ const c = (0, A._parse)(a, s, r);
589
571
  const l = spawn(c.command, c.args, c.options);
590
572
  if (l.stderr) this._streamErr = l.stderr;
591
573
  if (l.stdout) this._streamOut = l.stdout;
@@ -615,11 +597,11 @@ var G = class {
615
597
  if (this._resolveClose) this._resolveClose();
616
598
  };
617
599
  };
618
- const K = (e, t, n) => {
619
- const r = new G(e, t, n);
600
+ const R = (e, t, n) => {
601
+ const r = new L(e, t, n);
620
602
  r.spawn();
621
603
  return r;
622
604
  };
623
- const q = K;
605
+ const z = R;
624
606
  //#endregion
625
- export { G as ExecProcess, z as NonZeroExitError, q as exec, K as x };
607
+ export { L as ExecProcess, j as NonZeroExitError, z as exec, R as x };
@@ -1,10 +1,10 @@
1
1
  import { n as __toESM } from "./shared-BelWnsAF.mjs";
2
2
  import { t as require_picomatch } from "./picomatch.mjs";
3
- import { createRequire } from "module";
4
3
  import * as nativeFs$1 from "fs";
5
4
  import nativeFs from "fs";
6
5
  import path, { basename, dirname, normalize, posix, relative, resolve, sep } from "path";
7
6
  import { fileURLToPath } from "url";
7
+ import { createRequire } from "module";
8
8
  //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.3/node_modules/fdir/dist/index.mjs
9
9
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
10
10
  function cleanPath(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vite-plus-test",
3
- "version": "0.1.12-alpha.2",
3
+ "version": "0.1.13-alpha.0",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -37,6 +37,7 @@
37
37
  ".": {
38
38
  "import": {
39
39
  "types": "./dist/index.d.ts",
40
+ "browser": "./dist/index.js",
40
41
  "node": "./dist/index-node.js",
41
42
  "default": "./dist/index.js"
42
43
  },
@@ -280,7 +281,7 @@
280
281
  "tinyexec": "^1.0.2",
281
282
  "tinyglobby": "^0.2.15",
282
283
  "ws": "^8.18.3",
283
- "@voidzero-dev/vite-plus-core": "0.1.12-alpha.2"
284
+ "@voidzero-dev/vite-plus-core": "0.1.13-alpha.0"
284
285
  },
285
286
  "devDependencies": {
286
287
  "@blazediff/core": "1.9.1",
@@ -302,8 +303,8 @@
302
303
  "estree-walker": "^3.0.3",
303
304
  "expect-type": "^1.2.2",
304
305
  "magic-string": "^0.30.21",
305
- "oxc-parser": "=0.115.0",
306
- "oxfmt": "=0.40.0",
306
+ "oxc-parser": "=0.120.0",
307
+ "oxfmt": "=0.41.0",
307
308
  "pathe": "^2.0.3",
308
309
  "picomatch": "^4.0.3",
309
310
  "rolldown-plugin-dts": "^0.22.0",
@@ -1 +0,0 @@
1
- export * from '../browser/context.js'
@@ -1 +0,0 @@
1
- export * from '../browser/context.js'
@@ -1 +0,0 @@
1
- export * from '../browser/context.js'