@rspack/dev-server 2.0.0 → 2.0.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.
Files changed (43) hide show
  1. package/package.json +28 -29
  2. package/client/clients/WebSocketClient.d.ts +0 -17
  3. package/client/clients/WebSocketClient.js +0 -32
  4. package/client/index.d.ts +0 -17
  5. package/client/index.js +0 -356
  6. package/client/modules/logger/Logger.d.ts +0 -39
  7. package/client/modules/logger/Logger.js +0 -121
  8. package/client/modules/logger/createConsoleLogger.d.ts +0 -12
  9. package/client/modules/logger/createConsoleLogger.js +0 -119
  10. package/client/modules/logger/index.d.ts +0 -26
  11. package/client/modules/logger/index.js +0 -32
  12. package/client/modules/types.d.ts +0 -45
  13. package/client/modules/types.js +0 -17
  14. package/client/overlay.d.ts +0 -47
  15. package/client/overlay.js +0 -454
  16. package/client/progress.d.ts +0 -11
  17. package/client/progress.js +0 -197
  18. package/client/socket.d.ts +0 -15
  19. package/client/socket.js +0 -34
  20. package/client/type.d.ts +0 -15
  21. package/client/type.js +0 -1
  22. package/client/utils/ansiHTML.d.ts +0 -30
  23. package/client/utils/ansiHTML.js +0 -195
  24. package/client/utils/log.d.ts +0 -13
  25. package/client/utils/log.js +0 -11
  26. package/client/utils/sendMessage.d.ts +0 -11
  27. package/client/utils/sendMessage.js +0 -8
  28. package/dist/0~chokidar.js +0 -1477
  29. package/dist/0~chokidar.js.LICENSE.txt +0 -1
  30. package/dist/0~connect-history-api-fallback.js +0 -76
  31. package/dist/0~connect-next.js +0 -1245
  32. package/dist/0~connect-next.js.LICENSE.txt +0 -57
  33. package/dist/0~debug.js +0 -621
  34. package/dist/0~http-proxy-middleware.js +0 -3777
  35. package/dist/0~http-proxy-middleware.js.LICENSE.txt +0 -34
  36. package/dist/0~launch-editor.js +0 -601
  37. package/dist/0~open.js +0 -555
  38. package/dist/0~p-retry.js +0 -161
  39. package/dist/0~serve-static.js +0 -1595
  40. package/dist/0~serve-static.js.LICENSE.txt +0 -108
  41. package/dist/198.js +0 -5113
  42. package/dist/index.d.ts +0 -587
  43. package/dist/index.js +0 -1
