@rspack/dev-server 2.0.0-beta.7 → 2.0.0-rc.1
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/client/overlay.d.ts +4 -1
- package/dist/0~connect-history-api-fallback.js +76 -0
- package/dist/0~debug.js +621 -0
- package/dist/0~http-proxy-middleware.js +4447 -0
- package/dist/0~http-proxy-middleware.js.LICENSE.txt +69 -0
- package/dist/0~launch-editor.js +17 -35
- package/dist/0~serve-static.js +1595 -0
- package/dist/0~serve-static.js.LICENSE.txt +108 -0
- package/dist/621.js +2653 -0
- package/dist/config.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1467
- package/dist/server.d.ts +4 -3
- package/dist/servers/BaseServer.d.ts +2 -2
- package/dist/servers/WebsocketServer.d.ts +2 -2
- package/dist/types.d.ts +8 -8
- package/package.json +23 -22
- package/dist/rslib-runtime.js +0 -75
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Array of passes.
|
|
3
|
+
*
|
|
4
|
+
* A `pass` is just a function that is executed on `req, res, options`
|
|
5
|
+
* so that you can easily add new checks while still keeping the base
|
|
6
|
+
* flexible.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/*!
|
|
10
|
+
* Array of passes.
|
|
11
|
+
*
|
|
12
|
+
* A `pass` is just a function that is executed on `req, socket, options`
|
|
13
|
+
* so that you can easily add new checks while still keeping the base
|
|
14
|
+
* flexible.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/*!
|
|
18
|
+
* Caron dimonio, con occhi di bragia
|
|
19
|
+
* loro accennando, tutte le raccoglie;
|
|
20
|
+
* batte col remo qualunque s’adagia
|
|
21
|
+
*
|
|
22
|
+
* Charon the demon, with the eyes of glede,
|
|
23
|
+
* Beckoning to them, collects them all together,
|
|
24
|
+
* Beats with his oar whoever lags behind
|
|
25
|
+
*
|
|
26
|
+
* Dante - The Divine Comedy (Canto III)
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/*!
|
|
30
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/*!
|
|
37
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
40
|
+
* Licensed under the MIT License.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/*!
|
|
44
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
47
|
+
* Released under the MIT License.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/*!
|
|
51
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
54
|
+
* Released under the MIT License.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/*!
|
|
58
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
59
|
+
*
|
|
60
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
61
|
+
* Released under the MIT License.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/*!
|
|
65
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
66
|
+
*
|
|
67
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
68
|
+
* Released under the MIT License.
|
|
69
|
+
*/
|
package/dist/0~launch-editor.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as __rspack_external_os from "os";
|
|
4
|
-
import * as __rspack_external_path from "path";
|
|
5
|
-
import * as __rspack_external_url from "url";
|
|
6
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
1
|
+
import { __webpack_require__ } from "./621.js";
|
|
2
|
+
import "./621.js";
|
|
7
3
|
__webpack_require__.add({
|
|
8
|
-
"./node_modules/.pnpm/launch-editor@2.13.
|
|
4
|
+
"./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js" (module) {
|
|
9
5
|
module.exports = {
|
|
10
6
|
atom: 'atom',
|
|
11
7
|
Brackets: 'brackets',
|
|
@@ -37,7 +33,7 @@ __webpack_require__.add({
|
|
|
37
33
|
zed: 'zed'
|
|
38
34
|
};
|
|
39
35
|
},
|
|
40
|
-
"./node_modules/.pnpm/launch-editor@2.13.
|
|
36
|
+
"./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/macos.js" (module) {
|
|
41
37
|
module.exports = {
|
|
42
38
|
'/Applications/Atom.app/Contents/MacOS/Atom': 'atom',
|
|
43
39
|
'/Applications/Atom Beta.app/Contents/MacOS/Atom Beta': '/Applications/Atom Beta.app/Contents/MacOS/Atom Beta',
|
|
@@ -46,6 +42,7 @@ __webpack_require__.add({
|
|
|
46
42
|
'/Applications/Sublime Text.app/Contents/MacOS/sublime_text': '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl',
|
|
47
43
|
'/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2': '/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl',
|
|
48
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',
|
|
49
46
|
'/Applications/Visual Studio Code.app/Contents/MacOS/Electron': 'code',
|
|
50
47
|
'/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders': 'code-insiders',
|
|
51
48
|
'/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron': 'code-insiders',
|
|
@@ -69,7 +66,7 @@ __webpack_require__.add({
|
|
|
69
66
|
'/Applications/Zed.app/Contents/MacOS/zed': 'zed'
|
|
70
67
|
};
|
|
71
68
|
},
|
|
72
|
-
"./node_modules/.pnpm/launch-editor@2.13.
|
|
69
|
+
"./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/windows.js" (module) {
|
|
73
70
|
module.exports = [
|
|
74
71
|
'Brackets.exe',
|
|
75
72
|
'Code.exe',
|
|
@@ -95,12 +92,12 @@ __webpack_require__.add({
|
|
|
95
92
|
'goland64.exe',
|
|
96
93
|
'rider.exe',
|
|
97
94
|
'rider64.exe',
|
|
98
|
-
'
|
|
95
|
+
'Trae.exe',
|
|
99
96
|
'zed.exe',
|
|
100
97
|
'Antigravity.exe'
|
|
101
98
|
];
|
|
102
99
|
},
|
|
103
|
-
"./node_modules/.pnpm/launch-editor@2.13.
|
|
100
|
+
"./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
104
101
|
const path = __webpack_require__("path");
|
|
105
102
|
module.exports = function(editor, fileName, lineNumber, columnNumber = 1) {
|
|
106
103
|
const editorBasename = path.basename(editor).replace(/\.(exe|cmd|bat)$/i, '');
|
|
@@ -199,13 +196,13 @@ __webpack_require__.add({
|
|
|
199
196
|
];
|
|
200
197
|
};
|
|
201
198
|
},
|
|
202
|
-
"./node_modules/.pnpm/launch-editor@2.13.
|
|
199
|
+
"./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/guess.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
203
200
|
const path = __webpack_require__("path");
|
|
204
201
|
const shellQuote = __webpack_require__("./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js");
|
|
205
202
|
const childProcess = __webpack_require__("child_process");
|
|
206
|
-
const COMMON_EDITORS_MACOS = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.
|
|
207
|
-
const COMMON_EDITORS_LINUX = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.
|
|
208
|
-
const COMMON_EDITORS_WIN = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.
|
|
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");
|
|
209
206
|
module.exports = function(specifiedEditor) {
|
|
210
207
|
if (specifiedEditor) return shellQuote.parse(specifiedEditor);
|
|
211
208
|
if (process.env.LAUNCH_EDITOR) return [
|
|
@@ -285,14 +282,14 @@ __webpack_require__.add({
|
|
|
285
282
|
];
|
|
286
283
|
};
|
|
287
284
|
},
|
|
288
|
-
"./node_modules/.pnpm/launch-editor@2.13.
|
|
285
|
+
"./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
289
286
|
const fs = __webpack_require__("fs");
|
|
290
287
|
const os = __webpack_require__("os");
|
|
291
288
|
const path = __webpack_require__("path");
|
|
292
289
|
const colors = __webpack_require__("./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
293
290
|
const childProcess = __webpack_require__("child_process");
|
|
294
|
-
const guessEditor = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.
|
|
295
|
-
const getArgumentsForPosition = __webpack_require__("./node_modules/.pnpm/launch-editor@2.13.
|
|
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");
|
|
296
293
|
function wrapErrorCallback(cb) {
|
|
297
294
|
return (fileName, errorMessage)=>{
|
|
298
295
|
console.log();
|
|
@@ -445,7 +442,7 @@ __webpack_require__.add({
|
|
|
445
442
|
module.exports.createColors = createColors;
|
|
446
443
|
},
|
|
447
444
|
"./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
448
|
-
__webpack_require__("./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js");
|
|
445
|
+
exports.quote = __webpack_require__("./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js");
|
|
449
446
|
exports.parse = __webpack_require__("./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js");
|
|
450
447
|
},
|
|
451
448
|
"./node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js" (module) {
|
|
@@ -599,21 +596,6 @@ __webpack_require__.add({
|
|
|
599
596
|
return String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, '$1\\$2');
|
|
600
597
|
}).join(' ');
|
|
601
598
|
};
|
|
602
|
-
},
|
|
603
|
-
child_process (module) {
|
|
604
|
-
module.exports = __rspack_external_child_process;
|
|
605
|
-
},
|
|
606
|
-
fs (module) {
|
|
607
|
-
module.exports = __rspack_external_fs;
|
|
608
|
-
},
|
|
609
|
-
os (module) {
|
|
610
|
-
module.exports = __rspack_external_os;
|
|
611
|
-
},
|
|
612
|
-
path (module) {
|
|
613
|
-
module.exports = __rspack_external_path;
|
|
614
|
-
},
|
|
615
|
-
url (module) {
|
|
616
|
-
module.exports = __rspack_external_url;
|
|
617
599
|
}
|
|
618
600
|
});
|
|
619
|
-
__webpack_require__("./node_modules/.pnpm/launch-editor@2.13.
|
|
601
|
+
__webpack_require__("./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js");
|