msw 2.6.5 → 2.6.7
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 +9 -9
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/index.mjs +9 -9
- package/lib/browser/index.mjs.map +1 -1
- package/lib/core/utils/matching/matchRequestUrl.d.mts +1 -1
- package/lib/core/utils/matching/matchRequestUrl.d.ts +1 -1
- package/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
- package/lib/core/utils/matching/matchRequestUrl.mjs.map +1 -1
- package/lib/iife/index.js +306 -501
- package/lib/iife/index.js.map +1 -1
- package/lib/mockServiceWorker.js +15 -3
- package/package.json +3 -4
- package/src/core/utils/matching/matchRequestUrl.ts +1 -1
- package/src/mockServiceWorker.js +13 -1
package/lib/browser/index.js
CHANGED
|
@@ -390,7 +390,7 @@ var import_devUtils5 = require("../core/utils/internal/devUtils.js");
|
|
|
390
390
|
async function checkWorkerIntegrity(context) {
|
|
391
391
|
context.workerChannel.send("INTEGRITY_CHECK_REQUEST");
|
|
392
392
|
const { payload } = await context.events.once("INTEGRITY_CHECK_RESPONSE");
|
|
393
|
-
if (payload.checksum !== "
|
|
393
|
+
if (payload.checksum !== "00729d72e3b82faf54ca8b9621dbb96f") {
|
|
394
394
|
import_devUtils5.devUtils.warn(
|
|
395
395
|
`The currently registered Service Worker has been generated by a different version of MSW (${payload.packageVersion}) and may not be fully compatible with the installed version.
|
|
396
396
|
|
|
@@ -403,7 +403,7 @@ You can also automate this process and make the worker script update automatical
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.37.
|
|
406
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.37.1/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs
|
|
407
407
|
var encoder = new TextEncoder();
|
|
408
408
|
function encodeBuffer(text) {
|
|
409
409
|
return encoder.encode(text);
|
|
@@ -419,7 +419,7 @@ function toArrayBuffer(array) {
|
|
|
419
419
|
);
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.37.
|
|
422
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.37.1/node_modules/@mswjs/interceptors/lib/browser/chunk-F4BN745U.mjs
|
|
423
423
|
var IS_PATCHED_MODULE = Symbol("isPatchedModule");
|
|
424
424
|
var _FetchResponse = class extends Response {
|
|
425
425
|
static isConfigurableStatusCode(status) {
|
|
@@ -918,7 +918,7 @@ var _Emitter = class {
|
|
|
918
918
|
var Emitter = _Emitter;
|
|
919
919
|
Emitter.defaultMaxListeners = 10;
|
|
920
920
|
|
|
921
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.37.
|
|
921
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.37.1/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
|
|
922
922
|
var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
|
|
923
923
|
function getGlobalSymbol(symbol) {
|
|
924
924
|
return (
|
|
@@ -1066,7 +1066,7 @@ function createRequestId() {
|
|
|
1066
1066
|
return Math.random().toString(16).slice(2);
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.37.
|
|
1069
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.37.1/node_modules/@mswjs/interceptors/lib/browser/index.mjs
|
|
1070
1070
|
var BatchInterceptor = class extends Interceptor {
|
|
1071
1071
|
constructor(options) {
|
|
1072
1072
|
BatchInterceptor.symbol = Symbol(options.name);
|
|
@@ -1353,7 +1353,7 @@ var DeferredPromise = class extends Promise {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
};
|
|
1355
1355
|
|
|
1356
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.37.
|
|
1356
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.37.1/node_modules/@mswjs/interceptors/lib/browser/chunk-H5O73WD2.mjs
|
|
1357
1357
|
var InterceptorError = class extends Error {
|
|
1358
1358
|
constructor(message) {
|
|
1359
1359
|
super(message);
|
|
@@ -1554,7 +1554,7 @@ async function handleRequest2(options) {
|
|
|
1554
1554
|
return false;
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.37.
|
|
1557
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.37.1/node_modules/@mswjs/interceptors/lib/browser/chunk-TX5GBTFY.mjs
|
|
1558
1558
|
function hasConfigurableGlobal(propertyName) {
|
|
1559
1559
|
const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
|
|
1560
1560
|
if (typeof descriptor === "undefined") {
|
|
@@ -1575,7 +1575,7 @@ function hasConfigurableGlobal(propertyName) {
|
|
|
1575
1575
|
return true;
|
|
1576
1576
|
}
|
|
1577
1577
|
|
|
1578
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.37.
|
|
1578
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.37.1/node_modules/@mswjs/interceptors/lib/browser/chunk-HER3NHBG.mjs
|
|
1579
1579
|
function canParseUrl(url) {
|
|
1580
1580
|
try {
|
|
1581
1581
|
new URL(url);
|
|
@@ -1835,7 +1835,7 @@ var _FetchInterceptor = class extends Interceptor {
|
|
|
1835
1835
|
var FetchInterceptor = _FetchInterceptor;
|
|
1836
1836
|
FetchInterceptor.symbol = Symbol("fetch");
|
|
1837
1837
|
|
|
1838
|
-
// node_modules/.pnpm/@mswjs+interceptors@0.37.
|
|
1838
|
+
// node_modules/.pnpm/@mswjs+interceptors@0.37.1/node_modules/@mswjs/interceptors/lib/browser/chunk-4SRQFK76.mjs
|
|
1839
1839
|
function concatArrayBuffer(left, right) {
|
|
1840
1840
|
const result = new Uint8Array(left.byteLength + right.byteLength);
|
|
1841
1841
|
result.set(left, 0);
|