Socket
Socket
Sign inDemoInstall

node-fetch

Package Overview
Dependencies
5
Maintainers
5
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.0 to 3.3.1

4

@types/index.d.ts

@@ -150,3 +150,3 @@ /// <reference types="node" />

export class Request extends BodyMixin {
constructor(input: RequestInfo, init?: RequestInit);
constructor(input: URL | RequestInfo, init?: RequestInit);

@@ -220,2 +220,2 @@ /**

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>;
{
"name": "node-fetch",
"version": "3.3.0",
"version": "3.3.1",
"description": "A light-weight module that brings Fetch API to node.js",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -630,3 +630,3 @@ <div align="center">

```js
const fetch = require('node-fetch');
import fetch from 'node-fetch';

@@ -633,0 +633,0 @@ const response = await fetch('https://httpbin.org/status/301', { redirect: 'manual' });

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