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.mjs
CHANGED
|
@@ -374,7 +374,7 @@ You can also automate this process and make the worker script update automatical
|
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
377
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs
|
|
378
378
|
var encoder = new TextEncoder();
|
|
379
379
|
function encodeBuffer(text) {
|
|
380
380
|
return encoder.encode(text);
|
|
@@ -390,7 +390,7 @@ function toArrayBuffer(array) {
|
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
393
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-XVPRNJO7.mjs
|
|
394
394
|
var IS_PATCHED_MODULE = Symbol("isPatchedModule");
|
|
395
395
|
function isPropertyAccessible(obj, key) {
|
|
396
396
|
try {
|
|
@@ -960,7 +960,7 @@ var _Emitter = class {
|
|
|
960
960
|
var Emitter = _Emitter;
|
|
961
961
|
Emitter.defaultMaxListeners = 10;
|
|
962
962
|
|
|
963
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
963
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
964
964
|
var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
|
|
965
965
|
function getGlobalSymbol(symbol) {
|
|
966
966
|
return (
|
|
@@ -1108,7 +1108,7 @@ function createRequestId() {
|
|
|
1108
1108
|
return Math.random().toString(16).slice(2);
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
1111
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/index.mjs
|
|
1112
1112
|
var BatchInterceptor = class extends Interceptor {
|
|
1113
1113
|
constructor(options) {
|
|
1114
1114
|
BatchInterceptor.symbol = Symbol(options.name);
|
|
@@ -1394,7 +1394,7 @@ var DeferredPromise = class extends Promise {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
};
|
|
1396
1396
|
|
|
1397
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
1397
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-THPGBWJQ.mjs
|
|
1398
1398
|
var InterceptorError = class extends Error {
|
|
1399
1399
|
constructor(message) {
|
|
1400
1400
|
super(message);
|
|
@@ -1562,7 +1562,7 @@ async function handleRequest2(options) {
|
|
|
1562
1562
|
return false;
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
1565
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-G5SOR3ND.mjs
|
|
1566
1566
|
function canParseUrl(url) {
|
|
1567
1567
|
try {
|
|
1568
1568
|
new URL(url);
|
|
@@ -1759,7 +1759,7 @@ var _FetchInterceptor = class extends Interceptor {
|
|
|
1759
1759
|
var FetchInterceptor = _FetchInterceptor;
|
|
1760
1760
|
FetchInterceptor.symbol = Symbol("fetch");
|
|
1761
1761
|
|
|
1762
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.36.
|
|
1762
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.36.1/node_modules/@mswjs/interceptors/lib/browser/chunk-SUQ32ZQK.mjs
|
|
1763
1763
|
function concatArrayBuffer(left, right) {
|
|
1764
1764
|
const result = new Uint8Array(left.byteLength + right.byteLength);
|
|
1765
1765
|
result.set(left, 0);
|