@rspack/dev-server 2.0.1 → 2.0.3
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/dist/0~chokidar.js +1 -1
- package/dist/0~connect-history-api-fallback.js +3 -3
- package/dist/0~debug.js +2 -2
- package/dist/0~http-proxy-middleware.js +27 -17
- package/dist/0~launch-editor.js +3 -3
- package/dist/0~serve-static.js +4 -4
- package/dist/{198.js → 465.js} +147 -68
- package/dist/index.js +1 -1
- package/package.json +25 -26
package/dist/0~chokidar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! LICENSE: 0~chokidar.js.LICENSE.txt */
|
|
2
|
-
import { __webpack_require__ } from "./
|
|
2
|
+
import { __webpack_require__ } from "./465.js";
|
|
3
3
|
import { EventEmitter } from "node:events";
|
|
4
4
|
import { stat as external_node_fs_stat, unwatchFile, watch, watchFile } from "node:fs";
|
|
5
5
|
import { lstat, open as promises_open, readdir, realpath as promises_realpath, stat as promises_stat } from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __webpack_require__ } from "./
|
|
2
|
-
import "./
|
|
1
|
+
import { __webpack_require__ } from "./465.js";
|
|
2
|
+
import "./465.js";
|
|
3
3
|
__webpack_require__.add({
|
|
4
4
|
"./node_modules/.pnpm/connect-history-api-fallback@2.0.0/node_modules/connect-history-api-fallback/lib/index.js" (module, exports, __webpack_require__) {
|
|
5
|
-
var url = __webpack_require__("url");
|
|
5
|
+
var url = __webpack_require__("url?b918");
|
|
6
6
|
module.exports = function(options) {
|
|
7
7
|
options = options || {};
|
|
8
8
|
var logger = getLogger(options);
|
package/dist/0~debug.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __webpack_require__ } from "./
|
|
2
|
-
import "./
|
|
1
|
+
import { __webpack_require__ } from "./465.js";
|
|
2
|
+
import "./465.js";
|
|
3
3
|
__webpack_require__.add({
|
|
4
4
|
"./node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js" (module, exports, __webpack_require__) {
|
|
5
5
|
exports.formatArgs = formatArgs;
|
|
@@ -6,11 +6,12 @@ import { EventEmitter } from "node:events";
|
|
|
6
6
|
import "node:net";
|
|
7
7
|
import "node:stream";
|
|
8
8
|
import { URL as external_node_url_URL } from "node:url";
|
|
9
|
+
import { URL as external_url_URL } from "url";
|
|
9
10
|
import "node:zlib";
|
|
10
11
|
import "node:querystring";
|
|
11
|
-
import { __webpack_require__ } from "./
|
|
12
|
+
import { __webpack_require__ } from "./465.js";
|
|
12
13
|
import "./0~debug.js";
|
|
13
|
-
import "./
|
|
14
|
+
import "./465.js";
|
|
14
15
|
__webpack_require__.add({
|
|
15
16
|
"./node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
16
17
|
const stringify = __webpack_require__("./node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
@@ -3391,7 +3392,7 @@ const Debug = src('http-proxy-middleware');
|
|
|
3391
3392
|
const debug = Debug.extend('debug-proxy-errors-plugin');
|
|
3392
3393
|
const debugProxyErrorsPlugin = (proxyServer)=>{
|
|
3393
3394
|
proxyServer.on('error', (error, req, res, target)=>{
|
|
3394
|
-
debug(`
|
|
3395
|
+
debug(`httpxy error event: \n%O`, error);
|
|
3395
3396
|
});
|
|
3396
3397
|
proxyServer.on('proxyReq', (proxyReq, req, socket)=>{
|
|
3397
3398
|
socket.on('error', (error)=>{
|
|
@@ -3422,7 +3423,7 @@ const debugProxyErrorsPlugin = (proxyServer)=>{
|
|
|
3422
3423
|
});
|
|
3423
3424
|
});
|
|
3424
3425
|
proxyServer.on('econnreset', (error, req, res, target)=>{
|
|
3425
|
-
debug(`
|
|
3426
|
+
debug(`httpxy econnreset event: \n%O`, error);
|
|
3426
3427
|
});
|
|
3427
3428
|
};
|
|
3428
3429
|
function getStatusCode(errorCode) {
|
|
@@ -3468,14 +3469,22 @@ const noopLogger = {
|
|
|
3468
3469
|
warn: ()=>{},
|
|
3469
3470
|
error: ()=>{}
|
|
3470
3471
|
};
|
|
3471
|
-
function
|
|
3472
|
+
function getLogger(options) {
|
|
3472
3473
|
return options.logger || noopLogger;
|
|
3473
3474
|
}
|
|
3475
|
+
function createUrl({ protocol, host, port, path }) {
|
|
3476
|
+
const ipv6Host = host?.includes(':') ? `[${host}]` : host;
|
|
3477
|
+
const base = `${protocol || 'undefined:'}//${ipv6Host || '[::]'}`;
|
|
3478
|
+
const url = new external_url_URL(base);
|
|
3479
|
+
if (port) url.port = port;
|
|
3480
|
+
if (path) url.pathname = path;
|
|
3481
|
+
return url;
|
|
3482
|
+
}
|
|
3474
3483
|
function logger_plugin_getPort(sockets) {
|
|
3475
3484
|
return Object.keys(sockets || {})?.[0]?.split(':')[1];
|
|
3476
3485
|
}
|
|
3477
3486
|
const loggerPlugin = (proxyServer, options)=>{
|
|
3478
|
-
const logger =
|
|
3487
|
+
const logger = getLogger(options);
|
|
3479
3488
|
proxyServer.on('error', (err, req, res, target)=>{
|
|
3480
3489
|
const hostname = req?.headers?.host;
|
|
3481
3490
|
const requestHref = `${hostname}${req?.url}`;
|
|
@@ -3489,14 +3498,15 @@ const loggerPlugin = (proxyServer, options)=>{
|
|
|
3489
3498
|
let target;
|
|
3490
3499
|
try {
|
|
3491
3500
|
const port = logger_plugin_getPort(proxyRes.req?.agent?.sockets);
|
|
3492
|
-
const
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3501
|
+
const { protocol, host, path } = proxyRes.req;
|
|
3502
|
+
target = createUrl({
|
|
3503
|
+
protocol,
|
|
3504
|
+
host,
|
|
3505
|
+
port,
|
|
3506
|
+
path
|
|
3507
|
+
});
|
|
3499
3508
|
} catch (err) {
|
|
3509
|
+
console.error('[HPM] Unexpected error while creating target URL', err);
|
|
3500
3510
|
target = new external_node_url_URL(options.target);
|
|
3501
3511
|
target.pathname = proxyRes.req.path;
|
|
3502
3512
|
}
|
|
@@ -3698,7 +3708,7 @@ class HttpProxyMiddleware {
|
|
|
3698
3708
|
constructor(options){
|
|
3699
3709
|
verifyConfig(options);
|
|
3700
3710
|
this.proxyOptions = options;
|
|
3701
|
-
this.logger =
|
|
3711
|
+
this.logger = getLogger(options);
|
|
3702
3712
|
Debug("create proxy server");
|
|
3703
3713
|
this.proxy = createProxyServer({});
|
|
3704
3714
|
this.registerPlugins(this.proxy, this.proxyOptions);
|
|
@@ -3790,7 +3800,7 @@ class HttpProxyMiddleware {
|
|
|
3790
3800
|
}
|
|
3791
3801
|
};
|
|
3792
3802
|
applyPathRewrite = async (req, pathRewriter)=>{
|
|
3793
|
-
if (pathRewriter) {
|
|
3803
|
+
if (req.url && pathRewriter) {
|
|
3794
3804
|
const path = await pathRewriter(req.url, req);
|
|
3795
3805
|
if ('string' == typeof path) {
|
|
3796
3806
|
Debug('pathRewrite new path: %s', path);
|
|
@@ -3799,9 +3809,9 @@ class HttpProxyMiddleware {
|
|
|
3799
3809
|
}
|
|
3800
3810
|
};
|
|
3801
3811
|
}
|
|
3802
|
-
function
|
|
3812
|
+
function createProxyMiddleware(options) {
|
|
3803
3813
|
const { middleware } = new HttpProxyMiddleware(options);
|
|
3804
3814
|
return middleware;
|
|
3805
3815
|
}
|
|
3806
3816
|
Debug.extend('response-interceptor');
|
|
3807
|
-
export {
|
|
3817
|
+
export { createProxyMiddleware };
|
package/dist/0~launch-editor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __webpack_require__ } from "./
|
|
2
|
-
import "./
|
|
1
|
+
import { __webpack_require__ } from "./465.js";
|
|
2
|
+
import "./465.js";
|
|
3
3
|
__webpack_require__.add({
|
|
4
4
|
"./node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js" (module) {
|
|
5
5
|
module.exports = {
|
|
@@ -313,7 +313,7 @@ __webpack_require__.add({
|
|
|
313
313
|
}
|
|
314
314
|
const positionRE = /:(\d+)(:(\d+))?$/;
|
|
315
315
|
function parseFile(file) {
|
|
316
|
-
if (file.startsWith('file://')) file = __webpack_require__("url").fileURLToPath(file);
|
|
316
|
+
if (file.startsWith('file://')) file = __webpack_require__("url?b918").fileURLToPath(file);
|
|
317
317
|
const fileName = file.replace(positionRE, '');
|
|
318
318
|
const match = file.match(positionRE);
|
|
319
319
|
const lineNumber = match && match[1];
|
package/dist/0~serve-static.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! LICENSE: 0~serve-static.js.LICENSE.txt */
|
|
2
|
-
import { __webpack_require__ } from "./
|
|
3
|
-
import "./
|
|
2
|
+
import { __webpack_require__ } from "./465.js";
|
|
3
|
+
import "./465.js";
|
|
4
4
|
import "./0~debug.js";
|
|
5
5
|
__webpack_require__.add({
|
|
6
6
|
"./node_modules/.pnpm/depd@2.0.0/node_modules/depd/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
@@ -860,7 +860,7 @@ __webpack_require__.add({
|
|
|
860
860
|
* Copyright(c) 2014 Jonathan Ong
|
|
861
861
|
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
862
862
|
* MIT Licensed
|
|
863
|
-
*/ var url = __webpack_require__("url");
|
|
863
|
+
*/ var url = __webpack_require__("url?b918");
|
|
864
864
|
var parse = url.parse;
|
|
865
865
|
var Url = url.Url;
|
|
866
866
|
module.exports = parseurl;
|
|
@@ -1430,7 +1430,7 @@ __webpack_require__.add({
|
|
|
1430
1430
|
var parseUrl = __webpack_require__("./node_modules/.pnpm/parseurl@1.3.3/node_modules/parseurl/index.js");
|
|
1431
1431
|
var resolve = __webpack_require__("path").resolve;
|
|
1432
1432
|
var send = __webpack_require__("./node_modules/.pnpm/send@1.2.1/node_modules/send/index.js");
|
|
1433
|
-
var url = __webpack_require__("url");
|
|
1433
|
+
var url = __webpack_require__("url?b918");
|
|
1434
1434
|
module.exports = serveStatic;
|
|
1435
1435
|
function serveStatic(root, options) {
|
|
1436
1436
|
if (!root) throw new TypeError('root path required');
|
package/dist/{198.js → 465.js}
RENAMED
|
@@ -85,8 +85,8 @@ var __webpack_require__temp = __webpack_require__;
|
|
|
85
85
|
})();
|
|
86
86
|
(()=>{
|
|
87
87
|
var installedChunks = {
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
410: 0,
|
|
89
|
+
465: 0
|
|
90
90
|
};
|
|
91
91
|
var installChunk = (data)=>{
|
|
92
92
|
var __rspack_esm_ids = data.__rspack_esm_ids;
|
|
@@ -187,7 +187,7 @@ __webpack_require__.add({
|
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
189
|
},
|
|
190
|
-
"./node_modules/.pnpm/ipaddr.js@2.
|
|
190
|
+
"./node_modules/.pnpm/ipaddr.js@2.4.0/node_modules/ipaddr.js/lib/ipaddr.js" (module) {
|
|
191
191
|
(function(root) {
|
|
192
192
|
'use strict';
|
|
193
193
|
const ipv4Part = '(0?\\d+|0x[a-f0-9]+)';
|
|
@@ -763,9 +763,9 @@ __webpack_require__.add({
|
|
|
763
763
|
]),
|
|
764
764
|
96
|
|
765
765
|
],
|
|
766
|
-
|
|
766
|
+
deprecatedSiteLocal: [
|
|
767
767
|
new IPv6([
|
|
768
|
-
|
|
768
|
+
0xfec0,
|
|
769
769
|
0,
|
|
770
770
|
0,
|
|
771
771
|
0,
|
|
@@ -774,34 +774,62 @@ __webpack_require__.add({
|
|
|
774
774
|
0,
|
|
775
775
|
0
|
|
776
776
|
]),
|
|
777
|
-
|
|
777
|
+
10
|
|
778
778
|
],
|
|
779
|
-
|
|
779
|
+
discard: [
|
|
780
780
|
new IPv6([
|
|
781
|
+
0x100,
|
|
781
782
|
0,
|
|
782
783
|
0,
|
|
783
784
|
0,
|
|
784
785
|
0,
|
|
785
|
-
0xffff,
|
|
786
786
|
0,
|
|
787
787
|
0,
|
|
788
788
|
0
|
|
789
789
|
]),
|
|
790
|
-
|
|
790
|
+
64
|
|
791
791
|
],
|
|
792
|
-
|
|
792
|
+
rfc6145: [
|
|
793
793
|
new IPv6([
|
|
794
|
-
0x64,
|
|
795
|
-
0xff9b,
|
|
796
794
|
0,
|
|
797
795
|
0,
|
|
798
796
|
0,
|
|
799
797
|
0,
|
|
798
|
+
0xffff,
|
|
799
|
+
0,
|
|
800
800
|
0,
|
|
801
801
|
0
|
|
802
802
|
]),
|
|
803
803
|
96
|
|
804
804
|
],
|
|
805
|
+
rfc6052: [
|
|
806
|
+
[
|
|
807
|
+
new IPv6([
|
|
808
|
+
0x64,
|
|
809
|
+
0xff9b,
|
|
810
|
+
0,
|
|
811
|
+
0,
|
|
812
|
+
0,
|
|
813
|
+
0,
|
|
814
|
+
0,
|
|
815
|
+
0
|
|
816
|
+
]),
|
|
817
|
+
96
|
|
818
|
+
],
|
|
819
|
+
[
|
|
820
|
+
new IPv6([
|
|
821
|
+
0x64,
|
|
822
|
+
0xff9b,
|
|
823
|
+
0x1,
|
|
824
|
+
0,
|
|
825
|
+
0,
|
|
826
|
+
0,
|
|
827
|
+
0,
|
|
828
|
+
0
|
|
829
|
+
]),
|
|
830
|
+
48
|
|
831
|
+
]
|
|
832
|
+
],
|
|
805
833
|
'6to4': [
|
|
806
834
|
new IPv6([
|
|
807
835
|
0x2002,
|
|
@@ -882,7 +910,7 @@ __webpack_require__.add({
|
|
|
882
910
|
48
|
|
883
911
|
]
|
|
884
912
|
],
|
|
885
|
-
|
|
913
|
+
deprecatedOrchid: [
|
|
886
914
|
new IPv6([
|
|
887
915
|
0x2001,
|
|
888
916
|
0x10,
|
|
@@ -921,6 +949,19 @@ __webpack_require__.add({
|
|
|
921
949
|
]),
|
|
922
950
|
28
|
|
923
951
|
],
|
|
952
|
+
segmentRouting: [
|
|
953
|
+
new IPv6([
|
|
954
|
+
0x5f00,
|
|
955
|
+
0,
|
|
956
|
+
0,
|
|
957
|
+
0,
|
|
958
|
+
0,
|
|
959
|
+
0,
|
|
960
|
+
0,
|
|
961
|
+
0
|
|
962
|
+
]),
|
|
963
|
+
16
|
|
964
|
+
],
|
|
924
965
|
reserved: [
|
|
925
966
|
[
|
|
926
967
|
new IPv6([
|
|
@@ -947,6 +988,19 @@ __webpack_require__.add({
|
|
|
947
988
|
0
|
|
948
989
|
]),
|
|
949
990
|
32
|
|
991
|
+
],
|
|
992
|
+
[
|
|
993
|
+
new IPv6([
|
|
994
|
+
0x3fff,
|
|
995
|
+
0,
|
|
996
|
+
0,
|
|
997
|
+
0,
|
|
998
|
+
0,
|
|
999
|
+
0,
|
|
1000
|
+
0,
|
|
1001
|
+
0
|
|
1002
|
+
]),
|
|
1003
|
+
20
|
|
950
1004
|
]
|
|
951
1005
|
]
|
|
952
1006
|
};
|
|
@@ -1254,8 +1308,8 @@ __webpack_require__.add({
|
|
|
1254
1308
|
else root.ipaddr = ipaddr;
|
|
1255
1309
|
})(this);
|
|
1256
1310
|
},
|
|
1257
|
-
"./node_modules/.pnpm/ws@8.
|
|
1258
|
-
const { EMPTY_BUFFER } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1311
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1312
|
+
const { EMPTY_BUFFER } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js");
|
|
1259
1313
|
const FastBuffer = Buffer[Symbol.species];
|
|
1260
1314
|
function concat(list, totalLength) {
|
|
1261
1315
|
if (0 === list.length) return EMPTY_BUFFER;
|
|
@@ -1300,7 +1354,7 @@ __webpack_require__.add({
|
|
|
1300
1354
|
unmask: _unmask
|
|
1301
1355
|
};
|
|
1302
1356
|
},
|
|
1303
|
-
"./node_modules/.pnpm/ws@8.
|
|
1357
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js" (module) {
|
|
1304
1358
|
const BINARY_TYPES = [
|
|
1305
1359
|
'nodebuffer',
|
|
1306
1360
|
'arraybuffer',
|
|
@@ -1321,8 +1375,8 @@ __webpack_require__.add({
|
|
|
1321
1375
|
NOOP: ()=>{}
|
|
1322
1376
|
};
|
|
1323
1377
|
},
|
|
1324
|
-
"./node_modules/.pnpm/ws@8.
|
|
1325
|
-
const { kForOnEventAttribute, kListener } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1378
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1379
|
+
const { kForOnEventAttribute, kListener } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js");
|
|
1326
1380
|
const kCode = Symbol('kCode');
|
|
1327
1381
|
const kData = Symbol('kData');
|
|
1328
1382
|
const kError = Symbol('kError');
|
|
@@ -1466,8 +1520,8 @@ __webpack_require__.add({
|
|
|
1466
1520
|
else listener.call(thisArg, event);
|
|
1467
1521
|
}
|
|
1468
1522
|
},
|
|
1469
|
-
"./node_modules/.pnpm/ws@8.
|
|
1470
|
-
const { tokenChars } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1523
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1524
|
+
const { tokenChars } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js");
|
|
1471
1525
|
function push(dest, name, elem) {
|
|
1472
1526
|
if (void 0 === dest[name]) dest[name] = [
|
|
1473
1527
|
elem
|
|
@@ -1588,7 +1642,7 @@ __webpack_require__.add({
|
|
|
1588
1642
|
parse
|
|
1589
1643
|
};
|
|
1590
1644
|
},
|
|
1591
|
-
"./node_modules/.pnpm/ws@8.
|
|
1645
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js" (module) {
|
|
1592
1646
|
const kDone = Symbol('kDone');
|
|
1593
1647
|
const kRun = Symbol('kRun');
|
|
1594
1648
|
class Limiter {
|
|
@@ -1616,11 +1670,11 @@ __webpack_require__.add({
|
|
|
1616
1670
|
}
|
|
1617
1671
|
module.exports = Limiter;
|
|
1618
1672
|
},
|
|
1619
|
-
"./node_modules/.pnpm/ws@8.
|
|
1673
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1620
1674
|
const zlib = __webpack_require__("zlib");
|
|
1621
|
-
const bufferUtil = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1622
|
-
const Limiter = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1623
|
-
const { kStatusCode } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1675
|
+
const bufferUtil = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js");
|
|
1676
|
+
const Limiter = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js");
|
|
1677
|
+
const { kStatusCode } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js");
|
|
1624
1678
|
const FastBuffer = Buffer[Symbol.species];
|
|
1625
1679
|
const TRAILER = Buffer.from([
|
|
1626
1680
|
0x00,
|
|
@@ -1825,12 +1879,12 @@ __webpack_require__.add({
|
|
|
1825
1879
|
this[kCallback](err);
|
|
1826
1880
|
}
|
|
1827
1881
|
},
|
|
1828
|
-
"./node_modules/.pnpm/ws@8.
|
|
1882
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1829
1883
|
const { Writable } = __webpack_require__("stream");
|
|
1830
|
-
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1831
|
-
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1832
|
-
const { concat, toArrayBuffer, unmask } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1833
|
-
const { isValidStatusCode, isValidUTF8 } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
1884
|
+
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js");
|
|
1885
|
+
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js");
|
|
1886
|
+
const { concat, toArrayBuffer, unmask } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js");
|
|
1887
|
+
const { isValidStatusCode, isValidUTF8 } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js");
|
|
1834
1888
|
const FastBuffer = Buffer[Symbol.species];
|
|
1835
1889
|
const GET_INFO = 0;
|
|
1836
1890
|
const GET_PAYLOAD_LENGTH_16 = 1;
|
|
@@ -1846,6 +1900,8 @@ __webpack_require__.add({
|
|
|
1846
1900
|
this._binaryType = options.binaryType || BINARY_TYPES[0];
|
|
1847
1901
|
this._extensions = options.extensions || {};
|
|
1848
1902
|
this._isServer = !!options.isServer;
|
|
1903
|
+
this._maxBufferedChunks = 0 | options.maxBufferedChunks;
|
|
1904
|
+
this._maxFragments = 0 | options.maxFragments;
|
|
1849
1905
|
this._maxPayload = 0 | options.maxPayload;
|
|
1850
1906
|
this._skipUTF8Validation = !!options.skipUTF8Validation;
|
|
1851
1907
|
this[kWebSocket] = void 0;
|
|
@@ -1867,6 +1923,7 @@ __webpack_require__.add({
|
|
|
1867
1923
|
}
|
|
1868
1924
|
_write(chunk, encoding, cb) {
|
|
1869
1925
|
if (0x08 === this._opcode && this._state == GET_INFO) return cb();
|
|
1926
|
+
if (this._maxBufferedChunks > 0 && this._buffers.length >= this._maxBufferedChunks) return void cb(this.createError(RangeError, 'Too many buffered chunks', false, 1008, 'WS_ERR_TOO_MANY_BUFFERED_PARTS'));
|
|
1870
1927
|
this._bufferedBytes += chunk.length;
|
|
1871
1928
|
this._buffers.push(chunk);
|
|
1872
1929
|
this.startLoop(cb);
|
|
@@ -2055,6 +2112,11 @@ __webpack_require__.add({
|
|
|
2055
2112
|
return;
|
|
2056
2113
|
}
|
|
2057
2114
|
if (data.length) {
|
|
2115
|
+
if (this._maxFragments > 0 && this._fragments.length >= this._maxFragments) {
|
|
2116
|
+
const error = this.createError(RangeError, 'Too many message fragments', false, 1008, 'WS_ERR_TOO_MANY_BUFFERED_PARTS');
|
|
2117
|
+
cb(error);
|
|
2118
|
+
return;
|
|
2119
|
+
}
|
|
2058
2120
|
this._messageLength = this._totalPayloadLength;
|
|
2059
2121
|
this._fragments.push(data);
|
|
2060
2122
|
}
|
|
@@ -2071,6 +2133,11 @@ __webpack_require__.add({
|
|
|
2071
2133
|
cb(error);
|
|
2072
2134
|
return;
|
|
2073
2135
|
}
|
|
2136
|
+
if (this._maxFragments > 0 && this._fragments.length >= this._maxFragments) {
|
|
2137
|
+
const error = this.createError(RangeError, 'Too many message fragments', false, 1008, 'WS_ERR_TOO_MANY_BUFFERED_PARTS');
|
|
2138
|
+
cb(error);
|
|
2139
|
+
return;
|
|
2140
|
+
}
|
|
2074
2141
|
this._fragments.push(buf);
|
|
2075
2142
|
}
|
|
2076
2143
|
this.dataMessage(cb);
|
|
@@ -2172,13 +2239,14 @@ __webpack_require__.add({
|
|
|
2172
2239
|
}
|
|
2173
2240
|
module.exports = Receiver;
|
|
2174
2241
|
},
|
|
2175
|
-
"./node_modules/.pnpm/ws@8.
|
|
2242
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2176
2243
|
const { Duplex } = __webpack_require__("stream");
|
|
2177
2244
|
const { randomFillSync } = __webpack_require__("crypto");
|
|
2178
|
-
const
|
|
2179
|
-
const
|
|
2180
|
-
const {
|
|
2181
|
-
const {
|
|
2245
|
+
const { types: { isUint8Array } } = __webpack_require__("util");
|
|
2246
|
+
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js");
|
|
2247
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js");
|
|
2248
|
+
const { isBlob, isValidStatusCode } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js");
|
|
2249
|
+
const { mask: applyMask, toBuffer } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js");
|
|
2182
2250
|
const kByteLength = Symbol('kByteLength');
|
|
2183
2251
|
const maskBuffer = Buffer.alloc(4);
|
|
2184
2252
|
const RANDOM_POOL_SIZE = 8192;
|
|
@@ -2286,7 +2354,8 @@ __webpack_require__.add({
|
|
|
2286
2354
|
buf = Buffer.allocUnsafe(2 + length);
|
|
2287
2355
|
buf.writeUInt16BE(code, 0);
|
|
2288
2356
|
if ('string' == typeof data) buf.write(data, 2);
|
|
2289
|
-
else buf.set(data, 2);
|
|
2357
|
+
else if (isUint8Array(data)) buf.set(data, 2);
|
|
2358
|
+
else throw new TypeError('Second argument must be a string or a Uint8Array');
|
|
2290
2359
|
} else {
|
|
2291
2360
|
buf = Buffer.allocUnsafe(2);
|
|
2292
2361
|
buf.writeUInt16BE(code, 0);
|
|
@@ -2521,8 +2590,8 @@ __webpack_require__.add({
|
|
|
2521
2590
|
sender.onerror(err);
|
|
2522
2591
|
}
|
|
2523
2592
|
},
|
|
2524
|
-
"./node_modules/.pnpm/ws@8.
|
|
2525
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2593
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2594
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js");
|
|
2526
2595
|
const { Duplex } = __webpack_require__("stream");
|
|
2527
2596
|
function emitClose(stream) {
|
|
2528
2597
|
stream.emit('close');
|
|
@@ -2604,8 +2673,8 @@ __webpack_require__.add({
|
|
|
2604
2673
|
}
|
|
2605
2674
|
module.exports = createWebSocketStream;
|
|
2606
2675
|
},
|
|
2607
|
-
"./node_modules/.pnpm/ws@8.
|
|
2608
|
-
const { tokenChars } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2676
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2677
|
+
const { tokenChars } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js");
|
|
2609
2678
|
function parse(header) {
|
|
2610
2679
|
const protocols = new Set();
|
|
2611
2680
|
let start = -1;
|
|
@@ -2636,9 +2705,9 @@ __webpack_require__.add({
|
|
|
2636
2705
|
parse
|
|
2637
2706
|
};
|
|
2638
2707
|
},
|
|
2639
|
-
"./node_modules/.pnpm/ws@8.
|
|
2708
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2640
2709
|
const { isUtf8 } = __webpack_require__("buffer");
|
|
2641
|
-
const { hasBlob } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2710
|
+
const { hasBlob } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js");
|
|
2642
2711
|
const tokenChars = [
|
|
2643
2712
|
0,
|
|
2644
2713
|
0,
|
|
@@ -2802,16 +2871,16 @@ __webpack_require__.add({
|
|
|
2802
2871
|
return buf.length < 24 ? _isValidUTF8(buf) : isUtf8(buf);
|
|
2803
2872
|
};
|
|
2804
2873
|
},
|
|
2805
|
-
"./node_modules/.pnpm/ws@8.
|
|
2874
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2806
2875
|
const EventEmitter = __webpack_require__("events");
|
|
2807
2876
|
const http = __webpack_require__("http");
|
|
2808
2877
|
const { Duplex } = __webpack_require__("stream");
|
|
2809
2878
|
const { createHash } = __webpack_require__("crypto");
|
|
2810
|
-
const extension = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2811
|
-
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2812
|
-
const subprotocol = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2813
|
-
const WebSocket = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2814
|
-
const { CLOSE_TIMEOUT, GUID, kWebSocket } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
2879
|
+
const extension = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js");
|
|
2880
|
+
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js");
|
|
2881
|
+
const subprotocol = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js");
|
|
2882
|
+
const WebSocket = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js");
|
|
2883
|
+
const { CLOSE_TIMEOUT, GUID, kWebSocket } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js");
|
|
2815
2884
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
2816
2885
|
const RUNNING = 0;
|
|
2817
2886
|
const CLOSING = 1;
|
|
@@ -2822,6 +2891,8 @@ __webpack_require__.add({
|
|
|
2822
2891
|
options = {
|
|
2823
2892
|
allowSynchronousEvents: true,
|
|
2824
2893
|
autoPong: true,
|
|
2894
|
+
maxBufferedChunks: 1048576,
|
|
2895
|
+
maxFragments: 131072,
|
|
2825
2896
|
maxPayload: 104857600,
|
|
2826
2897
|
skipUTF8Validation: false,
|
|
2827
2898
|
perMessageDeflate: false,
|
|
@@ -3014,6 +3085,8 @@ __webpack_require__.add({
|
|
|
3014
3085
|
socket.removeListener('error', socketOnError);
|
|
3015
3086
|
ws.setSocket(socket, head, {
|
|
3016
3087
|
allowSynchronousEvents: this.options.allowSynchronousEvents,
|
|
3088
|
+
maxBufferedChunks: this.options.maxBufferedChunks,
|
|
3089
|
+
maxFragments: this.options.maxFragments,
|
|
3017
3090
|
maxPayload: this.options.maxPayload,
|
|
3018
3091
|
skipUTF8Validation: this.options.skipUTF8Validation
|
|
3019
3092
|
});
|
|
@@ -3060,7 +3133,7 @@ __webpack_require__.add({
|
|
|
3060
3133
|
} else abortHandshake(socket, code, message, headers);
|
|
3061
3134
|
}
|
|
3062
3135
|
},
|
|
3063
|
-
"./node_modules/.pnpm/ws@8.
|
|
3136
|
+
"./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
3064
3137
|
const EventEmitter = __webpack_require__("events");
|
|
3065
3138
|
const https = __webpack_require__("https");
|
|
3066
3139
|
const http = __webpack_require__("http");
|
|
@@ -3068,15 +3141,15 @@ __webpack_require__.add({
|
|
|
3068
3141
|
const tls = __webpack_require__("tls");
|
|
3069
3142
|
const { randomBytes, createHash } = __webpack_require__("crypto");
|
|
3070
3143
|
const { Duplex, Readable } = __webpack_require__("stream");
|
|
3071
|
-
const { URL: URL1 } = __webpack_require__("url");
|
|
3072
|
-
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3073
|
-
const Receiver = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3074
|
-
const Sender = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3075
|
-
const { isBlob } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3076
|
-
const { BINARY_TYPES, CLOSE_TIMEOUT, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3077
|
-
const { EventTarget: { addEventListener, removeEventListener } } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3078
|
-
const { format, parse } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3079
|
-
const { toBuffer } = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3144
|
+
const { URL: URL1 } = __webpack_require__("url?b918");
|
|
3145
|
+
const PerMessageDeflate = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js");
|
|
3146
|
+
const Receiver = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js");
|
|
3147
|
+
const Sender = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js");
|
|
3148
|
+
const { isBlob } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js");
|
|
3149
|
+
const { BINARY_TYPES, CLOSE_TIMEOUT, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js");
|
|
3150
|
+
const { EventTarget: { addEventListener, removeEventListener } } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js");
|
|
3151
|
+
const { format, parse } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js");
|
|
3152
|
+
const { toBuffer } = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js");
|
|
3080
3153
|
const kAborted = Symbol('kAborted');
|
|
3081
3154
|
const protocolVersions = [
|
|
3082
3155
|
8,
|
|
@@ -3169,6 +3242,8 @@ __webpack_require__.add({
|
|
|
3169
3242
|
binaryType: this.binaryType,
|
|
3170
3243
|
extensions: this._extensions,
|
|
3171
3244
|
isServer: this._isServer,
|
|
3245
|
+
maxBufferedChunks: options.maxBufferedChunks,
|
|
3246
|
+
maxFragments: options.maxFragments,
|
|
3172
3247
|
maxPayload: options.maxPayload,
|
|
3173
3248
|
skipUTF8Validation: options.skipUTF8Validation
|
|
3174
3249
|
});
|
|
@@ -3373,6 +3448,8 @@ __webpack_require__.add({
|
|
|
3373
3448
|
autoPong: true,
|
|
3374
3449
|
closeTimeout: CLOSE_TIMEOUT,
|
|
3375
3450
|
protocolVersion: protocolVersions[1],
|
|
3451
|
+
maxBufferedChunks: 1048576,
|
|
3452
|
+
maxFragments: 131072,
|
|
3376
3453
|
maxPayload: 104857600,
|
|
3377
3454
|
skipUTF8Validation: false,
|
|
3378
3455
|
perMessageDeflate: true,
|
|
@@ -3555,6 +3632,8 @@ __webpack_require__.add({
|
|
|
3555
3632
|
websocket.setSocket(socket, head, {
|
|
3556
3633
|
allowSynchronousEvents: opts.allowSynchronousEvents,
|
|
3557
3634
|
generateMask: opts.generateMask,
|
|
3635
|
+
maxBufferedChunks: opts.maxBufferedChunks,
|
|
3636
|
+
maxFragments: opts.maxFragments,
|
|
3558
3637
|
maxPayload: opts.maxPayload,
|
|
3559
3638
|
skipUTF8Validation: opts.skipUTF8Validation
|
|
3560
3639
|
});
|
|
@@ -3743,7 +3822,7 @@ __webpack_require__.add({
|
|
|
3743
3822
|
tty (module) {
|
|
3744
3823
|
module.exports = __rspack_createRequire_require("tty");
|
|
3745
3824
|
},
|
|
3746
|
-
url (module) {
|
|
3825
|
+
"url?b918" (module) {
|
|
3747
3826
|
module.exports = __rspack_createRequire_require("url");
|
|
3748
3827
|
},
|
|
3749
3828
|
util (module) {
|
|
@@ -3807,14 +3886,14 @@ async function getPort(basePort, host) {
|
|
|
3807
3886
|
}
|
|
3808
3887
|
throw new Error('No available ports found');
|
|
3809
3888
|
}
|
|
3810
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3811
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3812
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3813
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3814
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3815
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3816
|
-
__webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3817
|
-
const websocket_server = __webpack_require__("./node_modules/.pnpm/ws@8.
|
|
3889
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js");
|
|
3890
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js");
|
|
3891
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js");
|
|
3892
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js");
|
|
3893
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js");
|
|
3894
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js");
|
|
3895
|
+
__webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js");
|
|
3896
|
+
const websocket_server = __webpack_require__("./node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js");
|
|
3818
3897
|
class BaseServer {
|
|
3819
3898
|
server;
|
|
3820
3899
|
clients;
|
|
@@ -3875,7 +3954,7 @@ class WebsocketServer extends servers_BaseServer {
|
|
|
3875
3954
|
}
|
|
3876
3955
|
const src = __webpack_require__("./node_modules/.pnpm/http-compression@1.1.3/node_modules/http-compression/src/index.js");
|
|
3877
3956
|
var src_default = /*#__PURE__*/ __webpack_require__.n(src);
|
|
3878
|
-
const ipaddr = __webpack_require__("./node_modules/.pnpm/ipaddr.js@2.
|
|
3957
|
+
const ipaddr = __webpack_require__("./node_modules/.pnpm/ipaddr.js@2.4.0/node_modules/ipaddr.js/lib/ipaddr.js");
|
|
3879
3958
|
var ipaddr_default = /*#__PURE__*/ __webpack_require__.n(ipaddr);
|
|
3880
3959
|
const { styleText: styleText } = __rspack_external_node_util_1b29d436;
|
|
3881
3960
|
const server_require = createRequire(import.meta.url);
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RspackDevServer } from "./
|
|
1
|
+
export { RspackDevServer } from "./465.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/dev-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Development server for Rspack",
|
|
5
5
|
"homepage": "https://github.com/rstackjs/rspack-dev-server",
|
|
6
6
|
"bugs": "https://github.com/rstackjs/rspack-dev-server/issues",
|
|
@@ -21,18 +21,6 @@
|
|
|
21
21
|
"dist",
|
|
22
22
|
"client"
|
|
23
23
|
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "rslib",
|
|
26
|
-
"bump": "npx bumpp",
|
|
27
|
-
"dev": "rslib -w",
|
|
28
|
-
"format": "prettier --write .",
|
|
29
|
-
"lint": "rslint",
|
|
30
|
-
"lint:write": "rslint --fix",
|
|
31
|
-
"prettier:ci": "prettier --check .",
|
|
32
|
-
"test": "pnpm run test:install && pnpm run test:type && rstest",
|
|
33
|
-
"test:install": "cross-env ./node_modules/.bin/puppeteer browsers install chrome",
|
|
34
|
-
"test:type": "pnpm run build && pnpm --dir tests run type-check"
|
|
35
|
-
},
|
|
36
24
|
"simple-git-hooks": {
|
|
37
25
|
"pre-commit": "npx nano-staged"
|
|
38
26
|
},
|
|
@@ -49,16 +37,16 @@
|
|
|
49
37
|
"@rspack/dev-middleware": "^2.0.1"
|
|
50
38
|
},
|
|
51
39
|
"devDependencies": {
|
|
52
|
-
"@hono/node-server": "^2.0.
|
|
40
|
+
"@hono/node-server": "^2.0.3",
|
|
53
41
|
"@microsoft/api-extractor": "^7.58.7",
|
|
54
|
-
"@rslib/core": "^0.21.
|
|
55
|
-
"@rslint/core": "^0.5.
|
|
42
|
+
"@rslib/core": "^0.21.5",
|
|
43
|
+
"@rslint/core": "^0.5.3",
|
|
56
44
|
"@rspack/core": "2.0.0-rc.0",
|
|
57
45
|
"@rspack/plugin-react-refresh": "2.0.0",
|
|
58
|
-
"@rstest/core": "^0.
|
|
46
|
+
"@rstest/core": "^0.10.2",
|
|
59
47
|
"@types/connect-history-api-fallback": "^1.5.4",
|
|
60
48
|
"@types/mime-types": "3.0.1",
|
|
61
|
-
"@types/node": "^24.12.
|
|
49
|
+
"@types/node": "^24.12.4",
|
|
62
50
|
"@types/serve-static": "^2.2.0",
|
|
63
51
|
"@types/trusted-types": "^2.0.7",
|
|
64
52
|
"@types/ws": "8.18.1",
|
|
@@ -67,24 +55,24 @@
|
|
|
67
55
|
"connect-next": "^4.0.1",
|
|
68
56
|
"cross-env": "^10.1.0",
|
|
69
57
|
"express": "^5.2.1",
|
|
70
|
-
"hono": "^4.12.
|
|
58
|
+
"hono": "^4.12.22",
|
|
71
59
|
"http-compression": "^1.1.3",
|
|
72
60
|
"http-proxy": "^1.18.1",
|
|
73
|
-
"http-proxy-middleware": "4.0.0
|
|
74
|
-
"ipaddr.js": "^2.
|
|
61
|
+
"http-proxy-middleware": "4.0.0",
|
|
62
|
+
"ipaddr.js": "^2.4.0",
|
|
75
63
|
"launch-editor": "^2.13.2",
|
|
76
|
-
"nano-staged": "^0.
|
|
64
|
+
"nano-staged": "^1.0.2",
|
|
77
65
|
"open": "^11.0.0",
|
|
78
66
|
"p-retry": "^7.1.1",
|
|
79
67
|
"prettier": "3.8.3",
|
|
80
|
-
"puppeteer": "^24.
|
|
68
|
+
"puppeteer": "^24.43.1",
|
|
81
69
|
"react-refresh": "0.18.0",
|
|
82
70
|
"require-from-string": "^2.0.2",
|
|
83
71
|
"selfsigned": "^5.5.0",
|
|
84
72
|
"serve-static": "^2.2.1",
|
|
85
73
|
"simple-git-hooks": "^2.13.1",
|
|
86
74
|
"typescript": "^6.0.3",
|
|
87
|
-
"ws": "^8.
|
|
75
|
+
"ws": "^8.21.0"
|
|
88
76
|
},
|
|
89
77
|
"peerDependencies": {
|
|
90
78
|
"@rspack/core": "^2.0.0-0",
|
|
@@ -95,12 +83,23 @@
|
|
|
95
83
|
"optional": true
|
|
96
84
|
}
|
|
97
85
|
},
|
|
98
|
-
"packageManager": "pnpm@10.33.2",
|
|
99
86
|
"engines": {
|
|
100
87
|
"node": "^20.19.0 || >=22.12.0"
|
|
101
88
|
},
|
|
102
89
|
"publishConfig": {
|
|
103
90
|
"access": "public",
|
|
104
91
|
"registry": "https://registry.npmjs.org/"
|
|
92
|
+
},
|
|
93
|
+
"scripts": {
|
|
94
|
+
"build": "rslib",
|
|
95
|
+
"bump": "npx bumpp",
|
|
96
|
+
"dev": "rslib -w",
|
|
97
|
+
"format": "prettier --write .",
|
|
98
|
+
"lint": "rslint",
|
|
99
|
+
"lint:write": "rslint --fix",
|
|
100
|
+
"prettier:ci": "prettier --check .",
|
|
101
|
+
"test": "pnpm run test:install && pnpm run test:type && rstest",
|
|
102
|
+
"test:install": "cross-env ./node_modules/.bin/puppeteer browsers install chrome",
|
|
103
|
+
"test:type": "pnpm run build && pnpm --dir tests run type-check"
|
|
105
104
|
}
|
|
106
|
-
}
|
|
105
|
+
}
|