msw 0.47.3 → 0.48.0

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.
@@ -2,13 +2,13 @@
2
2
  /* tslint:disable */
3
3
 
4
4
  /**
5
- * Mock Service Worker (0.47.3).
5
+ * Mock Service Worker (0.48.0).
6
6
  * @see https://github.com/mswjs/msw
7
7
  * - Please do NOT modify this file.
8
8
  * - Please do NOT serve this file on production.
9
9
  */
10
10
 
11
- const INTEGRITY_CHECKSUM = 'b3066ef78c2f9090b4ce87e874965995'
11
+ const INTEGRITY_CHECKSUM = '3d6b9f06410d179a7f7404d4bf4c3c70'
12
12
  const activeClientIds = new Set()
13
13
 
14
14
  self.addEventListener('install', function () {
@@ -174,7 +174,7 @@ async function handleRequest(event, requestId) {
174
174
  async function resolveMainClient(event) {
175
175
  const client = await self.clients.get(event.clientId)
176
176
 
177
- if (client.frameType === 'top-level') {
177
+ if (client?.frameType === 'top-level') {
178
178
  return client
179
179
  }
180
180
 
@@ -1,9 +1,14 @@
1
- import { b as RequestHandler, i as RequestHandlerDefaultInfo, M as MockedRequest, c as DefaultBodyType, I as SetupServerApi } from '../glossary-dc3fd077.js';
2
- import 'type-fest';
3
- import '@mswjs/interceptors';
4
- import 'headers-polyfill';
1
+ import { b as RequestHandler } from '../SetupApi-75fbec12.js';
2
+ import { S as SetupServerApi } from '../SetupServerApi-49722346.js';
5
3
  import 'strict-event-emitter';
4
+ import 'headers-polyfill';
5
+ import '@mswjs/interceptors';
6
6
 
7
- declare const setupServer: (...requestHandlers: RequestHandler<RequestHandlerDefaultInfo, MockedRequest<DefaultBodyType>, any, MockedRequest<DefaultBodyType>>[]) => SetupServerApi;
7
+ /**
8
+ * Sets up a requests interception in React Native with the given request handlers.
9
+ * @param {RequestHandler[]} handlers List of request handlers.
10
+ * @see {@link https://mswjs.io/docs/api/setup-server `setupServer`}
11
+ */
12
+ declare function setupServer(...handlers: Array<RequestHandler>): SetupServerApi;
8
13
 
9
14
  export { setupServer };