@voidzero-dev/vite-plus-test 0.1.1 → 0.1.3

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.
@@ -7,16 +7,12 @@ var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
9
  var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
- key = keys[i];
13
- if (!__hasOwnProp.call(to, key) && key !== except) {
14
- __defProp(to, key, {
15
- get: ((k) => from[k]).bind(null, key),
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- }
19
- }
10
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
+ get: ((k) => from[k]).bind(null, key),
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
20
16
  }
21
17
  return to;
22
18
  };
@@ -24,6 +20,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
20
  value: mod,
25
21
  enumerable: true
26
22
  }) : target, mod));
27
-
28
23
  //#endregion
29
- export { __toESM as n, __commonJSMin as t };
24
+ export { __toESM as n, __commonJSMin as t };
@@ -4,8 +4,7 @@ const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta
4
4
  return i()[s] ?? r[s];
5
5
  },
6
6
  has(e, s) {
7
- const E = i();
8
- return s in E || s in r;
7
+ return s in i() || s in r;
9
8
  },
10
9
  set(e, s, E) {
11
10
  const B = i(!0);
@@ -154,6 +153,5 @@ function G() {
154
153
  if (e) return { name: e[1] };
155
154
  }
156
155
  const P = G(), K = P?.name || "";
157
-
158
156
  //#endregion
159
- export { o as env, R as hasTTY, U as hasWindow, c as isBun, T as isCI, Y as isColorSupported, d as isDebug, D as isDeno, h as isDevelopment, u as isEdgeLight, L as isFastly, M as isLinux, m as isMacOS, v as isMinimal, S as isNetlify, O as isNode, g as isProduction, a as isTest, A as isWindows, N as isWorkerd, t as nodeENV, V as nodeMajorVersion, C as nodeVersion, I as platform, y as process, p as provider, l as providerInfo, K as runtime, P as runtimeInfo };
157
+ export { o as env, R as hasTTY, U as hasWindow, c as isBun, T as isCI, Y as isColorSupported, d as isDebug, D as isDeno, h as isDevelopment, u as isEdgeLight, L as isFastly, M as isLinux, m as isMacOS, v as isMinimal, S as isNetlify, O as isNode, g as isProduction, a as isTest, A as isWindows, N as isWorkerd, t as nodeENV, V as nodeMajorVersion, C as nodeVersion, I as platform, y as process, p as provider, l as providerInfo, K as runtime, P as runtimeInfo };
@@ -51,7 +51,7 @@ var M = class {
51
51
  for (; n;) yield n.value, n = n.next;
52
52
  }
53
53
  };
54
- m = new WeakMap(), w = new WeakMap(), E = new WeakMap();
54
+ m = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
55
55
  function y(s) {
56
56
  if (!((Number.isInteger(s) || s === Number.POSITIVE_INFINITY) && s > 0)) throw new TypeError("Expected `concurrency` to be a number from 1 and up");
57
57
  let n = new g(), t = 0, e = () => {
@@ -86,7 +86,7 @@ function o(s, n = null) {
86
86
  configurable: !1
87
87
  }), t;
88
88
  }
