@noma.to/qwik-testing-library 1.2.0 → 1.3.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.
- package/README.md +4 -3
- package/lib/lib/mock.qwik.cjs +3 -3
- package/lib/lib/mock.qwik.mjs +1 -1
- package/lib/lib/qwikloader.qwik.cjs +1 -1
- package/lib/lib/qwikloader.qwik.mjs +1 -1
- package/lib/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.qwik.cjs +89 -0
- package/lib/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.qwik.mjs +89 -0
- package/lib/node_modules/.pnpm/{@vitest_expect@2.1.1 → @vitest_expect@2.1.8}/node_modules/@vitest/expect/dist/index.qwik.cjs +155 -71
- package/lib/node_modules/.pnpm/{@vitest_expect@2.1.1 → @vitest_expect@2.1.8}/node_modules/@vitest/expect/dist/index.qwik.mjs +148 -64
- package/lib/node_modules/.pnpm/{@vitest_pretty-format@2.1.1 → @vitest_pretty-format@2.1.8}/node_modules/@vitest/pretty-format/dist/index.qwik.cjs +11 -5
- package/lib/node_modules/.pnpm/{@vitest_pretty-format@2.1.1 → @vitest_pretty-format@2.1.8}/node_modules/@vitest/pretty-format/dist/index.qwik.mjs +11 -5
- package/lib/node_modules/.pnpm/{@vitest_runner@2.1.1 → @vitest_runner@2.1.8}/node_modules/@vitest/runner/dist/chunk-tasks.qwik.cjs +2 -2
- package/lib/node_modules/.pnpm/{@vitest_runner@2.1.1 → @vitest_runner@2.1.8}/node_modules/@vitest/runner/dist/chunk-tasks.qwik.mjs +2 -2
- package/lib/node_modules/.pnpm/{@vitest_runner@2.1.1 → @vitest_runner@2.1.8}/node_modules/@vitest/runner/dist/index.qwik.cjs +34 -28
- package/lib/node_modules/.pnpm/{@vitest_runner@2.1.1 → @vitest_runner@2.1.8}/node_modules/@vitest/runner/dist/index.qwik.mjs +31 -25
- package/lib/node_modules/.pnpm/{@vitest_snapshot@2.1.1 → @vitest_snapshot@2.1.8}/node_modules/@vitest/snapshot/dist/index.qwik.cjs +863 -460
- package/lib/node_modules/.pnpm/{@vitest_snapshot@2.1.1 → @vitest_snapshot@2.1.8}/node_modules/@vitest/snapshot/dist/index.qwik.mjs +863 -460
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/chunk-display.qwik.cjs → @vitest_utils@2.1.8/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.qwik.cjs} +6 -2
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/chunk-display.qwik.mjs → @vitest_utils@2.1.8/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.qwik.mjs} +6 -2
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@2.1.8}/node_modules/@vitest/utils/dist/diff.qwik.cjs +458 -450
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@2.1.8}/node_modules/@vitest/utils/dist/diff.qwik.mjs +456 -448
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@2.1.8}/node_modules/@vitest/utils/dist/error.qwik.cjs +5 -5
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@2.1.8}/node_modules/@vitest/utils/dist/error.qwik.mjs +2 -2
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@2.1.8}/node_modules/@vitest/utils/dist/helpers.qwik.cjs +1 -1
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@2.1.8}/node_modules/@vitest/utils/dist/helpers.qwik.mjs +1 -1
- package/lib/node_modules/.pnpm/@vitest_utils@2.1.8/node_modules/@vitest/utils/dist/index.qwik.cjs +472 -0
- package/lib/node_modules/.pnpm/@vitest_utils@2.1.8/node_modules/@vitest/utils/dist/index.qwik.mjs +472 -0
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@2.1.8}/node_modules/@vitest/utils/dist/source-map.qwik.cjs +20 -20
- package/lib/node_modules/.pnpm/{@vitest_utils@2.1.1 → @vitest_utils@2.1.8}/node_modules/@vitest/utils/dist/source-map.qwik.mjs +20 -20
- package/lib/node_modules/.pnpm/{chai@5.1.1 → chai@5.1.2}/node_modules/chai/chai.qwik.cjs +71 -39
- package/lib/node_modules/.pnpm/{chai@5.1.1 → chai@5.1.2}/node_modules/chai/chai.qwik.mjs +71 -39
- package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/error.qwik.cjs +7 -1
- package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/error.qwik.mjs +7 -1
- package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/object.qwik.cjs +1 -1
- package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/object.qwik.mjs +1 -1
- package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/string.qwik.cjs +1 -2
- package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/string.qwik.mjs +1 -2
- package/lib/node_modules/.pnpm/{magic-string@0.30.11 → magic-string@0.30.17}/node_modules/magic-string/dist/magic-string.es.qwik.cjs +44 -33
- package/lib/node_modules/.pnpm/{magic-string@0.30.11 → magic-string@0.30.17}/node_modules/magic-string/dist/magic-string.es.qwik.mjs +44 -33
- package/lib/node_modules/.pnpm/vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.qwik.cjs +66 -0
- package/lib/node_modules/.pnpm/vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.qwik.mjs +66 -0
- package/lib/node_modules/.pnpm/vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.DgezovHB.qwik.cjs +2749 -0
- package/lib/node_modules/.pnpm/vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0/node_modules/vitest/dist/chunks/vi.DgezovHB.qwik.mjs +2749 -0
- package/package.json +13 -13
- package/lib/_virtual/_commonjsHelpers.qwik.cjs +0 -4
- package/lib/_virtual/_commonjsHelpers.qwik.mjs +0 -4
- package/lib/_virtual/sourcemap-codec.umd.qwik.cjs +0 -4
- package/lib/_virtual/sourcemap-codec.umd.qwik.mjs +0 -4
- package/lib/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.qwik.cjs +0 -425
- package/lib/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.qwik.mjs +0 -425
- package/lib/node_modules/.pnpm/@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/index.qwik.cjs +0 -81
- package/lib/node_modules/.pnpm/@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/index.qwik.mjs +0 -81
- package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/base.BlXpj3e_.qwik.cjs +0 -6
- package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/base.BlXpj3e_.qwik.mjs +0 -6
- package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/utils.Ck2hJTRs.qwik.cjs +0 -16
- package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/utils.Ck2hJTRs.qwik.mjs +0 -16
- package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/vi.D6IHiKAI.qwik.cjs +0 -2556
- package/lib/node_modules/.pnpm/vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1/node_modules/vitest/dist/chunks/vi.D6IHiKAI.qwik.mjs +0 -2556
- /package/lib/node_modules/.pnpm/{@vitest_spy@2.1.1 → @vitest_spy@2.1.8}/node_modules/@vitest/spy/dist/index.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{@vitest_spy@2.1.1 → @vitest_spy@2.1.8}/node_modules/@vitest/spy/dist/index.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/arguments.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/arguments.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/array.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/array.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/bigint.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/bigint.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/class.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/class.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/date.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/date.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/function.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/function.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/helpers.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/helpers.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/html.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/html.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/index.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/index.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/map.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/map.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/number.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/number.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/promise.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/promise.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/regexp.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/regexp.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/set.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/set.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/symbol.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/symbol.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/typedarray.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{loupe@3.1.1 → loupe@3.1.2}/node_modules/loupe/lib/typedarray.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1 → vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1 → vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.qwik.mjs +0 -0
- /package/lib/node_modules/.pnpm/{vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1 → vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0}/node_modules/vitest/dist/chunks/date.W2xKR2qe.qwik.cjs +0 -0
- /package/lib/node_modules/.pnpm/{vitest@2.1.1_@types_node@22.7.4_@vitest_ui@2.1.1_jsdom@25.0.1 → vitest@2.1.8_@types_node@22.10.3_@vitest_ui@2.1.8_jsdom@26.0.0}/node_modules/vitest/dist/chunks/date.W2xKR2qe.qwik.mjs +0 -0
|
@@ -1,425 +0,0 @@
|
|
|
1
|
-
import { commonjsGlobal } from "../../../../../../../_virtual/_commonjsHelpers.qwik.mjs";
|
|
2
|
-
import { __module as sourcemapCodec_umd } from "../../../../../../../_virtual/sourcemap-codec.umd.qwik.mjs";
|
|
3
|
-
(function(module, exports) {
|
|
4
|
-
(function(global, factory) {
|
|
5
|
-
factory(exports);
|
|
6
|
-
})(commonjsGlobal, function(exports2) {
|
|
7
|
-
const comma = ",".charCodeAt(0);
|
|
8
|
-
const semicolon = ";".charCodeAt(0);
|
|
9
|
-
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
10
|
-
const intToChar = new Uint8Array(64);
|
|
11
|
-
const charToInt = new Uint8Array(128);
|
|
12
|
-
for (let i = 0; i < chars.length; i++) {
|
|
13
|
-
const c = chars.charCodeAt(i);
|
|
14
|
-
intToChar[i] = c;
|
|
15
|
-
charToInt[c] = i;
|
|
16
|
-
}
|
|
17
|
-
function decodeInteger(reader, relative) {
|
|
18
|
-
let value = 0;
|
|
19
|
-
let shift = 0;
|
|
20
|
-
let integer = 0;
|
|
21
|
-
do {
|
|
22
|
-
const c = reader.next();
|
|
23
|
-
integer = charToInt[c];
|
|
24
|
-
value |= (integer & 31) << shift;
|
|
25
|
-
shift += 5;
|
|
26
|
-
} while (integer & 32);
|
|
27
|
-
const shouldNegate = value & 1;
|
|
28
|
-
value >>>= 1;
|
|
29
|
-
if (shouldNegate) {
|
|
30
|
-
value = -2147483648 | -value;
|
|
31
|
-
}
|
|
32
|
-
return relative + value;
|
|
33
|
-
}
|
|
34
|
-
function encodeInteger(builder, num, relative) {
|
|
35
|
-
let delta = num - relative;
|
|
36
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
37
|
-
do {
|
|
38
|
-
let clamped = delta & 31;
|
|
39
|
-
delta >>>= 5;
|
|
40
|
-
if (delta > 0)
|
|
41
|
-
clamped |= 32;
|
|
42
|
-
builder.write(intToChar[clamped]);
|
|
43
|
-
} while (delta > 0);
|
|
44
|
-
return num;
|
|
45
|
-
}
|
|
46
|
-
function hasMoreVlq(reader, max) {
|
|
47
|
-
if (reader.pos >= max)
|
|
48
|
-
return false;
|
|
49
|
-
return reader.peek() !== comma;
|
|
50
|
-
}
|
|
51
|
-
const bufLength = 1024 * 16;
|
|
52
|
-
const td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
|
|
53
|
-
decode(buf) {
|
|
54
|
-
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
55
|
-
return out.toString();
|
|
56
|
-
}
|
|
57
|
-
} : {
|
|
58
|
-
decode(buf) {
|
|
59
|
-
let out = "";
|
|
60
|
-
for (let i = 0; i < buf.length; i++) {
|
|
61
|
-
out += String.fromCharCode(buf[i]);
|
|
62
|
-
}
|
|
63
|
-
return out;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
class StringWriter {
|
|
67
|
-
constructor() {
|
|
68
|
-
this.pos = 0;
|
|
69
|
-
this.out = "";
|
|
70
|
-
this.buffer = new Uint8Array(bufLength);
|
|
71
|
-
}
|
|
72
|
-
write(v) {
|
|
73
|
-
const { buffer } = this;
|
|
74
|
-
buffer[this.pos++] = v;
|
|
75
|
-
if (this.pos === bufLength) {
|
|
76
|
-
this.out += td.decode(buffer);
|
|
77
|
-
this.pos = 0;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
flush() {
|
|
81
|
-
const { buffer, out, pos } = this;
|
|
82
|
-
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
class StringReader {
|
|
86
|
-
constructor(buffer) {
|
|
87
|
-
this.pos = 0;
|
|
88
|
-
this.buffer = buffer;
|
|
89
|
-
}
|
|
90
|
-
next() {
|
|
91
|
-
return this.buffer.charCodeAt(this.pos++);
|
|
92
|
-
}
|
|
93
|
-
peek() {
|
|
94
|
-
return this.buffer.charCodeAt(this.pos);
|
|
95
|
-
}
|
|
96
|
-
indexOf(char) {
|
|
97
|
-
const { buffer, pos } = this;
|
|
98
|
-
const idx = buffer.indexOf(char, pos);
|
|
99
|
-
return idx === -1 ? buffer.length : idx;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
const EMPTY = [];
|
|
103
|
-
function decodeOriginalScopes(input) {
|
|
104
|
-
const { length } = input;
|
|
105
|
-
const reader = new StringReader(input);
|
|
106
|
-
const scopes = [];
|
|
107
|
-
const stack = [];
|
|
108
|
-
let line = 0;
|
|
109
|
-
for (; reader.pos < length; reader.pos++) {
|
|
110
|
-
line = decodeInteger(reader, line);
|
|
111
|
-
const column = decodeInteger(reader, 0);
|
|
112
|
-
if (!hasMoreVlq(reader, length)) {
|
|
113
|
-
const last = stack.pop();
|
|
114
|
-
last[2] = line;
|
|
115
|
-
last[3] = column;
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
const kind = decodeInteger(reader, 0);
|
|
119
|
-
const fields = decodeInteger(reader, 0);
|
|
120
|
-
const hasName = fields & 1;
|
|
121
|
-
const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind];
|
|
122
|
-
let vars = EMPTY;
|
|
123
|
-
if (hasMoreVlq(reader, length)) {
|
|
124
|
-
vars = [];
|
|
125
|
-
do {
|
|
126
|
-
const varsIndex = decodeInteger(reader, 0);
|
|
127
|
-
vars.push(varsIndex);
|
|
128
|
-
} while (hasMoreVlq(reader, length));
|
|
129
|
-
}
|
|
130
|
-
scope.vars = vars;
|
|
131
|
-
scopes.push(scope);
|
|
132
|
-
stack.push(scope);
|
|
133
|
-
}
|
|
134
|
-
return scopes;
|
|
135
|
-
}
|
|
136
|
-
function encodeOriginalScopes(scopes) {
|
|
137
|
-
const writer = new StringWriter();
|
|
138
|
-
for (let i = 0; i < scopes.length; ) {
|
|
139
|
-
i = _encodeOriginalScopes(scopes, i, writer, [0]);
|
|
140
|
-
}
|
|
141
|
-
return writer.flush();
|
|
142
|
-
}
|
|
143
|
-
function _encodeOriginalScopes(scopes, index, writer, state) {
|
|
144
|
-
const scope = scopes[index];
|
|
145
|
-
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;
|
|
146
|
-
if (index > 0)
|
|
147
|
-
writer.write(comma);
|
|
148
|
-
state[0] = encodeInteger(writer, startLine, state[0]);
|
|
149
|
-
encodeInteger(writer, startColumn, 0);
|
|
150
|
-
encodeInteger(writer, kind, 0);
|
|
151
|
-
const fields = scope.length === 6 ? 1 : 0;
|
|
152
|
-
encodeInteger(writer, fields, 0);
|
|
153
|
-
if (scope.length === 6)
|
|
154
|
-
encodeInteger(writer, scope[5], 0);
|
|
155
|
-
for (const v of vars) {
|
|
156
|
-
encodeInteger(writer, v, 0);
|
|
157
|
-
}
|
|
158
|
-
for (index++; index < scopes.length; ) {
|
|
159
|
-
const next = scopes[index];
|
|
160
|
-
const { 0: l, 1: c } = next;
|
|
161
|
-
if (l > endLine || l === endLine && c >= endColumn) {
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
index = _encodeOriginalScopes(scopes, index, writer, state);
|
|
165
|
-
}
|
|
166
|
-
writer.write(comma);
|
|
167
|
-
state[0] = encodeInteger(writer, endLine, state[0]);
|
|
168
|
-
encodeInteger(writer, endColumn, 0);
|
|
169
|
-
return index;
|
|
170
|
-
}
|
|
171
|
-
function decodeGeneratedRanges(input) {
|
|
172
|
-
const { length } = input;
|
|
173
|
-
const reader = new StringReader(input);
|
|
174
|
-
const ranges = [];
|
|
175
|
-
const stack = [];
|
|
176
|
-
let genLine = 0;
|
|
177
|
-
let definitionSourcesIndex = 0;
|
|
178
|
-
let definitionScopeIndex = 0;
|
|
179
|
-
let callsiteSourcesIndex = 0;
|
|
180
|
-
let callsiteLine = 0;
|
|
181
|
-
let callsiteColumn = 0;
|
|
182
|
-
let bindingLine = 0;
|
|
183
|
-
let bindingColumn = 0;
|
|
184
|
-
do {
|
|
185
|
-
const semi = reader.indexOf(";");
|
|
186
|
-
let genColumn = 0;
|
|
187
|
-
for (; reader.pos < semi; reader.pos++) {
|
|
188
|
-
genColumn = decodeInteger(reader, genColumn);
|
|
189
|
-
if (!hasMoreVlq(reader, semi)) {
|
|
190
|
-
const last = stack.pop();
|
|
191
|
-
last[2] = genLine;
|
|
192
|
-
last[3] = genColumn;
|
|
193
|
-
continue;
|
|
194
|
-
}
|
|
195
|
-
const fields = decodeInteger(reader, 0);
|
|
196
|
-
const hasDefinition = fields & 1;
|
|
197
|
-
const hasCallsite = fields & 2;
|
|
198
|
-
const hasScope = fields & 4;
|
|
199
|
-
let callsite = null;
|
|
200
|
-
let bindings = EMPTY;
|
|
201
|
-
let range;
|
|
202
|
-
if (hasDefinition) {
|
|
203
|
-
const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);
|
|
204
|
-
definitionScopeIndex = decodeInteger(reader, definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);
|
|
205
|
-
definitionSourcesIndex = defSourcesIndex;
|
|
206
|
-
range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];
|
|
207
|
-
} else {
|
|
208
|
-
range = [genLine, genColumn, 0, 0];
|
|
209
|
-
}
|
|
210
|
-
range.isScope = !!hasScope;
|
|
211
|
-
if (hasCallsite) {
|
|
212
|
-
const prevCsi = callsiteSourcesIndex;
|
|
213
|
-
const prevLine = callsiteLine;
|
|
214
|
-
callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);
|
|
215
|
-
const sameSource = prevCsi === callsiteSourcesIndex;
|
|
216
|
-
callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0);
|
|
217
|
-
callsiteColumn = decodeInteger(reader, sameSource && prevLine === callsiteLine ? callsiteColumn : 0);
|
|
218
|
-
callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
|
|
219
|
-
}
|
|
220
|
-
range.callsite = callsite;
|
|
221
|
-
if (hasMoreVlq(reader, semi)) {
|
|
222
|
-
bindings = [];
|
|
223
|
-
do {
|
|
224
|
-
bindingLine = genLine;
|
|
225
|
-
bindingColumn = genColumn;
|
|
226
|
-
const expressionsCount = decodeInteger(reader, 0);
|
|
227
|
-
let expressionRanges;
|
|
228
|
-
if (expressionsCount < -1) {
|
|
229
|
-
expressionRanges = [[decodeInteger(reader, 0)]];
|
|
230
|
-
for (let i = -1; i > expressionsCount; i--) {
|
|
231
|
-
const prevBl = bindingLine;
|
|
232
|
-
bindingLine = decodeInteger(reader, bindingLine);
|
|
233
|
-
bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);
|
|
234
|
-
const expression = decodeInteger(reader, 0);
|
|
235
|
-
expressionRanges.push([expression, bindingLine, bindingColumn]);
|
|
236
|
-
}
|
|
237
|
-
} else {
|
|
238
|
-
expressionRanges = [[expressionsCount]];
|
|
239
|
-
}
|
|
240
|
-
bindings.push(expressionRanges);
|
|
241
|
-
} while (hasMoreVlq(reader, semi));
|
|
242
|
-
}
|
|
243
|
-
range.bindings = bindings;
|
|
244
|
-
ranges.push(range);
|
|
245
|
-
stack.push(range);
|
|
246
|
-
}
|
|
247
|
-
genLine++;
|
|
248
|
-
reader.pos = semi + 1;
|
|
249
|
-
} while (reader.pos < length);
|
|
250
|
-
return ranges;
|
|
251
|
-
}
|
|
252
|
-
function encodeGeneratedRanges(ranges) {
|
|
253
|
-
if (ranges.length === 0)
|
|
254
|
-
return "";
|
|
255
|
-
const writer = new StringWriter();
|
|
256
|
-
for (let i = 0; i < ranges.length; ) {
|
|
257
|
-
i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);
|
|
258
|
-
}
|
|
259
|
-
return writer.flush();
|
|
260
|
-
}
|
|
261
|
-
function _encodeGeneratedRanges(ranges, index, writer, state) {
|
|
262
|
-
const range = ranges[index];
|
|
263
|
-
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, isScope, callsite, bindings } = range;
|
|
264
|
-
if (state[0] < startLine) {
|
|
265
|
-
catchupLine(writer, state[0], startLine);
|
|
266
|
-
state[0] = startLine;
|
|
267
|
-
state[1] = 0;
|
|
268
|
-
} else if (index > 0) {
|
|
269
|
-
writer.write(comma);
|
|
270
|
-
}
|
|
271
|
-
state[1] = encodeInteger(writer, range[1], state[1]);
|
|
272
|
-
const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
|
|
273
|
-
encodeInteger(writer, fields, 0);
|
|
274
|
-
if (range.length === 6) {
|
|
275
|
-
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
|
276
|
-
if (sourcesIndex !== state[2]) {
|
|
277
|
-
state[3] = 0;
|
|
278
|
-
}
|
|
279
|
-
state[2] = encodeInteger(writer, sourcesIndex, state[2]);
|
|
280
|
-
state[3] = encodeInteger(writer, scopesIndex, state[3]);
|
|
281
|
-
}
|
|
282
|
-
if (callsite) {
|
|
283
|
-
const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;
|
|
284
|
-
if (sourcesIndex !== state[4]) {
|
|
285
|
-
state[5] = 0;
|
|
286
|
-
state[6] = 0;
|
|
287
|
-
} else if (callLine !== state[5]) {
|
|
288
|
-
state[6] = 0;
|
|
289
|
-
}
|
|
290
|
-
state[4] = encodeInteger(writer, sourcesIndex, state[4]);
|
|
291
|
-
state[5] = encodeInteger(writer, callLine, state[5]);
|
|
292
|
-
state[6] = encodeInteger(writer, callColumn, state[6]);
|
|
293
|
-
}
|
|
294
|
-
if (bindings) {
|
|
295
|
-
for (const binding of bindings) {
|
|
296
|
-
if (binding.length > 1)
|
|
297
|
-
encodeInteger(writer, -binding.length, 0);
|
|
298
|
-
const expression = binding[0][0];
|
|
299
|
-
encodeInteger(writer, expression, 0);
|
|
300
|
-
let bindingStartLine = startLine;
|
|
301
|
-
let bindingStartColumn = startColumn;
|
|
302
|
-
for (let i = 1; i < binding.length; i++) {
|
|
303
|
-
const expRange = binding[i];
|
|
304
|
-
bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine);
|
|
305
|
-
bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn);
|
|
306
|
-
encodeInteger(writer, expRange[0], 0);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
for (index++; index < ranges.length; ) {
|
|
311
|
-
const next = ranges[index];
|
|
312
|
-
const { 0: l, 1: c } = next;
|
|
313
|
-
if (l > endLine || l === endLine && c >= endColumn) {
|
|
314
|
-
break;
|
|
315
|
-
}
|
|
316
|
-
index = _encodeGeneratedRanges(ranges, index, writer, state);
|
|
317
|
-
}
|
|
318
|
-
if (state[0] < endLine) {
|
|
319
|
-
catchupLine(writer, state[0], endLine);
|
|
320
|
-
state[0] = endLine;
|
|
321
|
-
state[1] = 0;
|
|
322
|
-
} else {
|
|
323
|
-
writer.write(comma);
|
|
324
|
-
}
|
|
325
|
-
state[1] = encodeInteger(writer, endColumn, state[1]);
|
|
326
|
-
return index;
|
|
327
|
-
}
|
|
328
|
-
function catchupLine(writer, lastLine, line) {
|
|
329
|
-
do {
|
|
330
|
-
writer.write(semicolon);
|
|
331
|
-
} while (++lastLine < line);
|
|
332
|
-
}
|
|
333
|
-
function decode(mappings) {
|
|
334
|
-
const { length } = mappings;
|
|
335
|
-
const reader = new StringReader(mappings);
|
|
336
|
-
const decoded = [];
|
|
337
|
-
let genColumn = 0;
|
|
338
|
-
let sourcesIndex = 0;
|
|
339
|
-
let sourceLine = 0;
|
|
340
|
-
let sourceColumn = 0;
|
|
341
|
-
let namesIndex = 0;
|
|
342
|
-
do {
|
|
343
|
-
const semi = reader.indexOf(";");
|
|
344
|
-
const line = [];
|
|
345
|
-
let sorted = true;
|
|
346
|
-
let lastCol = 0;
|
|
347
|
-
genColumn = 0;
|
|
348
|
-
while (reader.pos < semi) {
|
|
349
|
-
let seg;
|
|
350
|
-
genColumn = decodeInteger(reader, genColumn);
|
|
351
|
-
if (genColumn < lastCol)
|
|
352
|
-
sorted = false;
|
|
353
|
-
lastCol = genColumn;
|
|
354
|
-
if (hasMoreVlq(reader, semi)) {
|
|
355
|
-
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
|
356
|
-
sourceLine = decodeInteger(reader, sourceLine);
|
|
357
|
-
sourceColumn = decodeInteger(reader, sourceColumn);
|
|
358
|
-
if (hasMoreVlq(reader, semi)) {
|
|
359
|
-
namesIndex = decodeInteger(reader, namesIndex);
|
|
360
|
-
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
|
361
|
-
} else {
|
|
362
|
-
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
|
363
|
-
}
|
|
364
|
-
} else {
|
|
365
|
-
seg = [genColumn];
|
|
366
|
-
}
|
|
367
|
-
line.push(seg);
|
|
368
|
-
reader.pos++;
|
|
369
|
-
}
|
|
370
|
-
if (!sorted)
|
|
371
|
-
sort(line);
|
|
372
|
-
decoded.push(line);
|
|
373
|
-
reader.pos = semi + 1;
|
|
374
|
-
} while (reader.pos <= length);
|
|
375
|
-
return decoded;
|
|
376
|
-
}
|
|
377
|
-
function sort(line) {
|
|
378
|
-
line.sort(sortComparator);
|
|
379
|
-
}
|
|
380
|
-
function sortComparator(a, b) {
|
|
381
|
-
return a[0] - b[0];
|
|
382
|
-
}
|
|
383
|
-
function encode(decoded) {
|
|
384
|
-
const writer = new StringWriter();
|
|
385
|
-
let sourcesIndex = 0;
|
|
386
|
-
let sourceLine = 0;
|
|
387
|
-
let sourceColumn = 0;
|
|
388
|
-
let namesIndex = 0;
|
|
389
|
-
for (let i = 0; i < decoded.length; i++) {
|
|
390
|
-
const line = decoded[i];
|
|
391
|
-
if (i > 0)
|
|
392
|
-
writer.write(semicolon);
|
|
393
|
-
if (line.length === 0)
|
|
394
|
-
continue;
|
|
395
|
-
let genColumn = 0;
|
|
396
|
-
for (let j = 0; j < line.length; j++) {
|
|
397
|
-
const segment = line[j];
|
|
398
|
-
if (j > 0)
|
|
399
|
-
writer.write(comma);
|
|
400
|
-
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
401
|
-
if (segment.length === 1)
|
|
402
|
-
continue;
|
|
403
|
-
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
404
|
-
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
405
|
-
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
406
|
-
if (segment.length === 4)
|
|
407
|
-
continue;
|
|
408
|
-
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
return writer.flush();
|
|
412
|
-
}
|
|
413
|
-
exports2.decode = decode;
|
|
414
|
-
exports2.decodeGeneratedRanges = decodeGeneratedRanges;
|
|
415
|
-
exports2.decodeOriginalScopes = decodeOriginalScopes;
|
|
416
|
-
exports2.encode = encode;
|
|
417
|
-
exports2.encodeGeneratedRanges = encodeGeneratedRanges;
|
|
418
|
-
exports2.encodeOriginalScopes = encodeOriginalScopes;
|
|
419
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
420
|
-
});
|
|
421
|
-
})(sourcemapCodec_umd, sourcemapCodec_umd.exports);
|
|
422
|
-
var sourcemapCodec_umdExports = sourcemapCodec_umd.exports;
|
|
423
|
-
export {
|
|
424
|
-
sourcemapCodec_umdExports as s
|
|
425
|
-
};
|
package/lib/node_modules/.pnpm/@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/index.qwik.cjs
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
require("../../../../../tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/browser.qwik.cjs");
|
|
4
|
-
require("../../../../../loupe@3.1.1/node_modules/loupe/lib/index.qwik.cjs");
|
|
5
|
-
const SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
|
|
6
|
-
function getSafeTimers() {
|
|
7
|
-
const {
|
|
8
|
-
setTimeout: safeSetTimeout,
|
|
9
|
-
setInterval: safeSetInterval,
|
|
10
|
-
clearInterval: safeClearInterval,
|
|
11
|
-
clearTimeout: safeClearTimeout,
|
|
12
|
-
setImmediate: safeSetImmediate,
|
|
13
|
-
clearImmediate: safeClearImmediate
|
|
14
|
-
} = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
|
|
15
|
-
const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || { nextTick: (cb) => cb() };
|
|
16
|
-
return {
|
|
17
|
-
nextTick: safeNextTick,
|
|
18
|
-
setTimeout: safeSetTimeout,
|
|
19
|
-
setInterval: safeSetInterval,
|
|
20
|
-
clearInterval: safeClearInterval,
|
|
21
|
-
clearTimeout: safeClearTimeout,
|
|
22
|
-
setImmediate: safeSetImmediate,
|
|
23
|
-
clearImmediate: safeClearImmediate
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
var LineTerminatorSequence;
|
|
27
|
-
LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y;
|
|
28
|
-
RegExp(LineTerminatorSequence.source);
|
|
29
|
-
var reservedWords = {
|
|
30
|
-
keyword: [
|
|
31
|
-
"break",
|
|
32
|
-
"case",
|
|
33
|
-
"catch",
|
|
34
|
-
"continue",
|
|
35
|
-
"debugger",
|
|
36
|
-
"default",
|
|
37
|
-
"do",
|
|
38
|
-
"else",
|
|
39
|
-
"finally",
|
|
40
|
-
"for",
|
|
41
|
-
"function",
|
|
42
|
-
"if",
|
|
43
|
-
"return",
|
|
44
|
-
"switch",
|
|
45
|
-
"throw",
|
|
46
|
-
"try",
|
|
47
|
-
"var",
|
|
48
|
-
"const",
|
|
49
|
-
"while",
|
|
50
|
-
"with",
|
|
51
|
-
"new",
|
|
52
|
-
"this",
|
|
53
|
-
"super",
|
|
54
|
-
"class",
|
|
55
|
-
"extends",
|
|
56
|
-
"export",
|
|
57
|
-
"import",
|
|
58
|
-
"null",
|
|
59
|
-
"true",
|
|
60
|
-
"false",
|
|
61
|
-
"in",
|
|
62
|
-
"instanceof",
|
|
63
|
-
"typeof",
|
|
64
|
-
"void",
|
|
65
|
-
"delete"
|
|
66
|
-
],
|
|
67
|
-
strict: [
|
|
68
|
-
"implements",
|
|
69
|
-
"interface",
|
|
70
|
-
"let",
|
|
71
|
-
"package",
|
|
72
|
-
"private",
|
|
73
|
-
"protected",
|
|
74
|
-
"public",
|
|
75
|
-
"static",
|
|
76
|
-
"yield"
|
|
77
|
-
]
|
|
78
|
-
};
|
|
79
|
-
new Set(reservedWords.keyword);
|
|
80
|
-
new Set(reservedWords.strict);
|
|
81
|
-
exports.getSafeTimers = getSafeTimers;
|
package/lib/node_modules/.pnpm/@vitest_utils@2.1.1/node_modules/@vitest/utils/dist/index.qwik.mjs
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import "../../../../../tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/browser.qwik.mjs";
|
|
2
|
-
import "../../../../../loupe@3.1.1/node_modules/loupe/lib/index.qwik.mjs";
|
|
3
|
-
const SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS");
|
|
4
|
-
function getSafeTimers() {
|
|
5
|
-
const {
|
|
6
|
-
setTimeout: safeSetTimeout,
|
|
7
|
-
setInterval: safeSetInterval,
|
|
8
|
-
clearInterval: safeClearInterval,
|
|
9
|
-
clearTimeout: safeClearTimeout,
|
|
10
|
-
setImmediate: safeSetImmediate,
|
|
11
|
-
clearImmediate: safeClearImmediate
|
|
12
|
-
} = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;
|
|
13
|
-
const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || { nextTick: (cb) => cb() };
|
|
14
|
-
return {
|
|
15
|
-
nextTick: safeNextTick,
|
|
16
|
-
setTimeout: safeSetTimeout,
|
|
17
|
-
setInterval: safeSetInterval,
|
|
18
|
-
clearInterval: safeClearInterval,
|
|
19
|
-
clearTimeout: safeClearTimeout,
|
|
20
|
-
setImmediate: safeSetImmediate,
|
|
21
|
-
clearImmediate: safeClearImmediate
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
var LineTerminatorSequence;
|
|
25
|
-
LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y;
|
|
26
|
-
RegExp(LineTerminatorSequence.source);
|
|
27
|
-
var reservedWords = {
|
|
28
|
-
keyword: [
|
|
29
|
-
"break",
|
|
30
|
-
"case",
|
|
31
|
-
"catch",
|
|
32
|
-
"continue",
|
|
33
|
-
"debugger",
|
|
34
|
-
"default",
|
|
35
|
-
"do",
|
|
36
|
-
"else",
|
|
37
|
-
"finally",
|
|
38
|
-
"for",
|
|
39
|
-
"function",
|
|
40
|
-
"if",
|
|
41
|
-
"return",
|
|
42
|
-
"switch",
|
|
43
|
-
"throw",
|
|
44
|
-
"try",
|
|
45
|
-
"var",
|
|
46
|
-
"const",
|
|
47
|
-
"while",
|
|
48
|
-
"with",
|
|
49
|
-
"new",
|
|
50
|
-
"this",
|
|
51
|
-
"super",
|
|
52
|
-
"class",
|
|
53
|
-
"extends",
|
|
54
|
-
"export",
|
|
55
|
-
"import",
|
|
56
|
-
"null",
|
|
57
|
-
"true",
|
|
58
|
-
"false",
|
|
59
|
-
"in",
|
|
60
|
-
"instanceof",
|
|
61
|
-
"typeof",
|
|
62
|
-
"void",
|
|
63
|
-
"delete"
|
|
64
|
-
],
|
|
65
|
-
strict: [
|
|
66
|
-
"implements",
|
|
67
|
-
"interface",
|
|
68
|
-
"let",
|
|
69
|
-
"package",
|
|
70
|
-
"private",
|
|
71
|
-
"protected",
|
|
72
|
-
"public",
|
|
73
|
-
"static",
|
|
74
|
-
"yield"
|
|
75
|
-
]
|
|
76
|
-
};
|
|
77
|
-
new Set(reservedWords.keyword);
|
|
78
|
-
new Set(reservedWords.strict);
|
|
79
|
-
export {
|
|
80
|
-
getSafeTimers
|
|
81
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
function getWorkerState() {
|
|
4
|
-
const workerState = globalThis.__vitest_worker__;
|
|
5
|
-
if (!workerState) {
|
|
6
|
-
const errorMsg = 'Vitest failed to access its internal state.\n\nOne of the following is possible:\n- "vitest" is imported directly without running "vitest" command\n- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\n';
|
|
7
|
-
throw new Error(errorMsg);
|
|
8
|
-
}
|
|
9
|
-
return workerState;
|
|
10
|
-
}
|
|
11
|
-
function getCurrentEnvironment() {
|
|
12
|
-
const state = getWorkerState();
|
|
13
|
-
return state?.environment.name;
|
|
14
|
-
}
|
|
15
|
-
exports.a = getCurrentEnvironment;
|
|
16
|
-
exports.g = getWorkerState;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
function getWorkerState() {
|
|
2
|
-
const workerState = globalThis.__vitest_worker__;
|
|
3
|
-
if (!workerState) {
|
|
4
|
-
const errorMsg = 'Vitest failed to access its internal state.\n\nOne of the following is possible:\n- "vitest" is imported directly without running "vitest" command\n- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\n';
|
|
5
|
-
throw new Error(errorMsg);
|
|
6
|
-
}
|
|
7
|
-
return workerState;
|
|
8
|
-
}
|
|
9
|
-
function getCurrentEnvironment() {
|
|
10
|
-
const state = getWorkerState();
|
|
11
|
-
return state?.environment.name;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
getCurrentEnvironment as a,
|
|
15
|
-
getWorkerState as g
|
|
16
|
-
};
|