myfetchapi
Advanced tools
Comparing version 1.7.5 to 1.7.6
import type * as nodefetch from "node-fetch"; | ||
export type MyFetchResponse = Response | nodefetch.Response; | ||
export type MyFetchRequestInfo = RequestInfo | nodefetch.RequestInfo; | ||
@@ -27,3 +28,3 @@ export type MyFetchRequestInit = RequestInit | nodefetch.RequestInit; | ||
*/ | ||
retryCondition?: (res: Response | nodefetch.Response) => boolean | Promise<boolean>; | ||
retryCondition?: (res: MyFetchResponse) => boolean | Promise<boolean>; | ||
}; | ||
@@ -35,2 +36,2 @@ /** | ||
export declare const SET_MAX_CONCURRENT_REQUESTS: (max: number) => void; | ||
export declare function myFetch(input: MyFetchRequestInfo, init?: MyFetchRequestInit, options?: MyFetchOptions): Promise<Response>; | ||
export declare function myFetch(input: MyFetchRequestInfo, init?: MyFetchRequestInit, options?: MyFetchOptions): Promise<MyFetchResponse>; |
{ | ||
"name": "myfetchapi", | ||
"version": "1.7.5", | ||
"version": "1.7.6", | ||
"description": "mFetch is a JavaScript library that provides a utility function for making HTTP requests with queuing and retry functionality.", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
539440
13088