Socket
Socket
Sign inDemoInstall

@types/node-fetch

Package Overview
Dependencies
2
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.7 to 2.3.0

11

node-fetch/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for node-fetch 2.1
// Type definitions for node-fetch 2.3
// Project: https://github.com/bitinn/node-fetch

@@ -8,2 +8,3 @@ // Definitions by: Torsten Werner <https://github.com/torstenwerner>

// Andrew Leedham <https://github.com/AndrewLeedham>
// Jason Li <https://github.com/JasonLi914>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -41,3 +42,3 @@

body?: BodyInit;
headers?: HeaderInit | { [index: string]: string };
headers?: HeadersInit;
method?: string;

@@ -103,3 +104,3 @@ redirect?: RequestRedirect;

export class Headers implements Iterable<[string, string]> {
constructor(init?: Headers | { [k: string]: string });
constructor(init?: HeadersInit);
forEach(callback: (value: string, name: string) => void): void;

@@ -171,3 +172,3 @@ append(name: string, value: string): void;

export interface ResponseInit {
headers?: HeaderInit;
headers?: HeadersInit;
status: number;

@@ -177,3 +178,3 @@ statusText?: string;

export type HeaderInit = Headers | string[];
export type HeadersInit = Headers | string[][] | { [key: string]: string };
export type BodyInit = ArrayBuffer | ArrayBufferView | NodeJS.ReadableStream | string | URLSearchParams;

@@ -180,0 +181,0 @@ export type RequestInfo = string | Request;

{
"name": "@types/node-fetch",
"version": "2.1.7",
"version": "2.3.0",
"description": "TypeScript definitions for node-fetch",

@@ -31,2 +31,7 @@ "license": "MIT",

"githubUsername": "AndrewLeedham"
},
{
"name": "Jason Li",
"url": "https://github.com/JasonLi914",
"githubUsername": "JasonLi914"
}

@@ -45,4 +50,4 @@ ],

},
"typesPublisherContentHash": "a7f4a32fe6f4eac0ec2855aeaf08984c63b51d72f30cd526e7d4e6284c40a00f",
"typesPublisherContentHash": "30f4eaae1b307266024a83fada49482090f7d02d757cd9d8a91e4024812d6bb2",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Wed, 20 Mar 2019 17:54:34 GMT
* Last updated: Thu, 04 Apr 2019 20:17:43 GMT
* Dependencies: @types/node

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Torsten Werner <https://github.com/torstenwerner>, Niklas Lindgren <https://github.com/nikcorg>, Vinay Bedre <https://github.com/vinaybedre>, Antonio Román <https://github.com/kyranet>, Andrew Leedham <https://github.com/AndrewLeedham>.
These definitions were written by Torsten Werner <https://github.com/torstenwerner>, Niklas Lindgren <https://github.com/nikcorg>, Vinay Bedre <https://github.com/vinaybedre>, Antonio Román <https://github.com/kyranet>, Andrew Leedham <https://github.com/AndrewLeedham>, Jason Li <https://github.com/JasonLi914>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc