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
278
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 0.9.3 to 0.10.0

lib/utils/resolveRelativeUrl.d.ts

6

lib/handlers/requestHandler.d.ts

@@ -24,4 +24,8 @@ import { Mask } from '../composeMocks';

bodyUsed: Request['bodyUsed'];
query: URLSearchParams;
params: RequestParams;
}
export declare type RequestQuery = {
[queryName: string]: any;
};
export declare type RequestParams = {

@@ -36,3 +40,3 @@ [paramName: string]: any;

*/
predicate: (req: MockedRequest) => boolean;
predicate: (req: MockedRequest, parsedUrl?: URL) => boolean;
resolver: ResponseResolver<ContextType>;

@@ -39,0 +43,0 @@ defineContext?: (req: MockedRequest) => ContextType;

2

lib/index.d.ts
export * from './handlers/requestHandler';
export { composeMocks } from './composeMocks';
export { ResponseTransformer, response } from './response';
export { MockedResponse, ResponseTransformer, response } from './response';
export * as context from './context';
export { default as rest, restContext, RESTMethods } from './handlers/rest';
export { default as graphql, graphqlContext } from './handlers/graphql';
{
"name": "msw",
"version": "0.9.3",
"version": "0.10.0",
"description": "Deviation-less client-side runtime API mocking using Service Workers.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is too big to display

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