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

@whatwg-node/node-fetch

Package Overview
Dependencies
Maintainers
1
Versions
554
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whatwg-node/node-fetch - npm Package Compare versions

Comparing version 0.7.5-alpha-20241210191217-8a3d7a6a4e1f62f3693b7a618bbb8c6b5ff513f9 to 0.7.5-alpha-20241210210919-680ecc3291b1c6c284e87af6977d8a107e1ec8cc

3

cjs/fetchNodeHttp.js

@@ -36,3 +36,4 @@ "use strict";

let nodeRequest;
if (fetchRequest.parsedUrl) {
// Skip using parsed URL if it's an IPv6 address (starting with brackets)
if (fetchRequest.parsedUrl && !fetchRequest.parsedUrl.hostname.startsWith('[')) {
nodeRequest = requestFn({

@@ -39,0 +40,0 @@ auth: fetchRequest.parsedUrl.username

@@ -33,3 +33,4 @@ import { request as httpRequest } from 'http';

let nodeRequest;
if (fetchRequest.parsedUrl) {
// Skip using parsed URL if it's an IPv6 address (starting with brackets)
if (fetchRequest.parsedUrl && !fetchRequest.parsedUrl.hostname.startsWith('[')) {
nodeRequest = requestFn({

@@ -36,0 +37,0 @@ auth: fetchRequest.parsedUrl.username

{
"name": "@whatwg-node/node-fetch",
"version": "0.7.5-alpha-20241210191217-8a3d7a6a4e1f62f3693b7a618bbb8c6b5ff513f9",
"version": "0.7.5-alpha-20241210210919-680ecc3291b1c6c284e87af6977d8a107e1ec8cc",
"description": "Fetch API implementation for Node",

@@ -5,0 +5,0 @@ "sideEffects": false,

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