msw 2.3.0-ws.rc-3 → 2.3.0-ws.rc-5
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/handleWebSocketEvent.js +0 -3
- package/lib/core/ws/handleWebSocketEvent.js.map +1 -1
- package/lib/core/ws/handleWebSocketEvent.mjs +0 -3
- package/lib/core/ws/handleWebSocketEvent.mjs.map +1 -1
- package/lib/core/ws/utils/attachWebSocketLogger.js +15 -9
- package/lib/core/ws/utils/attachWebSocketLogger.js.map +1 -1
- package/lib/core/ws/utils/attachWebSocketLogger.mjs +15 -9
- package/lib/core/ws/utils/attachWebSocketLogger.mjs.map +1 -1
- package/lib/iife/index.js +134 -82
- package/lib/iife/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/package.json +2 -2
- package/src/core/ws/handleWebSocketEvent.ts +0 -3
- package/src/core/ws/utils/attachWebSocketLogger.ts +16 -9
- package/src/core/ws.test.ts +1 -1
package/lib/browser/index.js
CHANGED
|
@@ -397,7 +397,7 @@ You can also automate this process and make the worker script update automatical
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
400
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-UJZOJSMP.mjs
|
|
401
401
|
var encoder = new TextEncoder();
|
|
402
402
|
function encodeBuffer(text) {
|
|
403
403
|
return encoder.encode(text);
|
|
@@ -423,7 +423,7 @@ function isResponseWithoutBody(status) {
|
|
|
423
423
|
return RESPONSE_STATUS_CODES_WITHOUT_BODY.has(status);
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
426
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-HAGW22AN.mjs
|
|
427
427
|
var IS_PATCHED_MODULE = Symbol("isPatchedModule");
|
|
428
428
|
|
|
429
429
|
// node_modules/.pnpm/@open-draft+logger@0.3.0/node_modules/@open-draft/logger/lib/index.mjs
|
|
@@ -863,7 +863,7 @@ var _Emitter = class {
|
|
|
863
863
|
var Emitter = _Emitter;
|
|
864
864
|
Emitter.defaultMaxListeners = 10;
|
|
865
865
|
|
|
866
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
866
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
867
867
|
var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
|
|
868
868
|
function getGlobalSymbol(symbol) {
|
|
869
869
|
return (
|
|
@@ -1011,7 +1011,7 @@ function createRequestId() {
|
|
|
1011
1011
|
return Math.random().toString(16).slice(2);
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1014
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/index.mjs
|
|
1015
1015
|
var BatchInterceptor = class extends Interceptor {
|
|
1016
1016
|
constructor(options) {
|
|
1017
1017
|
BatchInterceptor.symbol = Symbol(options.name);
|
|
@@ -1295,7 +1295,7 @@ var DeferredPromise = class extends Promise {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
1297
1297
|
|
|
1298
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1298
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-OUWBQF3Z.mjs
|
|
1299
1299
|
var RequestController = class {
|
|
1300
1300
|
constructor(request) {
|
|
1301
1301
|
this.request = request;
|
|
@@ -1333,7 +1333,7 @@ async function emitAsync(emitter, eventName, ...data) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
|
|
1336
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1336
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-3FNUI33J.mjs
|
|
1337
1337
|
function isPropertyAccessible(obj, key) {
|
|
1338
1338
|
try {
|
|
1339
1339
|
obj[key];
|
|
@@ -1480,7 +1480,7 @@ function createNetworkError(cause) {
|
|
|
1480
1480
|
});
|
|
1481
1481
|
}
|
|
1482
1482
|
|
|
1483
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1483
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/lib/browser/chunk-VYFS2IF2.mjs
|
|
1484
1484
|
function concatArrayBuffer(left, right) {
|
|
1485
1485
|
const result = new Uint8Array(left.byteLength + right.byteLength);
|
|
1486
1486
|
result.set(left, 0);
|