@rstest/core 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/dist/{0~89.js → 0~8843.js} +49 -33
- package/dist/{0~1472.js → 0~browserLoader.js} +5 -5
- package/dist/{0~7882.js → 0~browser~1.js} +46 -47
- package/dist/{0~8426.js → 0~checkThresholds.js} +2 -2
- package/dist/{0~130.js → 0~console.js} +15 -17
- package/dist/0~dist.js +1014 -0
- package/dist/{0~7583.js → 0~esm.js} +68 -70
- package/dist/{0~4403.js → 0~generate.js} +5 -6
- package/dist/{0~4809.js → 0~happyDom.js} +2 -2
- package/dist/{0~3346.js → 0~interop.js} +0 -1
- package/dist/{0~62.js → 0~jsdom.js} +2 -2
- package/dist/{0~262.js → 0~lib.js} +4 -1
- package/dist/{0~9634.js → 0~listTests.js} +14 -23
- package/dist/{0~6923.js → 0~loadEsModule.js} +16 -8
- package/dist/{0~5835.js → 0~loadModule.js} +27 -14
- package/dist/{0~6907.js → 0~magic-string.es.js} +2 -1
- package/dist/{0~2255.js → 0~plugin.js} +2 -4
- package/dist/{0~6588.js → 0~restart.js} +7 -11
- package/dist/{0~2173.js → 0~runTests.js} +27 -19
- package/dist/{487.js → 1255.js} +22 -15
- package/dist/{6151.js → 1949.js} +3027 -36
- package/dist/{6973.js → 255.js} +7 -8
- package/dist/{9131.js → 3145.js} +220 -486
- package/dist/{1157.js → 4411.js} +35 -35
- package/dist/{4484.js → 5040.js} +1 -2
- package/dist/{3160.js → 6830.js} +396 -93
- package/dist/7011.js +1 -1
- package/dist/{1294.js → 7552.js} +28 -22
- package/dist/{5734.js → 7704.js} +6 -5
- package/dist/browser-runtime/{2~907.js → 2~magic-string.es.js} +18 -11
- package/dist/browser-runtime/{389.js → 723.js} +3059 -80
- package/dist/browser-runtime/{389.js.LICENSE.txt → 723.js.LICENSE.txt} +0 -22
- package/dist/browser-runtime/index.js +1 -1
- package/dist/browser-runtime/rslib-runtime.js +11 -3
- package/dist/browser.js +9 -7
- package/dist/globalSetupWorker.js +4 -13
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/mockRuntimeCode.js +15 -9
- package/dist/rslib-runtime.js +5 -8
- package/dist/worker.js +23 -46
- package/package.json +12 -10
- package/dist/0~1240.js +0 -951
- package/dist/0~1981.js +0 -2
- package/dist/3160.js.LICENSE.txt +0 -21
- package/dist/4881.js +0 -2
- package/dist/6198.js +0 -2
- package/dist/721.js +0 -8
- /package/dist/{0~7583.js.LICENSE.txt → 0~esm.js.LICENSE.txt} +0 -0
- /package/dist/{0~3062.js → 0~utils.js} +0 -0
- /package/dist/{6151.js.LICENSE.txt → 1949.js.LICENSE.txt} +0 -0
- /package/dist/{4597.js → 1983.js} +0 -0
- /package/dist/{1294.js.LICENSE.txt → 7552.js.LICENSE.txt} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { isAbsolute } from "node:path";
|
|
4
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
|
+
import node_vm from "node:vm";
|
|
6
|
+
import { logger as logger_logger } from "./6830.js";
|
|
7
7
|
import { posix } from "./7011.js";
|
|
8
|
-
|
|
8
|
+
import { interopModule, asModule, shouldInterop } from "./0~interop.js";
|
|
9
9
|
const isRelativePath = (p)=>/^\.\.?\//.test(p);
|
|
10
|
-
const
|
|
10
|
+
const loadModule_createRequire = (filename, distPath, rstestContext, assetFiles, interopDefault)=>{
|
|
11
11
|
const _require = (()=>{
|
|
12
12
|
try {
|
|
13
|
-
return
|
|
13
|
+
return createRequire(filename);
|
|
14
14
|
} catch (_err) {
|
|
15
|
-
return
|
|
15
|
+
return createRequire(distPath);
|
|
16
16
|
}
|
|
17
17
|
})();
|
|
18
18
|
const require = (id)=>{
|
|
@@ -38,9 +38,20 @@ const createRequire = (filename, distPath, rstestContext, assetFiles, interopDef
|
|
|
38
38
|
require.main = _require.main;
|
|
39
39
|
return require;
|
|
40
40
|
};
|
|
41
|
-
const defineRstestDynamicImport = ({ testPath, interopDefault, returnModule = false })=>async (specifier, importAttributes)=>{
|
|
42
|
-
const resolvedPath =
|
|
41
|
+
const defineRstestDynamicImport = ({ testPath, interopDefault, returnModule = false, assetFiles })=>async (specifier, importAttributes)=>{
|
|
42
|
+
const resolvedPath = isAbsolute(specifier) ? pathToFileURL(specifier) : import.meta.resolve(specifier, pathToFileURL(testPath));
|
|
43
43
|
const modulePath = 'string' == typeof resolvedPath ? resolvedPath : resolvedPath.pathname;
|
|
44
|
+
if (modulePath.endsWith('.wasm')) {
|
|
45
|
+
const normalizedPath = posix.normalize(modulePath.startsWith('file://') ? fileURLToPath(modulePath) : modulePath);
|
|
46
|
+
const content = assetFiles[normalizedPath];
|
|
47
|
+
if (content) {
|
|
48
|
+
const wasmBuffer = Buffer.from(content, 'base64');
|
|
49
|
+
const wasmModule = await WebAssembly.compile(wasmBuffer);
|
|
50
|
+
const wasmInstance = await WebAssembly.instantiate(wasmModule);
|
|
51
|
+
const exports = wasmInstance.exports;
|
|
52
|
+
return returnModule ? asModule(exports, exports) : exports;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
44
55
|
if (importAttributes?.with?.rstest) delete importAttributes.with.rstest;
|
|
45
56
|
if (modulePath.endsWith('.json')) {
|
|
46
57
|
const importedModule = await import(modulePath, {
|
|
@@ -97,7 +108,7 @@ const loadModule = ({ codeContent, distPath, testPath, rstestContext, assetFiles
|
|
|
97
108
|
const context = {
|
|
98
109
|
module: localModule,
|
|
99
110
|
exports: localModule.exports,
|
|
100
|
-
require:
|
|
111
|
+
require: loadModule_createRequire(testPath, distPath, rstestContext, assetFiles, interopDefault),
|
|
101
112
|
readWasmFile: (wasmPath, callback)=>{
|
|
102
113
|
const joinedPath = isRelativePath(wasmPath) ? posix.join(posix.dirname(distPath), wasmPath) : wasmPath;
|
|
103
114
|
const content = assetFiles[posix.normalize(joinedPath)];
|
|
@@ -106,7 +117,8 @@ const loadModule = ({ codeContent, distPath, testPath, rstestContext, assetFiles
|
|
|
106
117
|
},
|
|
107
118
|
__rstest_dynamic_import__: defineRstestDynamicImport({
|
|
108
119
|
testPath,
|
|
109
|
-
interopDefault
|
|
120
|
+
interopDefault,
|
|
121
|
+
assetFiles
|
|
110
122
|
}),
|
|
111
123
|
__dirname: fileDir,
|
|
112
124
|
__filename: testPath,
|
|
@@ -121,7 +133,8 @@ const loadModule = ({ codeContent, distPath, testPath, rstestContext, assetFiles
|
|
|
121
133
|
importModuleDynamically: (specifier, _referencer, importAttributes)=>defineRstestDynamicImport({
|
|
122
134
|
testPath,
|
|
123
135
|
interopDefault,
|
|
124
|
-
returnModule: true
|
|
136
|
+
returnModule: true,
|
|
137
|
+
assetFiles
|
|
125
138
|
})(specifier, importAttributes)
|
|
126
139
|
});
|
|
127
140
|
fn(...Object.values(context));
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import
|
|
3
|
-
import "./3160.js";
|
|
4
|
-
const external_node_fs_ = __webpack_require__("node:fs");
|
|
2
|
+
import node_fs from "node:fs";
|
|
5
3
|
const pluginCoverageCore = (coverageOptions)=>({
|
|
6
4
|
name: 'rstest:coverage-core',
|
|
7
5
|
setup: (api)=>{
|
|
8
6
|
api.onBeforeDevCompile(({ isFirstCompile })=>{
|
|
9
7
|
if (isFirstCompile && coverageOptions.clean) {
|
|
10
|
-
if (
|
|
8
|
+
if (node_fs.existsSync(coverageOptions.reportsDirectory)) node_fs.rmSync(coverageOptions.reportsDirectory, {
|
|
11
9
|
recursive: true
|
|
12
10
|
});
|
|
13
11
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import "node:module";
|
|
2
2
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
3
|
+
import node_path from "node:path";
|
|
4
|
+
import { color, logger as logger_logger, isTTY } from "./6830.js";
|
|
5
|
+
import { runRest } from "./3145.js";
|
|
6
|
+
import "./4411.js";
|
|
6
7
|
const GLOB_REGEX = /[*?{}[\]()!@+|]/;
|
|
7
8
|
const isGlob = (str)=>GLOB_REGEX.test(str);
|
|
8
9
|
async function createChokidar(pathOrGlobs, root, options) {
|
|
9
|
-
const chokidar = await import("./0~
|
|
10
|
-
watch: mod.watch
|
|
11
|
-
}));
|
|
10
|
+
const chokidar = await import("./0~esm.js");
|
|
12
11
|
const watchFiles = new Set();
|
|
13
12
|
const globPatterns = pathOrGlobs.filter((pathOrGlob)=>{
|
|
14
13
|
if (isGlob(pathOrGlob)) return true;
|
|
@@ -16,9 +15,7 @@ async function createChokidar(pathOrGlobs, root, options) {
|
|
|
16
15
|
return false;
|
|
17
16
|
});
|
|
18
17
|
if (globPatterns.length) {
|
|
19
|
-
const { glob } = await import("./
|
|
20
|
-
glob: mod.glob
|
|
21
|
-
}));
|
|
18
|
+
const { glob } = await import("./4411.js");
|
|
22
19
|
const files = await glob(globPatterns, {
|
|
23
20
|
cwd: root,
|
|
24
21
|
absolute: true
|
|
@@ -27,7 +24,6 @@ async function createChokidar(pathOrGlobs, root, options) {
|
|
|
27
24
|
}
|
|
28
25
|
return chokidar.watch(Array.from(watchFiles), options);
|
|
29
26
|
}
|
|
30
|
-
const external_node_path_ = __webpack_require__("node:path");
|
|
31
27
|
const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
32
28
|
let cleaners = [];
|
|
33
29
|
const onBeforeRestart = (cleaner)=>{
|
|
@@ -39,7 +35,7 @@ const clearConsole = ()=>{
|
|
|
39
35
|
const beforeRestart = async ({ filePath, root, clear = true })=>{
|
|
40
36
|
if (clear) clearConsole();
|
|
41
37
|
if (filePath) {
|
|
42
|
-
const filename =
|
|
38
|
+
const filename = node_path.relative(root, filePath);
|
|
43
39
|
logger_logger.info(`restarting Rstest as ${color.yellow(filename)} changed\n`);
|
|
44
40
|
} else logger_logger.info('restarting Rstest...\n');
|
|
45
41
|
for (const cleaner of cleaners)await cleaner();
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { constants } from "node:os";
|
|
3
|
+
import { resolveShardedEntries, getTestEntries } from "./4411.js";
|
|
4
|
+
import { createCoverageProvider } from "./7704.js";
|
|
5
|
+
import { prepareRsbuild, createPool, createRsbuildServer, runGlobalTeardown, runGlobalSetup } from "./0~8843.js";
|
|
6
|
+
import { loadBrowserModule } from "./0~browserLoader.js";
|
|
7
|
+
import { logger as logger_logger, isTTY, color, clearScreen } from "./6830.js";
|
|
7
8
|
const isCliShortcutsEnabled = ()=>isTTY('stdin');
|
|
8
9
|
async function setupCliShortcuts({ closeServer, runAll, updateSnapshot, runFailedTests, runWithTestNamePattern, runWithFileFilters }) {
|
|
9
10
|
const { createInterface, emitKeypressEvents } = await import("node:readline");
|
|
@@ -32,6 +33,10 @@ async function setupCliShortcuts({ closeServer, runAll, updateSnapshot, runFaile
|
|
|
32
33
|
const onPromptKey = async (str, key)=>{
|
|
33
34
|
if (!isPrompting) return;
|
|
34
35
|
if (key.ctrl && 'c' === key.name) return void process.kill(process.pid, 'SIGINT');
|
|
36
|
+
if (key.ctrl && 'z' === key.name) {
|
|
37
|
+
if ('win32' !== process.platform) process.kill(process.pid, 'SIGTSTP');
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
35
40
|
if ('return' === key.name || 'enter' === key.name) {
|
|
36
41
|
process.stdin.off('keypress', onPromptKey);
|
|
37
42
|
process.stdout.write('\n');
|
|
@@ -123,6 +128,10 @@ async function setupCliShortcuts({ closeServer, runAll, updateSnapshot, runFaile
|
|
|
123
128
|
const handleKeypress = (str, key)=>{
|
|
124
129
|
if (isPrompting) return;
|
|
125
130
|
if (key.ctrl && 'c' === key.name) return void process.kill(process.pid, 'SIGINT');
|
|
131
|
+
if (key.ctrl && 'z' === key.name) {
|
|
132
|
+
if ('win32' !== process.platform) process.kill(process.pid, 'SIGTSTP');
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
126
135
|
for (const shortcut of shortcuts)if (str === shortcut.key) {
|
|
127
136
|
clearCurrentInputLine();
|
|
128
137
|
shortcut.action();
|
|
@@ -153,6 +162,10 @@ async function runBrowserModeTests(context, browserProjects, options) {
|
|
|
153
162
|
validateBrowserConfig(context);
|
|
154
163
|
return runBrowserTests(context, options);
|
|
155
164
|
}
|
|
165
|
+
const getSignalExitCode = (signal)=>{
|
|
166
|
+
const signalNumber = constants.signals[signal];
|
|
167
|
+
return 'number' == typeof signalNumber ? 128 + signalNumber : 1;
|
|
168
|
+
};
|
|
156
169
|
async function runTests(context) {
|
|
157
170
|
const browserProjects = context.projects.filter((project)=>project.normalizedConfig.browser.enabled);
|
|
158
171
|
const nodeProjects = context.projects.filter((project)=>!project.normalizedConfig.browser.enabled);
|
|
@@ -169,9 +182,7 @@ async function runTests(context) {
|
|
|
169
182
|
if (coverage.enabled && browserResult?.results.length && !browserResult.unhandledErrors?.length) {
|
|
170
183
|
const coverageProvider = await createCoverageProvider(coverage, context.rootPath);
|
|
171
184
|
if (coverageProvider) {
|
|
172
|
-
const { generateCoverage } = await import("./0~
|
|
173
|
-
generateCoverage: mod.generateCoverage
|
|
174
|
-
}));
|
|
185
|
+
const { generateCoverage } = await import("./0~generate.js");
|
|
175
186
|
await generateCoverage(context, browserResult.results, coverageProvider);
|
|
176
187
|
}
|
|
177
188
|
}
|
|
@@ -222,9 +233,7 @@ async function runTests(context) {
|
|
|
222
233
|
if (!hasNodeProjects) return;
|
|
223
234
|
}
|
|
224
235
|
const projects = nodeProjectsToRun;
|
|
225
|
-
const { getSetupFiles } = await import("./
|
|
226
|
-
getSetupFiles: mod.getSetupFiles
|
|
227
|
-
}));
|
|
236
|
+
const { getSetupFiles } = await import("./255.js");
|
|
228
237
|
const setupFiles = Object.fromEntries(projects.map((project)=>{
|
|
229
238
|
const { environmentName, rootPath, normalizedConfig: { setupFiles } } = project;
|
|
230
239
|
return [
|
|
@@ -395,9 +404,7 @@ async function runTests(context) {
|
|
|
395
404
|
filterRerunTestPaths: currentEntries.length ? currentEntries.map((e)=>e.testPath) : void 0
|
|
396
405
|
});
|
|
397
406
|
if (coverageProvider && (!isFailure || coverage.reportOnFailure)) {
|
|
398
|
-
const { generateCoverage } = await import("./0~
|
|
399
|
-
generateCoverage: mod.generateCoverage
|
|
400
|
-
}));
|
|
407
|
+
const { generateCoverage } = await import("./0~generate.js");
|
|
401
408
|
await generateCoverage(context, results, coverageProvider);
|
|
402
409
|
}
|
|
403
410
|
if (isFailure) {
|
|
@@ -425,18 +432,17 @@ async function runTests(context) {
|
|
|
425
432
|
const handleSignal = async (signal)=>{
|
|
426
433
|
logger_logger.log(color.yellow(`\nReceived ${signal}, cleaning up...`));
|
|
427
434
|
await cleanup();
|
|
428
|
-
process.exit(
|
|
435
|
+
process.exit(getSignalExitCode(signal));
|
|
429
436
|
};
|
|
430
437
|
process.on('SIGINT', handleSignal);
|
|
431
438
|
process.on('SIGTERM', handleSignal);
|
|
439
|
+
process.on('SIGTSTP', handleSignal);
|
|
432
440
|
const afterTestsWatchRun = ()=>{
|
|
433
441
|
logger_logger.log(color.green(' Waiting for file changes...'));
|
|
434
442
|
if (enableCliShortcuts) if (snapshotManager.summary.unmatched) logger_logger.log(` ${color.dim('press')} ${color.yellow(color.bold('u'))} ${color.dim('to update snapshot')}${color.dim(', press')} ${color.bold('h')} ${color.dim('to show help')}\n`);
|
|
435
443
|
else logger_logger.log(` ${color.dim('press')} ${color.bold('h')} ${color.dim('to show help')}${color.dim(', press')} ${color.bold('q')} ${color.dim('to quit')}\n`);
|
|
436
444
|
};
|
|
437
|
-
const { onBeforeRestart } = await import("./0~
|
|
438
|
-
onBeforeRestart: mod.onBeforeRestart
|
|
439
|
-
}));
|
|
445
|
+
const { onBeforeRestart } = await import("./0~restart.js");
|
|
440
446
|
onBeforeRestart(async ()=>{
|
|
441
447
|
await runGlobalTeardown();
|
|
442
448
|
await pool.close();
|
|
@@ -548,11 +554,12 @@ async function runTests(context) {
|
|
|
548
554
|
const handleSignal = async (signal)=>{
|
|
549
555
|
logger_logger.log(color.yellow(`\nReceived ${signal}, cleaning up...`));
|
|
550
556
|
await cleanup();
|
|
551
|
-
process.exit(
|
|
557
|
+
process.exit(getSignalExitCode(signal));
|
|
552
558
|
};
|
|
553
559
|
process.on('exit', unExpectedExit);
|
|
554
560
|
process.on('SIGINT', handleSignal);
|
|
555
561
|
process.on('SIGTERM', handleSignal);
|
|
562
|
+
process.on('SIGTSTP', handleSignal);
|
|
556
563
|
try {
|
|
557
564
|
await run();
|
|
558
565
|
isTeardown = true;
|
|
@@ -563,6 +570,7 @@ async function runTests(context) {
|
|
|
563
570
|
process.off('exit', unExpectedExit);
|
|
564
571
|
process.off('SIGINT', handleSignal);
|
|
565
572
|
process.off('SIGTERM', handleSignal);
|
|
573
|
+
process.off('SIGTSTP', handleSignal);
|
|
566
574
|
}
|
|
567
575
|
}
|
|
568
576
|
}
|
package/dist/{487.js → 1255.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
+
import * as __rspack_external_node_fs_5ea92f0c from "node:fs";
|
|
3
|
+
import * as __rspack_external_node_path_c5b9b54f from "node:path";
|
|
2
4
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
3
|
-
import "./3160.js";
|
|
4
5
|
__webpack_require__.add({
|
|
5
6
|
"../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js" (module) {
|
|
6
7
|
var toString = Object.prototype.toString;
|
|
@@ -34,11 +35,11 @@ __webpack_require__.add({
|
|
|
34
35
|
},
|
|
35
36
|
"../../node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js" (module, exports, __webpack_require__) {
|
|
36
37
|
module = __webpack_require__.nmd(module);
|
|
37
|
-
var SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js").
|
|
38
|
-
var path = __webpack_require__("
|
|
38
|
+
var SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js").YK;
|
|
39
|
+
var path = __webpack_require__("path?7a8d");
|
|
39
40
|
var fs;
|
|
40
41
|
try {
|
|
41
|
-
fs = __webpack_require__("
|
|
42
|
+
fs = __webpack_require__("fs?6bb1");
|
|
42
43
|
if (!fs.existsSync || !fs.readFileSync) fs = null;
|
|
43
44
|
} catch (err) {}
|
|
44
45
|
var bufferFrom = __webpack_require__("../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js");
|
|
@@ -466,7 +467,7 @@ __webpack_require__.add({
|
|
|
466
467
|
ArraySet.prototype.toArray = function ArraySet_toArray() {
|
|
467
468
|
return this._array.slice();
|
|
468
469
|
};
|
|
469
|
-
exports.
|
|
470
|
+
exports.C = ArraySet;
|
|
470
471
|
},
|
|
471
472
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
472
473
|
var base64 = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js");
|
|
@@ -600,7 +601,7 @@ __webpack_require__.add({
|
|
|
600
601
|
}
|
|
601
602
|
return this._array;
|
|
602
603
|
};
|
|
603
|
-
exports.
|
|
604
|
+
exports.P = MappingList;
|
|
604
605
|
},
|
|
605
606
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js" (__unused_rspack_module, exports) {
|
|
606
607
|
function swap(ary, x, y) {
|
|
@@ -627,16 +628,16 @@ __webpack_require__.add({
|
|
|
627
628
|
doQuickSort(ary, comparator, q + 1, r);
|
|
628
629
|
}
|
|
629
630
|
}
|
|
630
|
-
exports.
|
|
631
|
+
exports.g = function(ary, comparator) {
|
|
631
632
|
doQuickSort(ary, comparator, 0, ary.length - 1);
|
|
632
633
|
};
|
|
633
634
|
},
|
|
634
635
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
635
636
|
var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
|
|
636
637
|
var binarySearch = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js");
|
|
637
|
-
var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").
|
|
638
|
+
var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").C;
|
|
638
639
|
var base64VLQ = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js");
|
|
639
|
-
var quickSort = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js").
|
|
640
|
+
var quickSort = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js").g;
|
|
640
641
|
function SourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
641
642
|
var sourceMap = aSourceMap;
|
|
642
643
|
if ('string' == typeof aSourceMap) sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
@@ -1112,8 +1113,8 @@ __webpack_require__.add({
|
|
|
1112
1113
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1113
1114
|
var base64VLQ = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js");
|
|
1114
1115
|
var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
|
|
1115
|
-
var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").
|
|
1116
|
-
var MappingList = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js").
|
|
1116
|
+
var ArraySet = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js").C;
|
|
1117
|
+
var MappingList = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js").P;
|
|
1117
1118
|
function SourceMapGenerator(aArgs) {
|
|
1118
1119
|
if (!aArgs) aArgs = {};
|
|
1119
1120
|
this._file = util.getArg(aArgs, 'file', null);
|
|
@@ -1313,10 +1314,10 @@ __webpack_require__.add({
|
|
|
1313
1314
|
SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
|
|
1314
1315
|
return JSON.stringify(this.toJSON());
|
|
1315
1316
|
};
|
|
1316
|
-
exports.
|
|
1317
|
+
exports.x = SourceMapGenerator;
|
|
1317
1318
|
},
|
|
1318
1319
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1319
|
-
var SourceMapGenerator = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").
|
|
1320
|
+
var SourceMapGenerator = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").x;
|
|
1320
1321
|
var util = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js");
|
|
1321
1322
|
var REGEX_NEWLINE = /(\r?\n)/;
|
|
1322
1323
|
var NEWLINE_CODE = 10;
|
|
@@ -1727,9 +1728,15 @@ __webpack_require__.add({
|
|
|
1727
1728
|
exports.computeSourceURL = computeSourceURL;
|
|
1728
1729
|
},
|
|
1729
1730
|
"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1730
|
-
__webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").
|
|
1731
|
-
exports.
|
|
1731
|
+
__webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js").x;
|
|
1732
|
+
exports.YK = __webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer;
|
|
1732
1733
|
__webpack_require__("../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js");
|
|
1734
|
+
},
|
|
1735
|
+
"fs?6bb1" (module) {
|
|
1736
|
+
module.exports = __rspack_external_node_fs_5ea92f0c;
|
|
1737
|
+
},
|
|
1738
|
+
"path?7a8d" (module) {
|
|
1739
|
+
module.exports = __rspack_external_node_path_c5b9b54f;
|
|
1733
1740
|
}
|
|
1734
1741
|
});
|
|
1735
1742
|
const gracefulExit = process.execArgv.some((execArg)=>execArg.startsWith('--perf') || execArg.startsWith('--prof') || execArg.startsWith('--cpu-prof') || execArg.startsWith('--heap-prof') || execArg.startsWith('--diagnostic-dir'));
|