@@ -1,34 +0,0 @@
1
- /*!
2
- * fill-range <https://github.com/jonschlinkert/fill-range>
3
- *
4
- * Copyright (c) 2014-present, Jon Schlinkert.
5
- * Licensed under the MIT License.
6
- */
7
-
8
- /*!
9
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
10
- *
11
- * Copyright (c) 2014-2016, Jon Schlinkert.
12
- * Licensed under the MIT License.
13
- */
14
-
15
- /*!
16
- * is-glob <https://github.com/jonschlinkert/is-glob>
17
- *
18
- * Copyright (c) 2014-2017, Jon Schlinkert.
19
- * Released under the MIT License.
20
- */
21
-
22
- /*!
23
- * is-number <https://github.com/jonschlinkert/is-number>
24
- *
25
- * Copyright (c) 2014-present, Jon Schlinkert.
26
- * Released under the MIT License.
27
- */
28
-
29
- /*!
30
- * to-regex-range <https://github.com/micromatch/to-regex-range>
31
- *
32
- * Copyright (c) 2015-present, Jon Schlinkert.
33
- * Released under the MIT License.
34
- */
@@ -1,601 +0,0 @@
1
- import { __webpack_require__ } from "./198.js";
2
- import "./198.js";
3
- __webpack_require__.add({
4
- "./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js" (module) {
5
- module.exports = {
6
- atom: 'atom',
7
- Brackets: 'brackets',
8
- 'code-insiders': 'code-insiders',
9
- code: 'code',
10
- vscodium: 'vscodium',
11
- codium: 'codium',
12
- cursor: 'cursor',
13
- trae: 'trae',
14
- antigravity: 'antigravity',
15
- emacs: 'emacs',
16
- gvim: 'gvim',
17
- idea: 'idea',
18
- 'idea.sh': 'idea',
19
- phpstorm: 'phpstorm',
20
- 'phpstorm.sh': 'phpstorm',
21
- pycharm: 'pycharm',
22
- 'pycharm.sh': 'pycharm',
23
- rubymine: 'rubymine',
24
- 'rubymine.sh': 'rubymine',
25
- sublime_text: 'subl',
26
- vim: 'vim',
27
- webstorm: 'webstorm',
28
- 'webstorm.sh': 'webstorm',
29
- goland: 'goland',
30
- 'goland.sh': 'goland',
31
- rider: 'rider',
32
- 'rider.sh': 'rider',
33
- zed: 'zed'
34
- };
35
- },
36
- "./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/macos.js" (module) {
37
- module.exports = {
38
- '/Applications/Atom.app/Contents/MacOS/Atom': 'atom',
39
- '/Applications/Atom Beta.app/Contents/MacOS/Atom Beta': '/Applications/Atom Beta.app/Contents/MacOS/Atom Beta',
40
- '/Applications/Brackets.app/Contents/MacOS/Brackets': 'brackets',
41
- '/Applications/Sublime Text.app/Contents/MacOS/Sublime Text': '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl',
42
- '/Applications/Sublime Text.app/Contents/MacOS/sublime_text': '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl',
43
- '/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2': '/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl',
44
- '/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text': '/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl',
45
- '/Applications/Visual Studio Code.app/Contents/MacOS/Code': 'code',
46
- '/Applications/Visual Studio Code.app/Contents/MacOS/Electron': 'code',
47
- '/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders': 'code-insiders',
48
- '/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron': 'code-insiders',
49
- '/Applications/VSCodium.app/Contents/MacOS/Electron': 'codium',
50
- '/Applications/Cursor.app/Contents/MacOS/Cursor': 'cursor',
51
- '/Applications/Trae.app/Contents/MacOS/Electron': 'trae',
52
- '/Applications/Antigravity.app/Contents/MacOS/Electron': 'antigravity',
53
- '/Applications/AppCode.app/Contents/MacOS/appcode': '/Applications/AppCode.app/Contents/MacOS/appcode',
54
- '/Applications/CLion.app/Contents/MacOS/clion': '/Applications/CLion.app/Contents/MacOS/clion',
55
- '/Applications/IntelliJ IDEA.app/Contents/MacOS/idea': '/Applications/IntelliJ IDEA.app/Contents/MacOS/idea',
56
- '/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea': '/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea',
57
- '/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea': '/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea',
58
- '/Applications/PhpStorm.app/Contents/MacOS/phpstorm': '/Applications/PhpStorm.app/Contents/MacOS/phpstorm',
59
- '/Applications/PyCharm.app/Contents/MacOS/pycharm': '/Applications/PyCharm.app/Contents/MacOS/pycharm',
60
- '/Applications/PyCharm CE.app/Contents/MacOS/pycharm': '/Applications/PyCharm CE.app/Contents/MacOS/pycharm',
61
- '/Applications/RubyMine.app/Contents/MacOS/rubymine': '/Applications/RubyMine.app/Contents/MacOS/rubymine',
62
- '/Applications/WebStorm.app/Contents/MacOS/webstorm': '/Applications/WebStorm.app/Contents/MacOS/webstorm',
63
- '/Applications/MacVim.app/Contents/MacOS/MacVim': 'mvim',
64
- '/Applications/GoLand.app/Contents/MacOS/goland': '/Applications/GoLand.app/Contents/MacOS/goland',
65
- '/Applications/Rider.app/Contents/MacOS/rider': '/Applications/Rider.app/Contents/MacOS/rider',
66
- '/Applications/Zed.app/Contents/MacOS/zed': 'zed'
67
- };
68
- },
69
- "./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/windows.js" (module) {
70
- module.exports = [
71
- 'Brackets.exe',
72
- 'Code.exe',
73
- 'Code - Insiders.exe',
74
- 'VSCodium.exe',
75
- 'Cursor.exe',
76
- 'atom.exe',
77
- 'sublime_text.exe',
78
- 'notepad++.exe',
79
- 'clion.exe',
80
- 'clion64.exe',
81
- 'idea.exe',
82
- 'idea64.exe',
83
- 'phpstorm.exe',
84
- 'phpstorm64.exe',
85
- 'pycharm.exe',
86
- 'pycharm64.exe',
87
- 'rubymine.exe',
88
- 'rubymine64.exe',
89
- 'webstorm.exe',
90
- 'webstorm64.exe',
91
- 'goland.exe',
92
- 'goland64.exe',
93
- 'rider.exe',
94
- 'rider64.exe',
95
- 'Trae.exe',
96
- 'zed.exe',
97
- 'Antigravity.exe'
98
- ];
99
- },
100
- "./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js" (module, __unused_rspack_exports, __webpack_require__) {
101
- const path = __webpack_require__("path");
102
- module.exports = function(editor, fileName, lineNumber, columnNumber = 1) {
103
- const editorBasename = path.basename(editor).replace(/\.(exe|cmd|bat)$/i, '');
104
- switch(editorBasename){
105
- case 'atom':
106
- case 'Atom':
107
- case 'Atom Beta':
108
- case 'subl':
109
- case 'sublime':
110
- case 'sublime_text':
111
- case 'wstorm':
112
- case 'charm':
113
- case 'zed':
114
- return [
115
- `${fileName}:${lineNumber}:${columnNumber}`
116
- ];
117
- case 'notepad++':
118
- return [
119
- '-n' + lineNumber,
120
- '-c' + columnNumber,
121
- fileName
122
- ];
123
- case 'vim':
124
- case 'mvim':
125
- return [
126
- `+call cursor(${lineNumber}, ${columnNumber})`,
127
- fileName
128
- ];
129
- case 'joe':
130
- case 'gvim':
131
- return [
132
- `+${lineNumber}`,
133
- fileName
134
- ];
135
- case 'emacs':
136
- case 'emacsclient':
137
- return [
138
- `+${lineNumber}:${columnNumber}`,
139
- fileName
140
- ];
141
- case 'rmate':
142
- case 'mate':
143
- case 'mine':
144
- return [
145
- '--line',
146
- lineNumber,
147
- fileName
148
- ];
149
- case 'code':
150
- case 'Code':
151
- case 'code-insiders':
152
- case 'Code - Insiders':
153
- case 'codium':
154
- case 'trae':
155
- case 'antigravity':
156
- case 'cursor':
157
- case 'vscodium':
158
- case 'VSCodium':
159
- return [
160
- '-r',
161
- '-g',
162
- `${fileName}:${lineNumber}:${columnNumber}`
163
- ];
164
- case 'appcode':
165
- case 'clion':
166
- case 'clion64':
167
- case 'idea':
168
- case 'idea64':
169
- case 'phpstorm':
170
- case 'phpstorm64':
171
- case 'pycharm':
172
- case 'pycharm64':
173
- case 'rubymine':
174
- case 'rubymine64':
175
- case 'webstorm':
176
- case 'webstorm64':
177
- case 'goland':
178
- case 'goland64':
179
- case 'rider':
180
- case 'rider64':
181
- return [
182
- '--line',
183
- lineNumber,
184
- '--column',
185
- columnNumber,
186
- fileName
187
- ];
188
- }
189
- if (process.env.LAUNCH_EDITOR) return [
190
- fileName,
191
- lineNumber,
192
- columnNumber
193
- ];
194
- return [
195
- fileName
196
- ];
197
- };
198
- },
199
- "./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/guess.js" (module, __unused_rspack_exports, __webpack_require__) {
200
- const path = __webpack_require__("path");
201
- const shellQuote = __webpack_require__("./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js");
202
- const childProcess = __webpack_require__("child_process");
203
- const COMMON_EDITORS_MACOS = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/macos.js");
204
- const COMMON_EDITORS_LINUX = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js");
205
- const COMMON_EDITORS_WIN = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/windows.js");
206
- module.exports = function(specifiedEditor) {
207
- if (specifiedEditor) return shellQuote.parse(specifiedEditor);
208
- if (process.env.LAUNCH_EDITOR) return [
209
- process.env.LAUNCH_EDITOR
210
- ];
211
- if (process.versions.webcontainer) return [
212
- process.env.EDITOR || 'code'
213
- ];
214
- try {
215
- if ('darwin' === process.platform) {
216
- const output = childProcess.execSync('ps x -o comm=', {
217
- stdio: [
218
- 'pipe',
219
- 'pipe',
220
- 'ignore'
221
- ]
222
- }).toString();
223
- const processNames = Object.keys(COMMON_EDITORS_MACOS);
224
- const processList = output.split('\n');
225
- for(let i = 0; i < processNames.length; i++){
226
- const processName = processNames[i];
227
- if (processList.includes(processName)) return [
228
- COMMON_EDITORS_MACOS[processName]
229
- ];
230
- const processNameWithoutApplications = processName.replace('/Applications', '');
231
- if (-1 !== output.indexOf(processNameWithoutApplications)) {
232
- if (processName !== COMMON_EDITORS_MACOS[processName]) return [
233
- COMMON_EDITORS_MACOS[processName]
234
- ];
235
- const runningProcess = processList.find((procName)=>procName.endsWith(processNameWithoutApplications));
236
- if (void 0 !== runningProcess) return [
237
- runningProcess
238
- ];
239
- }
240
- }
241
- } else if ('win32' === process.platform) {
242
- const output = childProcess.execSync('powershell -NoProfile -Command "[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"', {
243
- stdio: [
244
- 'pipe',
245
- 'pipe',
246
- 'ignore'
247
- ]
248
- }).toString();
249
- const runningProcesses = output.split('\r\n');
250
- for(let i = 0; i < runningProcesses.length; i++){
251
- const fullProcessPath = runningProcesses[i].trim();
252
- const shortProcessName = path.basename(fullProcessPath);
253
- if (-1 !== COMMON_EDITORS_WIN.indexOf(shortProcessName)) return [
254
- fullProcessPath
255
- ];
256
- }
257
- } else if ('linux' === process.platform) {
258
- const output = childProcess.execSync('ps x --no-heading -o comm --sort=comm', {
259
- stdio: [
260
- 'pipe',
261
- 'pipe',
262
- 'ignore'
263
- ]
264
- }).toString();
265
- const processNames = Object.keys(COMMON_EDITORS_LINUX);
266
- for(let i = 0; i < processNames.length; i++){
267
- const processName = processNames[i];
268
- if (-1 !== output.indexOf(processName)) return [
269
- COMMON_EDITORS_LINUX[processName]
270
- ];
271
- }
272
- }
273
- } catch (ignoreError) {}
274
- if (process.env.VISUAL) return [
275
- process.env.VISUAL
276
- ];
277
- if (process.env.EDITOR) return [
278
- process.env.EDITOR
279
- ];
280
- return [
281
- null
282
- ];
283
- };
284
- },
285
- "./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js" (module, __unused_rspack_exports, __webpack_require__) {
286
- const fs = __webpack_require__("fs");
287
- const os = __webpack_require__("os");
288
- const path = __webpack_require__("path");
289
- const colors = __webpack_require__("./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
290
- const childProcess = __webpack_require__("child_process");
291
- const guessEditor = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/guess.js");
292
- const getArgumentsForPosition = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js");
293
- function wrapErrorCallback(cb) {
294
- return (fileName, errorMessage)=>{
295
- console.log();
296
- console.log(colors.red('Could not open ' + path.basename(fileName) + ' in the editor.'));
297
- if (errorMessage) {
298
- if ('.' !== errorMessage[errorMessage.length - 1]) errorMessage += '.';
299
- console.log(colors.red('The editor process exited with an error: ' + errorMessage));
300
- }
301
- console.log();
302
- if (cb) cb(fileName, errorMessage);
303
- };
304
- }
305
- function isTerminalEditor(editor) {
306
- switch(editor){
307
- case 'vim':
308
- case 'emacs':
309
- case 'nano':
310
- return true;
311
- }
312
- return false;
313
- }
314
- const positionRE = /:(\d+)(:(\d+))?$/;
315
- function parseFile(file) {
316
- if (file.startsWith('file://')) file = __webpack_require__("url").fileURLToPath(file);
317
- const fileName = file.replace(positionRE, '');
318
- const match = file.match(positionRE);
319
- const lineNumber = match && match[1];
320
- const columnNumber = match && match[3];
321
- return {
322
- fileName,
323
- lineNumber,
324
- columnNumber
325
- };
326
- }
327
- let _childProcess = null;
328
- function launchEditor(file, specifiedEditor, onErrorCallback) {
329
- const parsed = parseFile(file);
330
- let { fileName } = parsed;
331
- const { lineNumber, columnNumber } = parsed;
332
- if (!fs.existsSync(fileName)) return;
333
- if ('function' == typeof specifiedEditor) {
334
- onErrorCallback = specifiedEditor;
335
- specifiedEditor = void 0;
336
- }
337
- onErrorCallback = wrapErrorCallback(onErrorCallback);
338
- const [editor, ...args] = guessEditor(specifiedEditor);
339
- if (!editor) return void onErrorCallback(fileName, null);
340
- if ('linux' === process.platform && fileName.startsWith('/mnt/') && /Microsoft/i.test(os.release())) fileName = path.relative('', fileName);
341
- if (lineNumber) {
342
- const extraArgs = getArgumentsForPosition(editor, fileName, lineNumber, columnNumber);
343
- args.push.apply(args, extraArgs);
344
- } else args.push(fileName);
345
- if (_childProcess && isTerminalEditor(editor)) _childProcess.kill('SIGKILL');
346
- if ('win32' === process.platform) {
347
- function escapeCmdArgs(cmdArgs) {
348
- return cmdArgs.replace(/([&|<>,;=^])/g, '^$1');
349
- }
350
- function doubleQuoteIfNeeded(str) {
351
- if (str.includes('^')) return `^"${str}^"`;
352
- if (str.includes(' ')) return `"${str}"`;
353
- return str;
354
- }
355
- const launchCommand = [
356
- editor,
357
- ...args.map(escapeCmdArgs)
358
- ].map(doubleQuoteIfNeeded).join(' ');
359
- _childProcess = childProcess.exec(launchCommand, {
360
- stdio: 'inherit',
361
- shell: true
362
- });
363
- } else _childProcess = childProcess.spawn(editor, args, {
364
- stdio: 'inherit'
365
- });
366
- _childProcess.on('exit', function(errorCode) {
367
- _childProcess = null;
368
- if (errorCode) onErrorCallback(fileName, '(code ' + errorCode + ')');
369
- });
370
- _childProcess.on('error', function(error) {
371
- let { code, message } = error;
372
- if ('ENOENT' === code) message = `${message} ('${editor}' command does not exist in 'PATH')`;
373
- onErrorCallback(fileName, message);
374
- });
375
- }
376
- module.exports = launchEditor;
377
- },
378
- "./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js" (module) {
379
- let p = process || {}, argv = p.argv || [], env = p.env || {};
380
- let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || "win32" === p.platform || (p.stdout || {}).isTTY && "dumb" !== env.TERM || !!env.CI);
381
- let formatter = (open, close, replace = open)=>(input)=>{
382
- let string = "" + input, index = string.indexOf(close, open.length);
383
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
384
- };
385
- let replaceClose = (string, close, replace, index)=>{
386
- let result = "", cursor = 0;
387
- do {
388
- result += string.substring(cursor, index) + replace;
389
- cursor = index + close.length;
390
- index = string.indexOf(close, cursor);
391
- }while (~index);
392
- return result + string.substring(cursor);
393
- };
394
- let createColors = (enabled = isColorSupported)=>{
395
- let f = enabled ? formatter : ()=>String;
396
- return {
397
- isColorSupported: enabled,
398
- reset: f("\x1b[0m", "\x1b[0m"),
399
- bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
400
- dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
401
- italic: f("\x1b[3m", "\x1b[23m"),
402
- underline: f("\x1b[4m", "\x1b[24m"),
403
- inverse: f("\x1b[7m", "\x1b[27m"),
404
- hidden: f("\x1b[8m", "\x1b[28m"),
405
- strikethrough: f("\x1b[9m", "\x1b[29m"),
406
- black: f("\x1b[30m", "\x1b[39m"),
407
- red: f("\x1b[31m", "\x1b[39m"),
408
- green: f("\x1b[32m", "\x1b[39m"),
409
- yellow: f("\x1b[33m", "\x1b[39m"),
410
- blue: f("\x1b[34m", "\x1b[39m"),
411
- magenta: f("\x1b[35m", "\x1b[39m"),
412
- cyan: f("\x1b[36m", "\x1b[39m"),
413
- white: f("\x1b[37m", "\x1b[39m"),
414
- gray: f("\x1b[90m", "\x1b[39m"),
415
- bgBlack: f("\x1b[40m", "\x1b[49m"),
416
- bgRed: f("\x1b[41m", "\x1b[49m"),
417
- bgGreen: f("\x1b[42m", "\x1b[49m"),
418
- bgYellow: f("\x1b[43m", "\x1b[49m"),
419
- bgBlue: f("\x1b[44m", "\x1b[49m"),
420
- bgMagenta: f("\x1b[45m", "\x1b[49m"),
421
- bgCyan: f("\x1b[46m", "\x1b[49m"),
422
- bgWhite: f("\x1b[47m", "\x1b[49m"),
423
- blackBright: f("\x1b[90m", "\x1b[39m"),
424
- redBright: f("\x1b[91m", "\x1b[39m"),
425
- greenBright: f("\x1b[92m", "\x1b[39m"),
426
- yellowBright: f("\x1b[93m", "\x1b[39m"),
427
- blueBright: f("\x1b[94m", "\x1b[39m"),
428
- magentaBright: f("\x1b[95m", "\x1b[39m"),
429
- cyanBright: f("\x1b[96m", "\x1b[39m"),
430
- whiteBright: f("\x1b[97m", "\x1b[39m"),
431
- bgBlackBright: f("\x1b[100m", "\x1b[49m"),
432
- bgRedBright: f("\x1b[101m", "\x1b[49m"),
433
- bgGreenBright: f("\x1b[102m", "\x1b[49m"),
434
- bgYellowBright: f("\x1b[103m", "\x1b[49m"),
435
- bgBlueBright: f("\x1b[104m", "\x1b[49m"),
436
- bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
437
- bgCyanBright: f("\x1b[106m", "\x1b[49m"),
438
- bgWhiteBright: f("\x1b[107m", "\x1b[49m")
439
- };
440
- };
441
- module.exports = createColors();
442
- module.exports.createColors = createColors;
443
- },
444
- "./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js" (__unused_rspack_module, exports, __webpack_require__) {
445
- exports.quote = __webpack_require__("./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js");
446
- exports.parse = __webpack_require__("./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js");
447
- },
448
- "./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js" (module) {
449
- var CONTROL = "(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])";
450
- var controlRE = new RegExp('^' + CONTROL + '$');
451
- var META = '|&;()<> \\t';
452
- var SINGLE_QUOTE = '"((\\\\"|[^"])*?)"';
453
- var DOUBLE_QUOTE = '\'((\\\\\'|[^\'])*?)\'';
454
- var hash = /^#$/;
455
- var SQ = "'";
456
- var DQ = '"';
457
- var DS = '$';
458
- var TOKEN = '';
459
- var mult = 0x100000000;
460
- for(var i = 0; i < 4; i++)TOKEN += (mult * Math.random()).toString(16);
461
- var startsWithToken = new RegExp('^' + TOKEN);
462
- function matchAll(s, r) {
463
- var origIndex = r.lastIndex;
464
- var matches = [];
465
- var matchObj;
466
- while(matchObj = r.exec(s)){
467
- matches.push(matchObj);
468
- if (r.lastIndex === matchObj.index) r.lastIndex += 1;
469
- }
470
- r.lastIndex = origIndex;
471
- return matches;
472
- }
473
- function getVar(env, pre, key) {
474
- var r = 'function' == typeof env ? env(key) : env[key];
475
- if (void 0 === r && '' != key) r = '';
476
- else if (void 0 === r) r = '$';
477
- if ('object' == typeof r) return pre + TOKEN + JSON.stringify(r) + TOKEN;
478
- return pre + r;
479
- }
480
- function parseInternal(string, env, opts) {
481
- if (!opts) opts = {};
482
- var BS = opts.escape || '\\';
483
- var BAREWORD = '(\\' + BS + '[\'"' + META + ']|[^\\s\'"' + META + '])+';
484
- var chunker = new RegExp([
485
- '(' + CONTROL + ')',
486
- '(' + BAREWORD + '|' + SINGLE_QUOTE + '|' + DOUBLE_QUOTE + ')+'
487
- ].join('|'), 'g');
488
- var matches = matchAll(string, chunker);
489
- if (0 === matches.length) return [];
490
- if (!env) env = {};
491
- var commented = false;
492
- return matches.map(function(match) {
493
- var s = match[0];
494
- if (!s || commented) return;
495
- if (controlRE.test(s)) return {
496
- op: s
497
- };
498
- var quote = false;
499
- var esc = false;
500
- var out = '';
501
- var isGlob = false;
502
- var i;
503
- function parseEnvVar() {
504
- i += 1;
505
- var varend;
506
- var varname;
507
- var char = s.charAt(i);
508
- if ('{' === char) {
509
- i += 1;
510
- if ('}' === s.charAt(i)) throw new Error('Bad substitution: ' + s.slice(i - 2, i + 1));
511
- varend = s.indexOf('}', i);
512
- if (varend < 0) throw new Error('Bad substitution: ' + s.slice(i));
513
- varname = s.slice(i, varend);
514
- i = varend;
515
- } else if (/[*@#?$!_-]/.test(char)) {
516
- varname = char;
517
- i += 1;
518
- } else {
519
- var slicedFromI = s.slice(i);
520
- varend = slicedFromI.match(/[^\w\d_]/);
521
- if (varend) {
522
- varname = slicedFromI.slice(0, varend.index);
523
- i += varend.index - 1;
524
- } else {
525
- varname = slicedFromI;
526
- i = s.length;
527
- }
528
- }
529
- return getVar(env, '', varname);
530
- }
531
- for(i = 0; i < s.length; i++){
532
- var c = s.charAt(i);
533
- isGlob = isGlob || !quote && ('*' === c || '?' === c);
534
- if (esc) {
535
- out += c;
536
- esc = false;
537
- } else if (quote) if (c === quote) quote = false;
538
- else if (quote == SQ) out += c;
539
- else if (c === BS) {
540
- i += 1;
541
- c = s.charAt(i);
542
- if (c === DQ || c === BS || c === DS) out += c;
543
- else out += BS + c;
544
- } else if (c === DS) out += parseEnvVar();
545
- else out += c;
546
- else if (c === DQ || c === SQ) quote = c;
547
- else if (controlRE.test(c)) return {
548
- op: s
549
- };
550
- else if (hash.test(c)) {
551
- commented = true;
552
- var commentObj = {
553
- comment: string.slice(match.index + i + 1)
554
- };
555
- if (out.length) return [
556
- out,
557
- commentObj
558
- ];
559
- return [
560
- commentObj
561
- ];
562
- } else if (c === BS) esc = true;
563
- else if (c === DS) out += parseEnvVar();
564
- else out += c;
565
- }
566
- if (isGlob) return {
567
- op: 'glob',
568
- pattern: out
569
- };
570
- return out;
571
- }).reduce(function(prev, arg) {
572
- return void 0 === arg ? prev : prev.concat(arg);
573
- }, []);
574
- }
575
- module.exports = function(s, env, opts) {
576
- var mapped = parseInternal(s, env, opts);
577
- if ('function' != typeof env) return mapped;
578
- return mapped.reduce(function(acc, s) {
579
- if ('object' == typeof s) return acc.concat(s);
580
- var xs = s.split(RegExp('(' + TOKEN + '.*?' + TOKEN + ')', 'g'));
581
- if (1 === xs.length) return acc.concat(xs[0]);
582
- return acc.concat(xs.filter(Boolean).map(function(x) {
583
- if (startsWithToken.test(x)) return JSON.parse(x.split(TOKEN)[1]);
584
- return x;
585
- }));
586
- }, []);
587
- };
588
- },
589
- "./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js" (module) {
590
- module.exports = function(xs) {
591
- return xs.map(function(s) {
592
- if ('' === s) return '\'\'';
593
- if (s && 'object' == typeof s) return s.op.replace(/(.)/g, '\\$1');
594
- if (/["\s\\]/.test(s) && !/'/.test(s)) return "'" + s.replace(/(['])/g, '\\$1') + "'";
595
- if (/["'\s]/.test(s)) return '"' + s.replace(/(["\\$`!])/g, '\\$1') + '"';
596
- return String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, '$1\\$2');
597
- }).join(' ');
598
- };
599
- }
600
- });
601
- __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js");