@rspack/dev-server 2.2.1 → 2.2.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/client/index.js +8 -6
- package/dist/{0~chokidar.js → chokidar~0.js} +3 -3
- package/dist/{0~connect-history-api-fallback.js → connect-history-api-fallback~0.js} +8 -8
- package/dist/{0~connect-next.js → connect-next~0.js} +1 -1
- package/dist/{0~debug.js → debug~0.js} +8 -7
- package/dist/{0~http-proxy-middleware.js → http-proxy-middleware~0.js} +32 -24
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/{0~launch-editor.js → launch-editor~0.js} +225 -99
- package/dist/{0~open.js → open~0.js} +14 -10
- package/dist/{0~serve-static.js → serve-static~0.js} +22 -20
- package/dist/{619.js → t~0.js} +119 -156
- package/package.json +23 -40
- /package/dist/{0~chokidar.js.LICENSE.txt → chokidar~0.js.LICENSE.txt} +0 -0
- /package/dist/{0~connect-next.js.LICENSE.txt → connect-next~0.js.LICENSE.txt} +0 -0
- /package/dist/{0~http-proxy-middleware.js.LICENSE.txt → http-proxy-middleware~0.js.LICENSE.txt} +0 -0
- /package/dist/{0~p-retry.js → p-retry~0.js} +0 -0
- /package/dist/{0~serve-static.js.LICENSE.txt → serve-static~0.js.LICENSE.txt} +0 -0
package/dist/{619.js → t~0.js}
RENAMED
|
@@ -88,11 +88,11 @@ var __webpack_require__temp = __webpack_require__;
|
|
|
88
88
|
};
|
|
89
89
|
})();
|
|
90
90
|
(()=>{
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
var moduleInstalledChunks = {
|
|
92
|
+
q: 0,
|
|
93
|
+
t: 0
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var moduleInstallChunk = (data)=>{
|
|
96
96
|
var __rspack_esm_ids = data.__rspack_esm_ids;
|
|
97
97
|
var moreModules = data.__webpack_modules__;
|
|
98
98
|
var __rspack_esm_runtime = data.__rspack_esm_runtime;
|
|
@@ -101,15 +101,15 @@ var __webpack_require__temp = __webpack_require__;
|
|
|
101
101
|
if (__rspack_esm_runtime) __rspack_esm_runtime(__webpack_require__);
|
|
102
102
|
for(; i < __rspack_esm_ids.length; i++){
|
|
103
103
|
chunkId = __rspack_esm_ids[i];
|
|
104
|
-
if (__webpack_require__.o(
|
|
105
|
-
|
|
104
|
+
if (__webpack_require__.o(moduleInstalledChunks, chunkId) && moduleInstalledChunks[chunkId]) moduleInstalledChunks[chunkId][0]();
|
|
105
|
+
moduleInstalledChunks[__rspack_esm_ids[i]] = 0;
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
-
__webpack_require__.C =
|
|
108
|
+
__webpack_require__.C = moduleInstallChunk;
|
|
109
109
|
})();
|
|
110
110
|
__webpack_require__.add({
|
|
111
|
-
"./node_modules/.pnpm/http-compression@1.1.3/node_modules/http-compression/src/index.js" (module
|
|
112
|
-
const zlib =
|
|
111
|
+
"./node_modules/.pnpm/http-compression@1.1.3/node_modules/http-compression/src/index.js" (module) {
|
|
112
|
+
const zlib = __rspack_createRequire_require("zlib");
|
|
113
113
|
const MIMES = /text|javascript|\/json|xml/i;
|
|
114
114
|
const noop = ()=>{};
|
|
115
115
|
const getChunkSize = (chunk, enc)=>chunk ? Buffer.byteLength(chunk, enc) : 0;
|
|
@@ -191,8 +191,8 @@ __webpack_require__.add({
|
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
193
|
},
|
|
194
|
-
"./node_modules/.pnpm/ws@8.
|
|
195
|
-
const { EMPTY_BUFFER } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
194
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/buffer-util.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
195
|
+
const { EMPTY_BUFFER } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js");
|
|
196
196
|
const FastBuffer = Buffer[Symbol.species];
|
|
197
197
|
function concat(list, totalLength) {
|
|
198
198
|
if (0 === list.length) return EMPTY_BUFFER;
|
|
@@ -237,7 +237,7 @@ __webpack_require__.add({
|
|
|
237
237
|
unmask: _unmask
|
|
238
238
|
};
|
|
239
239
|
},
|
|
240
|
-
"./node_modules/.pnpm/ws@8.
|
|
240
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js" (module) {
|
|
241
241
|
const BINARY_TYPES = [
|
|
242
242
|
'nodebuffer',
|
|
243
243
|
'arraybuffer',
|
|
@@ -258,8 +258,8 @@ __webpack_require__.add({
|
|
|
258
258
|
NOOP: ()=>{}
|
|
259
259
|
};
|
|
260
260
|
},
|
|
261
|
-
"./node_modules/.pnpm/ws@8.
|
|
262
|
-
const { kForOnEventAttribute, kListener } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
261
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/event-target.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
262
|
+
const { kForOnEventAttribute, kListener } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js");
|
|
263
263
|
const kCode = Symbol('kCode');
|
|
264
264
|
const kData = Symbol('kData');
|
|
265
265
|
const kError = Symbol('kError');
|
|
@@ -403,8 +403,8 @@ __webpack_require__.add({
|
|
|
403
403
|
else listener.call(thisArg, event);
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
|
-
"./node_modules/.pnpm/ws@8.
|
|
407
|
-
const { tokenChars } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
406
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/extension.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
407
|
+
const { tokenChars } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/validation.js");
|
|
408
408
|
function push(dest, name, elem) {
|
|
409
409
|
if (void 0 === dest[name]) dest[name] = [
|
|
410
410
|
elem
|
|
@@ -525,7 +525,7 @@ __webpack_require__.add({
|
|
|
525
525
|
parse
|
|
526
526
|
};
|
|
527
527
|
},
|
|
528
|
-
"./node_modules/.pnpm/ws@8.
|
|
528
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/limiter.js" (module) {
|
|
529
529
|
const kDone = Symbol('kDone');
|
|
530
530
|
const kRun = Symbol('kRun');
|
|
531
531
|
class Limiter {
|
|
@@ -553,11 +553,11 @@ __webpack_require__.add({
|
|
|
553
553
|
}
|
|
554
554
|
module.exports = Limiter;
|
|
555
555
|
},
|
|
556
|
-
"./node_modules/.pnpm/ws@8.
|
|
557
|
-
const zlib =
|
|
558
|
-
const bufferUtil = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
559
|
-
const Limiter = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
560
|
-
const { kStatusCode } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
556
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/permessage-deflate.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
557
|
+
const zlib = __rspack_createRequire_require("zlib");
|
|
558
|
+
const bufferUtil = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/buffer-util.js");
|
|
559
|
+
const Limiter = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/limiter.js");
|
|
560
|
+
const { kStatusCode } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js");
|
|
561
561
|
const FastBuffer = Buffer[Symbol.species];
|
|
562
562
|
const TRAILER = Buffer.from([
|
|
563
563
|
0x00,
|
|
@@ -762,12 +762,12 @@ __webpack_require__.add({
|
|
|
762
762
|
this[kCallback](err);
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
|
-
"./node_modules/.pnpm/ws@8.
|
|
766
|
-
const { Writable } =
|
|
767
|
-
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
768
|
-
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
769
|
-
const { concat, toArrayBuffer, unmask } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
770
|
-
const { isValidStatusCode, isValidUTF8 } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
765
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/receiver.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
766
|
+
const { Writable } = __rspack_createRequire_require("stream");
|
|
767
|
+
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/permessage-deflate.js");
|
|
768
|
+
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js");
|
|
769
|
+
const { concat, toArrayBuffer, unmask } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/buffer-util.js");
|
|
770
|
+
const { isValidStatusCode, isValidUTF8 } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/validation.js");
|
|
771
771
|
const FastBuffer = Buffer[Symbol.species];
|
|
772
772
|
const GET_INFO = 0;
|
|
773
773
|
const GET_PAYLOAD_LENGTH_16 = 1;
|
|
@@ -1119,14 +1119,14 @@ __webpack_require__.add({
|
|
|
1119
1119
|
}
|
|
1120
1120
|
module.exports = Receiver;
|
|
1121
1121
|
},
|
|
1122
|
-
"./node_modules/.pnpm/ws@8.
|
|
1123
|
-
const { Duplex } =
|
|
1124
|
-
const { randomFillSync } =
|
|
1125
|
-
const { types: { isUint8Array } } =
|
|
1126
|
-
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1127
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1128
|
-
const { isBlob, isValidStatusCode } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1129
|
-
const { mask: applyMask, toBuffer } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1122
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/sender.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1123
|
+
const { Duplex } = __rspack_createRequire_require("stream");
|
|
1124
|
+
const { randomFillSync } = __rspack_createRequire_require("crypto");
|
|
1125
|
+
const { types: { isUint8Array } } = __rspack_createRequire_require("util");
|
|
1126
|
+
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/permessage-deflate.js");
|
|
1127
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js");
|
|
1128
|
+
const { isBlob, isValidStatusCode } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/validation.js");
|
|
1129
|
+
const { mask: applyMask, toBuffer } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/buffer-util.js");
|
|
1130
1130
|
const kByteLength = Symbol('kByteLength');
|
|
1131
1131
|
const maskBuffer = Buffer.alloc(4);
|
|
1132
1132
|
const RANDOM_POOL_SIZE = 8192;
|
|
@@ -1470,9 +1470,9 @@ __webpack_require__.add({
|
|
|
1470
1470
|
sender.onerror(err);
|
|
1471
1471
|
}
|
|
1472
1472
|
},
|
|
1473
|
-
"./node_modules/.pnpm/ws@8.
|
|
1474
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1475
|
-
const { Duplex } =
|
|
1473
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/stream.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1474
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket.js");
|
|
1475
|
+
const { Duplex } = __rspack_createRequire_require("stream");
|
|
1476
1476
|
function emitClose(stream) {
|
|
1477
1477
|
stream.emit('close');
|
|
1478
1478
|
}
|
|
@@ -1553,8 +1553,8 @@ __webpack_require__.add({
|
|
|
1553
1553
|
}
|
|
1554
1554
|
module.exports = createWebSocketStream;
|
|
1555
1555
|
},
|
|
1556
|
-
"./node_modules/.pnpm/ws@8.
|
|
1557
|
-
const { tokenChars } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1556
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/subprotocol.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1557
|
+
const { tokenChars } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/validation.js");
|
|
1558
1558
|
function parse(header) {
|
|
1559
1559
|
const protocols = new Set();
|
|
1560
1560
|
let start = -1;
|
|
@@ -1585,9 +1585,9 @@ __webpack_require__.add({
|
|
|
1585
1585
|
parse
|
|
1586
1586
|
};
|
|
1587
1587
|
},
|
|
1588
|
-
"./node_modules/.pnpm/ws@8.
|
|
1589
|
-
const { isUtf8 } =
|
|
1590
|
-
const { hasBlob } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1588
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/validation.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1589
|
+
const { isUtf8 } = __rspack_createRequire_require("buffer");
|
|
1590
|
+
const { hasBlob } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js");
|
|
1591
1591
|
const tokenChars = [
|
|
1592
1592
|
0,
|
|
1593
1593
|
0,
|
|
@@ -1751,16 +1751,16 @@ __webpack_require__.add({
|
|
|
1751
1751
|
return buf.length < 24 ? _isValidUTF8(buf) : isUtf8(buf);
|
|
1752
1752
|
};
|
|
1753
1753
|
},
|
|
1754
|
-
"./node_modules/.pnpm/ws@8.
|
|
1755
|
-
const EventEmitter =
|
|
1756
|
-
const http =
|
|
1757
|
-
const { Duplex } =
|
|
1758
|
-
const { createHash } =
|
|
1759
|
-
const extension = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1760
|
-
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1761
|
-
const subprotocol = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1762
|
-
const WebSocket = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1763
|
-
const { CLOSE_TIMEOUT, GUID, kWebSocket } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1754
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket-server.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1755
|
+
const EventEmitter = __rspack_createRequire_require("events");
|
|
1756
|
+
const http = __rspack_createRequire_require("http");
|
|
1757
|
+
const { Duplex } = __rspack_createRequire_require("stream");
|
|
1758
|
+
const { createHash } = __rspack_createRequire_require("crypto");
|
|
1759
|
+
const extension = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/extension.js");
|
|
1760
|
+
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/permessage-deflate.js");
|
|
1761
|
+
const subprotocol = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/subprotocol.js");
|
|
1762
|
+
const WebSocket = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket.js");
|
|
1763
|
+
const { CLOSE_TIMEOUT, GUID, kWebSocket } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js");
|
|
1764
1764
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
1765
1765
|
const RUNNING = 0;
|
|
1766
1766
|
const CLOSING = 1;
|
|
@@ -2013,23 +2013,23 @@ __webpack_require__.add({
|
|
|
2013
2013
|
} else abortHandshake(socket, code, message, headers);
|
|
2014
2014
|
}
|
|
2015
2015
|
},
|
|
2016
|
-
"./node_modules/.pnpm/ws@8.
|
|
2017
|
-
const EventEmitter =
|
|
2018
|
-
const https =
|
|
2019
|
-
const http =
|
|
2020
|
-
const net =
|
|
2021
|
-
const tls =
|
|
2022
|
-
const { randomBytes, createHash } =
|
|
2023
|
-
const { Duplex, Readable } =
|
|
2024
|
-
const { URL: URL1 } =
|
|
2025
|
-
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2026
|
-
const Receiver = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2027
|
-
const Sender = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2028
|
-
const { isBlob } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2029
|
-
const { BINARY_TYPES, CLOSE_TIMEOUT, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2030
|
-
const { EventTarget: { addEventListener, removeEventListener } } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2031
|
-
const { format, parse } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2032
|
-
const { toBuffer } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2016
|
+
"./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2017
|
+
const EventEmitter = __rspack_createRequire_require("events");
|
|
2018
|
+
const https = __rspack_createRequire_require("https");
|
|
2019
|
+
const http = __rspack_createRequire_require("http");
|
|
2020
|
+
const net = __rspack_createRequire_require("net");
|
|
2021
|
+
const tls = __rspack_createRequire_require("tls");
|
|
2022
|
+
const { randomBytes, createHash } = __rspack_createRequire_require("crypto");
|
|
2023
|
+
const { Duplex, Readable } = __rspack_createRequire_require("stream");
|
|
2024
|
+
const { URL: URL1 } = __rspack_createRequire_require("url");
|
|
2025
|
+
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/permessage-deflate.js");
|
|
2026
|
+
const Receiver = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/receiver.js");
|
|
2027
|
+
const Sender = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/sender.js");
|
|
2028
|
+
const { isBlob } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/validation.js");
|
|
2029
|
+
const { BINARY_TYPES, CLOSE_TIMEOUT, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js");
|
|
2030
|
+
const { EventTarget: { addEventListener, removeEventListener } } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/event-target.js");
|
|
2031
|
+
const { format, parse } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/extension.js");
|
|
2032
|
+
const { toBuffer } = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/buffer-util.js");
|
|
2033
2033
|
const kAborted = Symbol('kAborted');
|
|
2034
2034
|
const protocolVersions = [
|
|
2035
2035
|
8,
|
|
@@ -2063,10 +2063,14 @@ __webpack_require__.add({
|
|
|
2063
2063
|
this._bufferedAmount = 0;
|
|
2064
2064
|
this._isServer = false;
|
|
2065
2065
|
this._redirects = 0;
|
|
2066
|
-
if (void 0 === protocols) protocols = [
|
|
2066
|
+
if (void 0 === protocols) protocols = options && void 0 !== options.protocols ? Array.isArray(options.protocols) ? options.protocols : [
|
|
2067
|
+
options.protocols
|
|
2068
|
+
] : [];
|
|
2067
2069
|
else if (!Array.isArray(protocols)) if ('object' == typeof protocols && null !== protocols) {
|
|
2068
2070
|
options = protocols;
|
|
2069
|
-
protocols = []
|
|
2071
|
+
protocols = void 0 === options.protocols ? [] : Array.isArray(options.protocols) ? options.protocols : [
|
|
2072
|
+
options.protocols
|
|
2073
|
+
];
|
|
2070
2074
|
} else protocols = [
|
|
2071
2075
|
protocols
|
|
2072
2076
|
];
|
|
@@ -2173,12 +2177,12 @@ __webpack_require__.add({
|
|
|
2173
2177
|
if (this._closeFrameSent && (this._closeFrameReceived || this._receiver._writableState.errorEmitted)) this._socket.end();
|
|
2174
2178
|
return;
|
|
2175
2179
|
}
|
|
2176
|
-
this._readyState = WebSocket.CLOSING;
|
|
2177
2180
|
this._sender.close(code, data, !this._isServer, (err)=>{
|
|
2178
2181
|
if (err) return;
|
|
2179
2182
|
this._closeFrameSent = true;
|
|
2180
2183
|
if (this._closeFrameReceived || this._receiver._writableState.errorEmitted) this._socket.end();
|
|
2181
2184
|
});
|
|
2185
|
+
this._readyState = WebSocket.CLOSING;
|
|
2182
2186
|
setCloseTimer(this);
|
|
2183
2187
|
}
|
|
2184
2188
|
pause() {
|
|
@@ -2339,6 +2343,7 @@ __webpack_require__.add({
|
|
|
2339
2343
|
socketPath: void 0,
|
|
2340
2344
|
hostname: void 0,
|
|
2341
2345
|
protocol: void 0,
|
|
2346
|
+
protocols: void 0,
|
|
2342
2347
|
timeout: void 0,
|
|
2343
2348
|
method: 'GET',
|
|
2344
2349
|
host: void 0,
|
|
@@ -2368,7 +2373,7 @@ __webpack_require__.add({
|
|
|
2368
2373
|
if (invalidUrlMessage) {
|
|
2369
2374
|
const err = new SyntaxError(invalidUrlMessage);
|
|
2370
2375
|
if (0 !== websocket._redirects) return void emitErrorAndClose(websocket, err);
|
|
2371
|
-
throw err;
|
|
2376
|
+
else throw err;
|
|
2372
2377
|
}
|
|
2373
2378
|
const defaultPort = isSecure ? 443 : 80;
|
|
2374
2379
|
const key = randomBytes(16).toString('base64');
|
|
@@ -2663,54 +2668,9 @@ __webpack_require__.add({
|
|
|
2663
2668
|
async_hooks (module) {
|
|
2664
2669
|
module.exports = __rspack_createRequire_require("async_hooks");
|
|
2665
2670
|
},
|
|
2666
|
-
buffer (module) {
|
|
2667
|
-
module.exports = __rspack_createRequire_require("buffer");
|
|
2668
|
-
},
|
|
2669
|
-
child_process (module) {
|
|
2670
|
-
module.exports = __rspack_createRequire_require("child_process");
|
|
2671
|
-
},
|
|
2672
|
-
crypto (module) {
|
|
2673
|
-
module.exports = __rspack_createRequire_require("crypto");
|
|
2674
|
-
},
|
|
2675
|
-
events (module) {
|
|
2676
|
-
module.exports = __rspack_createRequire_require("events");
|
|
2677
|
-
},
|
|
2678
|
-
fs (module) {
|
|
2679
|
-
module.exports = __rspack_createRequire_require("fs");
|
|
2680
|
-
},
|
|
2681
|
-
http (module) {
|
|
2682
|
-
module.exports = __rspack_createRequire_require("http");
|
|
2683
|
-
},
|
|
2684
|
-
https (module) {
|
|
2685
|
-
module.exports = __rspack_createRequire_require("https");
|
|
2686
|
-
},
|
|
2687
|
-
net (module) {
|
|
2688
|
-
module.exports = __rspack_createRequire_require("net");
|
|
2689
|
-
},
|
|
2690
|
-
os (module) {
|
|
2691
|
-
module.exports = __rspack_createRequire_require("os");
|
|
2692
|
-
},
|
|
2693
|
-
path (module) {
|
|
2694
|
-
module.exports = __rspack_createRequire_require("path");
|
|
2695
|
-
},
|
|
2696
|
-
stream (module) {
|
|
2697
|
-
module.exports = __rspack_createRequire_require("stream");
|
|
2698
|
-
},
|
|
2699
|
-
tls (module) {
|
|
2700
|
-
module.exports = __rspack_createRequire_require("tls");
|
|
2701
|
-
},
|
|
2702
|
-
tty (module) {
|
|
2703
|
-
module.exports = __rspack_createRequire_require("tty");
|
|
2704
|
-
},
|
|
2705
|
-
"url?b918" (module) {
|
|
2706
|
-
module.exports = __rspack_createRequire_require("url");
|
|
2707
|
-
},
|
|
2708
2671
|
util (module) {
|
|
2709
2672
|
module.exports = __rspack_createRequire_require("util");
|
|
2710
2673
|
},
|
|
2711
|
-
zlib (module) {
|
|
2712
|
-
module.exports = __rspack_createRequire_require("zlib");
|
|
2713
|
-
},
|
|
2714
2674
|
"./node_modules/.pnpm/ipaddr.js@2.5.0/node_modules/ipaddr.js/lib/ipaddr.js" (module) {
|
|
2715
2675
|
(function(root) {
|
|
2716
2676
|
'use strict';
|
|
@@ -2754,7 +2714,7 @@ __webpack_require__.add({
|
|
|
2754
2714
|
parts = function() {
|
|
2755
2715
|
const ref = string.split(':');
|
|
2756
2716
|
const results = [];
|
|
2757
|
-
for(let i = 0; i < ref.length; i++)results.push(ref[i].length > 4 ?
|
|
2717
|
+
for(let i = 0; i < ref.length; i++)results.push(ref[i].length > 4 ? 0 / 0 : parseInt(ref[i], 16));
|
|
2758
2718
|
return results;
|
|
2759
2719
|
}();
|
|
2760
2720
|
return {
|
|
@@ -3022,10 +2982,12 @@ __webpack_require__.add({
|
|
|
3022
2982
|
for(i = 3; i >= 0; i -= 1){
|
|
3023
2983
|
octet = this.octets[i];
|
|
3024
2984
|
if (!(octet in zerotable)) return null;
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
2985
|
+
else {
|
|
2986
|
+
zeros = zerotable[octet];
|
|
2987
|
+
if (stop && 0 !== zeros) return null;
|
|
2988
|
+
if (8 !== zeros) stop = true;
|
|
2989
|
+
cidr += zeros;
|
|
2990
|
+
}
|
|
3029
2991
|
}
|
|
3030
2992
|
return 32 - cidr;
|
|
3031
2993
|
};
|
|
@@ -3085,7 +3047,7 @@ __webpack_require__.add({
|
|
|
3085
3047
|
};
|
|
3086
3048
|
ipaddr.IPv4.isValidFourPartDecimal = function(string) {
|
|
3087
3049
|
if (ipaddr.IPv4.isValid(string) && string.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/)) return true;
|
|
3088
|
-
return false;
|
|
3050
|
+
else return false;
|
|
3089
3051
|
};
|
|
3090
3052
|
ipaddr.IPv4.isValidCIDRFourPartDecimal = function(string) {
|
|
3091
3053
|
const match = string.match(/^(.+)\/(\d+)$/);
|
|
@@ -3146,7 +3108,7 @@ __webpack_require__.add({
|
|
|
3146
3108
|
}
|
|
3147
3109
|
return results;
|
|
3148
3110
|
}();
|
|
3149
|
-
if (match = string.match(ipv4Regexes.longValue)) {
|
|
3111
|
+
else if (match = string.match(ipv4Regexes.longValue)) {
|
|
3150
3112
|
value = parseIntAuto(match[1]);
|
|
3151
3113
|
if (value > 0xffffffff || value < 0) throw new Error('ipaddr: address outside defined range');
|
|
3152
3114
|
return (function() {
|
|
@@ -3155,8 +3117,7 @@ __webpack_require__.add({
|
|
|
3155
3117
|
for(shift = 0; shift <= 24; shift += 8)results.push(value >> shift & 0xff);
|
|
3156
3118
|
return results;
|
|
3157
3119
|
})().reverse();
|
|
3158
|
-
}
|
|
3159
|
-
if (match = string.match(ipv4Regexes.twoOctet)) return function() {
|
|
3120
|
+
} else if (match = string.match(ipv4Regexes.twoOctet)) return function() {
|
|
3160
3121
|
const ref = match.slice(1, 4);
|
|
3161
3122
|
const results = [];
|
|
3162
3123
|
value = parseIntAuto(ref[1]);
|
|
@@ -3167,7 +3128,7 @@ __webpack_require__.add({
|
|
|
3167
3128
|
results.push(0xff & value);
|
|
3168
3129
|
return results;
|
|
3169
3130
|
}();
|
|
3170
|
-
if (match = string.match(ipv4Regexes.threeOctet)) return function() {
|
|
3131
|
+
else if (match = string.match(ipv4Regexes.threeOctet)) return function() {
|
|
3171
3132
|
const ref = match.slice(1, 5);
|
|
3172
3133
|
const results = [];
|
|
3173
3134
|
value = parseIntAuto(ref[2]);
|
|
@@ -3178,7 +3139,7 @@ __webpack_require__.add({
|
|
|
3178
3139
|
results.push(0xff & value);
|
|
3179
3140
|
return results;
|
|
3180
3141
|
}();
|
|
3181
|
-
return null;
|
|
3142
|
+
else return null;
|
|
3182
3143
|
};
|
|
3183
3144
|
ipaddr.IPv4.subnetMaskFromPrefixLength = function(prefix) {
|
|
3184
3145
|
prefix = parseInt(prefix);
|
|
@@ -3574,10 +3535,12 @@ __webpack_require__.add({
|
|
|
3574
3535
|
for(let i = 7; i >= 0; i -= 1){
|
|
3575
3536
|
part = this.parts[i];
|
|
3576
3537
|
if (!(part in zerotable)) return null;
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3538
|
+
else {
|
|
3539
|
+
zeros = zerotable[part];
|
|
3540
|
+
if (stop && 0 !== zeros) return null;
|
|
3541
|
+
if (16 !== zeros) stop = true;
|
|
3542
|
+
cidr += zeros;
|
|
3543
|
+
}
|
|
3581
3544
|
}
|
|
3582
3545
|
return 128 - cidr;
|
|
3583
3546
|
};
|
|
@@ -3799,8 +3762,8 @@ __webpack_require__.add({
|
|
|
3799
3762
|
ipaddr.fromByteArray = function(bytes) {
|
|
3800
3763
|
const length = bytes.length;
|
|
3801
3764
|
if (4 === length) return new ipaddr.IPv4(bytes);
|
|
3802
|
-
if (16 === length) return new ipaddr.IPv6(bytes);
|
|
3803
|
-
throw new Error('ipaddr: the binary input is neither an IPv6 nor IPv4 address');
|
|
3765
|
+
else if (16 === length) return new ipaddr.IPv6(bytes);
|
|
3766
|
+
else throw new Error('ipaddr: the binary input is neither an IPv6 nor IPv4 address');
|
|
3804
3767
|
};
|
|
3805
3768
|
ipaddr.isValid = function(string) {
|
|
3806
3769
|
return ipaddr.IPv6.isValid(string) || ipaddr.IPv4.isValid(string);
|
|
@@ -3810,8 +3773,8 @@ __webpack_require__.add({
|
|
|
3810
3773
|
};
|
|
3811
3774
|
ipaddr.parse = function(string) {
|
|
3812
3775
|
if (ipaddr.IPv6.isValid(string)) return ipaddr.IPv6.parse(string);
|
|
3813
|
-
if (ipaddr.IPv4.isValid(string)) return ipaddr.IPv4.parse(string);
|
|
3814
|
-
throw new Error('ipaddr: the address has neither IPv6 nor IPv4 format');
|
|
3776
|
+
else if (ipaddr.IPv4.isValid(string)) return ipaddr.IPv4.parse(string);
|
|
3777
|
+
else throw new Error('ipaddr: the address has neither IPv6 nor IPv4 format');
|
|
3815
3778
|
};
|
|
3816
3779
|
ipaddr.parseCIDR = function(string) {
|
|
3817
3780
|
try {
|
|
@@ -3829,7 +3792,7 @@ __webpack_require__.add({
|
|
|
3829
3792
|
ipaddr.process = function(string) {
|
|
3830
3793
|
const addr = this.parse(string);
|
|
3831
3794
|
if ('ipv6' === addr.kind() && addr.isIPv4MappedAddress()) return addr.toIPv4Address();
|
|
3832
|
-
return addr;
|
|
3795
|
+
else return addr;
|
|
3833
3796
|
};
|
|
3834
3797
|
ipaddr.subnetMatch = function(address, rangeList, defaultName) {
|
|
3835
3798
|
let i, rangeName, rangeSubnets, subnet;
|
|
@@ -3905,14 +3868,14 @@ async function getPort(basePort, host) {
|
|
|
3905
3868
|
}
|
|
3906
3869
|
throw new Error('No available ports found');
|
|
3907
3870
|
}
|
|
3908
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3909
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3910
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3911
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3912
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3913
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3914
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3915
|
-
const websocket_server = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3871
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/stream.js");
|
|
3872
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/extension.js");
|
|
3873
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/permessage-deflate.js");
|
|
3874
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/receiver.js");
|
|
3875
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/sender.js");
|
|
3876
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/subprotocol.js");
|
|
3877
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket.js");
|
|
3878
|
+
const websocket_server = __webpack_require__("./node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket-server.js");
|
|
3916
3879
|
class BaseServer {
|
|
3917
3880
|
server;
|
|
3918
3881
|
clients;
|
|
@@ -3979,10 +3942,10 @@ const { styleText: styleText } = __rspack_external_node_util_ac04460e;
|
|
|
3979
3942
|
const server_require = createRequire(import.meta.url);
|
|
3980
3943
|
if (!process.env.RSPACK_SERVE) process.env.RSPACK_SERVE = 'true';
|
|
3981
3944
|
const getConnect = async ()=>{
|
|
3982
|
-
const { connect } = await import("./
|
|
3945
|
+
const { connect } = await import("./connect-next~0.js");
|
|
3983
3946
|
return connect;
|
|
3984
3947
|
};
|
|
3985
|
-
const getChokidar = ()=>import("./0
|
|
3948
|
+
const getChokidar = ()=>import("./chokidar~0.js").then((m)=>m.chokidar_namespaceObject);
|
|
3986
3949
|
const encodeOverlaySettings = (setting)=>'function' == typeof setting ? encodeURIComponent(setting.toString()) : setting;
|
|
3987
3950
|
const DEFAULT_ALLOWED_PROTOCOLS = /^(file|.+-extension):/i;
|
|
3988
3951
|
function parseHostnameFromHeader(header) {
|
|
@@ -4069,7 +4032,7 @@ class Server {
|
|
|
4069
4032
|
}
|
|
4070
4033
|
static async getFreePort(port, host) {
|
|
4071
4034
|
if (null != port && 'auto' !== port) return port;
|
|
4072
|
-
const { default: pRetry } = await import("./
|
|
4035
|
+
const { default: pRetry } = await import("./p-retry~0.js");
|
|
4073
4036
|
const basePort = void 0 !== process.env.RSPACK_DEV_SERVER_BASE_PORT ? Number.parseInt(process.env.RSPACK_DEV_SERVER_BASE_PORT, 10) : 8080;
|
|
4074
4037
|
const defaultPortRetry = void 0 !== process.env.RSPACK_DEV_SERVER_PORT_RETRY ? Number.parseInt(process.env.RSPACK_DEV_SERVER_PORT_RETRY, 10) : 3;
|
|
4075
4038
|
return pRetry(()=>getPort(basePort, host), {
|
|
@@ -4756,7 +4719,7 @@ class Server {
|
|
|
4756
4719
|
const params = new URLSearchParams(resolveUrl.search);
|
|
4757
4720
|
const fileName = params.get('fileName');
|
|
4758
4721
|
if ('string' == typeof fileName) {
|
|
4759
|
-
const { default: launchEditor } = await import("./
|
|
4722
|
+
const { default: launchEditor } = await import("./launch-editor~0.js").then(__webpack_require__.t.bind(__webpack_require__, "./node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/index.js", 23));
|
|
4760
4723
|
launchEditor(fileName);
|
|
4761
4724
|
}
|
|
4762
4725
|
res.end();
|
|
@@ -4802,7 +4765,7 @@ class Server {
|
|
|
4802
4765
|
}
|
|
4803
4766
|
});
|
|
4804
4767
|
if (this.options.proxy) {
|
|
4805
|
-
const { createProxyMiddleware } = await import("./
|
|
4768
|
+
const { createProxyMiddleware } = await import("./http-proxy-middleware~0.js");
|
|
4806
4769
|
const defaultProxyLogger = {
|
|
4807
4770
|
info: this.logger.log.bind(this.logger),
|
|
4808
4771
|
warn: this.logger.warn.bind(this.logger),
|
|
@@ -4851,14 +4814,14 @@ class Server {
|
|
|
4851
4814
|
}
|
|
4852
4815
|
const staticOptions = this.options.static;
|
|
4853
4816
|
const useStatic = staticOptions.length > 0;
|
|
4854
|
-
const serveStatic = useStatic ? (await import("./
|
|
4817
|
+
const serveStatic = useStatic ? (await import("./serve-static~0.js").then(__webpack_require__.t.bind(__webpack_require__, "./node_modules/.pnpm/serve-static@2.2.1_supports-color@8.1.1/node_modules/serve-static/index.js", 23))).default : null;
|
|
4855
4818
|
if (useStatic) for (const staticOption of staticOptions)for (const publicPath of staticOption.publicPath)middlewares.push({
|
|
4856
4819
|
name: 'serve-static',
|
|
4857
4820
|
path: publicPath,
|
|
4858
4821
|
middleware: serveStatic(staticOption.directory, staticOption.staticOptions)
|
|
4859
4822
|
});
|
|
4860
4823
|
if (this.options.historyApiFallback) {
|
|
4861
|
-
const { default: connectHistoryApiFallback } = await import("./
|
|
4824
|
+
const { default: connectHistoryApiFallback } = await import("./connect-history-api-fallback~0.js").then(__webpack_require__.t.bind(__webpack_require__, "./node_modules/.pnpm/connect-history-api-fallback@2.0.0/node_modules/connect-history-api-fallback/lib/index.js", 23));
|
|
4862
4825
|
const { historyApiFallback } = this.options;
|
|
4863
4826
|
if (void 0 === historyApiFallback && !historyApiFallback.verbose) historyApiFallback.logger = this.logger.log.bind(this.logger, '[connect-history-api-fallback]');
|
|
4864
4827
|
middlewares.push({
|
|
@@ -4963,7 +4926,7 @@ class Server {
|
|
|
4963
4926
|
});
|
|
4964
4927
|
}
|
|
4965
4928
|
async #openBrowser(defaultOpenTarget) {
|
|
4966
|
-
const { default: open } = await import("./0
|
|
4929
|
+
const { default: open } = await import("./open~0.js");
|
|
4967
4930
|
Promise.all(this.options.open.map((item)=>{
|
|
4968
4931
|
let openTarget;
|
|
4969
4932
|
openTarget = '<url>' === item.target ? defaultOpenTarget : Server.isAbsoluteURL(item.target) ? item.target : new URL(item.target, defaultOpenTarget).toString();
|