node-fetch-cjs
Advanced tools
Comparing version 3.2.10 to 3.3.2
@@ -150,3 +150,3 @@ /// <reference types="node" /> | ||
export class Request extends BodyMixin { | ||
constructor(input: RequestInfo, init?: RequestInit); | ||
constructor(input: URL | RequestInfo, init?: RequestInit); | ||
@@ -200,2 +200,3 @@ /** | ||
static redirect(url: string, status?: number): Response; | ||
static json(data: any, init?: ResponseInit): Response; | ||
} | ||
@@ -220,3 +221,3 @@ | ||
export function isRedirect(code: number): boolean; | ||
export default function fetch(url: RequestInfo, init?: RequestInit): Promise<Response>; | ||
export default function fetch(url: URL | RequestInfo, init?: RequestInit): Promise<Response>; | ||
@@ -223,0 +224,0 @@ |
{ | ||
"name": "node-fetch-cjs", | ||
"version": "3.2.10", | ||
"version": "3.3.2", | ||
"description": "A wrapper for node-fetch (a light-weight module that brings Fetch API to node.js) to be used in commonjs environment.", | ||
@@ -51,4 +51,4 @@ "main": "./dist/index.js", | ||
"jest": "^27.3.1", | ||
"node-fetch": "3.2.10" | ||
"node-fetch": "3.3.2" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
235453
5789