msw 2.2.12 → 2.2.13

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.
@@ -397,7 +397,7 @@ You can also automate this process and make the worker script update automatical
397
397
  }
398
398
  }
399
399
 
400
- // node_modules/.pnpm/@mswjs+interceptors@0.26.12/node_modules/@mswjs/interceptors/lib/browser/chunk-UJZOJSMP.mjs
400
+ // node_modules/.pnpm/@mswjs+interceptors@0.26.14/node_modules/@mswjs/interceptors/lib/browser/chunk-UJZOJSMP.mjs
401
401
  var encoder = new TextEncoder();
402
402
  function encodeBuffer(text) {
403
403
  return encoder.encode(text);
@@ -423,7 +423,7 @@ function isResponseWithoutBody(status) {
423
423
  return RESPONSE_STATUS_CODES_WITHOUT_BODY.has(status);
424
424
  }
425
425
 
426
- // node_modules/.pnpm/@mswjs+interceptors@0.26.12/node_modules/@mswjs/interceptors/lib/browser/chunk-HAGW22AN.mjs
426
+ // node_modules/.pnpm/@mswjs+interceptors@0.26.14/node_modules/@mswjs/interceptors/lib/browser/chunk-HAGW22AN.mjs
427
427
  var IS_PATCHED_MODULE = Symbol("isPatchedModule");
428
428
 
429
429
  // node_modules/.pnpm/@open-draft+logger@0.3.0/node_modules/@open-draft/logger/lib/index.mjs
@@ -863,7 +863,7 @@ var _Emitter = class {
863
863
  var Emitter = _Emitter;
864
864
  Emitter.defaultMaxListeners = 10;
865
865
 
866
- // node_modules/.pnpm/@mswjs+interceptors@0.26.12/node_modules/@mswjs/interceptors/lib/browser/chunk-KHZ3VYHS.mjs
866
+ // node_modules/.pnpm/@mswjs+interceptors@0.26.14/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
867
867
  var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
868
868
  function getGlobalSymbol(symbol) {
869
869
  return (
@@ -1007,8 +1007,11 @@ var Interceptor = class {
1007
1007
  this.logger.info("cleared global instance!", this.symbol.description);
1008
1008
  }
1009
1009
  };
1010
+ function createRequestId() {
1011
+ return Math.random().toString(16).slice(2);
1012
+ }
1010
1013
 
1011
- // node_modules/.pnpm/@mswjs+interceptors@0.26.12/node_modules/@mswjs/interceptors/lib/browser/index.mjs
1014
+ // node_modules/.pnpm/@mswjs+interceptors@0.26.14/node_modules/@mswjs/interceptors/lib/browser/index.mjs
1012
1015
  var BatchInterceptor = class extends Interceptor {
1013
1016
  constructor(options) {
1014
1017
  BatchInterceptor.symbol = Symbol(options.name);
@@ -1292,7 +1295,7 @@ var DeferredPromise = class extends Promise {
1292
1295
  }
1293
1296
  };
1294
1297
 
1295
- // node_modules/.pnpm/@mswjs+interceptors@0.26.12/node_modules/@mswjs/interceptors/lib/browser/chunk-OUWBQF3Z.mjs
1298
+ // node_modules/.pnpm/@mswjs+interceptors@0.26.14/node_modules/@mswjs/interceptors/lib/browser/chunk-OUWBQF3Z.mjs
1296
1299
  var RequestController = class {
1297
1300
  constructor(request) {
1298
1301
  this.request = request;
@@ -1330,7 +1333,7 @@ async function emitAsync(emitter, eventName, ...data) {
1330
1333
  }
1331
1334
  }
1332
1335
 
1333
- // node_modules/.pnpm/@mswjs+interceptors@0.26.12/node_modules/@mswjs/interceptors/lib/browser/chunk-5E3BR6QC.mjs
1336
+ // node_modules/.pnpm/@mswjs+interceptors@0.26.14/node_modules/@mswjs/interceptors/lib/browser/chunk-3FNUI33J.mjs
1334
1337
  function isPropertyAccessible(obj, key) {
1335
1338
  try {
1336
1339
  obj[key];
@@ -1362,7 +1365,7 @@ var _FetchInterceptor = class extends Interceptor {
1362
1365
  );
1363
1366
  globalThis.fetch = async (input, init) => {
1364
1367
  var _a;
1365
- const requestId = crypto.randomUUID();
1368
+ const requestId = createRequestId();
1366
1369
  const resolvedInput = typeof input === "string" && typeof location !== "undefined" && !canParseUrl(input) ? new URL(input, location.origin) : input;
1367
1370
  const request = new Request(resolvedInput, init);
1368
1371
  this.logger.info("[%s] %s", request.method, request.url);
@@ -1477,7 +1480,7 @@ function createNetworkError(cause) {
1477
1480
  });
1478
1481
  }
1479
1482
 
1480
- // node_modules/.pnpm/@mswjs+interceptors@0.26.12/node_modules/@mswjs/interceptors/lib/browser/chunk-WVYFUFZR.mjs
1483
+ // node_modules/.pnpm/@mswjs+interceptors@0.26.14/node_modules/@mswjs/interceptors/lib/browser/chunk-VYFS2IF2.mjs
1481
1484
  function concatArrayBuffer(left, right) {
1482
1485
  const result = new Uint8Array(left.byteLength + right.byteLength);
1483
1486
  result.set(left, 0);
@@ -1671,7 +1674,7 @@ var XMLHttpRequestController = class {
1671
1674
  this.method = "GET";
1672
1675
  this.url = null;
1673
1676
  this.events = /* @__PURE__ */ new Map();
1674
- this.requestId = crypto.randomUUID();
1677
+ this.requestId = createRequestId();
1675
1678
  this.requestHeaders = new Headers();
1676
1679
  this.responseBuffer = new Uint8Array();
1677
1680
  this.request = createProxy(initialRequest, {