msw 0.49.0 → 0.49.2

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.
@@ -340,4 +340,4 @@ declare abstract class SetupApi<EventsMap extends EventMapType> {
340
340
  abstract printHandlers(): void;
341
341
  }
342
342
 
343
- export { AsyncResponseResolverReturnType as A, RequestCache as B, RequestMode as C, DefaultContext as D, RequestRedirect as E, RequestDestination as F, RequestPriority as G, RequestReferrerPolicy as H, MockedRequestInit as I, LifeCycleEventsMap as J, LifeCycleEventEmitter as L, MockedRequest as M, ResponseTransformer as R, SetupApi as S, WorkerLifecycleEventsMap as W, set as a, RequestHandler as b, StartOptions as c, delay as d, StartReturnType as e, fetch as f, DefaultBodyType as g, ResponseResolver as h, ResponseResolutionContext as i, SerializedResponse as j, RequestHandlerDefaultInfo as k, MockedResponse as l, ResponseLookupResult as m, SharedOptions as n, defaultResponse as o, createResponseComposition as p, defaultContext as q, response as r, status as s, SetupWorkerApi as t, ResponseResolverReturnType as u, DefaultRequestMultipartBody as v, ResponseComposition as w, ResponseCompositionOptions as x, ResponseFunction as y, DelayMode as z };
343
+ export { AsyncResponseResolverReturnType as A, RequestMode as B, RequestRedirect as C, DefaultContext as D, RequestDestination as E, RequestPriority as F, RequestReferrerPolicy as G, MockedRequestInit as H, LifeCycleEventsMap as I, LifeCycleEventEmitter as L, MockedRequest as M, ResponseTransformer as R, SetupWorkerApi as S, set as a, RequestHandler as b, DefaultBodyType as c, delay as d, ResponseResolver as e, fetch as f, ResponseResolutionContext as g, SerializedResponse as h, RequestHandlerDefaultInfo as i, MockedResponse as j, ResponseLookupResult as k, SharedOptions as l, SetupApi as m, defaultResponse as n, createResponseComposition as o, defaultContext as p, StartOptions as q, response as r, status as s, ResponseResolverReturnType as t, DefaultRequestMultipartBody as u, ResponseComposition as v, ResponseCompositionOptions as w, ResponseFunction as x, DelayMode as y, RequestCache as z };
@@ -1,5 +1,5 @@
1
1
  import { IsomorphicResponse, BatchInterceptor, Interceptor, HttpRequestEventMap } from '@mswjs/interceptors';
2
- import { J as LifeCycleEventsMap, S as SetupApi, b as RequestHandler, n as SharedOptions } from './SetupApi-0d3126ba.js';
2
+ import { I as LifeCycleEventsMap, m as SetupApi, b as RequestHandler, l as SharedOptions } from './SetupApi-b2f0e5ac.js';
3
3
 
4
4
  type ServerLifecycleEventsMap = LifeCycleEventsMap<IsomorphicResponse>;
5
5
  declare class SetupServerApi extends SetupApi<ServerLifecycleEventsMap> {
@@ -1,6 +1,6 @@
1
1
  import { PartialDeep } from 'type-fest';
2
2
  import { IsomorphicResponse } from '@mswjs/interceptors';
3
- import { n as SharedOptions, b as RequestHandler, k as RequestHandlerDefaultInfo, M as MockedRequest, g as DefaultBodyType, L as LifeCycleEventEmitter, J as LifeCycleEventsMap } from './SetupApi-0d3126ba.js';
3
+ import { l as SharedOptions, b as RequestHandler, i as RequestHandlerDefaultInfo, M as MockedRequest, c as DefaultBodyType, L as LifeCycleEventEmitter, I as LifeCycleEventsMap } from './SetupApi-b2f0e5ac.js';
4
4
 
5
5
  type ServerLifecycleEventsMap = LifeCycleEventsMap<IsomorphicResponse>;
6
6
  interface SetupServerApi {
package/lib/iife/index.js CHANGED
@@ -9532,7 +9532,7 @@ Invalid value has been removed from localStorage to prevent subsequent failed pa
9532
9532
 
9533
9533
  // src/context/fetch.ts
9534
9534
  var import_is_node_process2 = __toESM(require_lib());
9535
- var useFetch = (0, import_is_node_process2.isNodeProcess)() ? (input, init) => Promise.resolve().then(() => __toESM(require_browser())).then(({ default: nodeFetch }) => nodeFetch(input, init)) : window.fetch;
9535
+ var useFetch = (0, import_is_node_process2.isNodeProcess)() ? (input, init) => Promise.resolve().then(() => __toESM(require_browser())).then(({ default: nodeFetch }) => nodeFetch(input, init)) : globalThis.fetch;
9536
9536
  var augmentRequestInit = (requestInit) => {
9537
9537
  const headers = new HeadersPolyfill(requestInit.headers);
9538
9538
  headers.set("x-msw-bypass", "true");