@whatwg-node/node-fetch
Advanced tools
Comparing version 0.7.6-alpha-20241227121605-8911b685bebd9f2198f82c42c90726a4d70a56d7 to 0.7.6-alpha-20241227121722-12cf66fa193e9b7d8a4f1b0456ec0c02d1bd0466
@@ -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, |
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
237840
6022