Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/fetch-mock

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/fetch-mock - npm Package Compare versions

Comparing version 7.3.3 to 7.3.4

68

fetch-mock/index.d.ts

@@ -75,3 +75,3 @@ // Type definitions for fetch-mock 7.3

*/
body?: string | {};
body?: string | {} | undefined;

@@ -82,3 +82,3 @@ /**

*/
status?: number;
status?: number | undefined;

@@ -88,3 +88,3 @@ /**

*/
headers?: { [key: string]: string };
headers?: { [key: string]: string } | undefined;

@@ -95,3 +95,3 @@ /**

*/
throws?: Error;
throws?: Error | undefined;

@@ -102,3 +102,3 @@ /**

*/
redirectUrl?: string;
redirectUrl?: string | undefined;
}

@@ -140,3 +140,3 @@

*/
name?: string;
name?: string | undefined;

@@ -146,3 +146,3 @@ /**

*/
method?: string;
method?: string | undefined;

@@ -152,3 +152,3 @@ /**

*/
headers?: { [key: string]: string | number };
headers?: { [key: string]: string | number } | undefined;

@@ -158,3 +158,3 @@ /**

*/
body?: string | {};
body?: string | {} | undefined;

@@ -164,3 +164,3 @@ /**

*/
query?: { [key: string]: string };
query?: { [key: string]: string } | undefined;

@@ -170,3 +170,3 @@ /**

*/
params?: { [key: string]: string };
params?: { [key: string]: string } | undefined;

@@ -176,3 +176,3 @@ /**

*/
functionMatcher?: MockMatcherFunction;
functionMatcher?: MockMatcherFunction | undefined;

@@ -182,3 +182,3 @@ /**

*/
matcher?: MockMatcher;
matcher?: MockMatcher | undefined;

@@ -190,3 +190,3 @@ /**

*/
overwriteRoutes?: boolean;
overwriteRoutes?: boolean | undefined;

@@ -196,3 +196,3 @@ /**

*/
response?: MockResponse | MockResponseFunction;
response?: MockResponse | MockResponseFunction | undefined;

@@ -206,3 +206,3 @@ /**

*/
repeat?: number;
repeat?: number | undefined;

@@ -216,3 +216,3 @@ /**

*/
sendAsJson?: boolean;
sendAsJson?: boolean | undefined;

@@ -223,3 +223,3 @@ /**

*/
includeContentLength?: boolean;
includeContentLength?: boolean | undefined;
}

@@ -236,19 +236,19 @@

interface MockOptionsMethodGet extends MockOptions {
method?: 'GET';
method?: 'GET' | undefined;
}
interface MockOptionsMethodPost extends MockOptions {
method?: 'POST';
method?: 'POST' | undefined;
}
interface MockOptionsMethodPut extends MockOptions {
method?: 'PUT';
method?: 'PUT' | undefined;
}
interface MockOptionsMethodDelete extends MockOptions {
method?: 'DELETE';
method?: 'DELETE' | undefined;
}
interface MockOptionsMethodHead extends MockOptions {
method?: 'HEAD';
method?: 'HEAD' | undefined;
}

@@ -569,3 +569,3 @@

*/
sendAsJson?: boolean;
sendAsJson?: boolean | undefined;

@@ -576,3 +576,3 @@ /**

*/
includeContentLength?: boolean;
includeContentLength?: boolean | undefined;

@@ -586,3 +586,3 @@ /**

*/
fallbackToNetwork?: boolean | 'always';
fallbackToNetwork?: boolean | 'always' | undefined;

@@ -597,3 +597,3 @@ /**

*/
overwriteRoutes?: boolean;
overwriteRoutes?: boolean | undefined;

@@ -605,3 +605,3 @@ /**

*/
warnOnFallback?: boolean;
warnOnFallback?: boolean | undefined;

@@ -615,3 +615,3 @@ /**

reject: (reason?: any) => void,
) => void) => Promise<Response>;
) => void) => Promise<Response> | undefined;

@@ -621,6 +621,6 @@ /**

*/
fetch?: (
fetch?: ((
input?: string | Request,
init?: RequestInit,
) => Promise<Response>;
) => Promise<Response>) | undefined;

@@ -631,3 +631,3 @@ /**

*/
Headers?: new () => Headers;
Headers?: new () => Headers | undefined;

@@ -638,3 +638,3 @@ /**

*/
Request?: new (input: string | Request, init?: RequestInit) => Request;
Request?: new (input: string | Request, init?: RequestInit) => Request | undefined;

@@ -645,3 +645,3 @@ /**

*/
Response?: new () => Response;
Response?: new () => Response | undefined;
};

@@ -648,0 +648,0 @@ }

{
"name": "@types/fetch-mock",
"version": "7.3.3",
"version": "7.3.4",
"description": "TypeScript definitions for fetch-mock",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fetch-mock",
"license": "MIT",

@@ -67,4 +68,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "788dbb23323604b1fb246fc8889060ed59cb5fe8f75dfd102b2260f0077d0e74",
"typeScriptVersion": "3.1"
"typesPublisherContentHash": "a2ba642285604281a6a4c5d60ffd6eb4a5d4cdcb3ecd3efd94651c500f45263f",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 02 Sep 2020 07:17:24 GMT
* Last updated: Tue, 06 Jul 2021 20:32:56 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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