89
- var G = {
89
+ var N = {
90
90
  1: 12.71,
91
91
  2: 4.303,
92
92
  3: 3.182,
@@ -208,7 +208,7 @@ var G = {
208
208
  119: 1.9802,
209
209
  120: 1.98,
210
210
  infinity: 1.96
211
- }, N = G;
211
+ };
212
212
  var J = (s) => s / 1e6, U = () => J(Number(process.hrtime.bigint())), B = () => performance.now();
213
213
  function W(s) {
214
214
  return s !== null && typeof s == "object" && typeof s.then == "function";
@@ -361,7 +361,7 @@ var x = class extends EventTarget {
361
361
  /**
362
362
  * The maximum number of concurrent tasks to run. Defaults to Infinity.
363
363
  */
364
- this.threshold = 1 / 0;
364
+ this.threshold = Infinity;
365
365
  this.warmupTime = 100;
366
366
  this.warmupIterations = 5;
367
367
  this.time = 500;
@@ -390,7 +390,7 @@ var x = class extends EventTarget {
390
390
  /**
391
391
  * See Bench.{@link concurrency}
392
392
  */
393
- async runConcurrently(t = 1 / 0, e = "bench") {
393
+ async runConcurrently(t = Infinity, e = "bench") {
394
394
  if (this.threshold = t, this.concurrency = e, e === "task") return this.run();
395
395
  this.dispatchEvent(o("start"));
396
396
  let r = y(t), i = [];
@@ -414,7 +414,7 @@ var x = class extends EventTarget {
414
414
  * warmup the benchmark tasks concurrently.
415
415
  * This is not run by default by the {@link runConcurrently} method.
416
416
  */
417
- async warmupConcurrently(t = 1 / 0, e = "bench") {
417
+ async warmupConcurrently(t = Infinity, e = "bench") {
418
418
  if (this.threshold = t, this.concurrency = e, e === "task") {
419
419
  await this.warmup();
420
420
  return;
@@ -499,6 +499,5 @@ var x = class extends EventTarget {
499
499
  return this._tasks.get(t);
500
500
  }
501
501
  };
502
-
503
502
  //#endregion
504
- export { x as Bench, b as Task, U as hrtimeNow, B as now };
503
+ export { x as Bench, b as Task, U as hrtimeNow, B as now };
@@ -4,7 +4,6 @@ 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
-
8
7
  //#region ../../node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.js
9
8
  var l = Object.create;
10
9
  var u = Object.defineProperty;
@@ -133,12 +132,11 @@ var E = h((exports, t) => {
133
132
  var c = parseInt("010", 8);
134
133
  var l = parseInt("001", 8);
135
134
  var u = s | c;
136
- var d = n & l || n & c && i === o || n & s && r === a || n & u && a === 0;
137
- return d;
135
+ return n & l || n & c && i === o || n & s && r === a || n & u && a === 0;
138
136
  }
139
137
  });
140
138
  var D = h((exports, t) => {
141
- var n = v("fs");
139
+ v("fs");
142
140
  var r;
143
141
  if (process.platform === "win32" || global.TESTING_WINDOWS) r = T();
144
142
  else r = E();
@@ -182,7 +180,7 @@ var O = h((exports, t) => {
182
180
  const r = v("path");
183
181
  const i = n ? ";" : ":";
184
182
  const a = D();
185
- const o = (e) => Object.assign(new Error(`not found: ${e}`), { code: "ENOENT" });
183
+ const o = (e) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), { code: "ENOENT" });
186
184
  const s = (e, t) => {
187
185
  const r = t.colon || i;
188
186
  const a = e.match(/\//) || n && e.match(/\\/) ? [""] : [...n ? [process.cwd()] : [], ...(t.path || process.env.PATH || "").split(r)];
@@ -210,8 +208,7 @@ var O = h((exports, t) => {
210
208
  const c = i[n];
211
209
  const l = /^".*"$/.test(c) ? c.slice(1, -1) : c;
212
210
  const d = r.join(l, e);
213
- const p = !l && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + d : d;
214
- a(f(p, n, 0));
211
+ a(f(!l && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + d : d, n, 0));
215
212
  });
216
213
  const f = (e, n, r) => new Promise((i, o) => {
217
214
  if (r === c.length) return i(d(n + 1));
@@ -236,8 +233,7 @@ var O = h((exports, t) => {
236
233
  for (let e = 0; e < i.length; e++) {
237
234
  const n = f + i[e];
238
235
  try {
239
- const e = a.sync(n, { pathExt: c });
240
- if (e) if (t.all) l.push(n);
236
+ if (a.sync(n, { pathExt: c })) if (t.all) l.push(n);
241
237
  else return n;
242
238
  } catch (e) {}
243
239
  }
@@ -252,8 +248,7 @@ var O = h((exports, t) => {
252
248
  var k = h((exports, t) => {
253
249
  const n = (e = {}) => {
254
250
  const t = e.env || process.env;
255
- const n = e.platform || process.platform;
256
- if (n !== "win32") return "PATH";
251
+ if ((e.platform || process.platform) !== "win32") return "PATH";
257
252
  return Object.keys(t).reverse().find((e) => e.toUpperCase() === "PATH") || "Path";
258
253
  };
259
254
  t.exports = n;
@@ -363,12 +358,11 @@ var F = h((exports, t) => {
363
358
  e.command = n.normalize(e.command);
364
359
  e.command = i.command(e.command);
365
360
  e.args = e.args.map((e) => i.argument(e, r));
366
- const a = [e.command].concat(e.args).join(" ");
367
361
  e.args = [
368
362
  "/d",
369
363
  "/s",
370
364
  "/c",
371
- `"${a}"`
365
+ `"${[e.command].concat(e.args).join(" ")}"`
372
366
  ];
373
367
  e.command = process.env.comspec || "cmd.exe";
374
368
  e.options.windowsVerbatimArguments = true;
@@ -399,7 +393,7 @@ var F = h((exports, t) => {
399
393
  var I = h((exports, t) => {
400
394
  const n = process.platform === "win32";
401
395
  function r(e, t) {
402
- return Object.assign(new Error(`${t} ${e.command} ENOENT`), {
396
+ return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
403
397
  code: "ENOENT",
404
398
  errno: "ENOENT",
405
399
  syscall: `${t} ${e.command}`,
@@ -433,7 +427,7 @@ var I = h((exports, t) => {
433
427
  notFoundError: r
434
428
  };
435
429
  });
436
- var L = h((exports, t) => {
430
+ var R = _(h((exports, t) => {
437
431
  const n = v("child_process");
438
432
  const r = F();
439
433
  const i = I();
@@ -454,14 +448,12 @@ var L = h((exports, t) => {
454
448
  t.exports.sync = o;
455
449
  t.exports._parse = r;
456
450
  t.exports._enoent = i;
457
- });
458
- var R = _(L(), 1);
451
+ })(), 1);
459
452
  var z = class extends Error {
460
453
  result;
461
454
  output;
462
455
  get exitCode() {
463
456
  if (this.result.exitCode !== null) return this.result.exitCode;
464
- return void 0;
465
457
  }
466
458
  constructor(e, t) {
467
459
  super(`Process exited with non-zero status (${e.exitCode})`);
@@ -475,11 +467,9 @@ const B = {
475
467
  };
476
468
  const V = { windowsHide: true };
477
469
  function H(e, t) {
478
- const n = normalize(e);
479
- const r = t ?? [];
480
470
  return {
481
- command: n,
482
- args: r
471
+ command: normalize(e),
472
+ args: t ?? []
483
473
  };
484
474
  }
485
475
  function U(e) {
@@ -518,7 +508,6 @@ var G = class {
518
508
  }
519
509
  get exitCode() {
520
510
  if (this._process && this._process.exitCode !== null) return this._process.exitCode;
521
- return void 0;
522
511
  }
523
512
  constructor(e, t, n) {
524
513
  this._options = {
@@ -632,6 +621,5 @@ const K = (e, t, n) => {
632
621
  return r;
633
622
  };
634
623
  const q = K;
635
-
636
624
  //#endregion
637
- export { G as ExecProcess, z as NonZeroExitError, q as exec, K as x };
625
+ export { G as ExecProcess, z as NonZeroExitError, q as exec, K as x };
@@ -1,11 +1,10 @@
1
- import { n as __toESM } from "./shared-BL6rqJMI.mjs";
1
+ import { n as __toESM } from "./shared-BelWnsAF.mjs";
2
2
  import { t as require_picomatch } from "./picomatch.mjs";
3
3
  import { createRequire } from "module";
4
4
  import * as nativeFs$1 from "fs";
5
5
  import nativeFs from "fs";
6
6
  import path, { basename, dirname, normalize, posix, relative, resolve, sep } from "path";
7
7
  import { fileURLToPath } from "url";
8
-
9
8
  //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.3/node_modules/fdir/dist/index.mjs
10
9
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
10
  function cleanPath(path) {
@@ -27,16 +26,14 @@ function normalizePath(path, options) {
27
26
  if (resolvePaths) path = resolve(path);
28
27
  if (normalizePath$1 || pathNeedsCleaning) path = cleanPath(path);
29
28
  if (path === ".") return "";
30
- const needsSeperator = path[path.length - 1] !== pathSeparator;
31
- return convertSlashes(needsSeperator ? path + pathSeparator : path, pathSeparator);
29
+ return convertSlashes(path[path.length - 1] !== pathSeparator ? path + pathSeparator : path, pathSeparator);
32
30
  }
33
31
  function joinPathWithBasePath(filename, directoryPath) {
34
32
  return directoryPath + filename;
35
33
  }
36
34
  function joinPathWithRelativePath(root, options) {
37
35
  return function(filename, directoryPath) {
38
- const sameRoot = directoryPath.startsWith(root);
39
- if (sameRoot) return directoryPath.slice(root.length) + filename;
36
+ if (directoryPath.startsWith(root)) return directoryPath.slice(root.length) + filename;
40
37
  else return convertSlashes(relative(root, directoryPath), options.pathSeparator) + options.pathSeparator + filename;
41
38
  };
42
39
  }
@@ -150,8 +147,7 @@ function isRecursive(path, resolved, state) {
150
147
  let depth = 1;
151
148
  while (parent !== state.root && depth < 2) {
152
149
  const resolvedPath = state.symlinks.get(parent);
153
- const isSameRoot = !!resolvedPath && (resolvedPath === resolved || resolvedPath.startsWith(resolved) || resolved.startsWith(resolvedPath));
154
- if (isSameRoot) depth++;
150
+ if (!!resolvedPath && (resolvedPath === resolved || resolvedPath.startsWith(resolved) || resolved.startsWith(resolvedPath))) depth++;
155
151
  else parent = dirname(parent);
156
152
  }
157
153
  state.symlinks.set(path, resolved);
@@ -368,12 +364,10 @@ function promise(root, options) {
368
364
  });
369
365
  }
370
366
  function callback(root, options, callback$1) {
371
- let walker = new Walker(root, options, callback$1);
372
- walker.start();
367
+ new Walker(root, options, callback$1).start();
373
368
  }
374
369
  function sync(root, options) {
375
- const walker = new Walker(root, options);
376
- return walker.start();
370
+ return new Walker(root, options).start();
377
371
  }
378
372
  var APIBuilder = class {
379
373
  constructor(root, options) {
@@ -518,7 +512,6 @@ var Builder = class {
518
512
  return this;
519
513
  }
520
514
  };
521
-
522
515
  //#endregion
523
516
  //#region ../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs
524
517
  var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
@@ -550,8 +543,7 @@ function getPartialMatcher(patterns, options = {}) {
550
543
  while (j < minParts) {
551
544
  const part = patternParts[j];
552
545
  if (part.includes("/")) return true;
553
- const match = matcher[j](inputParts[j]);
554
- if (!match) break;
546
+ if (!matcher[j](inputParts[j])) break;
555
547
  if (globstarEnabled && part === "**") return true;
556
548
  j++;
557
549
  }
@@ -813,8 +805,7 @@ async function glob(patternsOrOptions, options) {
813
805
  if (patternsOrOptions && (options === null || options === void 0 ? void 0 : options.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
814
806
  const isModern = isReadonlyArray(patternsOrOptions) || typeof patternsOrOptions === "string";
815
807
  const opts = isModern ? options : patternsOrOptions;
816
- const patterns = isModern ? patternsOrOptions : patternsOrOptions.patterns;
817
- const [crawler, relative] = getCrawler(patterns, opts);
808
+ const [crawler, relative] = getCrawler(isModern ? patternsOrOptions : patternsOrOptions.patterns, opts);
818
809
  if (!relative) return crawler.withPromise();
819
810
  return formatPaths(await crawler.withPromise(), relative);
820
811
  }
@@ -822,11 +813,9 @@ function globSync(patternsOrOptions, options) {
822
813
  if (patternsOrOptions && (options === null || options === void 0 ? void 0 : options.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
823
814
  const isModern = isReadonlyArray(patternsOrOptions) || typeof patternsOrOptions === "string";
824
815
  const opts = isModern ? options : patternsOrOptions;
825
- const patterns = isModern ? patternsOrOptions : patternsOrOptions.patterns;
826
- const [crawler, relative] = getCrawler(patterns, opts);
816
+ const [crawler, relative] = getCrawler(isModern ? patternsOrOptions : patternsOrOptions.patterns, opts);
827
817
  if (!relative) return crawler.sync();
828
818
  return formatPaths(crawler.sync(), relative);
829
819
  }
830
-
831
820
  //#endregion
832
- export { convertPathToPattern, escapePath, glob, globSync, isDynamicPattern };
821
+ export { convertPathToPattern, escapePath, glob, globSync, isDynamicPattern };
@@ -88,6 +88,5 @@ function f() {
88
88
  return i;
89
89
  }
90
90
  var C = f();
91
-
92
91
  //#endregion
93
- export { f as createColors, C as default, B as getDefaultColors, h as isSupported };
92
+ export { f as createColors, C as default, B as getDefaultColors, h as isSupported };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vite-plus-test",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "*.cjs",
@@ -266,7 +266,7 @@
266
266
  "tinyexec": "^1.0.2",
267
267
  "tinyglobby": "^0.2.15",
268
268
  "ws": "^8.18.3",
269
- "@voidzero-dev/vite-plus-core": "0.1.1"
269
+ "@voidzero-dev/vite-plus-core": "0.1.3"
270
270
  },
271
271
  "devDependencies": {
272
272
  "@oxc-node/cli": "^0.0.35",
@@ -294,7 +294,7 @@
294
294
  "tinyrainbow": "^3.0.3",
295
295
  "vitest-dev": "^4.0.18",
296
296
  "why-is-node-running": "^2.3.0",
297
- "rolldown": "1.0.0-rc.6"
297
+ "rolldown": "1.0.0-rc.7"
298
298
  },
299
299
  "peerDependencies": {
300
300
  "@edge-runtime/vm": "*",