@rsbuild/core 1.4.2 → 1.4.4
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/compiled/css-loader/index.js +18 -18
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rslog/package.json +1 -1
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/ws/index.js +56 -53
- package/compiled/ws/package.json +1 -1
- package/dist/client/hmr.js +3 -5
- package/dist/index.cjs +111 -93
- package/dist/index.js +109 -97
- package/dist-types/constants.d.ts +2 -0
- package/dist-types/index.d.ts +1 -1
- package/dist-types/server/compilationManager.d.ts +4 -3
- package/dist-types/server/compilationMiddleware.d.ts +11 -6
- package/dist-types/server/gzipMiddleware.d.ts +2 -4
- package/dist-types/server/helper.d.ts +1 -2
- package/dist-types/server/socketServer.d.ts +12 -6
- package/dist-types/types/config.d.ts +24 -1
- package/dist-types/types/hooks.d.ts +6 -0
- package/package.json +6 -6
- package/types.d.ts +11 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
6768: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(3806);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(7455).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
3806: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
11
11
|
"use strict";
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports["default"] = loader;
|
|
14
14
|
var _postcss = _interopRequireDefault(__nccwpck_require__(9409));
|
|
15
|
-
var _plugins = __nccwpck_require__(
|
|
16
|
-
var _utils = __nccwpck_require__(
|
|
15
|
+
var _plugins = __nccwpck_require__(469);
|
|
16
|
+
var _utils = __nccwpck_require__(7455);
|
|
17
17
|
function _interopRequireDefault(obj) {
|
|
18
18
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
19
19
|
}
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
|
-
|
|
239
|
+
469: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
240
240
|
"use strict";
|
|
241
241
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
242
242
|
Object.defineProperty(exports, "icssParser", {
|
|
@@ -258,22 +258,22 @@
|
|
|
258
258
|
},
|
|
259
259
|
});
|
|
260
260
|
var _postcssImportParser = _interopRequireDefault(
|
|
261
|
-
__nccwpck_require__(
|
|
261
|
+
__nccwpck_require__(7494),
|
|
262
262
|
);
|
|
263
263
|
var _postcssIcssParser = _interopRequireDefault(
|
|
264
|
-
__nccwpck_require__(
|
|
264
|
+
__nccwpck_require__(1159),
|
|
265
265
|
);
|
|
266
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
266
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(834));
|
|
267
267
|
function _interopRequireDefault(obj) {
|
|
268
268
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
|
-
|
|
271
|
+
1159: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
272
272
|
"use strict";
|
|
273
273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
274
274
|
exports["default"] = void 0;
|
|
275
275
|
var _icssUtils = __nccwpck_require__(9028);
|
|
276
|
-
var _utils = __nccwpck_require__(
|
|
276
|
+
var _utils = __nccwpck_require__(7455);
|
|
277
277
|
const plugin = (options = {}) => ({
|
|
278
278
|
postcssPlugin: "postcss-icss-parser",
|
|
279
279
|
async OnceExit(root) {
|
|
@@ -372,14 +372,14 @@
|
|
|
372
372
|
plugin.postcss = true;
|
|
373
373
|
var _default = (exports["default"] = plugin);
|
|
374
374
|
},
|
|
375
|
-
|
|
375
|
+
7494: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
376
376
|
"use strict";
|
|
377
377
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
378
378
|
exports["default"] = void 0;
|
|
379
379
|
var _postcssValueParser = _interopRequireDefault(
|
|
380
380
|
__nccwpck_require__(2948),
|
|
381
381
|
);
|
|
382
|
-
var _utils = __nccwpck_require__(
|
|
382
|
+
var _utils = __nccwpck_require__(7455);
|
|
383
383
|
function _interopRequireDefault(obj) {
|
|
384
384
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
385
385
|
}
|
|
@@ -684,14 +684,14 @@
|
|
|
684
684
|
plugin.postcss = true;
|
|
685
685
|
var _default = (exports["default"] = plugin);
|
|
686
686
|
},
|
|
687
|
-
|
|
687
|
+
834: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
688
688
|
"use strict";
|
|
689
689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
690
690
|
exports["default"] = void 0;
|
|
691
691
|
var _postcssValueParser = _interopRequireDefault(
|
|
692
692
|
__nccwpck_require__(2948),
|
|
693
693
|
);
|
|
694
|
-
var _utils = __nccwpck_require__(
|
|
694
|
+
var _utils = __nccwpck_require__(7455);
|
|
695
695
|
function _interopRequireDefault(obj) {
|
|
696
696
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
697
697
|
}
|
|
@@ -1034,7 +1034,7 @@
|
|
|
1034
1034
|
plugin.postcss = true;
|
|
1035
1035
|
var _default = (exports["default"] = plugin);
|
|
1036
1036
|
},
|
|
1037
|
-
|
|
1037
|
+
7455: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1038
1038
|
"use strict";
|
|
1039
1039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1040
1040
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -8098,6 +8098,6 @@
|
|
|
8098
8098
|
}
|
|
8099
8099
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8100
8100
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8101
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8101
|
+
var __webpack_exports__ = __nccwpck_require__(6768);
|
|
8102
8102
|
module.exports = __webpack_exports__;
|
|
8103
8103
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
26: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(955);
|
|
6
6
|
const compilerMap = new WeakMap();
|
|
7
7
|
class CachedChildCompilation {
|
|
8
8
|
constructor(compiler) {
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
}
|
|
312
312
|
module.exports = { CachedChildCompilation };
|
|
313
313
|
},
|
|
314
|
-
|
|
314
|
+
955: (module) => {
|
|
315
315
|
"use strict";
|
|
316
316
|
class HtmlWebpackChildCompiler {
|
|
317
317
|
constructor(templates) {
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
}
|
|
481
481
|
module.exports = { HtmlWebpackChildCompiler };
|
|
482
482
|
},
|
|
483
|
-
|
|
483
|
+
281: (module) => {
|
|
484
484
|
"use strict";
|
|
485
485
|
module.exports = {};
|
|
486
486
|
module.exports.none = (chunks) => chunks;
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
};
|
|
500
500
|
module.exports.auto = module.exports.none;
|
|
501
501
|
},
|
|
502
|
-
|
|
502
|
+
24: (module) => {
|
|
503
503
|
"use strict";
|
|
504
504
|
module.exports = function (err) {
|
|
505
505
|
return {
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
};
|
|
521
521
|
};
|
|
522
522
|
},
|
|
523
|
-
|
|
523
|
+
87: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
524
524
|
"use strict";
|
|
525
525
|
const { AsyncSeriesWaterfallHook } = __nccwpck_require__(408);
|
|
526
526
|
const htmlWebpackPluginHooksMap = new WeakMap();
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
}
|
|
547
547
|
module.exports = { getHtmlRspackPluginHooks };
|
|
548
548
|
},
|
|
549
|
-
|
|
549
|
+
334: (module) => {
|
|
550
550
|
const voidTags = [
|
|
551
551
|
"area",
|
|
552
552
|
"base",
|
|
@@ -614,19 +614,19 @@
|
|
|
614
614
|
htmlTagObjectToString,
|
|
615
615
|
};
|
|
616
616
|
},
|
|
617
|
-
|
|
617
|
+
647: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
618
618
|
"use strict";
|
|
619
619
|
const promisify = __nccwpck_require__(23).promisify;
|
|
620
620
|
const vm = __nccwpck_require__(154);
|
|
621
621
|
const fs = __nccwpck_require__(896);
|
|
622
622
|
const path = __nccwpck_require__(928);
|
|
623
|
-
const { CachedChildCompilation } = __nccwpck_require__(
|
|
623
|
+
const { CachedChildCompilation } = __nccwpck_require__(26);
|
|
624
624
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
625
|
-
__nccwpck_require__(
|
|
626
|
-
const prettyError = __nccwpck_require__(
|
|
627
|
-
const chunkSorter = __nccwpck_require__(
|
|
625
|
+
__nccwpck_require__(334);
|
|
626
|
+
const prettyError = __nccwpck_require__(24);
|
|
627
|
+
const chunkSorter = __nccwpck_require__(281);
|
|
628
628
|
const getHtmlRspackPluginHooks =
|
|
629
|
-
__nccwpck_require__(
|
|
629
|
+
__nccwpck_require__(87).getHtmlRspackPluginHooks;
|
|
630
630
|
const WITH_PLACEHOLDER = "function __with_placeholder__";
|
|
631
631
|
class HtmlRspackPlugin {
|
|
632
632
|
constructor(userOptions = {}) {
|
|
@@ -1597,6 +1597,6 @@
|
|
|
1597
1597
|
}
|
|
1598
1598
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1599
1599
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1600
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1600
|
+
var __webpack_exports__ = __nccwpck_require__(647);
|
|
1601
1601
|
module.exports = __webpack_exports__;
|
|
1602
1602
|
})();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
435: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(421)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
421: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8
8
|
var __webpack_unused_export__;
|
|
9
9
|
__webpack_unused_export__ = { value: true };
|
|
10
10
|
exports["default"] = loader;
|
|
11
11
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
12
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _utils = __nccwpck_require__(768);
|
|
13
13
|
function _interopRequireDefault(obj) {
|
|
14
14
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
15
15
|
}
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
callback(null, result.css, map, { ast });
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
-
|
|
182
|
+
768: (module, exports, __nccwpck_require__) => {
|
|
183
183
|
module = __nccwpck_require__.nmd(module);
|
|
184
184
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
185
185
|
exports.exec = exec;
|
|
@@ -716,6 +716,6 @@
|
|
|
716
716
|
})();
|
|
717
717
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
718
718
|
__nccwpck_require__.ab = __dirname + "/";
|
|
719
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
719
|
+
var __webpack_exports__ = __nccwpck_require__(435);
|
|
720
720
|
module.exports = __webpack_exports__;
|
|
721
721
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"rslog","version":"1.2.
|
|
1
|
+
{"name":"rslog","version":"1.2.9","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
4
|
+
438: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.transformFiles =
|
|
7
7
|
exports.reduceChunk =
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
.map(standardizeFilePaths);
|
|
121
121
|
exports.transformFiles = transformFiles;
|
|
122
122
|
},
|
|
123
|
-
|
|
123
|
+
823: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
124
124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
125
125
|
exports.normalModuleLoaderHook =
|
|
126
126
|
exports.getCompilerHooks =
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
const fs_1 = __nccwpck_require__(896);
|
|
131
131
|
const path_1 = __nccwpck_require__(928);
|
|
132
132
|
const lite_tapable_1 = __nccwpck_require__(408);
|
|
133
|
-
const helpers_1 = __nccwpck_require__(
|
|
133
|
+
const helpers_1 = __nccwpck_require__(438);
|
|
134
134
|
const compilerHookMap = new WeakMap();
|
|
135
135
|
const getCompilerHooks = (compiler) => {
|
|
136
136
|
let hooks = compilerHookMap.get(compiler);
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
exports.getCompilerHooks =
|
|
313
313
|
void 0;
|
|
314
314
|
const path_1 = __nccwpck_require__(928);
|
|
315
|
-
const hooks_1 = __nccwpck_require__(
|
|
315
|
+
const hooks_1 = __nccwpck_require__(823);
|
|
316
316
|
Object.defineProperty(exports, "getCompilerHooks", {
|
|
317
317
|
enumerable: true,
|
|
318
318
|
get: function () {
|
package/compiled/ws/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
122: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const WebSocket = __nccwpck_require__(
|
|
6
|
-
WebSocket.createWebSocketStream = __nccwpck_require__(
|
|
7
|
-
WebSocket.Server = __nccwpck_require__(
|
|
8
|
-
WebSocket.Receiver = __nccwpck_require__(
|
|
9
|
-
WebSocket.Sender = __nccwpck_require__(
|
|
5
|
+
const WebSocket = __nccwpck_require__(953);
|
|
6
|
+
WebSocket.createWebSocketStream = __nccwpck_require__(108);
|
|
7
|
+
WebSocket.Server = __nccwpck_require__(697);
|
|
8
|
+
WebSocket.Receiver = __nccwpck_require__(221);
|
|
9
|
+
WebSocket.Sender = __nccwpck_require__(589);
|
|
10
10
|
WebSocket.WebSocket = WebSocket;
|
|
11
11
|
WebSocket.WebSocketServer = WebSocket.Server;
|
|
12
12
|
module.exports = WebSocket;
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
739: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
15
15
|
"use strict";
|
|
16
|
-
const { EMPTY_BUFFER } = __nccwpck_require__(
|
|
16
|
+
const { EMPTY_BUFFER } = __nccwpck_require__(743);
|
|
17
17
|
const FastBuffer = Buffer[Symbol.species];
|
|
18
18
|
function concat(list, totalLength) {
|
|
19
19
|
if (list.length === 0) return EMPTY_BUFFER;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
} catch (e) {}
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
|
|
90
|
+
743: (module) => {
|
|
91
91
|
"use strict";
|
|
92
92
|
const BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
93
93
|
const hasBlob = typeof Blob !== "undefined";
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
NOOP: () => {},
|
|
105
105
|
};
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
978: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
108
108
|
"use strict";
|
|
109
|
-
const { kForOnEventAttribute, kListener } = __nccwpck_require__(
|
|
109
|
+
const { kForOnEventAttribute, kListener } = __nccwpck_require__(743);
|
|
110
110
|
const kCode = Symbol("kCode");
|
|
111
111
|
const kData = Symbol("kData");
|
|
112
112
|
const kError = Symbol("kError");
|
|
@@ -268,9 +268,9 @@
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
|
-
|
|
271
|
+
567: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
272
272
|
"use strict";
|
|
273
|
-
const { tokenChars } = __nccwpck_require__(
|
|
273
|
+
const { tokenChars } = __nccwpck_require__(191);
|
|
274
274
|
function push(dest, name, elem) {
|
|
275
275
|
if (dest[name] === undefined) dest[name] = [elem];
|
|
276
276
|
else dest[name].push(elem);
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
}
|
|
427
427
|
module.exports = { format, parse };
|
|
428
428
|
},
|
|
429
|
-
|
|
429
|
+
766: (module) => {
|
|
430
430
|
"use strict";
|
|
431
431
|
const kDone = Symbol("kDone");
|
|
432
432
|
const kRun = Symbol("kRun");
|
|
@@ -455,12 +455,12 @@
|
|
|
455
455
|
}
|
|
456
456
|
module.exports = Limiter;
|
|
457
457
|
},
|
|
458
|
-
|
|
458
|
+
635: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
459
459
|
"use strict";
|
|
460
460
|
const zlib = __nccwpck_require__(106);
|
|
461
|
-
const bufferUtil = __nccwpck_require__(
|
|
462
|
-
const Limiter = __nccwpck_require__(
|
|
463
|
-
const { kStatusCode } = __nccwpck_require__(
|
|
461
|
+
const bufferUtil = __nccwpck_require__(739);
|
|
462
|
+
const Limiter = __nccwpck_require__(766);
|
|
463
|
+
const { kStatusCode } = __nccwpck_require__(743);
|
|
464
464
|
const FastBuffer = Buffer[Symbol.species];
|
|
465
465
|
const TRAILER = Buffer.from([0, 0, 255, 255]);
|
|
466
466
|
const kPerMessageDeflate = Symbol("permessage-deflate");
|
|
@@ -784,14 +784,14 @@
|
|
|
784
784
|
this[kCallback](err);
|
|
785
785
|
}
|
|
786
786
|
},
|
|
787
|
-
|
|
787
|
+
221: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
788
788
|
"use strict";
|
|
789
789
|
const { Writable } = __nccwpck_require__(203);
|
|
790
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
790
|
+
const PerMessageDeflate = __nccwpck_require__(635);
|
|
791
791
|
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } =
|
|
792
|
-
__nccwpck_require__(
|
|
793
|
-
const { concat, toArrayBuffer, unmask } = __nccwpck_require__(
|
|
794
|
-
const { isValidStatusCode, isValidUTF8 } = __nccwpck_require__(
|
|
792
|
+
__nccwpck_require__(743);
|
|
793
|
+
const { concat, toArrayBuffer, unmask } = __nccwpck_require__(739);
|
|
794
|
+
const { isValidStatusCode, isValidUTF8 } = __nccwpck_require__(191);
|
|
795
795
|
const FastBuffer = Buffer[Symbol.species];
|
|
796
796
|
const GET_INFO = 0;
|
|
797
797
|
const GET_PAYLOAD_LENGTH_16 = 1;
|
|
@@ -1288,14 +1288,14 @@
|
|
|
1288
1288
|
}
|
|
1289
1289
|
module.exports = Receiver;
|
|
1290
1290
|
},
|
|
1291
|
-
|
|
1291
|
+
589: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1292
1292
|
"use strict";
|
|
1293
1293
|
const { Duplex } = __nccwpck_require__(203);
|
|
1294
1294
|
const { randomFillSync } = __nccwpck_require__(982);
|
|
1295
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
1296
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = __nccwpck_require__(
|
|
1297
|
-
const { isBlob, isValidStatusCode } = __nccwpck_require__(
|
|
1298
|
-
const { mask: applyMask, toBuffer } = __nccwpck_require__(
|
|
1295
|
+
const PerMessageDeflate = __nccwpck_require__(635);
|
|
1296
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = __nccwpck_require__(743);
|
|
1297
|
+
const { isBlob, isValidStatusCode } = __nccwpck_require__(191);
|
|
1298
|
+
const { mask: applyMask, toBuffer } = __nccwpck_require__(739);
|
|
1299
1299
|
const kByteLength = Symbol("kByteLength");
|
|
1300
1300
|
const maskBuffer = Buffer.alloc(4);
|
|
1301
1301
|
const RANDOM_POOL_SIZE = 8 * 1024;
|
|
@@ -1664,9 +1664,9 @@
|
|
|
1664
1664
|
sender.onerror(err);
|
|
1665
1665
|
}
|
|
1666
1666
|
},
|
|
1667
|
-
|
|
1667
|
+
108: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1668
1668
|
"use strict";
|
|
1669
|
-
const WebSocket = __nccwpck_require__(
|
|
1669
|
+
const WebSocket = __nccwpck_require__(953);
|
|
1670
1670
|
const { Duplex } = __nccwpck_require__(203);
|
|
1671
1671
|
function emitClose(stream) {
|
|
1672
1672
|
stream.emit("close");
|
|
@@ -1761,9 +1761,9 @@
|
|
|
1761
1761
|
}
|
|
1762
1762
|
module.exports = createWebSocketStream;
|
|
1763
1763
|
},
|
|
1764
|
-
|
|
1764
|
+
276: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1765
1765
|
"use strict";
|
|
1766
|
-
const { tokenChars } = __nccwpck_require__(
|
|
1766
|
+
const { tokenChars } = __nccwpck_require__(191);
|
|
1767
1767
|
function parse(header) {
|
|
1768
1768
|
const protocols = new Set();
|
|
1769
1769
|
let start = -1;
|
|
@@ -1804,10 +1804,10 @@
|
|
|
1804
1804
|
}
|
|
1805
1805
|
module.exports = { parse };
|
|
1806
1806
|
},
|
|
1807
|
-
|
|
1807
|
+
191: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1808
1808
|
"use strict";
|
|
1809
1809
|
const { isUtf8 } = __nccwpck_require__(181);
|
|
1810
|
-
const { hasBlob } = __nccwpck_require__(
|
|
1810
|
+
const { hasBlob } = __nccwpck_require__(743);
|
|
1811
1811
|
const tokenChars = [
|
|
1812
1812
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
1813
1813
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0,
|
|
@@ -1901,17 +1901,17 @@
|
|
|
1901
1901
|
} catch (e) {}
|
|
1902
1902
|
}
|
|
1903
1903
|
},
|
|
1904
|
-
|
|
1904
|
+
697: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1905
1905
|
"use strict";
|
|
1906
1906
|
const EventEmitter = __nccwpck_require__(434);
|
|
1907
1907
|
const http = __nccwpck_require__(611);
|
|
1908
1908
|
const { Duplex } = __nccwpck_require__(203);
|
|
1909
1909
|
const { createHash } = __nccwpck_require__(982);
|
|
1910
|
-
const extension = __nccwpck_require__(
|
|
1911
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
1912
|
-
const subprotocol = __nccwpck_require__(
|
|
1913
|
-
const WebSocket = __nccwpck_require__(
|
|
1914
|
-
const { GUID, kWebSocket } = __nccwpck_require__(
|
|
1910
|
+
const extension = __nccwpck_require__(567);
|
|
1911
|
+
const PerMessageDeflate = __nccwpck_require__(635);
|
|
1912
|
+
const subprotocol = __nccwpck_require__(276);
|
|
1913
|
+
const WebSocket = __nccwpck_require__(953);
|
|
1914
|
+
const { GUID, kWebSocket } = __nccwpck_require__(743);
|
|
1915
1915
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
1916
1916
|
const RUNNING = 0;
|
|
1917
1917
|
const CLOSING = 1;
|
|
@@ -2055,9 +2055,11 @@
|
|
|
2055
2055
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
2056
2056
|
return;
|
|
2057
2057
|
}
|
|
2058
|
-
if (version !==
|
|
2058
|
+
if (version !== 13 && version !== 8) {
|
|
2059
2059
|
const message = "Missing or invalid Sec-WebSocket-Version header";
|
|
2060
|
-
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message
|
|
2060
|
+
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message, {
|
|
2061
|
+
"Sec-WebSocket-Version": "13, 8",
|
|
2062
|
+
});
|
|
2061
2063
|
return;
|
|
2062
2064
|
}
|
|
2063
2065
|
if (!this.shouldHandle(req)) {
|
|
@@ -2257,17 +2259,18 @@
|
|
|
2257
2259
|
socket,
|
|
2258
2260
|
code,
|
|
2259
2261
|
message,
|
|
2262
|
+
headers,
|
|
2260
2263
|
) {
|
|
2261
2264
|
if (server.listenerCount("wsClientError")) {
|
|
2262
2265
|
const err = new Error(message);
|
|
2263
2266
|
Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
|
|
2264
2267
|
server.emit("wsClientError", err, socket, req);
|
|
2265
2268
|
} else {
|
|
2266
|
-
abortHandshake(socket, code, message);
|
|
2269
|
+
abortHandshake(socket, code, message, headers);
|
|
2267
2270
|
}
|
|
2268
2271
|
}
|
|
2269
2272
|
},
|
|
2270
|
-
|
|
2273
|
+
953: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2271
2274
|
"use strict";
|
|
2272
2275
|
const EventEmitter = __nccwpck_require__(434);
|
|
2273
2276
|
const https = __nccwpck_require__(692);
|
|
@@ -2277,10 +2280,10 @@
|
|
|
2277
2280
|
const { randomBytes, createHash } = __nccwpck_require__(982);
|
|
2278
2281
|
const { Duplex, Readable } = __nccwpck_require__(203);
|
|
2279
2282
|
const { URL } = __nccwpck_require__(16);
|
|
2280
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
2281
|
-
const Receiver = __nccwpck_require__(
|
|
2282
|
-
const Sender = __nccwpck_require__(
|
|
2283
|
-
const { isBlob } = __nccwpck_require__(
|
|
2283
|
+
const PerMessageDeflate = __nccwpck_require__(635);
|
|
2284
|
+
const Receiver = __nccwpck_require__(221);
|
|
2285
|
+
const Sender = __nccwpck_require__(589);
|
|
2286
|
+
const { isBlob } = __nccwpck_require__(191);
|
|
2284
2287
|
const {
|
|
2285
2288
|
BINARY_TYPES,
|
|
2286
2289
|
EMPTY_BUFFER,
|
|
@@ -2290,12 +2293,12 @@
|
|
|
2290
2293
|
kStatusCode,
|
|
2291
2294
|
kWebSocket,
|
|
2292
2295
|
NOOP,
|
|
2293
|
-
} = __nccwpck_require__(
|
|
2296
|
+
} = __nccwpck_require__(743);
|
|
2294
2297
|
const {
|
|
2295
2298
|
EventTarget: { addEventListener, removeEventListener },
|
|
2296
|
-
} = __nccwpck_require__(
|
|
2297
|
-
const { format, parse } = __nccwpck_require__(
|
|
2298
|
-
const { toBuffer } = __nccwpck_require__(
|
|
2299
|
+
} = __nccwpck_require__(978);
|
|
2300
|
+
const { format, parse } = __nccwpck_require__(567);
|
|
2301
|
+
const { toBuffer } = __nccwpck_require__(739);
|
|
2299
2302
|
const closeTimeout = 30 * 1e3;
|
|
2300
2303
|
const kAborted = Symbol("kAborted");
|
|
2301
2304
|
const protocolVersions = [8, 13];
|
|
@@ -3153,6 +3156,6 @@
|
|
|
3153
3156
|
}
|
|
3154
3157
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
3155
3158
|
__nccwpck_require__.ab = __dirname + "/";
|
|
3156
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
3159
|
+
var __webpack_exports__ = __nccwpck_require__(122);
|
|
3157
3160
|
module.exports = __webpack_exports__;
|
|
3158
3161
|
})();
|
package/compiled/ws/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"ws","author":"Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)","version":"8.18.
|
|
1
|
+
{"name":"ws","author":"Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)","version":"8.18.3","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
package/dist/client/hmr.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const compilationId = RSBUILD_COMPILATION_NAME;
|
|
2
1
|
const hmr_config = RSBUILD_CLIENT_CONFIG;
|
|
3
2
|
const resolvedConfig = RSBUILD_RESOLVED_CLIENT_CONFIG;
|
|
4
3
|
function formatURL(config) {
|
|
@@ -6,18 +5,18 @@ function formatURL(config) {
|
|
|
6
5
|
const hostname = config.host || location.hostname;
|
|
7
6
|
const port = config.port || location.port;
|
|
8
7
|
const protocol = config.protocol || ('https:' === location.protocol ? 'wss' : 'ws');
|
|
9
|
-
const pathname = config.path
|
|
8
|
+
const pathname = config.path;
|
|
10
9
|
if ('undefined' != typeof URL) {
|
|
11
10
|
const url = new URL('http://localhost');
|
|
12
11
|
url.port = String(port);
|
|
13
12
|
url.hostname = hostname;
|
|
14
13
|
url.protocol = protocol;
|
|
15
14
|
url.pathname = pathname;
|
|
16
|
-
url.searchParams.append('
|
|
15
|
+
url.searchParams.append('token', RSBUILD_WEB_SOCKET_TOKEN);
|
|
17
16
|
return url.toString();
|
|
18
17
|
}
|
|
19
18
|
const colon = -1 === protocol.indexOf(':') ? ':' : '';
|
|
20
|
-
return `${protocol}${colon}//${hostname}:${port}${pathname}`;
|
|
19
|
+
return `${protocol}${colon}//${hostname}:${port}${pathname}?token=${RSBUILD_WEB_SOCKET_TOKEN}`;
|
|
21
20
|
}
|
|
22
21
|
let isFirstCompilation = true;
|
|
23
22
|
let lastCompilationHash = null;
|
|
@@ -87,7 +86,6 @@ function onOpen() {
|
|
|
87
86
|
}
|
|
88
87
|
function onMessage(e) {
|
|
89
88
|
const message = JSON.parse(e.data);
|
|
90
|
-
if (message.compilationId && message.compilationId !== compilationId) return;
|
|
91
89
|
switch(message.type){
|
|
92
90
|
case 'hash':
|
|
93
91
|
lastCompilationHash = message.data;
|