Comparing version 2.2.0 to 2.2.1
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
/** | ||
* Mock Service Worker (2.2.0). | ||
* Mock Service Worker (2.2.1). | ||
* @see https://github.com/mswjs/msw | ||
@@ -8,0 +8,0 @@ * - Please do NOT modify this file. |
{ | ||
"name": "msw", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Seamless REST/GraphQL API mocking library for browser and Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/core/index.js", |
@@ -78,20 +78,2 @@ import { Emitter } from 'strict-event-emitter' | ||
/** | ||
* Map of the events that can be sent to the Service Worker | ||
* only as a part of a single `fetch` event handler. | ||
*/ | ||
export interface ServiceWorkerFetchEventMap { | ||
MOCK_RESPONSE(payload: StringifiedResponse): void | ||
MOCK_RESPONSE_START(payload: StringifiedResponse): void | ||
MOCK_NOT_FOUND(): void | ||
NETWORK_ERROR(payload: { name: string; message: string }): void | ||
INTERNAL_ERROR(payload: { status: number; body: string }): void | ||
} | ||
export interface ServiceWorkerBroadcastChannelMessageMap { | ||
MOCK_RESPONSE_CHUNK(payload: Uint8Array): void | ||
MOCK_RESPONSE_END(): void | ||
} | ||
export interface StrictEventListener<EventType extends Event> { | ||
@@ -98,0 +80,0 @@ (event: EventType): void |
2050364
25746