msw 2.3.0-ws.rc-10 → 2.3.0-ws.rc-11
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/lib/browser/index.js +7 -7
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/index.mjs +7 -7
- package/lib/browser/index.mjs.map +1 -1
- package/lib/core/ws/utils/attachWebSocketLogger.d.mts +2 -24
- package/lib/core/ws/utils/attachWebSocketLogger.d.ts +2 -24
- package/lib/core/ws/utils/attachWebSocketLogger.js +39 -58
- package/lib/core/ws/utils/attachWebSocketLogger.js.map +1 -1
- package/lib/core/ws/utils/attachWebSocketLogger.mjs +39 -58
- package/lib/core/ws/utils/attachWebSocketLogger.mjs.map +1 -1
- package/lib/iife/index.js +51 -61
- package/lib/iife/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/package.json +2 -2
- package/src/core/ws/utils/attachWebSocketLogger.ts +43 -77
package/lib/browser/index.js
CHANGED
|
@@ -401,7 +401,7 @@ You can also automate this process and make the worker script update automatical
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
404
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs
|
|
405
405
|
var encoder = new TextEncoder();
|
|
406
406
|
function encodeBuffer(text) {
|
|
407
407
|
return encoder.encode(text);
|
|
@@ -417,7 +417,7 @@ function toArrayBuffer(array) {
|
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
420
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-XVPRNJO7.mjs
|
|
421
421
|
var IS_PATCHED_MODULE = Symbol("isPatchedModule");
|
|
422
422
|
function isPropertyAccessible(obj, key) {
|
|
423
423
|
try {
|
|
@@ -987,7 +987,7 @@ var _Emitter = class {
|
|
|
987
987
|
var Emitter = _Emitter;
|
|
988
988
|
Emitter.defaultMaxListeners = 10;
|
|
989
989
|
|
|
990
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
990
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
991
991
|
var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
|
|
992
992
|
function getGlobalSymbol(symbol) {
|
|
993
993
|
return (
|
|
@@ -1135,7 +1135,7 @@ function createRequestId() {
|
|
|
1135
1135
|
return Math.random().toString(16).slice(2);
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
1138
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/index.mjs
|
|
1139
1139
|
var BatchInterceptor = class extends Interceptor {
|
|
1140
1140
|
constructor(options) {
|
|
1141
1141
|
BatchInterceptor.symbol = Symbol(options.name);
|
|
@@ -1421,7 +1421,7 @@ var DeferredPromise = class extends Promise {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
};
|
|
1423
1423
|
|
|
1424
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
1424
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-THPGBWJQ.mjs
|
|
1425
1425
|
var InterceptorError = class extends Error {
|
|
1426
1426
|
constructor(message) {
|
|
1427
1427
|
super(message);
|
|
@@ -1589,7 +1589,7 @@ async function handleRequest2(options) {
|
|
|
1589
1589
|
return false;
|
|
1590
1590
|
}
|
|
1591
1591
|
|
|
1592
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
1592
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-G5SOR3ND.mjs
|
|
1593
1593
|
function canParseUrl(url) {
|
|
1594
1594
|
try {
|
|
1595
1595
|
new URL(url);
|
|
@@ -1786,7 +1786,7 @@ var _FetchInterceptor = class extends Interceptor {
|
|
|
1786
1786
|
var FetchInterceptor = _FetchInterceptor;
|
|
1787
1787
|
FetchInterceptor.symbol = Symbol("fetch");
|
|
1788
1788
|
|
|
1789
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
1789
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-SUQ32ZQK.mjs
|
|
1790
1790
|
function concatArrayBuffer(left, right) {
|
|
1791
1791
|
const result = new Uint8Array(left.byteLength + right.byteLength);
|
|
1792
1792
|
result.set(left, 0);
|