msw 2.4.8 → 2.4.10
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 +16 -17
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/index.mjs +16 -17
- package/lib/browser/index.mjs.map +1 -1
- package/lib/iife/index.js +16 -17
- package/lib/iife/index.js.map +1 -1
- package/lib/mockServiceWorker.js +1 -1
- package/package.json +2 -2
- package/src/browser/setupWorker/start/utils/getWorkerInstance.ts +12 -10
package/lib/iife/index.js
CHANGED
|
@@ -14404,7 +14404,7 @@ ${operationTypes.join("\n")}
|
|
|
14404
14404
|
return stringToRegexp(path, keys, options);
|
|
14405
14405
|
}
|
|
14406
14406
|
|
|
14407
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.35.
|
|
14407
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs
|
|
14408
14408
|
var encoder = new TextEncoder();
|
|
14409
14409
|
function encodeBuffer(text) {
|
|
14410
14410
|
return encoder.encode(text);
|
|
@@ -14420,7 +14420,7 @@ ${operationTypes.join("\n")}
|
|
|
14420
14420
|
);
|
|
14421
14421
|
}
|
|
14422
14422
|
|
|
14423
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.35.
|
|
14423
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-XVPRNJO7.mjs
|
|
14424
14424
|
var IS_PATCHED_MODULE = Symbol("isPatchedModule");
|
|
14425
14425
|
function isPropertyAccessible(obj, key) {
|
|
14426
14426
|
try {
|
|
@@ -14840,7 +14840,7 @@ ${operationTypes.join("\n")}
|
|
|
14840
14840
|
return message3.toString();
|
|
14841
14841
|
}
|
|
14842
14842
|
|
|
14843
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.35.
|
|
14843
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
14844
14844
|
var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
|
|
14845
14845
|
function getGlobalSymbol(symbol) {
|
|
14846
14846
|
return (
|
|
@@ -14988,7 +14988,7 @@ ${operationTypes.join("\n")}
|
|
|
14988
14988
|
return Math.random().toString(16).slice(2);
|
|
14989
14989
|
}
|
|
14990
14990
|
|
|
14991
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.35.
|
|
14991
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/index.mjs
|
|
14992
14992
|
var BatchInterceptor = class extends Interceptor {
|
|
14993
14993
|
constructor(options) {
|
|
14994
14994
|
BatchInterceptor.symbol = Symbol(options.name);
|
|
@@ -28646,16 +28646,15 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;
|
|
|
28646
28646
|
}
|
|
28647
28647
|
const [existingRegistration] = mockRegistrations;
|
|
28648
28648
|
if (existingRegistration) {
|
|
28649
|
-
|
|
28650
|
-
|
|
28651
|
-
|
|
28652
|
-
|
|
28653
|
-
|
|
28654
|
-
|
|
28655
|
-
|
|
28656
|
-
|
|
28657
|
-
|
|
28658
|
-
});
|
|
28649
|
+
existingRegistration.update();
|
|
28650
|
+
return [
|
|
28651
|
+
getWorkerByRegistration(
|
|
28652
|
+
existingRegistration,
|
|
28653
|
+
absoluteWorkerUrl,
|
|
28654
|
+
findWorker
|
|
28655
|
+
),
|
|
28656
|
+
existingRegistration
|
|
28657
|
+
];
|
|
28659
28658
|
}
|
|
28660
28659
|
const registrationResult = await until(
|
|
28661
28660
|
async () => {
|
|
@@ -29129,7 +29128,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29129
29128
|
}
|
|
29130
29129
|
};
|
|
29131
29130
|
|
|
29132
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.35.
|
|
29131
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-THPGBWJQ.mjs
|
|
29133
29132
|
var InterceptorError = class extends Error {
|
|
29134
29133
|
constructor(message3) {
|
|
29135
29134
|
super(message3);
|
|
@@ -29297,7 +29296,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29297
29296
|
return false;
|
|
29298
29297
|
}
|
|
29299
29298
|
|
|
29300
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.35.
|
|
29299
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-G5SOR3ND.mjs
|
|
29301
29300
|
function canParseUrl(url) {
|
|
29302
29301
|
try {
|
|
29303
29302
|
new URL(url);
|
|
@@ -29494,7 +29493,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
|
|
|
29494
29493
|
var FetchInterceptor = _FetchInterceptor;
|
|
29495
29494
|
FetchInterceptor.symbol = Symbol("fetch");
|
|
29496
29495
|
|
|
29497
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.35.
|
|
29496
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-SUQ32ZQK.mjs
|
|
29498
29497
|
function concatArrayBuffer(left, right) {
|
|
29499
29498
|
const result = new Uint8Array(left.byteLength + right.byteLength);
|
|
29500
29499
|
result.set(left, 0);
|