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
576
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.6-alpha-20241227121605-8911b685bebd9f2198f82c42c90726a4d70a56d7 to 0.7.6-alpha-20241227121722-12cf66fa193e9b7d8a4f1b0456ec0c02d1bd0466

4

cjs/URL.js

@@ -21,3 +21,5 @@ "use strict";

this.parse(url, false);
// `fast-url-parser` cannot handle ipv6 hosts correctly
// `fast-url-parser` incorrectly removes `[IPV6]` in the hostname
// Then `hostname` doesn't include `[` and `]` for IPv6 URLs
// This breaks implementations that rely on `hostname` to include `[` and `]`
if ((url.startsWith('http://[') || url.startsWith('https://[')) &&

@@ -24,0 +26,0 @@ IPV6_REGEX.test(this.hostname)) {

@@ -17,3 +17,5 @@ import { resolveObjectURL } from 'buffer';

this.parse(url, false);
// `fast-url-parser` cannot handle ipv6 hosts correctly
// `fast-url-parser` incorrectly removes `[IPV6]` in the hostname
// Then `hostname` doesn't include `[` and `]` for IPv6 URLs
// This breaks implementations that rely on `hostname` to include `[` and `]`
if ((url.startsWith('http://[') || url.startsWith('https://[')) &&

@@ -20,0 +22,0 @@ IPV6_REGEX.test(this.hostname)) {

{
"name": "@whatwg-node/node-fetch",
"version": "0.7.6-alpha-20241227121605-8911b685bebd9f2198f82c42c90726a4d70a56d7",
"version": "0.7.6-alpha-20241227121722-12cf66fa193e9b7d8a4f1b0456ec0c02d1bd0466",
"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