Comparing version 2.1.6 to 2.1.7
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
/** | ||
* Mock Service Worker (2.1.6). | ||
* Mock Service Worker (2.1.7). | ||
* @see https://github.com/mswjs/msw | ||
@@ -8,0 +8,0 @@ * - Please do NOT modify this file. |
@@ -26,2 +26,3 @@ "use strict"; | ||
module.exports = __toCommonJS(native_exports); | ||
var import_fetch = require("@mswjs/interceptors/fetch"); | ||
var import_XMLHttpRequest = require("@mswjs/interceptors/XMLHttpRequest"); | ||
@@ -108,3 +109,6 @@ | ||
function setupServer(...handlers) { | ||
return new SetupServerApi([import_XMLHttpRequest.XMLHttpRequestInterceptor], ...handlers); | ||
return new SetupServerApi( | ||
[import_fetch.FetchInterceptor, import_XMLHttpRequest.XMLHttpRequestInterceptor], | ||
...handlers | ||
); | ||
} | ||
@@ -111,0 +115,0 @@ // Annotate the CommonJS export names for ESM import in node: |
{ | ||
"name": "msw", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "Seamless REST/GraphQL API mocking library for browser and Node.js.", | ||
@@ -98,3 +98,3 @@ "main": "./lib/core/index.js", | ||
"@mswjs/cookies": "^1.1.0", | ||
"@mswjs/interceptors": "^0.25.15", | ||
"@mswjs/interceptors": "^0.25.16", | ||
"@open-draft/until": "^2.1.0", | ||
@@ -101,0 +101,0 @@ "@types/cookie": "^0.6.0", |
@@ -0,1 +1,2 @@ | ||
import { FetchInterceptor } from '@mswjs/interceptors/fetch' | ||
import { XMLHttpRequestInterceptor } from '@mswjs/interceptors/XMLHttpRequest' | ||
@@ -16,3 +17,6 @@ import { RequestHandler } from '~/core/handlers/RequestHandler' | ||
// in React Native. There is no `http`/`https` modules in that environment. | ||
return new SetupServerApi([XMLHttpRequestInterceptor], ...handlers) | ||
return new SetupServerApi( | ||
[FetchInterceptor, XMLHttpRequestInterceptor], | ||
...handlers, | ||
) | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2022726
25385
Updated@mswjs/interceptors@^0.25.16