@whatwg-node/node-fetch
Advanced tools
Comparing version 0.7.5-alpha-20241210210919-680ecc3291b1c6c284e87af6977d8a107e1ec8cc to 0.7.5-alpha-20241210211414-d3ba0200610c3de61aea13ae4383d2db8ad54ac2
@@ -37,3 +37,3 @@ "use strict"; | ||
// Skip using parsed URL if it's an IPv6 address (starting with brackets) | ||
if (fetchRequest.parsedUrl && !fetchRequest.parsedUrl.hostname.startsWith('[')) { | ||
if (fetchRequest.parsedUrl && !fetchRequest.parsedUrl.hostname?.startsWith('[')) { | ||
nodeRequest = requestFn({ | ||
@@ -40,0 +40,0 @@ auth: fetchRequest.parsedUrl.username |
@@ -34,3 +34,3 @@ import { request as httpRequest } from 'http'; | ||
// Skip using parsed URL if it's an IPv6 address (starting with brackets) | ||
if (fetchRequest.parsedUrl && !fetchRequest.parsedUrl.hostname.startsWith('[')) { | ||
if (fetchRequest.parsedUrl && !fetchRequest.parsedUrl.hostname?.startsWith('[')) { | ||
nodeRequest = requestFn({ | ||
@@ -37,0 +37,0 @@ auth: fetchRequest.parsedUrl.username |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.7.5-alpha-20241210210919-680ecc3291b1c6c284e87af6977d8a107e1ec8cc", | ||
"version": "0.7.5-alpha-20241210211414-d3ba0200610c3de61aea13ae4383d2db8ad54ac2", | ||
"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
235168