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.
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
 
4
4
  /**
5
- * Mock Service Worker (0.49.0).
5
+ * Mock Service Worker (0.49.2).
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,5 +1,5 @@
1
- import { b as RequestHandler } from '../SetupApi-0d3126ba.js';
2
- import { S as SetupServerApi } from '../SetupServerApi-3406bf53.js';
1
+ import { b as RequestHandler } from '../SetupApi-b2f0e5ac.js';
2
+ import { S as SetupServerApi } from '../SetupServerApi-70cc71a7.js';
3
3
  import 'strict-event-emitter';
4
4
  import 'headers-polyfill';
5
5
  import '@mswjs/interceptors';
@@ -766,7 +766,7 @@ var errors = (errorsList) => {
766
766
  // src/context/fetch.ts
767
767
  var import_is_node_process2 = require("is-node-process");
768
768
  var import_headers_polyfill4 = require("headers-polyfill");
769
- var useFetch = (0, import_is_node_process2.isNodeProcess)() ? (input, init) => Promise.resolve().then(() => __toESM(require("node-fetch"))).then(({ default: nodeFetch }) => nodeFetch(input, init)) : window.fetch;
769
+ var useFetch = (0, import_is_node_process2.isNodeProcess)() ? (input, init) => Promise.resolve().then(() => __toESM(require("node-fetch"))).then(({ default: nodeFetch }) => nodeFetch(input, init)) : globalThis.fetch;
770
770
  var augmentRequestInit = (requestInit) => {
771
771
  const headers = new import_headers_polyfill4.Headers(requestInit.headers);
772
772
  headers.set("x-msw-bypass", "true");
@@ -766,7 +766,7 @@ var errors = (errorsList) => {
766
766
  // src/context/fetch.ts
767
767
  import { isNodeProcess as isNodeProcess2 } from "is-node-process";
768
768
  import { Headers as Headers2 } from "headers-polyfill";
769
- var useFetch = isNodeProcess2() ? (input, init) => Promise.resolve().then(() => __toESM(__require("node-fetch"))).then(({ default: nodeFetch }) => nodeFetch(input, init)) : window.fetch;
769
+ var useFetch = isNodeProcess2() ? (input, init) => Promise.resolve().then(() => __toESM(__require("node-fetch"))).then(({ default: nodeFetch }) => nodeFetch(input, init)) : globalThis.fetch;
770
770
  var augmentRequestInit = (requestInit) => {
771
771
  const headers = new Headers2(requestInit.headers);
772
772
  headers.set("x-msw-bypass", "true");
@@ -1,7 +1,7 @@
1
- import { S as SetupServerApi } from '../SetupServerApi-3406bf53.js';
2
- export { a as ServerLifecycleEventsMap } from '../SetupServerApi-3406bf53.js';
3
- import { b as RequestHandler } from '../SetupApi-0d3126ba.js';
4
- export { a as SetupServerApi } from '../glossary-6a87827e.js';
1
+ import { S as SetupServerApi } from '../SetupServerApi-70cc71a7.js';
2
+ export { a as ServerLifecycleEventsMap } from '../SetupServerApi-70cc71a7.js';
3
+ import { b as RequestHandler } from '../SetupApi-b2f0e5ac.js';
4
+ export { a as SetupServerApi } from '../glossary-a30fab39.js';
5
5
  import '@mswjs/interceptors';
6
6
  import 'strict-event-emitter';
7
7
  import 'headers-polyfill';
package/lib/node/index.js CHANGED
@@ -769,7 +769,7 @@ var errors = (errorsList) => {
769
769
  // src/context/fetch.ts
770
770
  var import_is_node_process2 = require("is-node-process");
771
771
  var import_headers_polyfill4 = require("headers-polyfill");
772
- var useFetch = (0, import_is_node_process2.isNodeProcess)() ? (input, init) => Promise.resolve().then(() => __toESM(require("node-fetch"))).then(({ default: nodeFetch }) => nodeFetch(input, init)) : window.fetch;
772
+ var useFetch = (0, import_is_node_process2.isNodeProcess)() ? (input, init) => Promise.resolve().then(() => __toESM(require("node-fetch"))).then(({ default: nodeFetch }) => nodeFetch(input, init)) : globalThis.fetch;
773
773
  var augmentRequestInit = (requestInit) => {
774
774
  const headers = new import_headers_polyfill4.Headers(requestInit.headers);
775
775
  headers.set("x-msw-bypass", "true");