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

cross-fetch

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-fetch - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4-alpha.0

43

index.d.ts

@@ -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": [

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