@voidzero-dev/vite-plus-test 0.1.2 → 0.1.4
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/dist/vendor/chai.mjs +279 -738
- package/dist/vendor/es-module-lexer.mjs +4 -5
- package/dist/vendor/estree-walker.mjs +18 -47
- package/dist/vendor/expect-type.mjs +10 -100
- package/dist/vendor/magic-string.mjs +152 -577
- package/dist/vendor/obug.mjs +1 -4
- package/dist/vendor/pathe.mjs +64 -112
- package/dist/vendor/picomatch.mjs +131 -323
- package/dist/vendor/{shared-BL6rqJMI.mjs → shared-BelWnsAF.mjs} +7 -12
- package/dist/vendor/std-env.mjs +2 -4
- package/dist/vendor/tinybench.mjs +7 -8
- package/dist/vendor/tinyexec.mjs +13 -25
- package/dist/vendor/tinyglobby.mjs +10 -21
- package/dist/vendor/tinyrainbow.mjs +1 -2
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
//#region ../../node_modules/.pnpm/es-module-lexer@1.7.0/node_modules/es-module-lexer/dist/lexer.js
|
|
2
2
|
var ImportType;
|
|
3
|
-
|
|
3
|
+
(function(A) {
|
|
4
4
|
A[A.Static = 1] = "Static", A[A.Dynamic = 2] = "Dynamic", A[A.ImportMeta = 3] = "ImportMeta", A[A.StaticSourcePhase = 4] = "StaticSourcePhase", A[A.DynamicSourcePhase = 5] = "DynamicSourcePhase", A[A.StaticDeferPhase = 6] = "StaticDeferPhase", A[A.DynamicDeferPhase = 7] = "DynamicDeferPhase";
|
|
5
|
-
}(ImportType || (ImportType = {}));
|
|
5
|
+
})(ImportType || (ImportType = {}));
|
|
6
6
|
const A = 1 === new Uint8Array(new Uint16Array([1]).buffer)[0];
|
|
7
7
|
function parse(E, g = "@") {
|
|
8
8
|
if (!C) return init.then((() => parse(E)));
|
|
9
9
|
const I = E.length + 1, w = (C.__heap_base.value || C.__heap_base) + 4 * I - C.memory.buffer.byteLength;
|
|
10
10
|
w > 0 && C.memory.grow(Math.ceil(w / 65536));
|
|
11
11
|
const K = C.sa(I - 1);
|
|
12
|
-
if ((A ? B : Q)(E, new Uint16Array(C.memory.buffer, K, I)), !C.parse()) throw Object.assign(new Error(`Parse error ${g}:${E.slice(0, C.e()).split("\n").length}:${C.e() - E.lastIndexOf("\n", C.e() - 1)}`), { idx: C.e() });
|
|
12
|
+
if ((A ? B : Q)(E, new Uint16Array(C.memory.buffer, K, I)), !C.parse()) throw Object.assign(/* @__PURE__ */ new Error(`Parse error ${g}:${E.slice(0, C.e()).split("\n").length}:${C.e() - E.lastIndexOf("\n", C.e() - 1)}`), { idx: C.e() });
|
|
13
13
|
const o = [], D = [];
|
|
14
14
|
for (; C.ri();) {
|
|
15
15
|
const A = C.is(), Q = C.ie(), B = C.it(), g = C.ai(), I = C.id(), w = C.ss(), K = C.se();
|
|
@@ -74,6 +74,5 @@ const initSync = () => {
|
|
|
74
74
|
const A = new WebAssembly.Module(E());
|
|
75
75
|
C = new WebAssembly.Instance(A).exports;
|
|
76
76
|
};
|
|
77
|
-
|
|
78
77
|
//#endregion
|
|
79
|
-
export { ImportType, init, initSync, parse };
|
|
78
|
+
export { ImportType, init, initSync, parse };
|
|
@@ -30,13 +30,10 @@ var WalkerBase = class {
|
|
|
30
30
|
* @param {Node} node
|
|
31
31
|
*/
|
|
32
32
|
replace(parent, prop, index, node) {
|
|
33
|
-
if (parent && prop)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/** @type {Node} */ parent[prop] = node;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
33
|
+
if (parent && prop) if (index != null)
|
|
34
|
+
/** @type {Array<Node>} */ parent[prop][index] = node;
|
|
35
|
+
else
|
|
36
|
+
/** @type {Node} */ parent[prop] = node;
|
|
40
37
|
}
|
|
41
38
|
/**
|
|
42
39
|
* @template {Node} Parent
|
|
@@ -45,16 +42,11 @@ var WalkerBase = class {
|
|
|
45
42
|
* @param {number | null | undefined} index
|
|
46
43
|
*/
|
|
47
44
|
remove(parent, prop, index) {
|
|
48
|
-
if (parent && prop)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} else {
|
|
52
|
-
delete parent[prop];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
45
|
+
if (parent && prop) if (index !== null && index !== void 0)
|
|
46
|
+
/** @type {Array<Node>} */ parent[prop].splice(index, 1);
|
|
47
|
+
else delete parent[prop];
|
|
55
48
|
}
|
|
56
49
|
};
|
|
57
|
-
|
|
58
50
|
//#endregion
|
|
59
51
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/sync.js
|
|
60
52
|
/**
|
|
@@ -115,9 +107,7 @@ var SyncWalker = class extends WalkerBase {
|
|
|
115
107
|
node = this.replacement;
|
|
116
108
|
this.replace(parent, prop, index, node);
|
|
117
109
|
}
|
|
118
|
-
if (this.should_remove)
|
|
119
|
-
this.remove(parent, prop, index);
|
|
120
|
-
}
|
|
110
|
+
if (this.should_remove) this.remove(parent, prop, index);
|
|
121
111
|
const skipped = this.should_skip;
|
|
122
112
|
const removed = this.should_remove;
|
|
123
113
|
this.should_skip = _should_skip;
|
|
@@ -137,14 +127,10 @@ var SyncWalker = class extends WalkerBase {
|
|
|
137
127
|
for (let i = 0; i < nodes.length; i += 1) {
|
|
138
128
|
const item = nodes[i];
|
|
139
129
|
if (isNode$1(item)) {
|
|
140
|
-
if (!this.visit(item, node, key, i))
|
|
141
|
-
i--;
|
|
142
|
-
}
|
|
130
|
+
if (!this.visit(item, node, key, i)) i--;
|
|
143
131
|
}
|
|
144
132
|
}
|
|
145
|
-
} else if (isNode$1(value))
|
|
146
|
-
this.visit(value, node, key, null);
|
|
147
|
-
}
|
|
133
|
+
} else if (isNode$1(value)) this.visit(value, node, key, null);
|
|
148
134
|
}
|
|
149
135
|
}
|
|
150
136
|
if (this.leave) {
|
|
@@ -157,9 +143,7 @@ var SyncWalker = class extends WalkerBase {
|
|
|
157
143
|
node = this.replacement;
|
|
158
144
|
this.replace(parent, prop, index, node);
|
|
159
145
|
}
|
|
160
|
-
if (this.should_remove)
|
|
161
|
-
this.remove(parent, prop, index);
|
|
162
|
-
}
|
|
146
|
+
if (this.should_remove) this.remove(parent, prop, index);
|
|
163
147
|
const removed = this.should_remove;
|
|
164
148
|
this.replacement = _replacement;
|
|
165
149
|
this.should_remove = _should_remove;
|
|
@@ -178,7 +162,6 @@ var SyncWalker = class extends WalkerBase {
|
|
|
178
162
|
function isNode$1(value) {
|
|
179
163
|
return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
|
|
180
164
|
}
|
|
181
|
-
|
|
182
165
|
//#endregion
|
|
183
166
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/async.js
|
|
184
167
|
/**
|
|
@@ -239,9 +222,7 @@ var AsyncWalker = class extends WalkerBase {
|
|
|
239
222
|
node = this.replacement;
|
|
240
223
|
this.replace(parent, prop, index, node);
|
|
241
224
|
}
|
|
242
|
-
if (this.should_remove)
|
|
243
|
-
this.remove(parent, prop, index);
|
|
244
|
-
}
|
|
225
|
+
if (this.should_remove) this.remove(parent, prop, index);
|
|
245
226
|
const skipped = this.should_skip;
|
|
246
227
|
const removed = this.should_remove;
|
|
247
228
|
this.should_skip = _should_skip;
|
|
@@ -261,14 +242,10 @@ var AsyncWalker = class extends WalkerBase {
|
|
|
261
242
|
for (let i = 0; i < nodes.length; i += 1) {
|
|
262
243
|
const item = nodes[i];
|
|
263
244
|
if (isNode(item)) {
|
|
264
|
-
if (!await this.visit(item, node, key, i))
|
|
265
|
-
i--;
|
|
266
|
-
}
|
|
245
|
+
if (!await this.visit(item, node, key, i)) i--;
|
|
267
246
|
}
|
|
268
247
|
}
|
|
269
|
-
} else if (isNode(value))
|
|
270
|
-
await this.visit(value, node, key, null);
|
|
271
|
-
}
|
|
248
|
+
} else if (isNode(value)) await this.visit(value, node, key, null);
|
|
272
249
|
}
|
|
273
250
|
}
|
|
274
251
|
if (this.leave) {
|
|
@@ -281,9 +258,7 @@ var AsyncWalker = class extends WalkerBase {
|
|
|
281
258
|
node = this.replacement;
|
|
282
259
|
this.replace(parent, prop, index, node);
|
|
283
260
|
}
|
|
284
|
-
if (this.should_remove)
|
|
285
|
-
this.remove(parent, prop, index);
|
|
286
|
-
}
|
|
261
|
+
if (this.should_remove) this.remove(parent, prop, index);
|
|
287
262
|
const removed = this.should_remove;
|
|
288
263
|
this.replacement = _replacement;
|
|
289
264
|
this.should_remove = _should_remove;
|
|
@@ -302,7 +277,6 @@ var AsyncWalker = class extends WalkerBase {
|
|
|
302
277
|
function isNode(value) {
|
|
303
278
|
return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
|
|
304
279
|
}
|
|
305
|
-
|
|
306
280
|
//#endregion
|
|
307
281
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/index.js
|
|
308
282
|
/**
|
|
@@ -319,8 +293,7 @@ function isNode(value) {
|
|
|
319
293
|
* @returns {Node | null}
|
|
320
294
|
*/
|
|
321
295
|
function walk(ast, { enter, leave }) {
|
|
322
|
-
|
|
323
|
-
return instance.visit(ast, null);
|
|
296
|
+
return new SyncWalker(enter, leave).visit(ast, null);
|
|
324
297
|
}
|
|
325
298
|
/**
|
|
326
299
|
* @param {Node} ast
|
|
@@ -331,9 +304,7 @@ function walk(ast, { enter, leave }) {
|
|
|
331
304
|
* @returns {Promise<Node | null>}
|
|
332
305
|
*/
|
|
333
306
|
async function asyncWalk(ast, { enter, leave }) {
|
|
334
|
-
|
|
335
|
-
return await instance.visit(ast, null);
|
|
307
|
+
return await new AsyncWalker(enter, leave).visit(ast, null);
|
|
336
308
|
}
|
|
337
|
-
|
|
338
309
|
//#endregion
|
|
339
|
-
export { asyncWalk, walk };
|
|
310
|
+
export { asyncWalk, walk };
|
|
@@ -1,126 +1,38 @@
|
|
|
1
|
-
import { t as __commonJSMin } from "./shared-
|
|
2
|
-
|
|
1
|
+
import { t as __commonJSMin } from "./shared-BelWnsAF.mjs";
|
|
3
2
|
//#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js
|
|
4
3
|
var require_branding = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
5
|
}));
|
|
7
|
-
|
|
8
6
|
//#endregion
|
|
9
7
|
//#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js
|
|
10
8
|
var require_messages = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
const inverted = Symbol("inverted");
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
|
-
const expectNull = Symbol("expectNull");
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
const expectUndefined = Symbol("expectUndefined");
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
const expectNumber = Symbol("expectNumber");
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
const expectString = Symbol("expectString");
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
|
-
const expectBoolean = Symbol("expectBoolean");
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
|
-
const expectVoid = Symbol("expectVoid");
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
|
-
const expectFunction = Symbol("expectFunction");
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
|
-
const expectObject = Symbol("expectObject");
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
const expectArray = Symbol("expectArray");
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
|
-
const expectSymbol = Symbol("expectSymbol");
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
const expectAny = Symbol("expectAny");
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
const expectUnknown = Symbol("expectUnknown");
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
const expectNever = Symbol("expectNever");
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
const expectNullable = Symbol("expectNullable");
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
const expectBigInt = Symbol("expectBigInt");
|
|
76
10
|
}));
|
|
77
|
-
|
|
78
11
|
//#endregion
|
|
79
12
|
//#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js
|
|
80
13
|
var require_overloads = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
81
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
82
15
|
}));
|
|
83
|
-
|
|
84
16
|
//#endregion
|
|
85
17
|
//#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js
|
|
86
18
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
87
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
91
|
-
const secret = Symbol("secret");
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
const mismatch = Symbol("mismatch");
|
|
96
|
-
/**
|
|
97
|
-
* A type which should match anything passed as a value but *doesn't*
|
|
98
|
-
* match {@linkcode Mismatch}. It helps TypeScript select the right overload
|
|
99
|
-
* for {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()} and
|
|
100
|
-
* {@linkcode PositiveExpectTypeOf.toMatchTypeOf | .toMatchTypeOf()}.
|
|
101
|
-
*
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
const avalue = Symbol("avalue");
|
|
105
20
|
}));
|
|
106
|
-
|
|
107
21
|
//#endregion
|
|
108
22
|
//#region ../../node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js
|
|
109
23
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
110
24
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
111
|
-
if (k2 ===
|
|
25
|
+
if (k2 === void 0) k2 = k;
|
|
112
26
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
113
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
};
|
|
120
|
-
}
|
|
27
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function() {
|
|
30
|
+
return m[k];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
121
33
|
Object.defineProperty(o, k2, desc);
|
|
122
34
|
}) : (function(o, m, k, k2) {
|
|
123
|
-
if (k2 ===
|
|
35
|
+
if (k2 === void 0) k2 = k;
|
|
124
36
|
o[k2] = m[k];
|
|
125
37
|
}));
|
|
126
38
|
var __exportStar = exports && exports.__exportStar || function(m, exports$1) {
|
|
@@ -201,13 +113,11 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
201
113
|
toHaveProperty: exports.expectTypeOf,
|
|
202
114
|
parameter: exports.expectTypeOf
|
|
203
115
|
};
|
|
204
|
-
|
|
205
|
-
getterProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) }));
|
|
116
|
+
nonFunctionProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) }));
|
|
206
117
|
return obj;
|
|
207
118
|
};
|
|
208
119
|
exports.expectTypeOf = expectTypeOf;
|
|
209
120
|
}));
|
|
210
|
-
|
|
211
121
|
//#endregion
|
|
212
122
|
const __cjs_export__ = require_dist();
|
|
213
123
|
export const { expectTypeOf } = __cjs_export__;
|