msw 0.49.3 → 1.0.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,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
 
4
4
  /**
5
- * Mock Service Worker (0.49.3).
5
+ * Mock Service Worker (1.0.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.
@@ -1,8 +1,9 @@
1
- import { b as RequestHandler } from '../SetupApi-f4099ef3.js';
2
- import { S as SetupServerApi } from '../SetupServerApi-db0805bd.js';
1
+ import { c as RequestHandler } from '../glossary-de6278a9.js';
2
+ import { S as SetupServerApi } from '../SetupServerApi-39df862c.js';
3
3
  import 'strict-event-emitter';
4
- import 'headers-polyfill';
4
+ import 'type-fest';
5
5
  import '@mswjs/interceptors';
6
+ import 'headers-polyfill';
6
7
 
7
8
  /**
8
9
  * Sets up a requests interception in React Native with the given request handlers.
@@ -1,11 +1,11 @@
1
- import { S as SetupServerApi } from '../SetupServerApi-db0805bd.js';
2
- export { a as ServerLifecycleEventsMap } from '../SetupServerApi-db0805bd.js';
3
- import { b as RequestHandler } from '../SetupApi-f4099ef3.js';
4
- export { a as SetupServerApi } from '../glossary-6c6965e4.js';
1
+ import { S as SetupServerApi } from '../SetupServerApi-39df862c.js';
2
+ export { a as ServerLifecycleEventsMap, S as SetupServerApi } from '../SetupServerApi-39df862c.js';
3
+ import { c as RequestHandler } from '../glossary-de6278a9.js';
4
+ export { K as SetupServer } from '../glossary-de6278a9.js';
5
5
  import '@mswjs/interceptors';
6
6
  import 'strict-event-emitter';
7
- import 'headers-polyfill';
8
7
  import 'type-fest';
8
+ import 'headers-polyfill';
9
9
 
10
10
  /**
11
11
  * Sets up a requests interception in Node.js with the given request handlers.
package/lib/node/index.js CHANGED
@@ -51,6 +51,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
51
51
  // src/node/index.ts
52
52
  var node_exports = {};
53
53
  __export(node_exports, {
54
+ SetupServerApi: () => SetupServerApi,
54
55
  setupServer: () => setupServer
55
56
  });
56
57
  module.exports = __toCommonJS(node_exports);
@@ -1489,6 +1490,7 @@ var setupServer = (...handlers) => {
1489
1490
  };
1490
1491
  // Annotate the CommonJS export names for ESM import in node:
1491
1492
  0 && (module.exports = {
1493
+ SetupServerApi,
1492
1494
  setupServer
1493
1495
  });
1494
1496
  //# sourceMappingURL=index.js.map