@rsbuild/core 1.0.19 → 1.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/chokidar/index.js +76 -70
- package/compiled/css-loader/index.js +136 -128
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/http-proxy-middleware/index.d.ts +2 -0
- package/compiled/http-proxy-middleware/index.js +143 -114
- package/compiled/http-proxy-middleware/package.json +1 -1
- package/compiled/postcss-load-config/index.js +18 -30
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/rsbuild-dev-middleware/index.js +1556 -407
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/sirv/index.js +2 -2
- package/compiled/style-loader/index.js +10 -10
- package/compiled/webpack-bundle-analyzer/index.js +239 -122
- package/dist/index.cjs +17 -7
- package/dist/index.js +19 -9
- package/dist-types/index.d.ts +1 -1
- package/dist-types/types/plugin.d.ts +19 -3
- package/package.json +2 -2
|
@@ -983,7 +983,7 @@
|
|
|
983
983
|
3178: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
984
984
|
module.exports = __nccwpck_require__(3684).version;
|
|
985
985
|
},
|
|
986
|
-
|
|
986
|
+
7472: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
987
987
|
const qs = __nccwpck_require__(3477);
|
|
988
988
|
function parse(req) {
|
|
989
989
|
let raw = req.url;
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
}
|
|
1008
1008
|
exports.parse = parse;
|
|
1009
1009
|
},
|
|
1010
|
-
|
|
1010
|
+
8290: function (__unused_webpack_module, exports) {
|
|
1011
1011
|
(function (global, factory) {
|
|
1012
1012
|
true ? factory(exports) : 0;
|
|
1013
1013
|
})(this, function (exports) {
|
|
@@ -1248,19 +1248,9 @@
|
|
|
1248
1248
|
};
|
|
1249
1249
|
base.SwitchStatement = function (node, st, c) {
|
|
1250
1250
|
c(node.discriminant, st, "Expression");
|
|
1251
|
-
for (
|
|
1252
|
-
var
|
|
1253
|
-
|
|
1254
|
-
i$1 += 1
|
|
1255
|
-
) {
|
|
1256
|
-
var cs = list$1[i$1];
|
|
1257
|
-
if (cs.test) {
|
|
1258
|
-
c(cs.test, st, "Expression");
|
|
1259
|
-
}
|
|
1260
|
-
for (var i = 0, list = cs.consequent; i < list.length; i += 1) {
|
|
1261
|
-
var cons = list[i];
|
|
1262
|
-
c(cons, st, "Statement");
|
|
1263
|
-
}
|
|
1251
|
+
for (var i = 0, list = node.cases; i < list.length; i += 1) {
|
|
1252
|
+
var cs = list[i];
|
|
1253
|
+
c(cs, st);
|
|
1264
1254
|
}
|
|
1265
1255
|
};
|
|
1266
1256
|
base.SwitchCase = function (node, st, c) {
|
|
@@ -1552,64 +1542,67 @@
|
|
|
1552
1542
|
exports.simple = simple;
|
|
1553
1543
|
});
|
|
1554
1544
|
},
|
|
1555
|
-
|
|
1545
|
+
9934: function (__unused_webpack_module, exports) {
|
|
1556
1546
|
(function (global, factory) {
|
|
1557
1547
|
true ? factory(exports) : 0;
|
|
1558
1548
|
})(this, function (exports) {
|
|
1559
1549
|
"use strict";
|
|
1560
1550
|
var astralIdentifierCodes = [
|
|
1561
1551
|
509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166,
|
|
1562
|
-
1, 574, 3, 9, 9,
|
|
1563
|
-
3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9,
|
|
1564
|
-
2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11,
|
|
1565
|
-
1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4,
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1552
|
+
1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2,
|
|
1553
|
+
54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9,
|
|
1554
|
+
6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11,
|
|
1555
|
+
6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8,
|
|
1556
|
+
2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13,
|
|
1557
|
+
9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5,
|
|
1558
|
+
9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3,
|
|
1559
|
+
6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2,
|
|
1560
|
+
7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4,
|
|
1561
|
+
2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0,
|
|
1562
|
+
7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0,
|
|
1563
|
+
2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4,
|
|
1564
|
+
4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15,
|
|
1565
|
+
0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10,
|
|
1566
|
+
9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759,
|
|
1567
|
+
9, 787719, 239,
|
|
1576
1568
|
];
|
|
1577
1569
|
var astralIdentifierStartCodes = [
|
|
1578
1570
|
0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4,
|
|
1579
1571
|
48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35,
|
|
1580
1572
|
5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2,
|
|
1581
|
-
1,
|
|
1582
|
-
1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25,
|
|
1583
|
-
7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27,
|
|
1584
|
-
11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35,
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
0, 3,
|
|
1606
|
-
|
|
1607
|
-
|
|
1573
|
+
1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2,
|
|
1574
|
+
43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25,
|
|
1575
|
+
71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27,
|
|
1576
|
+
28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39,
|
|
1577
|
+
27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47,
|
|
1578
|
+
20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0,
|
|
1579
|
+
9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6,
|
|
1580
|
+
2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4,
|
|
1581
|
+
4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45,
|
|
1582
|
+
52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0,
|
|
1583
|
+
60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2,
|
|
1584
|
+
1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0,
|
|
1585
|
+
22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29,
|
|
1586
|
+
113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0,
|
|
1587
|
+
2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071,
|
|
1588
|
+
18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29,
|
|
1589
|
+
19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12,
|
|
1590
|
+
65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290,
|
|
1591
|
+
16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991,
|
|
1592
|
+
84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3,
|
|
1593
|
+
7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30,
|
|
1594
|
+
2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5,
|
|
1595
|
+
262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3,
|
|
1596
|
+
0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2,
|
|
1597
|
+
1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2,
|
|
1598
|
+
2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2,
|
|
1599
|
+
3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153,
|
|
1600
|
+
7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191,
|
|
1608
1601
|
];
|
|
1609
1602
|
var nonASCIIidentifierChars =
|
|
1610
|
-
"
|
|
1603
|
+
"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
1611
1604
|
var nonASCIIidentifierStartChars =
|
|
1612
|
-
"
|
|
1605
|
+
"ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
|
1613
1606
|
var reservedWords = {
|
|
1614
1607
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
1615
1608
|
5: "class enum extends super const export import",
|
|
@@ -3437,6 +3430,9 @@
|
|
|
3437
3430
|
this.unexpected();
|
|
3438
3431
|
}
|
|
3439
3432
|
node.source = this.parseExprAtom();
|
|
3433
|
+
if (this.options.ecmaVersion >= 16) {
|
|
3434
|
+
node.attributes = this.parseWithClause();
|
|
3435
|
+
}
|
|
3440
3436
|
this.semicolon();
|
|
3441
3437
|
return this.finishNode(node, "ExportAllDeclaration");
|
|
3442
3438
|
};
|
|
@@ -3471,6 +3467,9 @@
|
|
|
3471
3467
|
this.unexpected();
|
|
3472
3468
|
}
|
|
3473
3469
|
node.source = this.parseExprAtom();
|
|
3470
|
+
if (this.options.ecmaVersion >= 16) {
|
|
3471
|
+
node.attributes = this.parseWithClause();
|
|
3472
|
+
}
|
|
3474
3473
|
} else {
|
|
3475
3474
|
for (var i = 0, list = node.specifiers; i < list.length; i += 1) {
|
|
3476
3475
|
var spec = list[i];
|
|
@@ -3616,6 +3615,9 @@
|
|
|
3616
3615
|
? this.parseExprAtom()
|
|
3617
3616
|
: this.unexpected();
|
|
3618
3617
|
}
|
|
3618
|
+
if (this.options.ecmaVersion >= 16) {
|
|
3619
|
+
node.attributes = this.parseWithClause();
|
|
3620
|
+
}
|
|
3619
3621
|
this.semicolon();
|
|
3620
3622
|
return this.finishNode(node, "ImportDeclaration");
|
|
3621
3623
|
};
|
|
@@ -3672,6 +3674,50 @@
|
|
|
3672
3674
|
}
|
|
3673
3675
|
return nodes;
|
|
3674
3676
|
};
|
|
3677
|
+
pp$8.parseWithClause = function () {
|
|
3678
|
+
var nodes = [];
|
|
3679
|
+
if (!this.eat(types$1._with)) {
|
|
3680
|
+
return nodes;
|
|
3681
|
+
}
|
|
3682
|
+
this.expect(types$1.braceL);
|
|
3683
|
+
var attributeKeys = {};
|
|
3684
|
+
var first = true;
|
|
3685
|
+
while (!this.eat(types$1.braceR)) {
|
|
3686
|
+
if (!first) {
|
|
3687
|
+
this.expect(types$1.comma);
|
|
3688
|
+
if (this.afterTrailingComma(types$1.braceR)) {
|
|
3689
|
+
break;
|
|
3690
|
+
}
|
|
3691
|
+
} else {
|
|
3692
|
+
first = false;
|
|
3693
|
+
}
|
|
3694
|
+
var attr = this.parseImportAttribute();
|
|
3695
|
+
var keyName =
|
|
3696
|
+
attr.key.type === "Identifier" ? attr.key.name : attr.key.value;
|
|
3697
|
+
if (hasOwn(attributeKeys, keyName)) {
|
|
3698
|
+
this.raiseRecoverable(
|
|
3699
|
+
attr.key.start,
|
|
3700
|
+
"Duplicate attribute key '" + keyName + "'",
|
|
3701
|
+
);
|
|
3702
|
+
}
|
|
3703
|
+
attributeKeys[keyName] = true;
|
|
3704
|
+
nodes.push(attr);
|
|
3705
|
+
}
|
|
3706
|
+
return nodes;
|
|
3707
|
+
};
|
|
3708
|
+
pp$8.parseImportAttribute = function () {
|
|
3709
|
+
var node = this.startNode();
|
|
3710
|
+
node.key =
|
|
3711
|
+
this.type === types$1.string
|
|
3712
|
+
? this.parseExprAtom()
|
|
3713
|
+
: this.parseIdent(this.options.allowReserved !== "never");
|
|
3714
|
+
this.expect(types$1.colon);
|
|
3715
|
+
if (this.type !== types$1.string) {
|
|
3716
|
+
this.unexpected();
|
|
3717
|
+
}
|
|
3718
|
+
node.value = this.parseExprAtom();
|
|
3719
|
+
return this.finishNode(node, "ImportAttribute");
|
|
3720
|
+
};
|
|
3675
3721
|
pp$8.parseModuleExportName = function () {
|
|
3676
3722
|
if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {
|
|
3677
3723
|
var stringLiteral = this.parseLiteral(this.value);
|
|
@@ -4971,15 +5017,34 @@
|
|
|
4971
5017
|
pp$5.parseDynamicImport = function (node) {
|
|
4972
5018
|
this.next();
|
|
4973
5019
|
node.source = this.parseMaybeAssign();
|
|
4974
|
-
if (
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
this.
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
5020
|
+
if (this.options.ecmaVersion >= 16) {
|
|
5021
|
+
if (!this.eat(types$1.parenR)) {
|
|
5022
|
+
this.expect(types$1.comma);
|
|
5023
|
+
if (!this.afterTrailingComma(types$1.parenR)) {
|
|
5024
|
+
node.options = this.parseMaybeAssign();
|
|
5025
|
+
if (!this.eat(types$1.parenR)) {
|
|
5026
|
+
this.expect(types$1.comma);
|
|
5027
|
+
if (!this.afterTrailingComma(types$1.parenR)) {
|
|
5028
|
+
this.unexpected();
|
|
5029
|
+
}
|
|
5030
|
+
}
|
|
5031
|
+
} else {
|
|
5032
|
+
node.options = null;
|
|
5033
|
+
}
|
|
4981
5034
|
} else {
|
|
4982
|
-
|
|
5035
|
+
node.options = null;
|
|
5036
|
+
}
|
|
5037
|
+
} else {
|
|
5038
|
+
if (!this.eat(types$1.parenR)) {
|
|
5039
|
+
var errorPos = this.start;
|
|
5040
|
+
if (this.eat(types$1.comma) && this.eat(types$1.parenR)) {
|
|
5041
|
+
this.raiseRecoverable(
|
|
5042
|
+
errorPos,
|
|
5043
|
+
"Trailing comma is not allowed in import()",
|
|
5044
|
+
);
|
|
5045
|
+
} else {
|
|
5046
|
+
this.unexpected(errorPos);
|
|
5047
|
+
}
|
|
4983
5048
|
}
|
|
4984
5049
|
}
|
|
4985
5050
|
return this.finishNode(node, "ImportExpression");
|
|
@@ -5964,6 +6029,8 @@
|
|
|
5964
6029
|
}
|
|
5965
6030
|
return newNode;
|
|
5966
6031
|
};
|
|
6032
|
+
var scriptValuesAddedInUnicode =
|
|
6033
|
+
"Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";
|
|
5967
6034
|
var ecma9BinaryProperties =
|
|
5968
6035
|
"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";
|
|
5969
6036
|
var ecma10BinaryProperties =
|
|
@@ -6008,8 +6075,7 @@
|
|
|
6008
6075
|
ecma12ScriptValues +
|
|
6009
6076
|
" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
6010
6077
|
var ecma14ScriptValues =
|
|
6011
|
-
ecma13ScriptValues +
|
|
6012
|
-
" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz";
|
|
6078
|
+
ecma13ScriptValues + " " + scriptValuesAddedInUnicode;
|
|
6013
6079
|
var unicodeScriptValues = {
|
|
6014
6080
|
9: ecma9ScriptValues,
|
|
6015
6081
|
10: ecma10ScriptValues,
|
|
@@ -6417,12 +6483,45 @@
|
|
|
6417
6483
|
pp$1.regexp_eatUncapturingGroup = function (state) {
|
|
6418
6484
|
var start = state.pos;
|
|
6419
6485
|
if (state.eat(40)) {
|
|
6420
|
-
if (state.eat(63)
|
|
6421
|
-
this.
|
|
6422
|
-
|
|
6423
|
-
|
|
6486
|
+
if (state.eat(63)) {
|
|
6487
|
+
if (this.options.ecmaVersion >= 16) {
|
|
6488
|
+
var addModifiers = this.regexp_eatModifiers(state);
|
|
6489
|
+
var hasHyphen = state.eat(45);
|
|
6490
|
+
if (addModifiers || hasHyphen) {
|
|
6491
|
+
for (var i = 0; i < addModifiers.length; i++) {
|
|
6492
|
+
var modifier = addModifiers.charAt(i);
|
|
6493
|
+
if (addModifiers.indexOf(modifier, i + 1) > -1) {
|
|
6494
|
+
state.raise("Duplicate regular expression modifiers");
|
|
6495
|
+
}
|
|
6496
|
+
}
|
|
6497
|
+
if (hasHyphen) {
|
|
6498
|
+
var removeModifiers = this.regexp_eatModifiers(state);
|
|
6499
|
+
if (
|
|
6500
|
+
!addModifiers &&
|
|
6501
|
+
!removeModifiers &&
|
|
6502
|
+
state.current() === 58
|
|
6503
|
+
) {
|
|
6504
|
+
state.raise("Invalid regular expression modifiers");
|
|
6505
|
+
}
|
|
6506
|
+
for (var i$1 = 0; i$1 < removeModifiers.length; i$1++) {
|
|
6507
|
+
var modifier$1 = removeModifiers.charAt(i$1);
|
|
6508
|
+
if (
|
|
6509
|
+
removeModifiers.indexOf(modifier$1, i$1 + 1) > -1 ||
|
|
6510
|
+
addModifiers.indexOf(modifier$1) > -1
|
|
6511
|
+
) {
|
|
6512
|
+
state.raise("Duplicate regular expression modifiers");
|
|
6513
|
+
}
|
|
6514
|
+
}
|
|
6515
|
+
}
|
|
6516
|
+
}
|
|
6517
|
+
}
|
|
6518
|
+
if (state.eat(58)) {
|
|
6519
|
+
this.regexp_disjunction(state);
|
|
6520
|
+
if (state.eat(41)) {
|
|
6521
|
+
return true;
|
|
6522
|
+
}
|
|
6523
|
+
state.raise("Unterminated group");
|
|
6424
6524
|
}
|
|
6425
|
-
state.raise("Unterminated group");
|
|
6426
6525
|
}
|
|
6427
6526
|
state.pos = start;
|
|
6428
6527
|
}
|
|
@@ -6444,6 +6543,21 @@
|
|
|
6444
6543
|
}
|
|
6445
6544
|
return false;
|
|
6446
6545
|
};
|
|
6546
|
+
pp$1.regexp_eatModifiers = function (state) {
|
|
6547
|
+
var modifiers = "";
|
|
6548
|
+
var ch = 0;
|
|
6549
|
+
while (
|
|
6550
|
+
(ch = state.current()) !== -1 &&
|
|
6551
|
+
isRegularExpressionModifier(ch)
|
|
6552
|
+
) {
|
|
6553
|
+
modifiers += codePointToString(ch);
|
|
6554
|
+
state.advance();
|
|
6555
|
+
}
|
|
6556
|
+
return modifiers;
|
|
6557
|
+
};
|
|
6558
|
+
function isRegularExpressionModifier(ch) {
|
|
6559
|
+
return ch === 105 || ch === 109 || ch === 115;
|
|
6560
|
+
}
|
|
6447
6561
|
pp$1.regexp_eatExtendedAtom = function (state) {
|
|
6448
6562
|
return (
|
|
6449
6563
|
state.eat(46) ||
|
|
@@ -8236,7 +8350,7 @@
|
|
|
8236
8350
|
}
|
|
8237
8351
|
return this.finishToken(type, word);
|
|
8238
8352
|
};
|
|
8239
|
-
var version = "8.
|
|
8353
|
+
var version = "8.14.0";
|
|
8240
8354
|
Parser.acorn = {
|
|
8241
8355
|
Parser,
|
|
8242
8356
|
version,
|
|
@@ -8987,7 +9101,7 @@
|
|
|
8987
9101
|
const fs = __nccwpck_require__(7147);
|
|
8988
9102
|
const { join, normalize, resolve } = __nccwpck_require__(1017);
|
|
8989
9103
|
const { totalist } = __nccwpck_require__(2190);
|
|
8990
|
-
const { parse } = __nccwpck_require__(
|
|
9104
|
+
const { parse } = __nccwpck_require__(7472);
|
|
8991
9105
|
const { lookup } = __nccwpck_require__(5486);
|
|
8992
9106
|
const noop = () => {};
|
|
8993
9107
|
function isMatch(uri, arr) {
|
|
@@ -9618,8 +9732,8 @@
|
|
|
9618
9732
|
5132: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
9619
9733
|
"use strict";
|
|
9620
9734
|
const fs = __nccwpck_require__(7147);
|
|
9621
|
-
const acorn = __nccwpck_require__(
|
|
9622
|
-
const walk = __nccwpck_require__(
|
|
9735
|
+
const acorn = __nccwpck_require__(9934);
|
|
9736
|
+
const walk = __nccwpck_require__(8290);
|
|
9623
9737
|
module.exports = { parseBundle };
|
|
9624
9738
|
function parseBundle(bundlePath) {
|
|
9625
9739
|
const content = fs.readFileSync(bundlePath, "utf8");
|
|
@@ -10519,7 +10633,7 @@
|
|
|
10519
10633
|
const path = __nccwpck_require__(1017);
|
|
10520
10634
|
const fs = __nccwpck_require__(7147);
|
|
10521
10635
|
const http = __nccwpck_require__(3685);
|
|
10522
|
-
const WebSocket = __nccwpck_require__(
|
|
10636
|
+
const WebSocket = __nccwpck_require__(7532);
|
|
10523
10637
|
const sirv = __nccwpck_require__(2486);
|
|
10524
10638
|
const { bold } = __nccwpck_require__(5209);
|
|
10525
10639
|
const Logger = __nccwpck_require__(1283);
|
|
@@ -10711,18 +10825,18 @@
|
|
|
10711
10825
|
);
|
|
10712
10826
|
}
|
|
10713
10827
|
},
|
|
10714
|
-
|
|
10828
|
+
7532: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
10715
10829
|
"use strict";
|
|
10716
|
-
const WebSocket = __nccwpck_require__(
|
|
10717
|
-
WebSocket.createWebSocketStream = __nccwpck_require__(
|
|
10718
|
-
WebSocket.Server = __nccwpck_require__(
|
|
10719
|
-
WebSocket.Receiver = __nccwpck_require__(
|
|
10720
|
-
WebSocket.Sender = __nccwpck_require__(
|
|
10830
|
+
const WebSocket = __nccwpck_require__(5443);
|
|
10831
|
+
WebSocket.createWebSocketStream = __nccwpck_require__(8234);
|
|
10832
|
+
WebSocket.Server = __nccwpck_require__(2443);
|
|
10833
|
+
WebSocket.Receiver = __nccwpck_require__(6784);
|
|
10834
|
+
WebSocket.Sender = __nccwpck_require__(3345);
|
|
10721
10835
|
module.exports = WebSocket;
|
|
10722
10836
|
},
|
|
10723
|
-
|
|
10837
|
+
44: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
10724
10838
|
"use strict";
|
|
10725
|
-
const { EMPTY_BUFFER } = __nccwpck_require__(
|
|
10839
|
+
const { EMPTY_BUFFER } = __nccwpck_require__(3539);
|
|
10726
10840
|
function concat(list, totalLength) {
|
|
10727
10841
|
if (list.length === 0) return EMPTY_BUFFER;
|
|
10728
10842
|
if (list.length === 1) return list[0];
|
|
@@ -10796,7 +10910,7 @@
|
|
|
10796
10910
|
};
|
|
10797
10911
|
}
|
|
10798
10912
|
},
|
|
10799
|
-
|
|
10913
|
+
3539: (module) => {
|
|
10800
10914
|
"use strict";
|
|
10801
10915
|
module.exports = {
|
|
10802
10916
|
BINARY_TYPES: ["nodebuffer", "arraybuffer", "fragments"],
|
|
@@ -10807,7 +10921,7 @@
|
|
|
10807
10921
|
NOOP: () => {},
|
|
10808
10922
|
};
|
|
10809
10923
|
},
|
|
10810
|
-
|
|
10924
|
+
101: (module) => {
|
|
10811
10925
|
"use strict";
|
|
10812
10926
|
class Event {
|
|
10813
10927
|
constructor(type, target) {
|
|
@@ -10887,7 +11001,7 @@
|
|
|
10887
11001
|
};
|
|
10888
11002
|
module.exports = EventTarget;
|
|
10889
11003
|
},
|
|
10890
|
-
|
|
11004
|
+
6915: (module) => {
|
|
10891
11005
|
"use strict";
|
|
10892
11006
|
const tokenChars = [
|
|
10893
11007
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
@@ -11052,7 +11166,7 @@
|
|
|
11052
11166
|
}
|
|
11053
11167
|
module.exports = { format, parse };
|
|
11054
11168
|
},
|
|
11055
|
-
|
|
11169
|
+
9936: (module) => {
|
|
11056
11170
|
"use strict";
|
|
11057
11171
|
const kDone = Symbol("kDone");
|
|
11058
11172
|
const kRun = Symbol("kRun");
|
|
@@ -11081,12 +11195,12 @@
|
|
|
11081
11195
|
}
|
|
11082
11196
|
module.exports = Limiter;
|
|
11083
11197
|
},
|
|
11084
|
-
|
|
11198
|
+
2094: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
11085
11199
|
"use strict";
|
|
11086
11200
|
const zlib = __nccwpck_require__(9796);
|
|
11087
|
-
const bufferUtil = __nccwpck_require__(
|
|
11088
|
-
const Limiter = __nccwpck_require__(
|
|
11089
|
-
const { kStatusCode, NOOP } = __nccwpck_require__(
|
|
11201
|
+
const bufferUtil = __nccwpck_require__(44);
|
|
11202
|
+
const Limiter = __nccwpck_require__(9936);
|
|
11203
|
+
const { kStatusCode, NOOP } = __nccwpck_require__(3539);
|
|
11090
11204
|
const TRAILER = Buffer.from([0, 0, 255, 255]);
|
|
11091
11205
|
const kPerMessageDeflate = Symbol("permessage-deflate");
|
|
11092
11206
|
const kTotalLength = Symbol("total-length");
|
|
@@ -11400,14 +11514,14 @@
|
|
|
11400
11514
|
this[kCallback](err);
|
|
11401
11515
|
}
|
|
11402
11516
|
},
|
|
11403
|
-
|
|
11517
|
+
6784: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
11404
11518
|
"use strict";
|
|
11405
11519
|
const { Writable } = __nccwpck_require__(2781);
|
|
11406
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
11520
|
+
const PerMessageDeflate = __nccwpck_require__(2094);
|
|
11407
11521
|
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } =
|
|
11408
|
-
__nccwpck_require__(
|
|
11409
|
-
const { concat, toArrayBuffer, unmask } = __nccwpck_require__(
|
|
11410
|
-
const { isValidStatusCode, isValidUTF8 } = __nccwpck_require__(
|
|
11522
|
+
__nccwpck_require__(3539);
|
|
11523
|
+
const { concat, toArrayBuffer, unmask } = __nccwpck_require__(44);
|
|
11524
|
+
const { isValidStatusCode, isValidUTF8 } = __nccwpck_require__(105);
|
|
11411
11525
|
const GET_INFO = 0;
|
|
11412
11526
|
const GET_PAYLOAD_LENGTH_16 = 1;
|
|
11413
11527
|
const GET_PAYLOAD_LENGTH_64 = 2;
|
|
@@ -11826,15 +11940,15 @@
|
|
|
11826
11940
|
return err;
|
|
11827
11941
|
}
|
|
11828
11942
|
},
|
|
11829
|
-
|
|
11943
|
+
3345: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
11830
11944
|
"use strict";
|
|
11831
11945
|
const net = __nccwpck_require__(1808);
|
|
11832
11946
|
const tls = __nccwpck_require__(4404);
|
|
11833
11947
|
const { randomFillSync } = __nccwpck_require__(6113);
|
|
11834
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
11835
|
-
const { EMPTY_BUFFER } = __nccwpck_require__(
|
|
11836
|
-
const { isValidStatusCode } = __nccwpck_require__(
|
|
11837
|
-
const { mask: applyMask, toBuffer } = __nccwpck_require__(
|
|
11948
|
+
const PerMessageDeflate = __nccwpck_require__(2094);
|
|
11949
|
+
const { EMPTY_BUFFER } = __nccwpck_require__(3539);
|
|
11950
|
+
const { isValidStatusCode } = __nccwpck_require__(105);
|
|
11951
|
+
const { mask: applyMask, toBuffer } = __nccwpck_require__(44);
|
|
11838
11952
|
const mask = Buffer.alloc(4);
|
|
11839
11953
|
class Sender {
|
|
11840
11954
|
constructor(socket, extensions) {
|
|
@@ -12068,7 +12182,7 @@
|
|
|
12068
12182
|
}
|
|
12069
12183
|
module.exports = Sender;
|
|
12070
12184
|
},
|
|
12071
|
-
|
|
12185
|
+
8234: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
12072
12186
|
"use strict";
|
|
12073
12187
|
const { Duplex } = __nccwpck_require__(2781);
|
|
12074
12188
|
function emitClose(stream) {
|
|
@@ -12182,7 +12296,7 @@
|
|
|
12182
12296
|
}
|
|
12183
12297
|
module.exports = createWebSocketStream;
|
|
12184
12298
|
},
|
|
12185
|
-
|
|
12299
|
+
105: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
12186
12300
|
"use strict";
|
|
12187
12301
|
function isValidStatusCode(code) {
|
|
12188
12302
|
return (
|
|
@@ -12254,7 +12368,7 @@
|
|
|
12254
12368
|
module.exports = { isValidStatusCode, isValidUTF8: _isValidUTF8 };
|
|
12255
12369
|
}
|
|
12256
12370
|
},
|
|
12257
|
-
|
|
12371
|
+
2443: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
12258
12372
|
"use strict";
|
|
12259
12373
|
const EventEmitter = __nccwpck_require__(2361);
|
|
12260
12374
|
const http = __nccwpck_require__(3685);
|
|
@@ -12262,10 +12376,10 @@
|
|
|
12262
12376
|
const net = __nccwpck_require__(1808);
|
|
12263
12377
|
const tls = __nccwpck_require__(4404);
|
|
12264
12378
|
const { createHash } = __nccwpck_require__(6113);
|
|
12265
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
12266
|
-
const WebSocket = __nccwpck_require__(
|
|
12267
|
-
const { format, parse } = __nccwpck_require__(
|
|
12268
|
-
const { GUID, kWebSocket } = __nccwpck_require__(
|
|
12379
|
+
const PerMessageDeflate = __nccwpck_require__(2094);
|
|
12380
|
+
const WebSocket = __nccwpck_require__(5443);
|
|
12381
|
+
const { format, parse } = __nccwpck_require__(6915);
|
|
12382
|
+
const { GUID, kWebSocket } = __nccwpck_require__(3539);
|
|
12269
12383
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
12270
12384
|
const RUNNING = 0;
|
|
12271
12385
|
const CLOSING = 1;
|
|
@@ -12374,11 +12488,13 @@
|
|
|
12374
12488
|
req.headers["sec-websocket-key"] !== undefined
|
|
12375
12489
|
? req.headers["sec-websocket-key"].trim()
|
|
12376
12490
|
: false;
|
|
12491
|
+
const upgrade = req.headers.upgrade;
|
|
12377
12492
|
const version = +req.headers["sec-websocket-version"];
|
|
12378
12493
|
const extensions = {};
|
|
12379
12494
|
if (
|
|
12380
12495
|
req.method !== "GET" ||
|
|
12381
|
-
|
|
12496
|
+
upgrade === undefined ||
|
|
12497
|
+
upgrade.toLowerCase() !== "websocket" ||
|
|
12382
12498
|
!key ||
|
|
12383
12499
|
!keyRegex.test(key) ||
|
|
12384
12500
|
(version !== 8 && version !== 13) ||
|
|
@@ -12527,7 +12643,7 @@
|
|
|
12527
12643
|
return str.trim();
|
|
12528
12644
|
}
|
|
12529
12645
|
},
|
|
12530
|
-
|
|
12646
|
+
5443: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
12531
12647
|
"use strict";
|
|
12532
12648
|
const EventEmitter = __nccwpck_require__(2361);
|
|
12533
12649
|
const https = __nccwpck_require__(5687);
|
|
@@ -12537,9 +12653,9 @@
|
|
|
12537
12653
|
const { randomBytes, createHash } = __nccwpck_require__(6113);
|
|
12538
12654
|
const { Readable } = __nccwpck_require__(2781);
|
|
12539
12655
|
const { URL } = __nccwpck_require__(7310);
|
|
12540
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
12541
|
-
const Receiver = __nccwpck_require__(
|
|
12542
|
-
const Sender = __nccwpck_require__(
|
|
12656
|
+
const PerMessageDeflate = __nccwpck_require__(2094);
|
|
12657
|
+
const Receiver = __nccwpck_require__(6784);
|
|
12658
|
+
const Sender = __nccwpck_require__(3345);
|
|
12543
12659
|
const {
|
|
12544
12660
|
BINARY_TYPES,
|
|
12545
12661
|
EMPTY_BUFFER,
|
|
@@ -12547,11 +12663,11 @@
|
|
|
12547
12663
|
kStatusCode,
|
|
12548
12664
|
kWebSocket,
|
|
12549
12665
|
NOOP,
|
|
12550
|
-
} = __nccwpck_require__(
|
|
12666
|
+
} = __nccwpck_require__(3539);
|
|
12551
12667
|
const { addEventListener, removeEventListener } =
|
|
12552
|
-
__nccwpck_require__(
|
|
12553
|
-
const { format, parse } = __nccwpck_require__(
|
|
12554
|
-
const { toBuffer } = __nccwpck_require__(
|
|
12668
|
+
__nccwpck_require__(101);
|
|
12669
|
+
const { format, parse } = __nccwpck_require__(6915);
|
|
12670
|
+
const { toBuffer } = __nccwpck_require__(44);
|
|
12555
12671
|
const readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"];
|
|
12556
12672
|
const protocolVersions = [8, 13];
|
|
12557
12673
|
const closeTimeout = 30 * 1e3;
|
|
@@ -13014,7 +13130,8 @@
|
|
|
13014
13130
|
websocket.emit("upgrade", res);
|
|
13015
13131
|
if (websocket.readyState !== WebSocket.CONNECTING) return;
|
|
13016
13132
|
req = websocket._req = null;
|
|
13017
|
-
|
|
13133
|
+
const upgrade = res.headers.upgrade;
|
|
13134
|
+
if (upgrade === undefined || upgrade.toLowerCase() !== "websocket") {
|
|
13018
13135
|
abortHandshake(websocket, socket, "Invalid Upgrade header");
|
|
13019
13136
|
return;
|
|
13020
13137
|
}
|