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.
@@ -147,16 +147,15 @@ var getWorkerInstance = async (url, options = {}, findWorker) => {
147
147
  }
148
148
  const [existingRegistration] = mockRegistrations;
149
149
  if (existingRegistration) {
150
- return existingRegistration.update().then(() => {
151
- return [
152
- getWorkerByRegistration(
153
- existingRegistration,
154
- absoluteWorkerUrl,
155
- findWorker
156
- ),
157
- existingRegistration
158
- ];
159
- });
150
+ existingRegistration.update();
151
+ return [
152
+ getWorkerByRegistration(
153
+ existingRegistration,
154
+ absoluteWorkerUrl,
155
+ findWorker
156
+ ),
157
+ existingRegistration
158
+ ];
160
159
  }
161
160
  const registrationResult = await until(
162
161
  async () => {
@@ -370,7 +369,7 @@ You can also automate this process and make the worker script update automatical
370
369
  }
371
370
  }
372
371
 
373
- // node_modules/.pnpm/@mswjs+interceptors@0.35.6/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs
372
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-6HYIRFX2.mjs
374
373
  var encoder = new TextEncoder();
375
374
  function encodeBuffer(text) {
376
375
  return encoder.encode(text);
@@ -386,7 +385,7 @@ function toArrayBuffer(array) {
386
385
  );
387
386
  }
388
387
 
389
- // node_modules/.pnpm/@mswjs+interceptors@0.35.6/node_modules/@mswjs/interceptors/lib/browser/chunk-XVPRNJO7.mjs
388
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-XVPRNJO7.mjs
390
389
  var IS_PATCHED_MODULE = Symbol("isPatchedModule");
391
390
  function isPropertyAccessible(obj, key) {
392
391
  try {
@@ -956,7 +955,7 @@ var _Emitter = class {
956
955
  var Emitter = _Emitter;
957
956
  Emitter.defaultMaxListeners = 10;
958
957
 
959
- // node_modules/.pnpm/@mswjs+interceptors@0.35.6/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
958
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
960
959
  var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
961
960
  function getGlobalSymbol(symbol) {
962
961
  return (
@@ -1104,7 +1103,7 @@ function createRequestId() {
1104
1103
  return Math.random().toString(16).slice(2);
1105
1104
  }
1106
1105
 
1107
- // node_modules/.pnpm/@mswjs+interceptors@0.35.6/node_modules/@mswjs/interceptors/lib/browser/index.mjs
1106
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/index.mjs
1108
1107
  var BatchInterceptor = class extends Interceptor {
1109
1108
  constructor(options) {
1110
1109
  BatchInterceptor.symbol = Symbol(options.name);
@@ -1388,7 +1387,7 @@ var DeferredPromise = class extends Promise {
1388
1387
  }
1389
1388
  };
1390
1389
 
1391
- // node_modules/.pnpm/@mswjs+interceptors@0.35.6/node_modules/@mswjs/interceptors/lib/browser/chunk-THPGBWJQ.mjs
1390
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-THPGBWJQ.mjs
1392
1391
  var InterceptorError = class extends Error {
1393
1392
  constructor(message) {
1394
1393
  super(message);
@@ -1556,7 +1555,7 @@ async function handleRequest2(options) {
1556
1555
  return false;
1557
1556
  }
1558
1557
 
1559
- // node_modules/.pnpm/@mswjs+interceptors@0.35.6/node_modules/@mswjs/interceptors/lib/browser/chunk-G5SOR3ND.mjs
1558
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-G5SOR3ND.mjs
1560
1559
  function canParseUrl(url) {
1561
1560
  try {
1562
1561
  new URL(url);
@@ -1753,7 +1752,7 @@ var _FetchInterceptor = class extends Interceptor {
1753
1752
  var FetchInterceptor = _FetchInterceptor;
1754
1753
  FetchInterceptor.symbol = Symbol("fetch");
1755
1754
 
1756
- // node_modules/.pnpm/@mswjs+interceptors@0.35.6/node_modules/@mswjs/interceptors/lib/browser/chunk-SUQ32ZQK.mjs
1755
+ // node_modules/.pnpm/@mswjs+interceptors@0.35.8/node_modules/@mswjs/interceptors/lib/browser/chunk-SUQ32ZQK.mjs
1757
1756
  function concatArrayBuffer(left, right) {
1758
1757
  const result = new Uint8Array(left.byteLength + right.byteLength);
1759
1758
  result.set(left, 0);