msw 2.8.4 → 2.8.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 +91 -46
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/index.mjs +91 -46
- package/lib/browser/index.mjs.map +1 -1
- package/lib/core/{GraphQLHandler-pSWhHVJp.d.mts → GraphQLHandler-DOXAygvT.d.mts} +1 -1
- package/lib/core/{GraphQLHandler-DzcekHIp.d.ts → GraphQLHandler-noP9MRWa.d.ts} +1 -1
- package/lib/core/{HttpResponse-DAxViIqi.d.mts → HttpResponse-BOGtXZ-B.d.mts} +4 -4
- package/lib/core/{HttpResponse-CSWX6ahe.d.ts → HttpResponse-DzeJL_i8.d.ts} +4 -4
- package/lib/core/HttpResponse.d.mts +1 -1
- package/lib/core/HttpResponse.d.ts +1 -1
- package/lib/core/HttpResponse.js.map +1 -1
- package/lib/core/HttpResponse.mjs.map +1 -1
- package/lib/core/SetupApi.d.mts +1 -1
- package/lib/core/SetupApi.d.ts +1 -1
- package/lib/core/getResponse.d.mts +1 -1
- package/lib/core/getResponse.d.ts +1 -1
- package/lib/core/graphql.d.mts +2 -2
- package/lib/core/graphql.d.ts +2 -2
- package/lib/core/handlers/GraphQLHandler.d.mts +2 -2
- package/lib/core/handlers/GraphQLHandler.d.ts +2 -2
- package/lib/core/handlers/HttpHandler.d.mts +1 -1
- package/lib/core/handlers/HttpHandler.d.ts +1 -1
- package/lib/core/handlers/RequestHandler.d.mts +1 -1
- package/lib/core/handlers/RequestHandler.d.ts +1 -1
- package/lib/core/http.d.mts +1 -1
- package/lib/core/http.d.ts +1 -1
- package/lib/core/index.d.mts +2 -2
- package/lib/core/index.d.ts +2 -2
- package/lib/core/passthrough.d.mts +1 -1
- package/lib/core/passthrough.d.ts +1 -1
- package/lib/core/utils/HttpResponse/decorators.d.mts +1 -1
- package/lib/core/utils/HttpResponse/decorators.d.ts +1 -1
- package/lib/core/utils/executeHandlers.d.mts +1 -1
- package/lib/core/utils/executeHandlers.d.ts +1 -1
- package/lib/core/utils/handleRequest.d.mts +1 -1
- package/lib/core/utils/handleRequest.d.ts +1 -1
- package/lib/core/utils/internal/isHandlerKind.d.mts +1 -1
- package/lib/core/utils/internal/isHandlerKind.d.ts +1 -1
- package/lib/core/utils/internal/parseGraphQLRequest.d.mts +2 -2
- package/lib/core/utils/internal/parseGraphQLRequest.d.ts +2 -2
- package/lib/core/utils/internal/parseMultipartData.d.mts +1 -1
- package/lib/core/utils/internal/parseMultipartData.d.ts +1 -1
- package/lib/core/utils/internal/requestHandlerUtils.d.mts +1 -1
- package/lib/core/utils/internal/requestHandlerUtils.d.ts +1 -1
- package/lib/core/ws/handleWebSocketEvent.d.mts +1 -1
- package/lib/core/ws/handleWebSocketEvent.d.ts +1 -1
- package/lib/iife/index.js +96 -51
- package/lib/iife/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/package.json +4 -4
- package/src/core/HttpResponse.ts +8 -5
package/lib/iife/index.js
CHANGED
|
@@ -14246,7 +14246,7 @@ ${operationTypes.join("\n")}
|
|
|
14246
14246
|
return stringToRegexp(path, keys, options);
|
|
14247
14247
|
}
|
|
14248
14248
|
|
|
14249
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
14249
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs
|
|
14250
14250
|
var encoder = new TextEncoder();
|
|
14251
14251
|
function encodeBuffer(text) {
|
|
14252
14252
|
return encoder.encode(text);
|
|
@@ -14262,8 +14262,26 @@ ${operationTypes.join("\n")}
|
|
|
14262
14262
|
);
|
|
14263
14263
|
}
|
|
14264
14264
|
|
|
14265
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
14265
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-3RXCRGL2.mjs
|
|
14266
14266
|
var IS_PATCHED_MODULE = Symbol("isPatchedModule");
|
|
14267
|
+
function canParseUrl(url) {
|
|
14268
|
+
try {
|
|
14269
|
+
new URL(url);
|
|
14270
|
+
return true;
|
|
14271
|
+
} catch (_error) {
|
|
14272
|
+
return false;
|
|
14273
|
+
}
|
|
14274
|
+
}
|
|
14275
|
+
function getValueBySymbol(symbolName, source) {
|
|
14276
|
+
const ownSymbols = Object.getOwnPropertySymbols(source);
|
|
14277
|
+
const symbol = ownSymbols.find((symbol2) => {
|
|
14278
|
+
return symbol2.description === symbolName;
|
|
14279
|
+
});
|
|
14280
|
+
if (symbol) {
|
|
14281
|
+
return Reflect.get(source, symbol);
|
|
14282
|
+
}
|
|
14283
|
+
return;
|
|
14284
|
+
}
|
|
14267
14285
|
var _FetchResponse = class extends Response {
|
|
14268
14286
|
static isConfigurableStatusCode(status) {
|
|
14269
14287
|
return status >= 200 && status <= 599;
|
|
@@ -14279,18 +14297,30 @@ ${operationTypes.join("\n")}
|
|
|
14279
14297
|
return !_FetchResponse.STATUS_CODES_WITHOUT_BODY.includes(status);
|
|
14280
14298
|
}
|
|
14281
14299
|
static setUrl(url, response) {
|
|
14282
|
-
if (!url) {
|
|
14300
|
+
if (!url || url === "about:" || !canParseUrl(url)) {
|
|
14283
14301
|
return;
|
|
14284
14302
|
}
|
|
14285
|
-
|
|
14286
|
-
|
|
14303
|
+
const state = getValueBySymbol("state", response);
|
|
14304
|
+
if (state) {
|
|
14305
|
+
state.urlList.push(new URL(url));
|
|
14306
|
+
} else {
|
|
14307
|
+
Object.defineProperty(response, "url", {
|
|
14308
|
+
value: url,
|
|
14309
|
+
enumerable: true,
|
|
14310
|
+
configurable: true,
|
|
14311
|
+
writable: false
|
|
14312
|
+
});
|
|
14287
14313
|
}
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
|
|
14292
|
-
|
|
14293
|
-
|
|
14314
|
+
}
|
|
14315
|
+
/**
|
|
14316
|
+
* Parses the given raw HTTP headers into a Fetch API `Headers` instance.
|
|
14317
|
+
*/
|
|
14318
|
+
static parseRawHeaders(rawHeaders) {
|
|
14319
|
+
const headers = new Headers();
|
|
14320
|
+
for (let line = 0; line < rawHeaders.length; line += 2) {
|
|
14321
|
+
headers.append(rawHeaders[line], rawHeaders[line + 1]);
|
|
14322
|
+
}
|
|
14323
|
+
return headers;
|
|
14294
14324
|
}
|
|
14295
14325
|
constructor(body, init = {}) {
|
|
14296
14326
|
var _a2;
|
|
@@ -14298,16 +14328,14 @@ ${operationTypes.join("\n")}
|
|
|
14298
14328
|
const safeStatus = _FetchResponse.isConfigurableStatusCode(status) ? status : 200;
|
|
14299
14329
|
const finalBody = _FetchResponse.isResponseWithBody(status) ? body : null;
|
|
14300
14330
|
super(finalBody, {
|
|
14301
|
-
|
|
14302
|
-
|
|
14331
|
+
status: safeStatus,
|
|
14332
|
+
statusText: init.statusText,
|
|
14333
|
+
headers: init.headers
|
|
14303
14334
|
});
|
|
14304
14335
|
if (status !== safeStatus) {
|
|
14305
|
-
const
|
|
14306
|
-
|
|
14307
|
-
|
|
14308
|
-
if (stateSymbol) {
|
|
14309
|
-
const state = Reflect.get(this, stateSymbol);
|
|
14310
|
-
Reflect.set(state, "status", status);
|
|
14336
|
+
const state = getValueBySymbol("state", this);
|
|
14337
|
+
if (state) {
|
|
14338
|
+
state.status = status;
|
|
14311
14339
|
} else {
|
|
14312
14340
|
Object.defineProperty(this, "status", {
|
|
14313
14341
|
value: status,
|
|
@@ -14323,6 +14351,10 @@ ${operationTypes.join("\n")}
|
|
|
14323
14351
|
var FetchResponse = _FetchResponse;
|
|
14324
14352
|
FetchResponse.STATUS_CODES_WITHOUT_BODY = [101, 103, 204, 205, 304];
|
|
14325
14353
|
FetchResponse.STATUS_CODES_WITH_REDIRECT = [301, 302, 303, 307, 308];
|
|
14354
|
+
var kRawRequest = Symbol("kRawRequest");
|
|
14355
|
+
function setRawRequest(request, rawRequest) {
|
|
14356
|
+
Reflect.set(request, kRawRequest, rawRequest);
|
|
14357
|
+
}
|
|
14326
14358
|
|
|
14327
14359
|
// node_modules/.pnpm/is-node-process@1.2.0/node_modules/is-node-process/lib/index.mjs
|
|
14328
14360
|
function isNodeProcess() {
|
|
@@ -14611,7 +14643,7 @@ ${operationTypes.join("\n")}
|
|
|
14611
14643
|
return message3.toString();
|
|
14612
14644
|
}
|
|
14613
14645
|
|
|
14614
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
14646
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
14615
14647
|
var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
|
|
14616
14648
|
function getGlobalSymbol(symbol) {
|
|
14617
14649
|
return (
|
|
@@ -14759,7 +14791,7 @@ ${operationTypes.join("\n")}
|
|
|
14759
14791
|
return Math.random().toString(16).slice(2);
|
|
14760
14792
|
}
|
|
14761
14793
|
|
|
14762
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
14794
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/index.mjs
|
|
14763
14795
|
var BatchInterceptor = class extends Interceptor {
|
|
14764
14796
|
constructor(options) {
|
|
14765
14797
|
BatchInterceptor.symbol = Symbol(options.name);
|
|
@@ -25657,7 +25689,7 @@ ${operationTypes.join("\n")}
|
|
|
25657
25689
|
function isString(data) {
|
|
25658
25690
|
return typeof data === "string" || data instanceof String;
|
|
25659
25691
|
}
|
|
25660
|
-
function
|
|
25692
|
+
function isObject3(data) {
|
|
25661
25693
|
return toString.call(data) === "[object Object]";
|
|
25662
25694
|
}
|
|
25663
25695
|
function isInstanceStrict(data, prototype) {
|
|
@@ -25668,7 +25700,7 @@ ${operationTypes.join("\n")}
|
|
|
25668
25700
|
}
|
|
25669
25701
|
}
|
|
25670
25702
|
function isUrlStringOrObject(data) {
|
|
25671
|
-
return isNonEmptyString(data) ||
|
|
25703
|
+
return isNonEmptyString(data) || isObject3(data) && "hostname" in data && "pathname" in data && "protocol" in data || isInstanceStrict(data, URL);
|
|
25672
25704
|
}
|
|
25673
25705
|
function isInteger(data) {
|
|
25674
25706
|
return typeof data === "number" && data % 1 === 0;
|
|
@@ -25678,7 +25710,7 @@ ${operationTypes.join("\n")}
|
|
|
25678
25710
|
options = cb;
|
|
25679
25711
|
cb = null;
|
|
25680
25712
|
}
|
|
25681
|
-
if (!
|
|
25713
|
+
if (!isObject3(options)) options = { Error: "Failed Check" };
|
|
25682
25714
|
if (!bool) {
|
|
25683
25715
|
if (cb) {
|
|
25684
25716
|
cb(new ParameterError(options));
|
|
@@ -25698,7 +25730,7 @@ ${operationTypes.join("\n")}
|
|
|
25698
25730
|
exports.isDate = isDate;
|
|
25699
25731
|
exports.isEmptyString = isEmptyString;
|
|
25700
25732
|
exports.isString = isString;
|
|
25701
|
-
exports.isObject =
|
|
25733
|
+
exports.isObject = isObject3;
|
|
25702
25734
|
exports.isUrlStringOrObject = isUrlStringOrObject;
|
|
25703
25735
|
exports.validate = validate2;
|
|
25704
25736
|
}
|
|
@@ -29327,7 +29359,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29327
29359
|
}
|
|
29328
29360
|
};
|
|
29329
29361
|
|
|
29330
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
29362
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-L37TY7LC.mjs
|
|
29331
29363
|
var InterceptorError = class extends Error {
|
|
29332
29364
|
constructor(message3) {
|
|
29333
29365
|
super(message3);
|
|
@@ -29362,12 +29394,14 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29362
29394
|
this[kResponsePromise].resolve(response);
|
|
29363
29395
|
}
|
|
29364
29396
|
/**
|
|
29365
|
-
* Error this request with the given
|
|
29397
|
+
* Error this request with the given reason.
|
|
29398
|
+
*
|
|
29366
29399
|
* @example
|
|
29367
29400
|
* controller.errorWith()
|
|
29368
29401
|
* controller.errorWith(new Error('Oops!'))
|
|
29402
|
+
* controller.errorWith({ message: 'Oops!'})
|
|
29369
29403
|
*/
|
|
29370
|
-
errorWith(
|
|
29404
|
+
errorWith(reason) {
|
|
29371
29405
|
invariant.as(
|
|
29372
29406
|
InterceptorError,
|
|
29373
29407
|
!this[kRequestHandled],
|
|
@@ -29376,7 +29410,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29376
29410
|
this.request.url
|
|
29377
29411
|
);
|
|
29378
29412
|
this[kRequestHandled] = true;
|
|
29379
|
-
this[kResponsePromise].resolve(
|
|
29413
|
+
this[kResponsePromise].resolve(reason);
|
|
29380
29414
|
}
|
|
29381
29415
|
};
|
|
29382
29416
|
async function emitAsync(emitter, eventName, ...data) {
|
|
@@ -29388,6 +29422,9 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29388
29422
|
await listener.apply(emitter, data);
|
|
29389
29423
|
}
|
|
29390
29424
|
}
|
|
29425
|
+
function isObject2(value, loose = false) {
|
|
29426
|
+
return loose ? Object.prototype.toString.call(value).startsWith("[object ") : Object.prototype.toString.call(value) === "[object Object]";
|
|
29427
|
+
}
|
|
29391
29428
|
function isPropertyAccessible(obj, key) {
|
|
29392
29429
|
try {
|
|
29393
29430
|
obj[key];
|
|
@@ -29415,7 +29452,10 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29415
29452
|
);
|
|
29416
29453
|
}
|
|
29417
29454
|
function isResponseError(response) {
|
|
29418
|
-
return isPropertyAccessible(response, "type") && response.type === "error";
|
|
29455
|
+
return response != null && response instanceof Response && isPropertyAccessible(response, "type") && response.type === "error";
|
|
29456
|
+
}
|
|
29457
|
+
function isResponseLike(value) {
|
|
29458
|
+
return isObject2(value, true) && isPropertyAccessible(value, "status") && isPropertyAccessible(value, "statusText") && isPropertyAccessible(value, "bodyUsed");
|
|
29419
29459
|
}
|
|
29420
29460
|
function isNodeLikeError(error3) {
|
|
29421
29461
|
if (error3 == null) {
|
|
@@ -29430,12 +29470,21 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29430
29470
|
const handleResponse = async (response) => {
|
|
29431
29471
|
if (response instanceof Error) {
|
|
29432
29472
|
options.onError(response);
|
|
29433
|
-
|
|
29473
|
+
return true;
|
|
29474
|
+
}
|
|
29475
|
+
if (isResponseError(response)) {
|
|
29434
29476
|
options.onRequestError(response);
|
|
29435
|
-
|
|
29477
|
+
return true;
|
|
29478
|
+
}
|
|
29479
|
+
if (isResponseLike(response)) {
|
|
29436
29480
|
await options.onResponse(response);
|
|
29481
|
+
return true;
|
|
29437
29482
|
}
|
|
29438
|
-
|
|
29483
|
+
if (isObject2(response)) {
|
|
29484
|
+
options.onError(response);
|
|
29485
|
+
return true;
|
|
29486
|
+
}
|
|
29487
|
+
return false;
|
|
29439
29488
|
};
|
|
29440
29489
|
const handleResponseError = async (error3) => {
|
|
29441
29490
|
if (error3 instanceof InterceptorError) {
|
|
@@ -29473,7 +29522,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29473
29522
|
}
|
|
29474
29523
|
}
|
|
29475
29524
|
const result = await until(async () => {
|
|
29476
|
-
const
|
|
29525
|
+
const requestListenersPromise = emitAsync(options.emitter, "request", {
|
|
29477
29526
|
requestId: options.requestId,
|
|
29478
29527
|
request: options.request,
|
|
29479
29528
|
controller: options.controller
|
|
@@ -29481,11 +29530,10 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29481
29530
|
await Promise.race([
|
|
29482
29531
|
// Short-circuit the request handling promise if the request gets aborted.
|
|
29483
29532
|
requestAbortPromise,
|
|
29484
|
-
|
|
29533
|
+
requestListenersPromise,
|
|
29485
29534
|
options.controller[kResponsePromise]
|
|
29486
29535
|
]);
|
|
29487
|
-
|
|
29488
|
-
return mockedResponse;
|
|
29536
|
+
return await options.controller[kResponsePromise];
|
|
29489
29537
|
});
|
|
29490
29538
|
if (requestAbortPromise.state === "rejected") {
|
|
29491
29539
|
options.onError(requestAbortPromise.rejectionReason);
|
|
@@ -29528,7 +29576,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29528
29576
|
return false;
|
|
29529
29577
|
}
|
|
29530
29578
|
|
|
29531
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
29579
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-TX5GBTFY.mjs
|
|
29532
29580
|
function hasConfigurableGlobal(propertyName) {
|
|
29533
29581
|
const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
|
|
29534
29582
|
if (typeof descriptor === "undefined") {
|
|
@@ -29549,15 +29597,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29549
29597
|
return true;
|
|
29550
29598
|
}
|
|
29551
29599
|
|
|
29552
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
29553
|
-
function canParseUrl(url) {
|
|
29554
|
-
try {
|
|
29555
|
-
new URL(url);
|
|
29556
|
-
return true;
|
|
29557
|
-
} catch (_error) {
|
|
29558
|
-
return false;
|
|
29559
|
-
}
|
|
29560
|
-
}
|
|
29600
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-ARPHZXGT.mjs
|
|
29561
29601
|
function createNetworkError(cause) {
|
|
29562
29602
|
return Object.assign(new TypeError("Failed to fetch"), {
|
|
29563
29603
|
cause
|
|
@@ -29705,8 +29745,11 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29705
29745
|
);
|
|
29706
29746
|
globalThis.fetch = async (input, init) => {
|
|
29707
29747
|
const requestId = createRequestId();
|
|
29708
|
-
const resolvedInput = typeof input === "string" && typeof location !== "undefined" && !canParseUrl(input) ? new URL(input, location.
|
|
29748
|
+
const resolvedInput = typeof input === "string" && typeof location !== "undefined" && !canParseUrl(input) ? new URL(input, location.href) : input;
|
|
29709
29749
|
const request = new Request(resolvedInput, init);
|
|
29750
|
+
if (input instanceof Request) {
|
|
29751
|
+
setRawRequest(request, input);
|
|
29752
|
+
}
|
|
29710
29753
|
const responsePromise = new DeferredPromise();
|
|
29711
29754
|
const controller = new RequestController(request);
|
|
29712
29755
|
this.logger.info("[%s] %s", request.method, request.url);
|
|
@@ -29774,6 +29817,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29774
29817
|
this.logger.info(
|
|
29775
29818
|
"no mocked response received, performing request as-is..."
|
|
29776
29819
|
);
|
|
29820
|
+
const requestCloneForResponseEvent = request.clone();
|
|
29777
29821
|
return pureFetch(request).then(async (response) => {
|
|
29778
29822
|
this.logger.info("original fetch performed", response);
|
|
29779
29823
|
if (this.emitter.listenerCount("response") > 0) {
|
|
@@ -29782,7 +29826,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29782
29826
|
await emitAsync(this.emitter, "response", {
|
|
29783
29827
|
response: responseClone,
|
|
29784
29828
|
isMockedResponse: false,
|
|
29785
|
-
request,
|
|
29829
|
+
request: requestCloneForResponseEvent,
|
|
29786
29830
|
requestId
|
|
29787
29831
|
});
|
|
29788
29832
|
}
|
|
@@ -29809,7 +29853,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29809
29853
|
var FetchInterceptor = _FetchInterceptor;
|
|
29810
29854
|
FetchInterceptor.symbol = Symbol("fetch");
|
|
29811
29855
|
|
|
29812
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
29856
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-QKSBFQDK.mjs
|
|
29813
29857
|
function concatArrayBuffer(left, right) {
|
|
29814
29858
|
const result = new Uint8Array(left.byteLength + right.byteLength);
|
|
29815
29859
|
result.set(left, 0);
|
|
@@ -30455,6 +30499,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
30455
30499
|
}
|
|
30456
30500
|
});
|
|
30457
30501
|
define(fetchRequest, "headers", proxyHeaders);
|
|
30502
|
+
setRawRequest(fetchRequest, this.request);
|
|
30458
30503
|
this.logger.info("converted request to a Fetch API Request!", fetchRequest);
|
|
30459
30504
|
return fetchRequest;
|
|
30460
30505
|
}
|
|
@@ -30681,7 +30726,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
30681
30726
|
}
|
|
30682
30727
|
}
|
|
30683
30728
|
|
|
30684
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.
|
|
30729
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.mjs
|
|
30685
30730
|
function bindEvent(target, event) {
|
|
30686
30731
|
Object.defineProperties(event, {
|
|
30687
30732
|
target: {
|