msw 2.3.0-ws.rc-3 → 2.3.0-ws.rc-4
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 +128 -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.mjs
CHANGED
|
@@ -370,7 +370,7 @@ You can also automate this process and make the worker script update automatical
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
373
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.0/node_modules/@mswjs/interceptors/lib/browser/chunk-UJZOJSMP.mjs
|
|
374
374
|
var encoder = new TextEncoder();
|
|
375
375
|
function encodeBuffer(text) {
|
|
376
376
|
return encoder.encode(text);
|
|
@@ -396,7 +396,7 @@ function isResponseWithoutBody(status) {
|
|
|
396
396
|
return RESPONSE_STATUS_CODES_WITHOUT_BODY.has(status);
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
399
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.0/node_modules/@mswjs/interceptors/lib/browser/chunk-HAGW22AN.mjs
|
|
400
400
|
var IS_PATCHED_MODULE = Symbol("isPatchedModule");
|
|
401
401
|
|
|
402
402
|
// node_modules/.pnpm/@open-draft+logger@0.3.0/node_modules/@open-draft/logger/lib/index.mjs
|
|
@@ -836,7 +836,7 @@ var _Emitter = class {
|
|
|
836
836
|
var Emitter = _Emitter;
|
|
837
837
|
Emitter.defaultMaxListeners = 10;
|
|
838
838
|
|
|
839
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
839
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.0/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
840
840
|
var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
|
|
841
841
|
function getGlobalSymbol(symbol) {
|
|
842
842
|
return (
|
|
@@ -984,7 +984,7 @@ function createRequestId() {
|
|
|
984
984
|
return Math.random().toString(16).slice(2);
|
|
985
985
|
}
|
|
986
986
|
|
|
987
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
987
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.0/node_modules/@mswjs/interceptors/lib/browser/index.mjs
|
|
988
988
|
var BatchInterceptor = class extends Interceptor {
|
|
989
989
|
constructor(options) {
|
|
990
990
|
BatchInterceptor.symbol = Symbol(options.name);
|
|
@@ -1268,7 +1268,7 @@ var DeferredPromise = class extends Promise {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
};
|
|
1270
1270
|
|
|
1271
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1271
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.0/node_modules/@mswjs/interceptors/lib/browser/chunk-OUWBQF3Z.mjs
|
|
1272
1272
|
var RequestController = class {
|
|
1273
1273
|
constructor(request) {
|
|
1274
1274
|
this.request = request;
|
|
@@ -1306,7 +1306,7 @@ async function emitAsync(emitter, eventName, ...data) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
1308
|
|
|
1309
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1309
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.0/node_modules/@mswjs/interceptors/lib/browser/chunk-3FNUI33J.mjs
|
|
1310
1310
|
function isPropertyAccessible(obj, key) {
|
|
1311
1311
|
try {
|
|
1312
1312
|
obj[key];
|
|
@@ -1453,7 +1453,7 @@ function createNetworkError(cause) {
|
|
|
1453
1453
|
});
|
|
1454
1454
|
}
|
|
1455
1455
|
|
|
1456
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
1456
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.27.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYFS2IF2.mjs
|
|
1457
1457
|
function concatArrayBuffer(left, right) {
|
|
1458
1458
|
const result = new Uint8Array(left.byteLength + right.byteLength);
|
|
1459
1459
|
result.set(left, 0);
|