@whatwg-node/node-fetch
Advanced tools
Comparing version 0.7.5-alpha-20241210191217-8a3d7a6a4e1f62f3693b7a618bbb8c6b5ff513f9 to 0.7.5-alpha-20241210210919-680ecc3291b1c6c284e87af6977d8a107e1ec8cc
@@ -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, |
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
235166
5970