@rsbuild/core 1.4.1 → 1.4.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/compiled/css-loader/index.js +18 -18
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/http-proxy-middleware/index.js +11 -7
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rsbuild-dev-middleware/index.js +5 -3
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/sirv/index.js +1 -1
- package/compiled/webpack-bundle-analyzer/index.js +21 -13621
- package/compiled/ws/index.js +56 -53
- package/compiled/ws/package.json +1 -1
- package/dist/index.cjs +339 -22
- package/dist/index.js +343 -17
- package/package.json +7 -7
- package/compiled/open/index.d.ts +0 -153
- package/compiled/open/index.js +0 -409
- package/compiled/open/package.json +0 -1
- package/compiled/open/xdg-open +0 -1066
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"}
|