New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

msw

Package Overview
Dependencies
Maintainers
1
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msw - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

lib/mockServiceWorker.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc