@types/node-fetch
Advanced tools
Comparing version 2.6.5 to 2.6.6
@@ -9,11 +9,19 @@ // `AbortSignal` is defined here to prevent a dependency on a particular | ||
addEventListener: (type: "abort", listener: ((this: AbortSignal, event: any) => any), options?: boolean | { | ||
capture?: boolean | undefined, | ||
once?: boolean | undefined, | ||
passive?: boolean | undefined | ||
}) => void; | ||
addEventListener: ( | ||
type: "abort", | ||
listener: (this: AbortSignal, event: any) => any, | ||
options?: boolean | { | ||
capture?: boolean | undefined; | ||
once?: boolean | undefined; | ||
passive?: boolean | undefined; | ||
}, | ||
) => void; | ||
removeEventListener: (type: "abort", listener: ((this: AbortSignal, event: any) => any), options?: boolean | { | ||
capture?: boolean | undefined | ||
}) => void; | ||
removeEventListener: ( | ||
type: "abort", | ||
listener: (this: AbortSignal, event: any) => any, | ||
options?: boolean | { | ||
capture?: boolean | undefined; | ||
}, | ||
) => void; | ||
@@ -20,0 +28,0 @@ dispatchEvent: (event: any) => boolean; |
@@ -19,5 +19,5 @@ // Type definitions for node-fetch 2.6 | ||
import FormData = require('form-data'); | ||
import FormData = require("form-data"); | ||
import { RequestOptions } from "http"; | ||
import { URLSearchParams, URL } from "url"; | ||
import { URL, URLSearchParams } from "url"; | ||
import { AbortSignal } from "./externals"; | ||
@@ -36,3 +36,3 @@ | ||
// node-fetch extensions to the whatwg/fetch spec | ||
agent?: RequestOptions['agent'] | ((parsedUrl: URL) => RequestOptions['agent']); | ||
agent?: RequestOptions["agent"] | ((parsedUrl: URL) => RequestOptions["agent"]); | ||
compress: boolean; | ||
@@ -57,3 +57,3 @@ counter: number; | ||
// node-fetch extensions | ||
agent?: RequestOptions['agent'] | ((parsedUrl: URL) => RequestOptions['agent']); // =null http.Agent instance, allows custom proxy, certificate etc. | ||
agent?: RequestOptions["agent"] | ((parsedUrl: URL) => RequestOptions["agent"]); // =null http.Agent instance, allows custom proxy, certificate etc. | ||
compress?: boolean | undefined; // =true support gzip/deflate content encoding. false to disable | ||
@@ -68,3 +68,3 @@ follow?: number | undefined; // =20 maximum redirect count. 0 to not follow redirect | ||
export type RequestContext = | ||
"audio" | ||
| "audio" | ||
| "beacon" | ||
@@ -107,3 +107,3 @@ | "cspreport" | ||
export type RequestCache = | ||
"default" | ||
| "default" | ||
| "force-cache" | ||
@@ -188,3 +188,3 @@ | "no-cache" | ||
export type ResponseType = | ||
"basic" | ||
| "basic" | ||
| "cors" | ||
@@ -213,3 +213,3 @@ | "default" | ||
export type BodyInit = | ||
ArrayBuffer | ||
| ArrayBuffer | ||
| ArrayBufferView | ||
@@ -224,3 +224,3 @@ | NodeJS.ReadableStream | ||
url: RequestInfo, | ||
init?: RequestInit | ||
init?: RequestInit, | ||
): Promise<Response>; | ||
@@ -227,0 +227,0 @@ |
{ | ||
"name": "@types/node-fetch", | ||
"version": "2.6.5", | ||
"version": "2.6.6", | ||
"description": "TypeScript definitions for node-fetch", | ||
@@ -81,4 +81,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-fetch", | ||
}, | ||
"typesPublisherContentHash": "0b18768a77e85a3249a602482a75cb8dcc8de8b96e79f877c0290f6c206739ce", | ||
"typesPublisherContentHash": "1c45642541a528c3630627015d790a28fc645158dfb2fb2c195d6e33dfaf9a0f", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 14 Sep 2023 01:49:18 GMT | ||
* Last updated: Sat, 23 Sep 2023 20:38:33 GMT | ||
* Dependencies: [@types/form-data](https://npmjs.com/package/@types/form-data), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
12264
225
6