cross-fetch
Advanced tools
Comparing version 3.1.3 to 3.1.4-alpha.0
@@ -1,35 +0,14 @@ | ||
/// <reference no-default-lib="true"/> | ||
/// <reference path="./lib.fetch.d.ts" /> | ||
/// <reference lib="dom" /> | ||
declare function _fetch(input: RequestInfo, init?: RequestInit): Promise<Response>; | ||
declare const _fetch: typeof fetch; | ||
declare const _Request: typeof Request; | ||
declare const _Response: typeof Response; | ||
declare const _Headers: typeof Headers; | ||
declare var _Request: { | ||
prototype: Request; | ||
new(input: RequestInfo, init?: RequestInit): Request; | ||
}; | ||
declare var _Response: { | ||
prototype: Response; | ||
new(body?: BodyInit | null, init?: ResponseInit): Response; | ||
error(): Response; | ||
redirect(url: string, status?: number): Response; | ||
}; | ||
declare var _Headers: { | ||
prototype: Headers; | ||
new(init?: HeadersInit): Headers; | ||
}; | ||
type _RequestInfo = RequestInfo | ||
type _RequestInit = RequestInit | ||
export { | ||
_fetch as fetch, | ||
_Response as Response, | ||
_Request as Request, | ||
_RequestInfo as RequestInfo, | ||
_RequestInit as RequestInit, | ||
_Headers as Headers, | ||
declare module "cross-fetch" { | ||
export const fetch: typeof _fetch; | ||
export const Request: typeof _Request; | ||
export const Response: typeof _Response; | ||
export const Headers: typeof _Headers; | ||
export default fetch; | ||
} | ||
export default _fetch |
{ | ||
"name": "cross-fetch", | ||
"version": "3.1.3", | ||
"version": "3.1.4-alpha.0", | ||
"description": "Universal WHATWG Fetch API for Node, Browsers and React Native", | ||
@@ -110,4 +110,3 @@ "homepage": "https://github.com/lquixada/cross-fetch", | ||
"polyfill", | ||
"index.d.ts", | ||
"lib.fetch.d.ts" | ||
"index.d.ts" | ||
], | ||
@@ -114,0 +113,0 @@ "keywords": [ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
73846
13
1013
1